/* Madrasatu Daril Qur'an Wattartil Islamic School — modern redesign
   Distinct identity: deep teal/emerald + cream, separate from other school sites. */

:root {
    --dar-primary: #0f5c4c;
    --dar-primary-dark: #0a3d32;
    --dar-accent: #c9a24b;
    --dar-cream: #faf7f0;
    --dar-text: #1f2d2a;
    --dar-muted: #5b6b67;
    --dar-font: 'Nunito', system-ui, -apple-system, sans-serif;
    --dar-heading-font: 'Heebo', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--dar-font);
    color: var(--dar-text);
    background: var(--dar-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dar-heading-font);
}

a {
    color: var(--dar-primary);
}

/* Header */
.dar-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 14px rgba(15, 92, 76, 0.12);
}

.dar-header .navbar-brand img {
    height: 42px;
    width: 42px;
    object-fit: contain;
}

.dar-header .brand-text {
    font-family: var(--dar-heading-font);
    font-weight: 700;
    color: var(--dar-primary-dark);
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
}

.dar-header .nav-link {
    color: var(--dar-text);
    font-weight: 600;
    padding: 0.5rem 1rem !important;
}

.dar-header .nav-link:hover,
.dar-header .nav-link.active {
    color: var(--dar-primary);
}

.dar-header .btn-apply {
    background: var(--dar-primary);
    color: #fff;
    border-radius: 30px;
    padding: 0.55rem 1.5rem;
    font-weight: 700;
}

.dar-header .btn-apply:hover {
    background: var(--dar-primary-dark);
    color: #fff;
}

/* Hero */
.dar-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.dar-hero img.dar-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.dar-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 61, 50, 0.92), rgba(15, 92, 76, 0.75));
    z-index: 1;
}

.dar-hero .container {
    position: relative;
    z-index: 2;
}

.dar-hero .eyebrow {
    display: inline-block;
    color: var(--dar-accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.dar-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.25;
    max-width: 820px;
}

.dar-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    max-width: 640px;
    margin-top: 1rem;
}

.dar-hero .hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-dar-primary {
    background: var(--dar-accent);
    color: var(--dar-primary-dark);
    font-weight: 700;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dar-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 162, 75, 0.35);
    color: var(--dar-primary-dark);
}

.btn-dar-outline {
    background: transparent;
    color: #fff;
    font-weight: 700;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: background 0.2s;
}

.btn-dar-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Section shell */
.dar-section {
    padding: 4.5rem 0;
}

.dar-section-alt {
    background: #fff;
}

.dar-section-title {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.dar-section-title .eyebrow {
    display: inline-block;
    color: var(--dar-primary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.dar-section-title h2 {
    font-weight: 800;
    color: var(--dar-primary-dark);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.dar-section-title p {
    color: var(--dar-muted);
    margin-top: 0.75rem;
}

/* About */
.dar-about-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 92, 76, 0.18);
}

.dar-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
}

.dar-about-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(10, 61, 50, 0.92), transparent);
    color: #fff;
    padding: 1.25rem 1.25rem 1rem;
}

.dar-about-caption h5 {
    margin: 0;
    font-weight: 700;
}

.dar-about-caption small {
    color: rgba(255, 255, 255, 0.8);
}

.dar-about-text h2 {
    font-weight: 800;
    color: var(--dar-primary-dark);
}

.dar-about-text p {
    color: var(--dar-muted);
    line-height: 1.75;
}

.dar-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.dar-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--dar-cream);
    border-radius: 10px;
}

.dar-fact i {
    color: var(--dar-primary);
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

.dar-fact span {
    font-weight: 600;
    color: var(--dar-text);
    font-size: 0.95rem;
}

/* Facilities */
.dar-facility-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    min-height: 260px;
    box-shadow: 0 10px 25px rgba(15, 92, 76, 0.12);
}

.dar-facility-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.dar-facility-card:hover img {
    transform: scale(1.06);
}

.dar-facility-card .facility-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(10, 61, 50, 0.85), transparent);
    color: #fff;
    padding: 1rem;
    font-weight: 700;
}

/* Sections list (Board / Admin) */
.dar-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.dar-people-card {
    background: #fff;
    border: 1px solid rgba(15, 92, 76, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.dar-people-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 92, 76, 0.14);
}

.dar-people-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--dar-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.dar-people-card h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dar-primary-dark);
}

.dar-people-card small {
    color: var(--dar-muted);
}

/* Testimonials */
.dar-testimonial-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(15, 92, 76, 0.1);
    height: 100%;
}

.dar-testimonial-card p.quote {
    color: var(--dar-muted);
    font-style: italic;
    min-height: 60px;
}

.dar-testimonial-card h6 {
    font-weight: 700;
    color: var(--dar-primary-dark);
    margin-bottom: 0.1rem;
}

.dar-testimonial-card small {
    color: var(--dar-muted);
}

/* CTA band */
.dar-cta {
    background: linear-gradient(135deg, var(--dar-primary-dark), var(--dar-primary));
    color: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.dar-cta h2 {
    font-weight: 800;
}

.dar-cta p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0.75rem auto 1.5rem;
}

/* Footer */
.dar-footer {
    background: var(--dar-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 3.5rem;
}

.dar-footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dar-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.dar-footer a:hover {
    color: var(--dar-accent);
}

.dar-footer .footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-right: 0.5rem;
}

.dar-footer .footer-social a:hover {
    background: var(--dar-accent);
    border-color: var(--dar-accent);
    color: var(--dar-primary-dark);
}

.dar-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    font-size: 0.9rem;
}

.google-maps {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

@media (max-width: 767px) {
    .dar-facts {
        grid-template-columns: 1fr;
    }

    .dar-section {
        padding: 3rem 0;
    }
}
