:root {
    --navy: #1a3267;
    --navy-deep: #0f1d3d;
    --navy-light: #2a4a8a;
    --gold: #f4b41a;
    --gold-light: #ffd54f;
    --gold-dark: #c9930f;
    --cream: #fdf8f0;
    --white: #ffffff;
    --charcoal: #1a1a1a;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--charcoal);
    line-height: 1.6;
    background: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--navy-deep);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('/img/brits-home/green.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15,29,61,0.9) 0%, rgba(26,50,103,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    text-align: center;
}

.hero-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   FILTERS SECTION
   ═══════════════════════════════════════════════════════════ */
.filters-section {
    padding: 60px 40px;
    background: white;
    border-bottom: 1px solid var(--gray-light);
}

.filters-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search */
.search-container {
    margin-bottom: 40px;
}

.search-input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(244, 177, 26, 0.1);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--gold-dark);
}

/* Filters */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(244, 177, 26, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   RESULTS HEADER
   ═══════════════════════════════════════════════════════════ */
.results-section {
    padding: 40px 40px;
    background: var(--cream);
}

.results-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.results-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.results-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.875rem;
    color: var(--gray);
    padding: 4px 0;
}

/* ═══════════════════════════════════════════════════════════
   CHILDREN GRID
   ═══════════════════════════════════════════════════════════ */
.children-grid-section {
    padding: 60px 40px;
    background: white;
}

.children-grid-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Child Card */
.child-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.child-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.child-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.child-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.child-card:hover .child-card-image img {
    transform: scale(1.05);
}

.child-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.child-card-badge.needs-sponsor {
    background: var(--error);
    color: white;
}

.child-card-badge.partially-sponsored {
    background: var(--warning);
    color: white;
}

.child-card-badge.fully-sponsored {
    background: var(--success);
    color: white;
}

.child-card-content {
    padding: 20px;
}

.child-card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    display: block;
}

.child-card-legal-name {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 12px;
    font-style: italic;
}

.child-card-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--gray);
}

.child-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.child-card-grade {
    font-size: 0.875rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 500;
}

.child-card-bio {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.child-card-interests {
    margin-bottom: 16px;
}

.interest-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--cream);
    color: var(--navy);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 6px;
}

.interest-more {
    font-size: 0.75rem;
    color: var(--gray);
    font-style: italic;
}

.child-card-cta {
    margin-top: 16px;
}

.child-card-cta .btn {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 6px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-current {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
}

.pagination-current {
    cursor: default;
}

/* ═══════════════════════════════════════════════════════════
   NO RESULTS
   ═══════════════════════════════════════════════════════════ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-results h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.no-results p {
    color: var(--gray);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════ */
.cta-section {
    padding: 80px 40px;
    background: var(--navy);
    color: white;
    text-align: center;
}

.cta-section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .children-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 100px 24px 60px;
    }

    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1.125rem; }

    .filters-section { padding: 40px 24px; }
    .filters-container { grid-template-columns: 1fr; }

    .results-section { padding: 30px 24px; }
    .results-info { flex-direction: column; align-items: flex-start; }

    .children-grid-section { padding: 40px 24px; }
    .children-grid { grid-template-columns: 1fr; }

    .cta-section { padding: 60px 24px; }
    .cta-content h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .hero-sub { font-size: 1rem; }

    .search-input-wrapper input { padding: 14px 45px 14px 16px; }

    .child-card-image { height: 200px; }
    .child-card-content { padding: 16px; }

    .pagination-link { min-width: 36px; height: 36px; font-size: 0.875rem; }
}