/* ============================================
   OUR CHILDREN - Complete Public Page Styles
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #fde8e8;
    --secondary: #2c3e50;
    --secondary-dark: #1a252f;
    --accent: #f39c12;
    --gradient-primary: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    --text-dark: #1a1a2e;
    --text-light: #f8f9fa;
    --gray-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 7px 18px;
    font-size: 0.8rem;
}

.btn-donate-nav {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-donate-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.35);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    background: var(--white);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo a i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu li a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 4px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    padding: 160px 0 100px;
    position: relative;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    min-height: 450px;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.88) 0%, rgba(26, 37, 47, 0.80) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero-content h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   STATS BAR
   ============================================ */
.children-stats {
    background: var(--secondary);
    padding: 35px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-item .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-divider {
    width: 2px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-section {
    padding: 60px 0 30px;
    background: var(--white);
}

.filter-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.filter-header {
    text-align: center;
    margin-bottom: 35px;
}

.filter-header .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 18px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.filter-header h2 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
}

.filter-header h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-header p {
    color: #888;
    font-size: 1.05rem;
    margin-top: 5px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    background: var(--gray-bg);
    padding: 20px 30px;
    border-radius: var(--radius);
    align-items: center;
    border: 1px solid #e9ecef;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 18px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    background: var(--white);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Custom Dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    padding: 6px 18px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    background: var(--white);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    justify-content: space-between;
}

.dropdown-toggle:hover {
    border-color: var(--primary);
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.custom-dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 6px 0;
    display: none;
    z-index: 100;
    min-width: 150px;
    border: 1px solid #e9ecef;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 9px 18px;
    border: none;
    background: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.dropdown-item:hover {
    background: var(--gray-bg);
}

.dropdown-item.active {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Mobile Age Filter */
.age-filter-mobile {
    display: none;
}

.bottom-sheet-trigger {
    padding: 6px 18px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    background: var(--white);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 130px;
    justify-content: space-between;
}

.bottom-sheet-trigger:hover {
    border-color: var(--primary);
}

/* ============================================
   BOTTOM SHEET (Mobile)
   ============================================ */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 99998;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.bottom-sheet-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bottom-sheet {
    background: var(--white);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 70vh;
    animation: slideUp 0.4s ease;
    padding-bottom: 30px;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px 15px;
    border-bottom: 1px solid #e9ecef;
}

.bottom-sheet-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.bottom-sheet-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.bottom-sheet-close:hover {
    color: var(--primary);
}

.bottom-sheet-body {
    padding: 15px 25px;
}

.sheet-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: var(--white);
    text-align: left;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.sheet-item:last-child { margin-bottom: 0; }
.sheet-item:hover { border-color: var(--primary); }
.sheet-item.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   CHILDREN GRID
   ============================================ */
.children-grid-section {
    background: var(--gray-bg);
    padding: 40px 0 80px;
    min-height: 400px;
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================
   CHILD CARD
   ============================================ */
.child-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.child-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.child-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--gray-bg);
}

.child-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    background: var(--gray-bg);
}

/* Handle broken images */
.child-card-image img[src=""],
.child-card-image img:not([src]) {
    opacity: 0;
}

.child-card:hover .child-card-image img {
    transform: scale(1.05);
}

.child-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.child-card:hover .child-card-overlay {
    opacity: 1;
}

.btn-view-details {
    padding: 10px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transform: translateY(20px);
    transition: var(--transition);
}

.child-card:hover .btn-view-details {
    transform: translateY(0);
}

.btn-view-details:hover {
    transform: scale(1.05);
}

/* Status Badge on Card */
.status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.sponsored {
    background: #27ae60;
}

.status-badge.needs-sponsor {
    background: #f39c12;
}

/* Card Info */
.child-card-info {
    padding: 18px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.child-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.child-card-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.child-gender-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.child-gender-badge.female {
    background: #fce4ec;
    color: #c62828;
}

.child-gender-badge.male {
    background: #e3f2fd;
    color: #0d47a1;
}

.child-card-details {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.child-card-details i {
    color: var(--primary);
    margin-right: 3px;
}

.child-card-bio {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.child-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 0;
}

.btn-read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.no-results p {
    color: #888;
    margin-bottom: 20px;
}

/* ============================================
   LOAD MORE
   ============================================ */
.load-more {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-children {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   PROFILE MODAL
   ============================================ */

/* Modal Overlay */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.profile-modal-container {
    background: var(--white);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.profile-modal-overlay.active .profile-modal-container {
    transform: scale(1);
}

/* Modal Header */
.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #e9ecef;
    background: var(--white);
    flex-shrink: 0;
}

.profile-modal-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.profile-modal-back:hover {
    color: var(--primary-dark);
}

.profile-modal-back i {
    font-size: 1.1rem;
}

.profile-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    padding: 4px 8px;
}

.profile-modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Modal Body */
.profile-modal-body {
    padding: 30px 32px;
    overflow-y: auto;
    flex: 1;
}

/* Profile Content */
.profile-content {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: var(--gray-bg);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--gray-bg);
}

.profile-details {
    flex: 1;
}

.profile-details .profile-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-details .profile-gender {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.profile-details .profile-gender.female {
    background: #fce4ec;
    color: #c62828;
}

.profile-details .profile-gender.male {
    background: #e3f2fd;
    color: #0d47a1;
}

.profile-details .profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 12px 0;
}

.profile-details .profile-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    padding: 4px 0;
    color: #444;
}

.profile-details .profile-info-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.profile-details .profile-bio {
    color: #666;
    line-height: 1.8;
    margin: 12px 0 0;
}

/* ============================================
   GALLERY
   ============================================ */
.profile-gallery {
    margin-top: 18px;
}

.profile-gallery h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    min-height: 60px;
}

.profile-gallery-grid img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    background: var(--gray-bg);
}

