/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 25%, #ffffff 50%, #f0f9ff 75%, #dbeafe 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #1e40af;
    --secondary-color: #059669;
    --accent-color: #7c3aed;
    --dark-blue: #1e3a8a;
    --light-blue: #dbeafe;
    --dark-green: #047857;
    --light-green: #d1fae5;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===================================
   Utility Classes
   =================================== */
.section-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* .btn-primary {
    display: none;
} */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 0.6rem;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--light-blue);
}


.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   Navigation Bar
   =================================== */
.navbar {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
}

.nav-brand {
    flex-shrink: 0;
}

.logo-placeholder {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 0.375rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--light-blue);
    color: var(--primary-color);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 12rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Submenu / Nested Dropdown */
.submenu {
    position: relative;
    /* Ensure it has proper width for hover area */
    width: 100%;
}

.submenu-link {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.submenu-link .arrow {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.submenu.active > .submenu-link .arrow {
    transform: rotate(90deg);
}

.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: -0.5rem;
    background: white;
    min-width: 14rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 0;
    border: 1px solid var(--border-color);
    list-style: none;
    padding: 0.5rem 0;
}

.submenu:hover > .dropdown-submenu,
.submenu.active > .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1000;
}

/* Also show submenu when hovering over the submenu itself */
.dropdown-submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu li {
    list-style: none;
}

.dropdown-submenu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Ensure dropdown menu stays visible while hovering over submenu */
.nav-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        border: none;
        background: var(--bg-light);
        border-radius: 0.375rem;
        margin-left: 1rem;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    /* Submenu on mobile */
    .dropdown-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        border: none;
        background: #e0f2fe;
        border-radius: 0.375rem;
        margin-left: 2rem;
        display: none;
    }

    .submenu.active .dropdown-submenu {
        display: block;
    }

    .submenu-link .arrow {
        margin-left: auto;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    /* padding: 2rem 0; */
     padding: 1.25rem 0;
}

.hero-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Right Column Wrapper */
.hero-right-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 2fr 1fr;
    }

    .hero-carousel {
        height: clamp(360px, 55vh, 600px);
    }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
}

.carousel-wrapper {
    /* position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden; */
    position: relative;
    width: 100%;
    height: clamp(360px, 55vh, 600px);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
}

/* .carousel-wrapper {
    position: relative;
    width: 100%;
    height: clamp(360px, 55vh, 600px);
    overflow: hidden;
} */

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* min-height: 550px; */
    opacity: 1;
    visibility: visible;
    transform: translateX(100%);
    /* transition: transform 1.2s ease-in-out; */
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    cursor: pointer;
    background-position: center center;
    background-repeat: no-repeat;
}

.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(30, 58, 138, 0.85)),
                url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&h=1080&fit=crop&auto=format') center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(109, 40, 217, 0.85)),
                url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?w=1920&h=1080&fit=crop&auto=format') center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.85), rgba(4, 120, 87, 0.85)),
                url('https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?w=1920&h=1080&fit=crop&auto=format') center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-slide:nth-child(4) {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.85), rgba(185, 28, 28, 0.85)),
                url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=1920&h=1080&fit=crop&auto=format') center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    transform: translateX(0);
    z-index: 2;
}

.carousel-slide.slide-out-left {
    transform: translateX(-100%);
    z-index: 1;
}

.carousel-slide.slide-in-right {
    transform: translateX(100%);
    z-index: 1;
}

.slide-content {
    /* padding: 3rem 2rem; */
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    color: white;
    position: relative;
    z-index: 2;

    padding: clamp(2rem, 5vw, 4rem);
    justify-content: center;
    max-width: 720px;
}

.slide-content h1 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

.carousel-btn {
    position: absolute;
    bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 3;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* .carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
} */
 .carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    z-index: 5;
}


.indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    width: 2rem;
    border-radius: 0.375rem;
}

