/* ================================================
   Civil Appellate High Courts – Main Stylesheet
   ================================================ */

:root {
    /* High Court Theme: Core Colors */
    --primary-color: #0F1918;
    --secondary-color: #002e2a;
    --gold-accent: #c5a059;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f9f9f9;

    /* High Court Theme: Social Media Accents */
    --social-fb: #3b5998;
    --social-tw: #1da1f2;
    --social-ln: #0077b5;
    --social-in: #e1306c;

    /* Extended Palette */
    --primary-deep: #0a1110;
    --primary-light: #163632;
    --gold-light: #d4b777;
    --gold-dark: #a68a42;
    --bg-cream: #faf8f5;
    --bg-dark: #050808;
    --border-light: rgba(197, 160, 89, 0.2);
    --shadow-soft: 0 4px 24px rgba(0, 46, 42, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 46, 42, 0.12);
    --shadow-heavy: 0 16px 48px rgba(0, 46, 42, 0.16);
    --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.25);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================
   Reset & Base
   ================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: url('../images/h2.webp') center center / cover no-repeat fixed;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, rgba(15, 25, 24, 0.6) 0%, rgba(0, 46, 42, 0.1) 50%, rgba(15, 25, 24, 0.6) 100%);
    z-index: -1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.grid-container {
    max-width: 98%;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================
   Header
   ================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-top-bar {
    background: var(--primary-deep);
    padding: 6px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-text {
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.top-bar-text i {
    color: var(--gold-accent);
    margin-right: 6px;
}

.top-bar-links {
    display: flex;
    gap: 20px;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast);
}

.top-bar-links a:hover {
    color: var(--gold-accent);
}

.main-nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 46, 42, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.emblem-wrapper {
    position: relative;
}

.emblem-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold-accent), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.emblem-icon i {
    font-size: 1.2rem;
    color: var(--primary-deep);
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.site-subtitle {
    font-size: 0.7rem;
    color: var(--gold-accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.12);
}

.nav-links a.active {
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold-light);
}

/* Scrolled header */
.site-header.scrolled .main-nav {
    background: rgba(0, 46, 42, 0.97);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .header-top-bar {
    margin-top: -40px;
    opacity: 0;
    pointer-events: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    position: relative;
    padding-top: 60px;
    background: none;
    overflow: hidden;
}

.hero-overlay {
    display: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.6; }
    50% { opacity: 0.3; transform: translateY(-120px) scale(1); }
    80% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: left;
    padding: 20px 0;
    font-family: 'Montserrat', sans-serif;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.25);
    padding: 6px 18px;
    border-radius: 50px;
    color: var(--gold-accent);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-accent), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    text-align: justify;
    margin: 0 0 20px;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-accent);
    line-height: 1;
    margin-bottom: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(197, 160, 89, 0.25);
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gold-accent), var(--gold-dark));
    color: var(--primary-deep);
    padding: 16px 40px;
    border-radius: 60px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-gold);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(197, 160, 89, 0.4);
}

.hero-cta i {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(197, 160, 89, 0.4);
    border-radius: 14px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--gold-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ================================================
   Section Shared Styles
   ================================================ */
.section-header {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 20px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-accent);
    margin-bottom: 16px;
}

.section-tag i {
    font-size: 0.7rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-description {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================================================
   Courts Section
   ================================================ */
.courts-section {
    background: none;
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

.search-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 30px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 750px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.search-box input {
    width: 100%;
    padding: 10px 36px 10px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    transition: all var(--transition-fast);
    background: rgba(0, 0, 0, 0.2);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    padding: 4px 8px;
    transition: color var(--transition-fast);
}

.search-clear.visible {
    display: block;
}

.search-clear:hover {
    color: var(--secondary-color);
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

.filter-btn.active {
    background: var(--gold-accent);
    color: var(--primary-deep);
    border-color: var(--gold-accent);
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.active-dot {
    background: #22c55e;
}

.coming-dot {
    background: var(--gold-accent);
}

.filter-btn.active .filter-dot {
    background: white;
}

/* Courts Grid */
.courts-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
    position: relative;
}

/* Court Card */
.court-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    height: 45px;
    background: rgba(15, 25, 24, 0.65);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.court-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold-accent));
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.court-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--gold-accent);
    background: rgba(15, 25, 24, 0.9);
}

