/* ===============================================
   MARTIAL ARTS DIRECTORY - MODERN CSS
   Beautiful Dashboard UI with Animations
   =============================================== */

/* CSS Custom Properties */
:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #a3bffa;

    /* Secondary Colors */
    --secondary-color: #1a1a2e;
    --secondary-light: #16213e;

    /* Accent Colors */
    --accent-red: #e53e3e;
    --accent-orange: #ed8936;
    --accent-yellow: #ecc94b;
    --accent-green: #48bb78;
    --accent-teal: #38b2ac;
    --accent-blue: #4299e1;
    --accent-purple: #9f7aea;
    --accent-pink: #ed64a6;

    /* Category Colors */
    --cat-traditional: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    --cat-combat: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
    --cat-grappling: linear-gradient(135deg, #9f7aea 0%, #6b46c1 100%);
    --cat-weapons: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
    --cat-defense: linear-gradient(135deg, #48bb78 0%, #276749 100%);
    --cat-cultural: linear-gradient(135deg, #ecc94b 0%, #b7791f 100%);

    /* Backgrounds */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #ffffff;
    --bg-card-dark: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --text-light: #ffffff;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.3);

    /* Spacing & Sizing */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===============================================
   TOP NAVIGATION BAR
   =============================================== */

.top-nav-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.top-nav-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.top-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    position: relative;
    z-index: 1;
}

.top-nav-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.top-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border: 3px solid rgba(0, 0, 0, 0.9);
    border-radius: var(--radius-md);
    color: #1a1a2e;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Colored icon backgrounds */
.top-nav-btn .nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 0.25rem;
}

.top-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.top-nav-btn:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(0, 0, 0, 1);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.top-nav-btn:hover::before {
    transform: translateX(100%);
}

.top-nav-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.top-nav-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.top-nav-btn:hover svg {
    transform: scale(1.1);
}

/* Nav button icon container */
.nav-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.nav-btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Nav button label and description */
.nav-btn-label {
    font-weight: 700;
    font-size: 0.8rem;
}

.nav-btn-desc {
    display: none;
}

/* Mobile: show descriptions, stack vertically */
@media (max-width: 768px) {
    .top-nav-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }

    .top-nav-btn {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.6rem 0.4rem;
        gap: 0.25rem;
        font-size: 0.7rem;
        white-space: normal;
    }

    .nav-btn-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        margin-bottom: 0.15rem;
    }

    .nav-btn-icon svg {
        width: 20px;
        height: 20px;
    }

    .nav-btn-label {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .nav-btn-desc {
        display: block;
        font-size: 0.6rem;
        font-weight: 400;
        opacity: 0.7;
        text-transform: none;
        letter-spacing: 0;
        line-height: 1.3;
    }

    .advertise-btn .nav-btn-desc {
        color: #1a202c !important;
        opacity: 0.8;
    }

    /* Make advertise button span full width on mobile */
    .top-nav-links .advertise-btn {
        grid-column: 1 / -1;
    }
}

/* Individual button styles - Reading */
.top-nav-btn[onclick*="Reading"] {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #be185d;
}

.top-nav-btn[onclick*="Reading"] svg {
    color: #ec4899;
}