.profile-gallery-grid img:hover {
    transform: scale(1.05);
}

/* Handle gallery images that fail to load */
.profile-gallery-grid img[src=""],
.profile-gallery-grid img:not([src]) {
    display: none;
}

/* Empty state for gallery */
.profile-gallery-grid:empty::after {
    content: 'No gallery images available';
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    padding: 20px;
}

/* Modal Footer */
.profile-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e9ecef;
    background: var(--white);
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}

.profile-modal-footer .sponsor-btn {
    flex: 2;
}

.profile-modal-footer .close-btn {
    flex: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    position: relative;
    padding: 80px 0;
    background: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1920&q=80') center/cover no-repeat;
    text-align: center;
    color: var(--white);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(26, 37, 47, 0.85) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 18px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-logo i {
    color: var(--primary);
}

.footer-about p {
    font-size: 0.92rem;
    line-height: 1.8;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.6);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-newsletter h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-form button {
    padding: 10px 18px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.35);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.35);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.45);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .children-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .profile-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-hover);
        gap: 16px;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .page-hero {
        padding: 140px 0 70px;
        min-height: 350px;
    }

    .page-hero-content h1 {
        font-size: 2.4rem;
    }

    .page-hero-content p {
        font-size: 1rem;
    }

    /* Stats */
    .children-stats {
        margin-top: -30px;
        padding: 25px 0;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item .stat-number {
        font-size: 1.8rem;
    }

    /* Filter */
    .filter-header h2 {
        font-size: 2rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
        gap: 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .bottom-sheet-trigger {
        width: 100%;
        min-width: auto;
    }

    .age-filter-desktop {
        display: none;
    }

    .age-filter-mobile {
        display: flex;
    }

    /* Children Grid */
    .children-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .child-card-image {
        height: 200px;
    }

    .child-card-info {
        padding: 14px 16px 18px;
    }

    .child-card-header h4 {
        font-size: 1rem;
    }

    .child-card-details {
        font-size: 0.75rem;
        gap: 10px;
    }

    .child-card-bio {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    /* Modal becomes full page on mobile */
    .profile-modal-overlay {
        padding: 0;
        background: var(--white);
        backdrop-filter: none;
        align-items: stretch;
    }

    .profile-modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        transform: none;
        box-shadow: none;
    }

    .profile-modal-overlay.active .profile-modal-container {
        transform: none;
    }

    .profile-modal-header {
        padding: 14px 18px;
        border-bottom: 1px solid #e9ecef;
    }

    .profile-modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
    }

    .profile-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

    .profile-details .profile-name {
        font-size: 1.6rem;
    }

    .profile-details .profile-info-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .profile-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-gallery-grid img {
        height: 70px;
    }

    .profile-modal-footer {
        padding: 14px 18px 20px;
        flex-direction: column;
    }

    .profile-modal-footer .sponsor-btn,
    .profile-modal-footer .close-btn {
        flex: 1;
        width: 100%;
    }

    .profile-modal-back {
        font-size: 0.9rem;
    }

    .profile-modal-close {
        font-size: 1.3rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-about p {
        max-width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-hero-content h1 {
        font-size: 1.8rem;
    }

    .filter-header h2 {
        font-size: 1.6rem;
    }

    .children-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .child-card-image {
        height: 220px;
    }

    .stat-item .stat-number {
        font-size: 1.5rem;
    }

    .stat-item .stat-label {
        font-size: 0.75rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .btn-lg {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .profile-image {
        width: 130px;
        height: 130px;
    }

    .profile-details .profile-name {
        font-size: 1.3rem;
    }

    .profile-details .profile-info-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .profile-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-gallery-grid img {
        height: 60px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta,
    .back-to-top,
    .filter-section,
    .children-stats,
    .load-more {
        display: none !important;
    }

    .page-hero {
        padding: 40px 0 20px;
        min-height: auto;
        color: var(--text-dark);
    }

    .page-hero-overlay {
        background: none;
    }

    .page-hero-content h1 {
        color: var(--text-dark);
    }

    .page-hero-content h1 span {
        -webkit-text-fill-color: var(--primary);
    }

    .page-hero-content p {
        color: #888;
    }

    .children-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .child-card {
        break-inside: avoid;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .child-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .child-card-overlay {
        display: none;
    }

    .profile-modal-overlay {
        position: static;
        background: none;
        backdrop-filter: none;
        display: block !important;
        opacity: 1 !important;
        padding: 0;
    }

    .profile-modal-container {
        max-width: 100%;
        max-height: none;
        transform: none !important;
        box-shadow: none;
        border-radius: 0;
    }

    .profile-modal-header,
    .profile-modal-footer {
        display: none !important;
    }

    .profile-modal-body {
        padding: 20px 0;
    }
}