/* =============================================
   TIDO COMPREHENSIVE SCHOOL — STYLESHEET
   ============================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    color: #333;
    background: #f4f6f9;
}

/* ---- TOP INFO BAR ---- */
.top-bar {
    background: #1a5c1a;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d4edda;
}

.top-bar i {
    color: #a8d5a2;
}

/* ---- SITE HEADER / NAV ---- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.school-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-logo {
    background: #1a5c1a;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.school-name {
    display: flex;
    flex-direction: column;
}

.name-main {
    font-size: 17px;
    font-weight: 700;
    color: #1a5c1a;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.name-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
    background: #e8f5e9;
    color: #1a5c1a;
}

.main-nav .admin-btn {
    background: #1a5c1a;
    color: #fff;
    border-radius: 20px;
    padding: 7px 16px;
    font-weight: 600;
}

.main-nav .admin-btn:hover {
    background: #145214;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 520px;
    filter: brightness(0.55);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 680px;
}

.hero-tagline {
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a8d5a2;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-motto {
    font-size: 16px;
    color: #d4edda;
    margin-bottom: 28px;
    font-style: italic;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #1a5c1a;
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #145214;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: 25px;
    border: 2px solid #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a5c1a;
}

/* ---- STATS STRIP ---- */
.stats-strip {
    background: #1a5c1a;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 50px;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.15);
    gap: 4px;
}

.stat:last-child {
    border-right: none;
}

.stat i {
    font-size: 28px;
    color: #a8d5a2;
    margin-bottom: 6px;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: #d4edda;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- SHARED SECTION STYLES ---- */
.section {
    padding: 70px 20px;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title.left-align {
    text-align: left;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a5c1a;
    margin-bottom: 10px;
}

.title-bar {
    width: 60px;
    height: 4px;
    background: #f57c00;
    border-radius: 2px;
    display: inline-block;
}

.section-title.left-align .title-bar {
    display: block;
}

/* ---- NOTICE BOARD ---- */
.notice-section {
    background: #e8f5e9;
}

.notice-board {
    background: #fff;
    border-left: 6px solid #1a5c1a;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 10px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.notice-board ul {
    list-style: none;
    padding: 0;
}

.notice-board li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #e8f5e9;
    font-size: 15px;
    color: #333;
}

.notice-board li:last-child {
    border-bottom: none;
}

.month {
    background: #f57c00;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ---- ABOUT SECTION ---- */
.about-section {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    align-items: start;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.school-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f4f6f9;
    border-radius: 8px;
    padding: 14px;
}

.value-item i {
    font-size: 20px;
    color: #1a5c1a;
    margin-top: 2px;
    flex-shrink: 0;
}

.value-item div {
    display: flex;
    flex-direction: column;
}

.value-item strong {
    font-size: 13px;
    color: #1a5c1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-item span {
    font-size: 13px;
    color: #555;
    margin-top: 2px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    object-fit: cover;
    height: 480px;
}

/* ---- QUICK LINKS ---- */
.quick-links {
    background: #f4f6f9;
    padding: 70px 20px;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.link-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 28px 36px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    min-width: 130px;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
}

.link-card i {
    font-size: 30px;
    color: #1a5c1a;
    transition: color 0.2s;
}

.link-card:hover {
    background: #1a5c1a;
    border-color: #1a5c1a;
    color: #fff;
    box-shadow: 0 6px 20px rgba(26,92,26,0.2);
}

.link-card:hover i {
    color: #a8d5a2;
}

/* ---- FOOTER ---- */
.site-footer {
    background: #122b12;
    color: #d4edda;
    text-align: center;
    padding: 36px 20px;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.footer-icon {
    font-size: 22px;
    color: #a8d5a2;
}

.footer-address {
    font-size: 13px;
    color: #a8d5a2;
}

.footer-address i {
    margin-right: 4px;
}

.footer-copy {
    font-size: 12px;
    color: #6a9c6a;
    margin-top: 4px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image img {
        height: 260px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .stat {
        padding: 20px 28px;
    }
}

@media (max-width: 680px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .main-nav a {
        font-size: 13px;
        padding: 6px 8px;
    }

    .school-values {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        width: 100%;
    }
}