.top-nav-btn[onclick*="Reading"]:hover {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

/* Individual button styles - Supplies */
.top-nav-btn[onclick*="Supplies"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
}

.top-nav-btn[onclick*="Supplies"] svg {
    color: #10b981;
}

.top-nav-btn[onclick*="Supplies"]:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

/* Individual button styles - Federations */
.top-nav-btn[onclick*="Federations"] {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #b45309;
}

.top-nav-btn[onclick*="Federations"] svg {
    color: #f59e0b;
}

.top-nav-btn[onclick*="Federations"]:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Shimmer animation */
@keyframes navBtnShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.top-nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: navBtnShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@media (max-width: 900px) {
    .top-nav-links {
        gap: 0.5rem;
    }

    .top-nav-btn {
        padding: 0.45rem 0.875rem;
        font-size: 0.75rem;
    }

    .top-nav-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 600px) {
    .top-nav-content {
        padding: 0.75rem 0.5rem;
    }

    .top-nav-btn::after {
        animation: none;
    }
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    position: relative;
    padding: 4rem 2rem 6rem;
    overflow: hidden;
    background: var(--primary-gradient);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-image {
    width: 280px;
    height: auto;
    max-width: 90vw;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-base);
}

.logo-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Hero Banner Image */
.hero-banner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-banner-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero {
        padding: 1rem 1rem 3rem;
    }
    .hero-banner-image {
        border-radius: 8px;
        max-width: 100%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    .hero-banner-container {
        margin: 0 0 0.75rem 0;
    }
    .hero-tagline {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0.75rem 0.75rem 2.5rem;
    }
    .hero-banner-image {
        border-radius: 6px;
    }
    .hero-tagline {
        font-size: 0.78rem !important;
    }
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.logo-text {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Search Box */
.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--radius-full);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
}

.search-box:focus-within {
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateY(-2px);
}

.search-icon {
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* Clear Search Button */
.clear-search-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.clear-search-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.clear-search-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.clear-search-btn:hover svg {
    color: var(--accent-red);
}

/* Sticky Clear Search Button */
.sticky-clear-search-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.sticky-clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.sticky-clear-search-btn svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.sticky-clear-search-btn:hover svg {
    color: white;
}

/* ===============================================
   STATISTICS DASHBOARD
   =============================================== */

.stats-dashboard {
    padding: 0 2rem;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

/* When hero spotlight ad is above stats, remove the negative margin overlap */
.hero-spotlight-section + .stats-dashboard {
    margin-top: 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.stat-icon.schools { background: var(--cat-combat); }
.stat-icon.countries { background: var(--cat-grappling); }
.stat-icon.styles { background: var(--cat-defense); }
.stat-icon.categories { background: var(--cat-cultural); }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ===============================================
   CATEGORY SHOWCASE
   =============================================== */

.category-showcase {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.category-card {
    position: relative;
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.9;
    transition: var(--transition-base);
}

.category-card.traditional-asian::before { background: var(--cat-traditional); }
.category-card.combat-sports::before { background: var(--cat-combat); }
.category-card.grappling::before { background: var(--cat-grappling); }
.category-card.weapons::before { background: var(--cat-weapons); }
.category-card.self-defense::before { background: var(--cat-defense); }
.category-card.cultural::before { background: var(--cat-cultural); }

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card.active {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.category-card.active::before {
    opacity: 1;
}

.category-card.active::after {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: bold;
    z-index: 2;
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.category-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.category-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

/* ===============================================
   MAIN CONTAINER
   =============================================== */

.main-container {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===============================================
   SIDEBAR FILTERS
   =============================================== */

.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.filter-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.filter-header h3 svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.clear-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-btn:hover {
    background: var(--accent-red);
    color: white;
}

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

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.checkbox-group label:hover {
    background: #f7fafc;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.filter-select:hover {
    border-color: var(--primary-light);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* ===============================================
   CONTENT AREA
   =============================================== */

.content {
    flex: 1;
    min-width: 0;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.results-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count {
    font-weight: 600;
    color: var(--text-primary);
}

.active-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.view-btn svg {
    width: 20px;
    height: 20px;
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* ===============================================
   SCHOOLS GRID
   =============================================== */

/* Suggestions Header (shown when no exact matches) */
.suggestions-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px dashed rgba(102, 126, 234, 0.3);
}

.suggestions-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.suggestions-header p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-clear-filters {
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-clear-filters:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.schools-grid.list-view {
    grid-template-columns: 1fr;
}

/* School Card */
.school-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.school-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.school-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.school-card.category-traditional-asian::before { background: var(--cat-traditional); }
.school-card.category-combat-sports::before { background: var(--cat-combat); }
.school-card.category-grappling::before { background: var(--cat-grappling); }
.school-card.category-weapons::before { background: var(--cat-weapons); }
.school-card.category-self-defense::before { background: var(--cat-defense); }
.school-card.category-cultural::before { background: var(--cat-cultural); }

.school-card .category-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.category-traditional-asian .category-badge { background: var(--accent-red); }
.category-combat-sports .category-badge { background: var(--accent-blue); }
.category-grappling .category-badge { background: var(--accent-purple); }
.category-weapons .category-badge { background: var(--accent-orange); }
.category-self-defense .category-badge { background: var(--accent-green); }
.category-cultural .category-badge { background: var(--accent-yellow); color: var(--text-primary); }

.school-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.school-card .location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.school-card .location::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
}

.school-card .styles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.school-card .style-tag {
    padding: 0.375rem 0.75rem;
    background: #f0f4f8;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.school-card:hover .style-tag {
    background: #e2e8f0;
}

.school-card .description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-card .actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.school-card .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.school-card .action-btn.primary {
    background: var(--primary-gradient);
    color: white;
}

.school-card .action-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.school-card .action-btn.secondary {
    background: #f0f4f8;
    color: var(--text-primary);
}

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

/* List View */
.schools-grid.list-view .school-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1.5rem;
}

.schools-grid.list-view .school-card .actions {
    flex-direction: column;
    align-self: center;
}

/* ===============================================
   LOADING STATE
   =============================================== */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

.loader-ring:nth-child(2) {
    inset: 8px;
    border-top-color: var(--accent-purple);
    animation-delay: 0.15s;
}

.loader-ring:nth-child(3) {
    inset: 16px;
    border-top-color: var(--accent-blue);
    animation-delay: 0.3s;
}

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

.loading p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===============================================
   SEARCH PROMPT (Before Search)
   =============================================== */

.search-prompt {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.search-prompt-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.search-prompt-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.search-prompt h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.search-prompt p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.search-prompt .search-hint {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 1rem;
    font-weight: 500;
}

/* ===============================================
   NO RESULTS
   =============================================== */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===============================================
   PAGINATION
   =============================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination button {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination button:hover:not(:disabled) {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.pagination button.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

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

.pagination span {
    color: var(--text-muted);
    padding: 0 0.5rem;
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    background: var(--bg-secondary);
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-stats {
    display: flex;
    gap: 3rem;
}

.footer-stat {
    text-align: center;
}

.footer-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
}

.footer-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .sidebar {
        width: 100%;
        position: static;
    }

    .filter-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .filter-header {
        grid-column: 1 / -1;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 5rem;
    }

    .logo-image {
        width: 200px;
    }

    .logo-text {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .search-box {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
        padding: 0.75rem;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

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

    .stat-card {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

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

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

    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-stats {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .school-card .actions {
        flex-direction: column;
    }

    .school-card .action-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Animation delays for staggered card appearance */
.school-card:nth-child(1) { animation-delay: 0.05s; }
.school-card:nth-child(2) { animation-delay: 0.1s; }
.school-card:nth-child(3) { animation-delay: 0.15s; }
.school-card:nth-child(4) { animation-delay: 0.2s; }
.school-card:nth-child(5) { animation-delay: 0.25s; }
.school-card:nth-child(6) { animation-delay: 0.3s; }
.school-card:nth-child(7) { animation-delay: 0.35s; }
.school-card:nth-child(8) { animation-delay: 0.4s; }
.school-card:nth-child(9) { animation-delay: 0.45s; }
.school-card:nth-child(10) { animation-delay: 0.5s; }
.school-card:nth-child(11) { animation-delay: 0.55s; }
.school-card:nth-child(12) { animation-delay: 0.6s; }

/* ===============================================
   FAVORITES & TABS
   =============================================== */

.view-tabs {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    background: #f7fafc;
    border-color: var(--primary-light);
    color: var(--primary-color);
}

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

.tab-btn.active svg {
    stroke: white;
}

/* Favorite Heart Button */
.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.favorite-btn:hover svg {
    color: var(--accent-red);
}

.favorite-btn.active {
    background: white;
}

.favorite-btn.active svg {
    color: var(--accent-red);
    fill: var(--accent-red);
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* Heart animation on click */
@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.favorite-btn.active svg {
    animation: heartPulse 0.3s ease;
}

/* Adjust category badge position to not overlap heart */
.school-card .category-badge {
    margin-right: 50px;
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .view-tabs {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .results-info {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .tab-btn span:not(#favoritesCount) {
        display: none;
    }

    .tab-btn {
        padding: 0.625rem 1rem;
    }
}

/* ===============================================
   SCHOOL DETAIL MODAL
   =============================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modal Header */
.modal-header {
    padding: 2rem 2rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    position: relative;
}

.modal-category-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(10px);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    padding-right: 3rem;
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.modal-location svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.modal-favorite-btn {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.modal-favorite-btn svg {
    width: 18px;
    height: 18px;
}

.modal-favorite-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-favorite-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.modal-favorite-btn.active svg {
    fill: white;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem 2rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f4f8;
}

.modal-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Photo Gallery */
.modal-gallery {
    margin-bottom: 2rem;
}

.gallery-main {
    width: 100%;
    height: 300px;
    background: #f0f4f8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.gallery-main img.active {
    display: block;
}

.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.gallery-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.gallery-placeholder span {
    font-size: 0.9rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-color);
}

/* Two Column Layout */
.modal-columns {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.modal-column-main {
    min-width: 0;
}

.modal-column-side {
    min-width: 0;
}

/* Description */
.modal-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Styles */
.modal-styles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-style-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Schedule */
.modal-schedule {
    display: grid;
    gap: 0.5rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    border-radius: var(--radius-sm);
}

.schedule-row:nth-child(even) {
    background: #f0f4f8;
}

.schedule-day {
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-time {
    color: var(--text-secondary);
}

.schedule-closed {
    color: var(--accent-red);
    font-style: italic;
}

.schedule-placeholder {
    color: var(--text-muted);
    font-style: italic;
    padding: 1rem;
    background: #f7fafc;
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Features */
.modal-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f7fafc;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.feature-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-green);
    flex-shrink: 0;
}

/* Contact Info */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f7fafc;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: #e2e8f0;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item span {
    font-size: 0.95rem;
    word-break: break-all;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f7fafc;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-link.youtube:hover {
    background: #ff0000;
    color: white;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
}

.social-link.tiktok:hover {
    background: #000000;
    color: white;
}

/* Map */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f0f4f8;
    position: relative;
}

.map-container iframe {
    display: block;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: #f0f4f8;
}

.map-placeholder svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.modal-address {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: #f7fafc;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    flex: 1;
    min-width: 140px;
}

.modal-action-btn svg {
    width: 18px;
    height: 18px;
}

.modal-action-btn.primary {
    background: var(--primary-gradient);
    color: white;
}

.modal-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modal-action-btn.secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.modal-action-btn.tertiary {
    background: transparent;
    color: var(--text-secondary);
}

.modal-action-btn.tertiary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-action-btn:disabled,
.modal-action-btn.hidden {
    display: none;
}

/* School Card Clickable */
.school-card {
    cursor: pointer;
}

.school-card .card-clickable {
    cursor: pointer;
}

.school-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Modal Responsive */
@media (max-width: 900px) {
    .modal-columns {
        grid-template-columns: 1fr;
    }

    .modal-column-side {
        order: -1;
    }
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        max-height: 95vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .modal-header {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-favorite-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .gallery-main {
        height: 200px;
    }

    .modal-features {
        grid-template-columns: 1fr;
    }

    .modal-footer {
        padding: 1.25rem;
        flex-direction: column;
    }

    .modal-action-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 38px;
        height: 38px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .gallery-main {
        height: 180px;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

/* ===============================================
   STICKY HEADER
   =============================================== */

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.sticky-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

/* Sticky Logo */
.sticky-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.sticky-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.sticky-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Sticky Search */
.sticky-search {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: #f0f4f8;
    border-radius: var(--radius-full);
    padding: 0.25rem;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.sticky-search:focus-within {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.sticky-search-icon {
    width: 20px;
    height: 20px;
    margin-left: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.sticky-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.625rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    min-width: 0;
}

.sticky-search-input::placeholder {
    color: var(--text-muted);
}

.sticky-search-input:focus {
    outline: none;
}

.sticky-search-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.sticky-search-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

.sticky-search-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Quick Filter Chips */
.sticky-quick-filters {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sticky-filter-chip {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.sticky-filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.sticky-filter-chip.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* Sticky Actions */
.sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sticky-advertise-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #1a202c;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    animation: advertiseGlow 3s ease-in-out infinite;
}

.sticky-advertise-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.sticky-advertise-btn svg {
    stroke: #1a202c;
}

@media (max-width: 768px) {
    .sticky-advertise-btn span {
        display: none;
    }
    .sticky-advertise-btn {
        padding: 0.4rem;
    }
}

.sticky-favorites-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f0f4f8;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sticky-favorites-btn svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.sticky-favorites-btn:hover {
    background: #e2e8f0;
}

.sticky-favorites-btn:hover svg {
    color: var(--accent-red);
}

.sticky-favorites-btn.has-favorites svg {
    color: var(--accent-red);
    fill: var(--accent-red);
}

.sticky-favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-fast);
}

.sticky-favorites-btn.has-favorites .sticky-favorites-count {
    opacity: 1;
    transform: scale(1);
}

.sticky-scroll-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sticky-scroll-top svg {
    width: 22px;
    height: 22px;
    color: white;
}

.sticky-scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sticky Header Responsive */
@media (max-width: 1200px) {
    .sticky-quick-filters {
        display: none;
    }
}

@media (max-width: 900px) {
    .sticky-logo-text {
        display: none;
    }

    .sticky-header-content {
        gap: 1rem;
        padding: 0.625rem 1rem;
    }
}

@media (max-width: 600px) {
    .sticky-header-content {
        padding: 0.5rem 0.75rem;
    }

    .sticky-search {
        max-width: none;
    }

    .sticky-search-icon {
        display: none;
    }

    .sticky-search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .sticky-search-btn {
        width: 32px;
        height: 32px;
    }

    .sticky-favorites-btn,
    .sticky-scroll-top {
        width: 38px;
        height: 38px;
    }

    .sticky-favorites-btn svg,
    .sticky-scroll-top svg {
        width: 20px;
        height: 20px;
    }

    .sticky-logo-img {
        width: 36px;
        height: 36px;
    }
}

/* Active Filter Indicator */
.sticky-header.has-active-filters::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

/* ===============================================
   RESOURCE MODALS (Claim, Reading, Supplies, Federations)
   =============================================== */

.resource-modal {
    max-width: 800px;
}

.resource-modal .modal-header {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
}

.modal-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    backdrop-filter: blur(10px);
}

.modal-header-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.resource-modal .modal-title {
    padding-right: 0;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Modal Header Colors */
.claim-header {
    background: linear-gradient(135deg, #48bb78 0%, #276749 100%);
}

.reading-header {
    background: linear-gradient(135deg, #4299e1 0%, #2b6cb0 100%);
}

.supplies-header {
    background: linear-gradient(135deg, #ed8936 0%, #c05621 100%);
}

.federations-header {
    background: linear-gradient(135deg, #9f7aea 0%, #6b46c1 100%);
}

/* Claim Listing Form */
.claim-form {
    max-width: 500px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: white;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--cat-defense);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-base);
    margin-top: 0.5rem;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-submit-btn svg {
    width: 18px;
    height: 18px;
}

/* Resource Grid */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.resource-category h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.resource-list {
    list-style: none;
}

.resource-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f4f8;
}

.resource-list li:last-child {
    border-bottom: none;
}

.book-title {
    color: var(--text-primary);
    font-weight: 500;
}

.book-link {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.75rem;
    margin: -0.5rem -0.75rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.book-link:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--text-primary);
}

.book-link:hover .book-title {
    color: var(--primary-color);
}

.book-link::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    opacity: 0;
    transition: var(--transition-fast);
}

.book-link:hover::after {
    opacity: 1;
}

.resource-list li {
    border-bottom: none;
}

/* Gear Search Bar */
.gear-search-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.gear-search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    align-items: center;
}

.gear-search-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.gear-search-box input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-fast);
    background: white;
}

.gear-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.gear-search-box input::placeholder {
    color: var(--text-muted);
}

.gear-search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    padding: 0.375rem;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear-search-clear:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.gear-search-clear svg {
    width: 16px;
    height: 16px;
}

.gear-amazon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.gear-amazon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.gear-amazon-btn svg {
    width: 18px;
    height: 18px;
}

.gear-no-results {
    text-align: center;
    padding: 2rem;
    background: #f7fafc;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.gear-no-results p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.gear-no-results a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.gear-no-results a:hover {
    text-decoration: underline;
}

.supplier-card.hidden {
    display: none;
}

.supplier-card.highlight {
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

@media (max-width: 600px) {
    .gear-search-container {
        flex-direction: column;
    }

    .gear-search-box {
        width: 100%;
    }

    .gear-amazon-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Suppliers Grid */
.suppliers-grid {
    grid-template-columns: repeat(2, 1fr);
}

.supplier-card {
    background: #f7fafc;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.supplier-card:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
}

.supplier-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.supplier-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.supplier-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.supplier-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.supplier-link:hover {
    color: var(--primary-dark);
}

.supplier-link::after {
    content: '→';
}

/* Federations Grid */
.federations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.federation-category h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-purple);
}

.federation-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.federation-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background: #f7fafc;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-fast);
}

.federation-item:hover {
    background: #e2e8f0;
    transform: translateX(4px);
}

.fed-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.fed-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Larger Federations Modal */
.federations-modal-lg {
    max-width: 1100px;
}

.federations-modal-lg .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.federations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.loading-orgs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.error-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--accent-red);
}

.org-country {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-top: 0.25rem;
}

/* Resource Modal Responsive */
@media (max-width: 1024px) {
    .federations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resource-grid,
    .suppliers-grid,
    .federations-grid {
        grid-template-columns: 1fr;
    }

    .resource-modal .modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .modal-header-icon {
        width: 60px;
        height: 60px;
    }

    .modal-header-icon svg {
        width: 28px;
        height: 28px;
    }

    .federations-modal-lg .modal-body {
        max-height: 70vh;
    }
}

/* ===============================================
   FEATURED BOOKS SHOWCASE SECTION
   =============================================== */

.featured-books-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #1a1a2e 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.featured-books-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.featured-books-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.featured-books-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: float 3s ease-in-out infinite;
}

.featured-books-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.featured-books-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a3bffa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-books-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.featured-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.featured-book-card {
    position: relative;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-book-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.book-card-glow {
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(20px);
    z-index: 0;
}

.featured-book-card:hover .book-card-glow {
    opacity: 0.4;
}

.book-card-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
}

.featured-book-card:hover .book-card-inner {
    border-color: rgba(102, 126, 234, 0.4);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.book-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.book-cover {
    width: 130px;
    height: 190px;
    position: relative;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    border-radius: 4px 8px 8px 4px;
    overflow: hidden;
    box-shadow:
        4px 4px 20px rgba(0, 0, 0, 0.4),
        -2px 0 10px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(102, 126, 234, 0.15);
    transition: all 0.4s ease;
}

.book-cover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    z-index: 2;
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-book-card:hover .book-cover {
    transform: scale(1.05) rotateY(-5deg);
    box-shadow:
        8px 6px 30px rgba(0, 0, 0, 0.5),
        -2px 0 15px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(102, 126, 234, 0.25);
}

.featured-book-card:hover .book-cover-img {
    transform: scale(1.02);
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.featured-book-card:nth-child(1) .book-badge {
    background: rgba(237, 137, 54, 0.2);
    color: var(--accent-orange);
}

.featured-book-card:nth-child(2) .book-badge {
    background: rgba(159, 122, 234, 0.2);
    color: var(--accent-purple);
}

.featured-book-card:nth-child(3) .book-badge {
    background: rgba(72, 187, 120, 0.2);
    color: var(--accent-green);
}

.book-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.book-author {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.book-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.book-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.book-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.featured-book-card:hover .book-cta {
    color: white;
}

.featured-book-card:hover .book-cta svg {
    transform: translate(3px, -3px);
}

.featured-books-footer {
    text-align: center;
}

.view-all-books-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-books-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.view-all-books-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive for Featured Books */
@media (max-width: 1100px) {
    .featured-books-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    .book-card-inner {
        padding: 1.25rem;
    }

    .book-cover {
        width: 100px;
        height: 145px;
    }

    .book-info h3 {
        font-size: 1.15rem;
    }

    .book-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .featured-books-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .featured-books-section {
        padding: 3rem 1.5rem;
    }

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

    .book-card-inner {
        flex-direction: row;
        text-align: left;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .book-cover {
        width: 90px;
        height: 130px;
        margin-bottom: 0;
    }

    .book-rank {
        top: 0.75rem;
        left: 0.75rem;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .book-info {
        align-items: flex-start;
    }

    .book-info h3 {
        font-size: 1.1rem;
    }

    .book-desc {
        display: block;
        font-size: 0.8rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        display: -webkit-box;
    }
}

@media (max-width: 480px) {
    .featured-books-header h2 {
        font-size: 1.75rem;
    }

    .featured-books-icon {
        width: 60px;
        height: 60px;
    }

    .featured-books-icon svg {
        width: 28px;
        height: 28px;
    }

    .view-all-books-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .book-cover {
        width: 75px;
        height: 110px;
    }

    .book-info h3 {
        font-size: 1rem;
    }

    .book-desc {
        display: none;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===============================================
   MODAL FEATURED BOOKS SECTION - BEAUTIFUL CARDS
   =============================================== */

.modal-featured-books-showcase {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.modal-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.modal-book-card {
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.modal-book-card:hover {
    transform: translateY(-4px);
}

.modal-book-card-inner {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.modal-book-card:hover .modal-book-card-inner {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.modal-card-rank {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    z-index: 2;
}

.modal-card-cover {
    width: 80px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.modal-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.modal-card-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
    margin-bottom: 0.4rem;
    width: fit-content;
}

.modal-card-badge.top-pick {
    background: rgba(237, 137, 54, 0.15);
    color: var(--accent-orange);
}

.modal-card-badge.spiritual {
    background: rgba(159, 122, 234, 0.15);
    color: var(--accent-purple);
}

.modal-card-badge.science {
    background: rgba(72, 187, 120, 0.15);
    color: var(--accent-green);
}

.modal-card-badge.magazine {
    background: rgba(237, 100, 100, 0.15);
    color: #e53e3e;
}

.modal-card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.modal-card-author {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.modal-card-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    flex: 1;
}

.modal-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-card-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.modal-book-card:hover .modal-card-cta {
    color: var(--primary-dark);
}

.modal-book-card:hover .modal-card-cta svg {
    transform: translate(2px, -2px);
}

@media (max-width: 600px) {
    .modal-books-grid {
        grid-template-columns: 1fr;
    }

    .modal-card-cover {
        width: 70px;
        height: 100px;
    }

    .modal-card-desc {
        display: none;
    }
}

/* Old modal featured books styles - kept for compatibility */
.modal-featured-books {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.featured-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.modal-featured-book {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.modal-featured-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.modal-book-rank {
    width: 28px;
    height: 28px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.modal-book-cover {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-book-content {
    flex: 1;
    min-width: 0;
}

.modal-book-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(237, 137, 54, 0.15);
    color: var(--accent-orange);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 4px;
    margin-bottom: 0.25rem;
}

.modal-book-badge.classic {
    background: rgba(159, 122, 234, 0.15);
    color: var(--accent-purple);
}

.modal-book-badge.essential {
    background: rgba(72, 187, 120, 0.15);
    color: var(--accent-green);
}

.modal-book-content h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.modal-book-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.modal-featured-book svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.modal-featured-book:hover svg {
    color: var(--primary-color);
    transform: translate(2px, -2px);
}

@media (max-width: 768px) {
    .modal-featured-grid {
        grid-template-columns: 1fr;
    }

    .modal-featured-books {
        padding: 1rem;
    }
}

/* ========================================
   ZIP CODE FILTER
   ======================================== */

.zip-filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input {
    width: 100%;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: var(--radius-md, 8px);
    background: var(--bg-card, rgba(255,255,255,0.05));
    color: var(--text-primary, #fff);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: var(--primary-color, #667eea);
}

.filter-input::placeholder {
    color: var(--text-secondary, #718096);
}

.clear-zip-btn {
    position: absolute;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.clear-zip-btn:hover {
    background: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

.zip-match-info {
    font-size: 0.7rem;
    color: var(--primary-color, #667eea);
    margin-top: 0.35rem;
    padding: 0 0.25rem;
}

/* ========================================
   VERIFIED SCHOOL BADGE
   ======================================== */

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    white-space: nowrap;
}

.verified-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.modal-verified-badge {
    font-size: 0.75rem;
    padding: 5px 14px;
    margin-bottom: 0.5rem;
}

.modal-verified-badge svg {
    width: 16px;
    height: 16px;
}

/* Claim Listing Benefits Section */
.claim-benefits {
    margin-bottom: 1.5rem;
}

.claim-benefit-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg, 12px);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.claim-benefit-star {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: verifiedPulse 2s ease-in-out infinite;
}

.claim-benefit-star svg {
    width: 28px;
    height: 28px;
}

@keyframes verifiedPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.5); }
}

.claim-benefit-highlight h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #22c55e;
}

.claim-benefit-highlight p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.claim-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.claim-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.claim-benefit-item svg {
    color: #22c55e;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .claim-benefits-grid {
        grid-template-columns: 1fr;
    }

    .claim-benefit-highlight {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   ADVERTISE BUTTON & FOOTER CTA
   ======================================== */

.advertise-btn {
    background: linear-gradient(135deg, #f6d365, #fda085) !important;
    color: #1a202c !important;
    border-color: transparent !important;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: advertiseGlow 3s ease-in-out infinite;
}

.advertise-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.advertise-btn svg {
    stroke: #1a202c !important;
}

@keyframes advertiseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(246, 211, 101, 0.3); }
    50% { box-shadow: 0 0 16px rgba(246, 211, 101, 0.5); }
}

.footer-advertise {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5rem;
}

.footer-advertise p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-advertise-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #1a202c;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    animation: advertiseGlow 3s ease-in-out infinite;
}

.footer-advertise-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ========================================
   PROMOTED / SPONSORED AD STYLES
   ======================================== */

/* Promoted card in grid */
.promoted-card {
    position: relative;
    border: 2px solid rgba(102, 126, 234, 0.4) !important;
    animation: glowPulse 2.5s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.promoted-card:hover {
    border-color: rgba(102, 126, 234, 0.6) !important;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.3), 0 0 30px rgba(118, 75, 162, 0.15);
    }
    50% {
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.5), 0 0 50px rgba(118, 75, 162, 0.25);
    }
}

.promoted-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #1a202c;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.promoted-sponsored-label {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promoted-card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

/* Hero Spotlight */
.hero-spotlight-section {
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    padding: 1rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-spotlight {
    position: relative;
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    cursor: pointer;
    transition: all 0.3s ease;
    animation: glowPulse 2.5s ease-in-out infinite;
}

.hero-spotlight:hover {
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

.hero-spotlight-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-spotlight-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.hero-spotlight-text {
    flex: 1;
}

.hero-spotlight-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.hero-spotlight-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* School of the Month */
.school-of-the-month-section {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 2rem;
    text-align: center;
}

.school-of-the-month-section .section-header h2 {
    font-size: 1.5rem;
}

.school-of-the-month-card {
    position: relative;
    border: 2px solid rgba(234, 179, 8, 0.4);
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), rgba(253, 160, 133, 0.05));
    cursor: pointer;
    transition: all 0.3s ease;
    animation: goldGlow 2.5s ease-in-out infinite;
    text-align: left;
}

.school-of-the-month-card:hover {
    border-color: rgba(234, 179, 8, 0.6);
    transform: translateY(-3px);
}

@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(234, 179, 8, 0.25), 0 0 30px rgba(253, 160, 133, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(234, 179, 8, 0.4), 0 0 50px rgba(253, 160, 133, 0.2);
    }
}

.sotm-badge {
    background: linear-gradient(135deg, #f6d365, #fda085) !important;
}

.sotm-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.sotm-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.sotm-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem;
}

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

    .hero-spotlight-section,
    .school-of-the-month-section {
        padding: 0.5rem 1rem;
    }
}

/* Demo Ad Placement Labels */
.demo-ad-label {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.demo-ad .promoted-badge {
    background: linear-gradient(135deg, #6b7280, #9ca3af) !important;
}

.demo-ad.promoted-card {
    border-style: dashed;
    opacity: 0.9;
}

.demo-ad .hero-spotlight {
    border-style: dashed;
}

.demo-ad .school-of-the-month-card {
    border-style: dashed;
}
