/* ========== SERVICES PAGE - DAGORETTI SPECIAL SCHOOL ========== */
/* Colors: Green #2F6B3E, White #FFFFFF, Yellow #F5B041, Brown #8B5A2B */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.5;
    color: #2C2B2B;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVIGATION BAR ========== */
.navbar {
    background-color: rgba(47, 107, 62, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #F5B041;
    border-bottom: 2px solid #F5B041;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, #2F6B3E 0%, #1F4A2C 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ========== SECTIONS ========== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    color: #2F6B3E;
    margin-bottom: 2rem;
    position: relative;
    display: block;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #F5B041;
    margin-top: 8px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== SERVICES GRID ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E8E4DC;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2F6B3E;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #5A4A3A;
    line-height: 1.5;
}

/* ========== STAFF RATIOS - ONE ROW ========== */
/* ========== STAFF RATIOS - ONE ROW, NO SCROLL ========== */
.ratios-section {
    background: #F9F7F2;
}

.ratios-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    color: #5A4A3A;
}

.ratios-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    flex-wrap: nowrap;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ratio-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    min-width: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 5px solid #F5B041;
}

.ratio-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2F6B3E;
}

.ratio-label {
    font-size: 0.9rem;
    color: #5A4A3A;
    margin: 0.5rem 0;
}

.ratio-desc {
    font-size: 0.75rem;
    color: #888;
}

.ratio-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* ========== TUITION & FUNDING ========== */
.tuition-section {
    background: white;
}

.tuition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tuition-card {
    background: #F9F7F2;
    padding: 1.8rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #E8E4DC;
}

.tuition-card h3 {
    color: #2F6B3E;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tuition-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #2F6B3E;
    margin: 0.5rem 0;
}

.tuition-note {
    font-size: 0.85rem;
    color: #F5B041;
    margin-top: 0.5rem;
    font-weight: bold;
}

.funding-badge {
    background: #2F6B3E;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.btn-small {
    background-color: #F5B041;
    color: #2C2B2B;
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #E09D2A;
}

/* ========== COMMUNICATION & EMERGENCY ========== */
.communication-section {
    background: #F9F7F2;
}

.communication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.communication-card, .emergency-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.communication-card .section-title, .emergency-card .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.comm-methods, .emergency-items {
    margin-top: 1.5rem;
}

.comm-item, .emergency-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F0EDE5;
}

.comm-item:last-child, .emergency-item:last-child {
    border-bottom: none;
}

.comm-icon, .emergency-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.comm-item div, .emergency-item div {
    flex: 1;
}

.comm-item strong, .emergency-item strong {
    color: #2F6B3E;
    display: block;
    margin-bottom: 0.3rem;
}

.comm-item p, .emergency-item p {
    color: #5A4A3A;
    font-size: 0.9rem;
    line-height: 1.4;
}

.emergency-contact {
    background: #F5B04120;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    text-align: center;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #2C2B2B;
    color: #DDD;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.footer-grid h4 {
    color: #F5B041;
    margin-bottom: 0.5rem;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid a {
    color: #DDD;
    text-decoration: none;
}

.footer-grid a:hover {
    color: #F5B041;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 1rem;
    font-size: 0.8rem;
}

/* ========== MOBILE RESPONSIVE ========== */
/* ========== MOBILE RESPONSIVE - EXPANDED ========== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 0;
        margin-top: 1rem;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        padding: 0.8rem 0;
        border-top: 1px solid #4B8B5A;
    }

    /* Page Header */
    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Section Spacing */
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.6rem;
        text-align: center;
        display: block;
    }

    .section-title::after {
        margin-left: auto;
        margin-right: auto;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* Staff Ratios */
    .ratios-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .ratios-grid {
        gap: 1rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .ratio-card {
        padding: 1rem;
    }
    
    .ratio-number {
        font-size: 1.5rem;
    }
    
    .ratio-label {
        font-size: 0.8rem;
    }
    
    .ratio-desc {
        font-size: 0.65rem;
    }

    .ratio-note {
        font-size: 0.75rem;
        padding: 0 1rem;
    }

    /* Tuition Section */
    .tuition-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .tuition-card {
        padding: 1.2rem;
    }

    .tuition-card h3 {
        font-size: 1.2rem;
    }

    .tuition-amount {
        font-size: 1.6rem;
    }

    /* Communication & Emergency */
    .communication-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .communication-card, .emergency-card {
        padding: 1.2rem;
    }

    .communication-card .section-title, .emergency-card .section-title {
        font-size: 1.3rem;
        text-align: center;
        display: block;
    }

    .comm-methods, .emergency-items {
        margin-top: 1rem;
    }

    .comm-item, .emergency-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }
    
    .comm-icon, .emergency-icon {
        font-size: 1.8rem;
    }
    
    .comm-item strong, .emergency-item strong {
        font-size: 1rem;
    }
    
    .comm-item p, .emergency-item p {
        font-size: 0.85rem;
    }

    .emergency-contact {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.7rem;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    /* Page Header */
    .page-header {
        padding: 1.5rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.4rem;
    }

    /* Services Cards */
    .service-card {
        padding: 1rem;
    }

    .service-icon {
        font-size: 1.8rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    /* Staff Ratios */
    .ratios-intro {
        font-size: 0.9rem;
    }

    .ratio-number {
        font-size: 1.3rem;
    }
    
    .ratio-label {
        font-size: 0.7rem;
    }
    
    .ratio-desc {
        font-size: 0.6rem;
    }

    /* Tuition Cards */
    .tuition-card {
        padding: 1rem;
    }

    .tuition-amount {
        font-size: 1.4rem;
    }

    .tuition-note {
        font-size: 0.75rem;
    }

    .funding-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }

    /* Buttons */
    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Communication & Emergency */
    .communication-card, .emergency-card {
        padding: 1rem;
    }

    .communication-card .section-title, .emergency-card .section-title {
        font-size: 1.2rem;
    }

    .comm-icon, .emergency-icon {
        font-size: 1.5rem;
    }

    .comm-item strong, .emergency-item strong {
        font-size: 0.9rem;
    }

    .comm-item p, .emergency-item p {
        font-size: 0.8rem;
    }

    .emergency-contact {
        font-size: 0.75rem;
    }

    /* Footer */
    .footer-grid h4 {
        font-size: 1rem;
    }

    .footer-grid p, .footer-grid li {
        font-size: 0.8rem;
    }
}

/* Small Mobile Styles (360px and below) */
@media (max-width: 360px) {
    .page-header h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .ratio-number {
        font-size: 1.1rem;
    }

    .ratio-label {
        font-size: 0.65rem;
    }

    .ratio-desc {
        font-size: 0.55rem;
    }

    .tuition-amount {
        font-size: 1.2rem;
    }

    .comm-item p, .emergency-item p {
        font-size: 0.75rem;
    }
}
/* Logo Link */
.logo-link {
    text-decoration: none;
    display: inline-block;
}

/* Logo with text */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 50px;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

/* If using logo only (no text) */
.logo-image-only {
    height: 50px;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .logo-image, .logo-image-only {
        height: 40px;
    }
}