/* ===================================================================
   Flourish Islamic School and Cultural Academy — Public Site Styles
   Design direction: formal, deep green & gold, "modern school first"
   =================================================================== */

:root {
    --green-deep:   #0B4A38;
    --green-darker: #073327;
    --green-soft:   #E7F0EA;
    --gold:         #C9A227;
    --gold-light:   #E7CE7B;
    --cream:        #FAF6EC;
    --text-main:    #1F2A24;
    --text-muted:   #55655C;
    --border-soft:  #DCD0A3;
    --white:        #FFFFFF;
    --radius:       10px;
    --shadow:       0 4px 18px rgba(11, 74, 56, 0.08);
    --max-width:    1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    color: var(--text-main);
    background: var(--cream);
    line-height: 1.75;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Noto Serif Bengali', 'Georgia', serif;
    color: var(--green-deep);
    line-height: 1.35;
    margin: 0 0 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--green-deep);
    color: var(--white);
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    background: var(--green-deep);
    color: var(--white);
    border-bottom: 3px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.site-brand .brand-name {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.site-brand .brand-name small {
    display: block;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 0.03em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--white);
    padding: 8px 14px;
    display: inline-block;
    border-radius: var(--radius);
    font-size: 0.96rem;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.12);
    color: var(--gold-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, var(--green-deep) 0%, var(--green-darker) 100%);
    color: var(--white);
    padding: 64px 0 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 10px;
    background-image: repeating-linear-gradient(
        45deg,
        var(--gold) 0, var(--gold) 10px,
        transparent 10px, transparent 20px
    );
    opacity: 0.55;
}

.hero h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 0.2em;
}

.hero .hero-sub {
    color: var(--gold-light);
    font-size: 1.15rem;
    margin-bottom: 0.9em;
    font-family: 'Noto Serif Bengali', serif;
}

.hero .hero-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 0.98rem;
    max-width: 640px;
    margin: 0 auto 1.6em;
}

.hero .hero-intro {
    max-width: 720px;
    margin: 0 auto 2em;
    color: rgba(255,255,255,0.92);
    font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-gold {
    background: var(--gold);
    color: var(--green-darker);
}
.btn-gold:hover { background: var(--gold-light); color: var(--green-darker); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Pillars / Cards ---------- */
.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 10px;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 36px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.pillar-card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-top: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
}

.pillar-card .pillar-index {
    color: var(--gold);
    font-family: 'Noto Serif Bengali', serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: block;
}

.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Content blocks (About / Curriculum) ---------- */
.content-block {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.content-block h2 {
    border-bottom: 2px solid var(--green-soft);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
    margin: 0;
}
.tag-list li {
    background: var(--green-soft);
    color: var(--green-deep);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.92rem;
}

.check-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
}
.check-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
    background: var(--green-soft);
    width: 20px; height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.75rem;
}

.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}
.step-list li {
    counter-increment: step;
    position: relative;
    padding-left: 42px;
    margin-bottom: 16px;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: -2px;
    width: 30px; height: 30px;
    background: var(--green-deep);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-family: 'Noto Serif Bengali', serif;
    font-size: 0.9rem;
}

/* ---------- Tables (fee info) ---------- */
table.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
table.info-table th, table.info-table td {
    border: 1px solid var(--border-soft);
    padding: 10px 14px;
    text-align: left;
    font-size: 0.95rem;
}
table.info-table th {
    background: var(--green-deep);
    color: var(--white);
    font-family: 'Noto Serif Bengali', serif;
    font-weight: 500;
}
table.info-table tr:nth-child(even) td { background: var(--green-soft); }

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.gallery-item {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.gallery-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}
.gallery-item .caption {
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.gallery-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    border: 1px dashed var(--border-soft);
    border-radius: var(--radius);
}

/* ---------- Forms ---------- */
.form-card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--green-deep);
    font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--cream);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid var(--gold-light);
    outline-offset: 1px;
}
.form-group textarea { min-height: 110px; resize: vertical; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.alert-success {
    background: var(--green-soft);
    color: var(--green-deep);
    border: 1px solid var(--green-deep);
}
.alert-error {
    background: #FBEAEA;
    color: #8A2A2A;
    border: 1px solid #C94F4F;
}

/* ---------- Contact page layout ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--green-soft);
}
.contact-info-list strong {
    display: block;
    color: var(--green-deep);
    font-family: 'Noto Serif Bengali', serif;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    margin-top: 20px;
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green-darker);
    color: rgba(255,255,255,0.85);
    padding: 36px 0 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}
.site-footer .footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 20px;
    margin-bottom: 16px;
}
.site-footer h4 {
    color: var(--gold-light);
    font-size: 1rem;
    margin-bottom: 10px;
}
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .hero h1 { font-size: 1.7rem; }
    .hero .hero-sub { font-size: 1rem; }
}