.court-card:hover::before {
    opacity: 1;
}

/* Featured (Active) Card */
.court-card.featured {
    border: 1px solid var(--gold-accent);
    background: rgba(15, 25, 24, 0.85);
}

.court-card.featured::before {
    opacity: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-accent), var(--secondary-color), var(--gold-accent));
}

.court-card.featured:hover {
    box-shadow: 0 16px 48px rgba(197, 160, 89, 0.25);
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.court-card:hover .card-shine {
    transform: translateX(100%);
}

/* Card Active Badge */
.card-active-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

/* Card Status Badge (Coming Soon) */
.card-status-badge {
    display: none;
}

.card-status-badge i {
    font-size: 0.6rem;
}

/* Card Title */
.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Card Province */
.card-province {
    font-size: 0.78rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.card-province i {
    font-size: 0.65rem;
    color: var(--gold-accent);
}

/* Card Note */
.card-note {
    font-size: 0.72rem;
    color: var(--gold-dark);
    font-style: italic;
    margin-bottom: 4px;
    background: rgba(197, 160, 89, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Card Action */
.card-action {
    margin-top: auto;
    padding-top: 16px;
}

.action-text {
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.court-card.active .action-text,
.court-card.featured .action-text {
    color: var(--primary-color);
}

.court-card.coming-soon .action-text {
    color: #999;
}

.court-card:hover .action-text {
    color: var(--gold-dark);
}

.court-card:hover .action-text i {
    transform: translateX(4px);
}

.action-text i {
    font-size: 0.72rem;
    transition: transform var(--transition-fast);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #ddd;
}

.no-results h3 {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 8px;
}

/* Card hidden by filter */
.court-card.hidden {
    display: none;
}

/* ================================================
   About Section
   ================================================ */
.about-section {
    padding: 100px 0;
    background: white;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-content .section-tag {
    display: inline-flex;
    margin-bottom: 12px;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 46, 42, 0.08), rgba(15, 25, 24, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.82rem;
    color: #888;
}

/* Visual Card */
.about-visual {
    position: sticky;
    top: 120px;
}

.visual-card {
    background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-heavy);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hierarchy-item {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
}

.hierarchy-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
}

.hierarchy-item small {
    display: block;
    color: var(--gold-accent);
    font-size: 0.72rem;
    margin-top: 4px;
    font-weight: 500;
}

.hierarchy-item.highlighted {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.08));
    border-color: var(--gold-accent);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
}

.hierarchy-item.highlighted span {
    color: var(--gold-light);
    font-weight: 600;
}

.hierarchy-connector {
    width: 2px;
    height: 20px;
    background: rgba(197, 160, 89, 0.3);
    position: relative;
}

.hierarchy-connector::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(197, 160, 89, 0.3);
}

/* ================================================
   Contact Section
   ================================================ */
.contact-section {
    padding: 100px 0;
    background: var(--bg-cream);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.contact-card {
    background: white;
    padding: 36px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--gold-accent);
    font-size: 1.2rem;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
}

/* ================================================
   Bottom Bar
   ================================================ */
.bottom-bar {
    background: var(--primary-deep);
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
}

.bottom-bar p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.3px;
}

/* ================================================
   Back to Top
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--gold-accent);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    z-index: 900;
    box-shadow: var(--shadow-medium);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

/* ================================================
   Animations
   ================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-down"] {
    transform: translateY(-30px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-deep);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        padding: 0 16px;
    }

    .search-filter-bar {
        flex-direction: column;
        padding: 16px 20px;
    }

    .search-box {
        width: 100%;
    }

    .filter-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .courts-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .section-header {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .courts-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        padding: 14px 32px;
        font-size: 0.88rem;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}
