html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    scrollbar-color: #3a5f0b #f8f9fa;
    scrollbar-width: thin;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9;
}

main {
    flex: 1 0 auto;
}

.tbl-pagination .page-link{
    color: #3a5f0b;
}

.tbl-pagination .page-item:nth-child(2){
    font-weight: bold;
}

.tbl-pagination .page-link.active{
    background-color: yellow;
    border-color: #4b7523;
}

.tbl-pagination .page-link:focus{
    color: #ffc107;
}

/* Hero Section - NO WHITE SPACE */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("/images/general/Golf Course.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin: 0;
}

#blog-hero-section {
    background-image: linear-gradient(to bottom, rgba(58, 95, 11, 0.4), rgba(58, 95, 11, 0.4)), url("/images/general/topography.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

#navigation {
    background-color: #3a5f0b;
}

#navigation a, #navigation .nav-link {
    color: white;
}

#navigation .nav-item {
    padding: 10px 5px;
}

#navigation .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#navigation a.active, #navigation .nav-link .active {
    font-weight: bold;
    color: yellow;
}

#navigation .dropdown-item.active{
    background-color: #3a5f0b;
}

#offcanvas-navigation .navbar-nav a.nav-link.active {
    font-weight: bold;
    font-size: 1.2em;
    transform-origin: top right;
}

#navigation .dropdown-item {
    color: #0b2e13;
}

#leagues-dropdown li .dropdown-item:active {
    background-color: #5a8629;
    color: yellow;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btn {
    background: linear-gradient(45deg, #3a5f0b, #4b7523);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: transform 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-2px);
    color: white;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 2rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3rem;
    color: #3a5f0b;
    margin-bottom: 1rem;
}

/* Tournament Results Section */
.tournament-results {
    background: #f8f9fa;
    padding: 60px 0;
}

.tournament-results img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 1rem;
    background: white;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Calendar Preview Section */
.calendar-preview {
    background: #f8f9fa;
    padding: 60px 0;
}

.calendar-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.calendar-card:hover {
    transform: translateY(-5px);
}

.calendar-card-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
}

.calendar-card-body {
    padding: 1.5rem;
}

/* Player Grid */
.player-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.player-grid img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #cde0d0;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* League Player Photos */
.league-photos {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.league-photos h4 {
    color: #3a5f0b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.league-photos h4 i {
    margin-right: 0.5rem;
}

.table-responsive {
    scrollbar-width: none;
}

.league-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.league-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid #3a5f0b;
}

.league-photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.league-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photos-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.no-photos-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #adb5bd;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f8f9fa;
}

.event-card-body {
    padding: 1.5rem;
}

a.team-groups:hover{
    transform: scaleY(1.16);
    transition: transform 100ms ease-in;
}

/* Somabay Gallery */
.somabay-gallery img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 1rem;
    background: #f8f9fa;
    padding: 10px;
}

/* Modern League Tables */
.modern-league-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.modern-league-table .table-header {
    background: linear-gradient(135deg, #3a5f0b, #4b7523);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.modern-league-table .table-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modern-league-table .table {
    margin: 0;
    border: none;
}

.modern-league-table .table thead th {
    background: linear-gradient(135deg, #2d4a08, #3a5f0b);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.modern-league-table .table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.modern-league-table .table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-league-table .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.rank-cell {
    font-weight: bold;
    font-size: 1.2rem;
}

.team-cell {
    font-weight: 600;
    color: #2c3e50;
}

.points-cell {
    font-weight: bold;
    color: #3a5f0b;
    font-size: 1.1rem;
}

.view-details-btn {
    background: linear-gradient(135deg, #3a5f0b, #4b7523);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #4b7523, #5a8629);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-details-btn i {
    margin-right: 0.5rem;
}

/* League Tabs */
.league-tabcontent {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.league-tabcontent.active {
    display: block;
}

.league-tab button {
    margin: 2px;
    background: #cde0d0;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    color: #2f4f09;
    font-weight: 600;
    transition: background 0.3s ease;
}

.league-tab button.active,
.league-tab button:hover {
    background: #3a5f0b;
    color: white;
}

.table thead {
    background: linear-gradient(to right, #3a5f0b, #4b7523);
    color: white;
}

.footer {
    flex-shrink: 0;
    background: linear-gradient(90deg, #3a5f0b, #4b7523);
    color: white;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(to right, #3a5f0b, #4b7523);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#backToTop:hover {
    background: linear-gradient(to right, #4b7523, #3a5f0b);
}

#blog-list .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Mobile Centering */
    .hero-content,
    .mobile-center,
    .text-center,
    .calendar-preview .container,
    .tournament-results .container {
        text-align: center !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn,
    .cta-button,
    .hero-btn {
        display: block;
        margin: 0 auto 1rem auto;
        text-align: center;
        width: fit-content;
    }

    .calendar-card-img {
        height: 150px;
    }

    /* Mobile League Dropdown Styling */
    .mobile-league-submenu .nav-link {
        color: white !important;
        background: rgba(0, 0, 0, 0.2);
    }

    .mobile-league-submenu .nav-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }

    /* Mobile Video Container */
    .video-container {
        margin: 1rem 0;
    }

    /* Mobile League Photos */
    .league-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    /* Mobile Table Responsiveness */
    .modern-league-table .table-responsive {
        border-radius: 0;
    }

    .modern-league-table .table tbody tr:hover {
        transform: none;
    }
}

