/* ============================================
   ZIKAR CHILD FUND - RESPONSIVE STYLES
   Desktop: 3 columns | Mobile: 1 column
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #003366;
    --primary-dark: #002244;
    --accent: #f5a623;
    --accent-hover: #e09513;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ---- Container ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================
   LIVE TOAST NOTIFICATION
   ============================================ */
.live-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    z-index: 9999;
    box-shadow: var(--shadow-hover);
    animation: slideIn 0.5s ease;
    max-width: 90vw;
}

.live-pulse {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: var(--bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    width: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: inline;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    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(6px, -6px);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links li a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    display: inline-block;
}

.nav-links li a:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.nav-links li a.btn {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.nav-links li a.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
    padding: 40px 0;
    width: 100%;
}

/* Case Header */
.case-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
    word-wrap: break-word;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Medical Context */
.medical-context {
    margin-bottom: 50px;
}

.medical-context h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.medical-context > p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
}

/* Impact Grid - 2 columns on desktop */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

.impact-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
}

.impact-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.impact-box h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.impact-box ul {
    list-style: disc;
    padding-left: 20px;
}

.impact-box ul li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.impact-box p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 40px 0 25px;
    text-align: center;
    word-wrap: break-word;
}

/* Story Section */
.story-section {
    margin-bottom: 50px;
    width: 100%;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    align-items: stretch;
    background: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
}

.image-box {
    width: 100%;
    min-height: 300px;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-box img:hover {
    transform: scale(1.05);
}

.story-content {
    padding: 35px;
}

.story-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.story-content strong {
    color: var(--primary);
}

/* ============================================
   CHILDREN CARDS - DESKTOP GRID (3 COLUMNS)
   ============================================ */
.next-cases {
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef2f7 100%);
    padding: 60px 0;
    margin-top: 40px;
    width: 100%;
}

.next-cases h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
}

/* DESKTOP: 3 columns grid */
.child-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.child-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.child-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Image wrapper - rectangle shape */
.image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.child-card:hover .image-wrapper img {
    transform: scale(1.08);
}

/* Child info section */
.child-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.child-info h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.child-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    margin-top: auto;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
}

/* Sponsorship Form */
.sponsorship-form {
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-top: 15px;
    width: 100%;
}

.sponsorship-form input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: var(--transition);
    display: block;
}

.sponsorship-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.sponsorship-form button[type="submit"] {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.sponsorship-form button[type="submit"]:hover {
    background: var(--primary-dark);
}

.thankYouMessage {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: var(--radius-sm);
    font-weight: 600;
    margin-top: 10px;
}

/* Back to Home Button */
.fa-arrow-left {
    margin-right: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 20px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 15px;
}

.social-handles {
    background: rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.8;
}

.social-handles strong {
    color: var(--accent);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Gov Stack */
.gov-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gov-stamp-box {
    background: rgba(255,255,255,0.08);
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.stamp-title {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.stamp-body, .gov-body {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.baseline-audit {
    margin-top: 8px;
    font-size: 0.85rem !important;
    color: var(--accent) !important;
    font-weight: 500;
}

/* ============================================
   MOBILE RESPONSIVE (Single Column Stack)
   ============================================ */
@media screen and (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }

    /* Live Toast */
    .live-popup {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        padding: 10px 15px !important;
        max-width: none !important;
    }

    /* Header */
    header {
        padding: 12px 0 !important;
    }

    .nav-container {
        flex-wrap: wrap !important;
    }

    .logo-img {
        height: 38px !important;
    }

    .logo-text {
        font-size: 1rem !important;
    }

    /* Hamburger - visible on mobile */
    .hamburger {
        display: flex !important;
    }

    /* Nav Menu - hidden by default */
    .nav-links {
        display: none !important;
        width: 100% !important;
        flex-direction: column !important;
        gap: 5px !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
        border-top: 1px solid var(--border) !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100% !important;
    }

    .nav-links li a {
        display: block !important;
        width: 100% !important;
        padding: 12px 15px !important;
        text-align: center !important;
    }

    .nav-links li a.btn {
        margin-top: 5px !important;
    }

    /* Page Title */
    .page-title {
        font-size: 1.8rem !important;
    }

    .subtitle {
        font-size: 1rem !important;
    }

    /* Impact Grid - single column */
    .impact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .impact-box {
        padding: 25px !important;
    }

    /* Story Grid - single column stack */
    .story-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .image-box {
        min-height: 250px !important;
    }

    .story-content {
        padding: 25px !important;
    }

    .story-content p {
        font-size: 1rem !important;
    }

    /* ============================================
       CHILD CARDS - MOBILE: 1 COLUMN
       ============================================ */
    .child-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .child-card {
        width: 100% !important;
    }

    .image-wrapper {
        height: 240px !important;
    }

    .child-info {
        padding: 20px !important;
    }

    .child-info h4 {
        font-size: 1.2rem !important;
    }

    .child-info p {
        font-size: 0.95rem !important;
    }

    .btn-primary {
        padding: 12px 25px !important;
        font-size: 1rem !important;
    }

    /* Footer Grid - single column */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .footer-col h3 {
        font-size: 1.2rem !important;
    }

    /* Section spacing */
    .page-content {
        padding: 25px 0 !important;
    }

    .case-header {
        margin-bottom: 30px !important;
        padding: 20px 0 !important;
    }

    .section-title {
        font-size: 1.5rem !important;
        margin: 30px 0 20px !important;
    }

    .next-cases {
        padding: 40px 0 !important;
    }

    .next-cases h2 {
        font-size: 1.6rem !important;
        margin-bottom: 30px !important;
    }

    /* Gov stamps */
    .gov-stamp-box {
        padding: 15px !important;
    }

    .medical-context h2 {
        font-size: 1.5rem !important;
    }
}

/* Extra small screens */
@media screen and (max-width: 480px) {
    .page-title {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    .impact-box {
        padding: 20px !important;
    }

    .impact-box h3 {
        font-size: 1.1rem !important;
    }

    .story-content {
        padding: 20px !important;
    }

    .image-wrapper {
        height: 200px !important;
    }

    .next-cases h2 {
        font-size: 1.4rem !important;
    }

    .medical-context h2 {
        font-size: 1.3rem !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.video-title {
    color: #1d3557;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

@media (max-width: 600px) {
    .video-title {
        font-size: 1.2rem;
    }
}