/* Combined News and Banner Section */
.news-banner-combined {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

/* News Section */
.news-section-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.news-section-wrapper h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.news-more-link {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    z-index: 10;
}

.news-more-link:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.news-scroll-container {
    overflow: hidden;
    height: 200px;
    position: relative;
}

.news-scroll-track {
    display: flex;
    flex-direction: column;
    animation: news-scroll-loop 30s linear infinite;
}

.news-scroll-track:hover {
    animation-play-state: paused;
}

.news-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.news-item:hover {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

.news-date {
    display: inline-block;
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.news-item h4 {
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-item p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
}

@keyframes news-scroll-loop {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Banner Ads Section */
.banner-section-wrapper h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.ads-scroll {
    overflow: hidden;
    height: 200px;
    position: relative;
    border-radius: 0.5rem;
}

.ads-track {
    display: flex;
    flex-direction: column;
    animation: scroll-loop 15s linear infinite;
}

.ads-track:hover {
    animation-play-state: paused;
}

.ad-item {
    min-height: 200px;
    height: 200px;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2px;
}

.ad-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
}

.ad-item img:hover {
    transform: scale(1.05);
}

@keyframes scroll-loop {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* ===================================
   Category Section
   =================================== */
.categories-section {
    padding: 4rem 0;
    background: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===================================
   Quick Links Section
   =================================== */
.quick-links-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.quick-link-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.quick-link-card:hover {
    box-shadow: var(--shadow-lg);
}

.quick-link-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.quick-link-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.link-arrow:hover {
    transform: translateX(5px);
    display: inline-block;
}

/* ===================================
   Sponsored Section
   =================================== */
.sponsored-section {
    padding: 3rem 0;
    background: white;
}

.sponsored-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
}

.sponsored-label {
    font-size: 0.875rem;
    color: #92400e;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.sponsored-content h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.sponsored-content p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ===================================
   Page Header
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
}

/* ===================================
   Filters Section
   =================================== */
.filters-section {
    padding: 2rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-actions button {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .filter-actions {
        width: 100%;
        flex-direction: column;
    }

    .filter-actions button {
        width: 100%;
    }
}

/* ===================================
   Rankings Section
   =================================== */
.rankings-section {
    padding: 3rem 0;
    background: white;
}

.rankings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.view-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

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

/* Loading and No Results States */
.loading-state,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Table View */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.table-wrapper {
    min-width: 100%;
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.rankings-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
}

.rankings-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.rankings-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.rankings-table tbody tr:hover {
    background: var(--bg-light);
}

.rankings-table td {
    padding: 1.25rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.rankings-table td:first-child {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* Card View */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.ranking-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.ranking-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-rank {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
}

.score-label {
    color: var(--text-light);
}

.score-value {
    font-weight: 700;
    color: var(--text-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.page-number.active {
    background: var(--primary-color);
    color: white;
}

.page-number:hover:not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===================================
   Methodology Page Styles
   =================================== */
.methodology-section {
    padding: 4rem 0;
    background: white;
}

.methodology-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.methodology-intro h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.methodology-intro p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.parameter-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.parameter-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.parameter-header {
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.parameter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.parameter-header h3 {
    font-size: 1.375rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.parameter-weight {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.parameter-content {
    padding: 2rem;
}

.parameter-content > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.parameter-metrics {
    list-style: none;
    margin-bottom: 1.5rem;
}

.parameter-metrics li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-dark);
}

.parameter-metrics li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.parameter-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 1rem;
    overflow: hidden;
}

.parameter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    transition: width 1s ease;
}

/* Process Section */
.process-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.process-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }
}

/* Scoring Section */
.scoring-section {
    padding: 4rem 0;
    background: white;
}

.scoring-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.scoring-info h3,
.scoring-visual h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.scoring-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.score-formula {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    font-family: 'Courier New', monospace;
    margin: 1.5rem 0;
}

.score-legend {
    margin-top: 1.5rem;
}

.score-legend p {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.weightage-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 300px;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color), var(--dark-blue));
    border-radius: 0.5rem 0.5rem 0 0;
    min-height: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.75rem;
    position: relative;
    transition: transform 0.3s ease;
}

.chart-bar:hover {
    transform: translateY(-10px);
}

.chart-label {
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.chart-param {
    position: absolute;
    bottom: -2rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Transparency Section */
.transparency-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.transparency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.transparency-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.transparency-card:hover {
    box-shadow: var(--shadow-lg);
}

.transparency-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.transparency-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-content .btn-primary:hover {
    background: var(--bg-light);
}

/* ===================================
   About Page Styles
   =================================== */
.about-section {
    padding: 4rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.about-card {
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
}

.about-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.about-card h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.0625rem;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-content p {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

/* Values Section */
.values-section {
    padding: 4rem 0;
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.375rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Impact Section */
.impact-section {
    padding: 4rem 0;
    background: white;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
    border-radius: 1rem;
    color: white;
    transition: var(--transition);
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

.team-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-category {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.team-category h3 {
    font-size: 1.375rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.team-category p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3,
.contact-cta h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-cta p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ===================================
   Footer Styles
   =================================== */
.footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 3rem 0 0;
}

.footer-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

/* Footer Ticker */
.footer-ticker {
    overflow: hidden;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-content {
    display: flex;
    gap: 2rem;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer Bottom */
.footer-bottom {
    padding: 2rem 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-accreditation span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===================================
   Horizontal Carousel - Explore by Category
   =================================== */
.explore-categories-carousel {
    padding: 4rem 0;
    background: var(--bg-light);
}

.horizontal-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.horizontal-carousel {
    display: flex;
    gap: 2.5rem;
    animation: scroll-horizontal 25s linear infinite;
    width: fit-content;
}

.horizontal-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.explore-categories-carousel .carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    max-width: 220px;
    text-align: center;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.explore-categories-carousel .carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.explore-categories-carousel .icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    transition: all 0.3s ease;
}

.explore-categories-carousel .carousel-item:hover .icon-circle {
    transform: scale(1.1);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--dark-blue));
}

.explore-categories-carousel .card-icon {
    font-size: 3rem;
}

.explore-categories-carousel .carousel-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
}

.explore-categories-carousel .carousel-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

/* Responsive adjustments for horizontal carousel */
@media (max-width: 768px) {
    .explore-categories-carousel .section-title {
        font-size: 1.5rem;
    }

    .horizontal-carousel {
        gap: 1.5rem;
        animation: scroll-horizontal 18s linear infinite;
    }

    .explore-categories-carousel .carousel-item {
        min-width: 180px;
        max-width: 180px;
        padding: 1.5rem 1rem;
    }

    .explore-categories-carousel .icon-circle {
        width: 80px;
        height: 80px;
        border-width: 2px;
    }

    .explore-categories-carousel .card-icon {
        font-size: 2.5rem;
    }

    .explore-categories-carousel .carousel-item h3 {
        font-size: 1.1rem;
    }

    .explore-categories-carousel .carousel-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .horizontal-carousel {
        gap: 1rem;
        animation: scroll-horizontal 15s linear infinite;
    }

    .explore-categories-carousel .carousel-item {
        min-width: 160px;
        max-width: 160px;
        padding: 1.25rem 0.875rem;
    }

    .explore-categories-carousel .icon-circle {
        width: 70px;
        height: 70px;
    }

    .explore-categories-carousel .card-icon {
        font-size: 2rem;
    }

    .explore-categories-carousel .carousel-item h3 {
        font-size: 1rem;
    }

    .explore-categories-carousel .carousel-item p {
        font-size: 0.8rem;
    }
}

/* ===================================
   Responsive Utilities
   =================================== */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    .section-container {
        width: 95%;
    }

    .carousel-wrapper {
        min-height: 300px;
    }

    .slide-content {
        padding: 2rem 1.5rem;
    }

    .category-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-carousel,
    .news-feed,
    .filters-section,
    .footer {
        display: none;
    }

    .rankings-table {
        page-break-inside: avoid;
    }
}

/* ===============================

/* ===============================
   Rankings Page Header - Override
================================ */

.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 2rem 0;
    color: white;
}

.page-header .current-ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0;
    background: none;
    border-radius: 0;
    color: white;
    box-shadow: none;
}

.page-header h1 {
    color: white;
    margin: 0;
    font-size: 2rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

.ranking-count {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* ===============================
   CSV Upload Section Styles - Updated
================================ */

.upload-section-container {
    background: #f0f9ff;
    padding: 0;
    margin-bottom: 0;
}

.upload-section-container .section-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem;
    border-radius: 0;
    border: none;
}

.upload-section-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-section-container h2::before {
    content: '📤';
    font-size: 1.5rem;
}

/* Upload Mode Selector */
.upload-mode-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.mode-option {
    cursor: pointer;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.mode-card svg {
    margin: 0 auto 1rem;
    display: block;
}

.mode-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mode-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.mode-option input[type="radio"]:checked + .mode-card {
    border-color: var(--secondary-color);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mode-option:hover .mode-card {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Ranking Name Input */
.ranking-name-input {
    margin-bottom: 1.5rem;
}

.ranking-name-input label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.ranking-name-input input {
    width: 100%;
    max-width: 600px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.ranking-name-input input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Upload Container */
.upload-container {
    margin-bottom: 1rem;
    max-width: 100%;
}

.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--white);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.upload-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.upload-box > * {
    position: relative;
    z-index: 1;
}

.upload-box:hover,
.upload-box.drag-over {
    border-color: var(--secondary-color);
    background-color: #eff6ff;
}

.upload-icon {
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.upload-box p {
    margin: 1rem 0;
    color: var(--text-light);
    font-size: 1rem;
}

.btn-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Rank Badge */
.rank-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.score-cell {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* View Toggle Buttons */
.view-toggle {
    margin-bottom: 1.5rem;
}

.toggle-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.toggle-btn:hover:not(.active) {
    border-color: var(--secondary-color);
    background: #eff6ff;
}

/* Filters Section - Rankings Page */
.filters-section {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filters-container {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group input[type="text"]::placeholder {
    color: var(--text-light);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.filter-actions button {
    white-space: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header .current-ranking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .upload-box {
        padding: 2rem 1rem;
    }
    
    .upload-mode-selector {
        grid-template-columns: 1fr;
    }
    
    .filters-container {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .filter-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .filter-actions button {
        width: 100%;
    }
}

/* ===============================
   Rankings Content - New Structure
================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rankings-content {
    padding: 40px 20px;
    min-height: calc(100vh - 400px);
}

/* Current Ranking Header - Inside content */
.rankings-content .current-ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 8px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.rankings-content .current-ranking-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: white;
}

.rankings-content .ranking-count {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
}

/* Upload Section - Inside content */
.upload-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #bae6fd;
}

.upload-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-section h2::before {
    content: '📤';
    font-size: 1.5rem;
}

/* No Data Message */
.no-data {
    text-align: center;
    padding: 3rem;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-light);
}

.no-data p {
    font-size: 1.1rem;
    margin: 0;
}


/* ===============================
   Contact Page Styles - Updated
================================ */

/* Contact Content Section */
.contact-content-section {
    padding: 40px 20px;
    min-height: calc(100vh - 400px);
}

/* Contact Page Header - Matching Rankings Header */
.contact-page-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 8px;
    color: white;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-page-header h2 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: white;
}

.contact-page-header p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Form */
.contact-form-wrapper h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group .required {
    color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
}

.form-message-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #10b981;
}

.form-message-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #ef4444;
}

/* Contact Info Wrapper */
.contact-info-wrapper h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info-cards {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.info-icon {
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* FAQ Section */
.contact-faq-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.contact-faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contact-content-section {
        padding: 3rem 0;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-faq-section {
        padding: 3rem 0;
    }

    .faq-item {
        padding: 1.5rem;
    }
}

/* ===============================
   Logo Styling
================================ */

.brand-logo {
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
    height: 70px;
    width: 320px;
}

.logo-image {
    height: 280px;
    width: auto;
    display: block;
    object-fit: cover;
    object-position: left center;
    /* Crop the whitespace by positioning */
    margin-top: -105px;
    margin-left: -30px;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .brand-logo {
        height: 60px;
        width: 280px;
    }

    .logo-image {
        height: 240px;
        margin-top: -90px;
        margin-left: -25px;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        height: 50px;
        width: 240px;
    }

    .logo-image {
        height: 200px;
        margin-top: -75px;
        margin-left: -20px;
    }
}

/* ===============================
   About Page Styles
================================ */

/* About Page Header */
.about-page-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 8px;
    color: white;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.about-page-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-page-header p {
    color: white;
    opacity: 0.95;
    margin: 0;
    font-size: 1.1rem;
}

/* Our Company Section */
.about-company-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.company-text {
    padding-right: 2rem;
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #1e3a8a;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.company-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.company-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.mission-vision-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mission-card,
.vision-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.mission-card h3,
.vision-card h3 {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.mission-card p,
.vision-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mission-points,
.vision-points {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.mission-points li,
.vision-points li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: #444;
}

.mission-points li::before,
.vision-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Core Values Section */
.values-section {
    padding: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
}

.value-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.value-card h4 {
    font-size: 1.3rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Core Team Section */
.team-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
}

.team-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #eff6ff;
}

.team-image .image-placeholder {
    width: 100%;
    height: 100%;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.team-role {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.team-bio {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    color: #3b82f6;
    transition: color 0.3s ease;
}

.team-social a:hover {
    color: #1e40af;
}

/* Affiliations Section */
.affiliations-section {
    padding: 4rem 0;
    background: white;
}

.affiliations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.affiliation-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.affiliation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.12);
}

.affiliation-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.affiliation-card h4 {
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.affiliation-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Styles for About Page */
@media (max-width: 1024px) {
    .company-content {
        grid-template-columns: 1fr;
    }

    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .affiliations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-page-header h2 {
        font-size: 1.6rem;
    }

    .about-page-header p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .company-stats {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .lead-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .about-page-header {
        padding: 1.2rem;
    }

    .about-page-header h2 {
        font-size: 1.4rem;
    }

    .about-page-header p {
        font-size: 0.95rem;
    }

    .about-company-section,
    .mission-vision-section,
    .values-section,
    .team-section,
    .affiliations-section {
        padding: 2.5rem 0;
    }

    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }
}

/* ===============================
   Floating WhatsApp Button
================================ */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Optional tooltip */
.whatsapp-float::before {
    content: "Chat with us";
    position: absolute;
    right: 70px;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover::before {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }

    .whatsapp-float::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
