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

@media screen and (max-width: 480px) {
    .member-image {
        width: 120px;
        height: 120px;
    }
}

/* Tablet Devices (768px and below) */
@media screen and (max-width: 768px) {
    
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        left: 0;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: left;
        padding: 20px;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    /* Hero Section */
    .hero {
        padding: 80px 20px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Grid Layouts */
    .stats-grid,
    .programs-grid,
    .testimonials-grid,
    .values-grid,
    .team-grid,
    .eligibility-grid,
    .info-grid,
    .contact-methods,
    .social-grid {
        grid-template-columns: 1fr;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }

    /* Mission & Vision */
    .mission-vision {
        grid-template-columns: 1fr;
    }

    /* Hours Container */
    .hours-container {
        grid-template-columns: 1fr;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Sections Padding */
    section {
        padding: 50px 20px;
    }

    .page-hero {
        padding: 60px 20px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 32px;
    }
}

/* Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
    
    :root {
        font-size: 14px;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header */
    .navbar .container {
        padding: 12px 15px;
    }

    .logo {
        font-size: 24px;
    }

    .tagline {
        font-size: 10px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 16px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 15px;
    }

    .hero-content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    /* Page Hero */
    .page-hero {
        padding: 40px 15px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .page-hero p {
        font-size: 14px;
    }

    /* Stat Cards */
    .stat-card h3 {
        font-size: 36px;
    }

    .stat-card p {
        font-size: 14px;
    }

    /* Program Cards */
    .program-card {
        padding: 20px;
    }

    .program-card h3 {
        font-size: 20px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .testimonial-author {
        font-size: 14px;
    }

    /* Forms */
    .form-container {
        padding: 15px;
        max-width: 100%;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }

    /* CTA Section */
    .cta-section {
        padding: 40px 15px;
    }

    .cta-section h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .cta-section p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Emergency Box */
    .emergency-box {
        padding: 30px 20px;
    }

    .emergency-box h2 {
        font-size: 24px;
    }

    .emergency-box p {
        font-size: 14px;
    }

    .contact-item h3 {
        font-size: 16px;
    }

    .contact-item .contact-detail {
        font-size: 18px;
    }

    /* Footer */
    .footer {
        padding: 40px 15px 20px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 12px;
    }

    .footer-bottom {
        padding-top: 15px;
        font-size: 12px;
    }

    .footer-bottom p {
        margin-bottom: 8px;
    }

    /* Sections */
    section {
        padding: 40px 15px;
    }

    /* Mission & Vision */
    .mission-box,
    .vision-box {
        padding: 20px;
    }

    /* Hours Box */
    .hours-box {
        padding: 20px;
    }

    .hours-box h3 {
        font-size: 18px;
    }

    /* Team Member */
    .team-member {
        padding: 20px;
    }

    .member-image {
        width: 120px;
        height: 120px;
    }

    .position {
        font-size: 14px;
    }

    .bio {
        font-size: 12px;
    }

    /* FAQ */
    .faq-item {
        padding: 15px 20px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }

    /* Program Detail */
    .program-detail-card {
        padding: 20px;
    }

    .program-detail-card h3 {
        font-size: 18px;
        margin-top: 15px;
    }

    /* Value Cards */
    .value-card {
        padding: 20px;
    }

    /* Info Cards */
    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 18px;
    }

    .contact-detail {
        font-size: 16px;
    }

    .info-note {
        font-size: 12px;
    }

    /* Resource Cards */
    .resource-card {
        padding: 20px;
    }

    .resource-card h3 {
        font-size: 18px;
    }

    /* Social Cards */
    .social-card {
        padding: 25px;
    }

    .social-card h3 {
        font-size: 18px;
    }

    /* Overall Padding */
    .container {
        padding: 0 15px;
    }

    .navbar-brand {
        gap: 3px;
    }

    /* Section intro */
    .section-intro {
        font-size: 14px;
    }

    /* Form note */
    .form-note {
        font-size: 12px;
    }

    .confidential-note {
        font-size: 14px;
    }
}

/* Extra Small Devices (320px) */
@media screen and (max-width: 320px) {
    
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .page-hero h1 {
        font-size: 20px;
    }

    .stat-card h3 {
        font-size: 28px;
    }

    .cta-section h2 {
        font-size: 20px;
    }

    .emergency-box h2 {
        font-size: 20px;
    }
}

/* Orientation Changes */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: 40px 20px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .page-hero {
        padding: 30px 20px;
    }

    section {
        padding: 40px 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hamburger {
        display: none;
    }

    body {
        color: #000;
        background-color: #fff;
    }

    a {
        text-decoration: underline;
    }

    section {
        page-break-inside: avoid;
    }
}
