/* ============================================================
   BILAL ISLAMIC SECONDARY SCHOOL — Main Stylesheet
   CodeIgniter 4 | Bootstrap 5.3
   ============================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
    --green-dark:   #0b1d3a;
    --green-mid:    #155c44;
    --green-light:  #1e7a5c;
    --green-pale:   #e8f5ee;
    --gold:         #c9a227;
    --gold-light:   #e0b93a;
    --white:        #ffffff;
    --off-white:    #f7f8f5;
    --text-dark:    #1a1a1a;
    --text-mid:     #444444;
    --text-light:   #777777;
    --border:       #e2e8e0;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:    0 6px 24px rgba(0,0,0,0.10);
    --shadow-lg:    0 16px 48px rgba(0,0,0,0.14);
    --radius:       10px;
    --radius-lg:    16px;
}

/* ── GLOBAL ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { color: inherit; }
p { line-height: 1.75; }

img { max-width: 100%; height: auto; }

/* ── TOPBAR ──────────────────────────────────────────────────── */
.topbar {
    background: var(--green-dark);
    padding: 8px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-left span { margin-right: 4px; }
.topbar-left i    { color: var(--gold); margin-right: 5px; }
.topbar-right a {
    color: rgba(255,255,255,0.7);
    margin-left: 12px;
    font-size: 1rem;
    text-decoration: none;
    transition: color .2s;
}
.topbar-right a:hover { color: var(--gold); }
.btn-topbar {
    background: var(--gold) !important;
    color: var(--green-dark) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 5px 16px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    transition: opacity .2s;
}
.btn-topbar:hover { opacity: 0.85; }

/* ── NAVBAR ──────────────────────────────────────────────────── */
.main-navbar {
    background: var(--white);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 200;
}
.navbar-brand { padding: 10px 0; text-decoration: none; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 48px; height: 48px;
    background: transparent;
    border-radius: 0%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
	overflow: visible;
	clip-path: none;
}

.logo-icon .arabic-text {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--gold);
    line-height: 1;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.brand-sub {
    font-size: 0.65rem;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.navbar-toggler {
    border: 1.5px solid var(--green-dark);
    color: var(--green-dark);
    padding: 6px 10px;
    border-radius: 8px;
}
.navbar-toggler i { font-size: 1.3rem; }

.main-navbar .nav-link {
    color: var(--text-dark) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 20px 14px !important;
    position: relative;
    transition: color .2s;
}
.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 14px; right: 14px;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .2s;
    border-radius: 2px 2px 0 0;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--green-dark) !important; }
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { transform: scaleX(1); }

.main-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 200px;
}
.main-navbar .dropdown-item {
    font-size: 0.86rem;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text-dark);
    transition: background .15s;
}
.main-navbar .dropdown-item:hover {
    background: var(--green-pale);
    color: var(--green-dark);
}
.btn-nav-portal {
    background: var(--green-dark) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 8px 18px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s;
}
.btn-nav-portal:hover { background: var(--green-mid) !important; }

/* ── HERO CAROUSEL ───────────────────────────────────────────── */
.hero-carousel { position: relative; overflow: hidden; }

/* Each slide is a positioned container */
.hero-slide {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: var(--blue-dark); /* fallback colour when no image */
}

/* The actual photo */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dark green gradient overlay — always shown, stronger when no image */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--blue-dark)
    );
    z-index: 1;
}

/* Content sits above overlay */
.hero-content-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* Legacy support — keeps old .hero-content positioning */
.hero-content {
    max-width: 680px;
    padding: 32px;
    border-radius: 12px;
    background-color: rgba(10, 0, 0, 0.30); /* Dark background with 30% opacity */
    backdrop-filter: blur(2px);              /* Subtle backdrop blur */
    -webkit-backdrop-filter: blur(2px);      /* Safari support */
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid rgba(201, 162, 39, 0.5);
    color: var(--gold-light);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--gold);
    color: var(--green-dark);
    padding: 13px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}
.btn-hero-primary:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--green-dark); }
.btn-hero-outline {
    border: 2px solid rgba(255,255,255,0.7);
    color: white;
    padding: 11px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.08);
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* Carousel indicators — gold pills */
#heroCarousel .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.4);
    border: none;
    transition: all .3s;
}
#heroCarousel .carousel-indicators .active {
    background: var(--gold);
    width: 48px;
}
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    opacity: 0;
    transition: opacity .3s;
}
#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next { opacity: 0.7; }
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* ── ANNOUNCEMENT TICKER ─────────────────────────────────────── */
.announcement-bar {
    background: var(--gold);
    padding: 10px 0;
    overflow: hidden;
}
.ticker-label {
    background: var(--green-dark);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ticker-wrap { flex: 1; overflow: hidden; position: relative; }
.ticker-move {
    display: flex;
    gap: 60px;
    animation: tickerScroll 35s linear infinite;
    width: max-content;
}
.ticker-move:hover { animation-play-state: paused; }
.ticker-item {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--green-dark);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── STATS STRIP ─────────────────────────────────────────────── */
.stats-strip { background: var(--green-dark); padding: 40px 0; }
.stat-item {
    text-align: center;
    padding: 20px 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label { font-size: 0.83rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── QUICK LINKS ─────────────────────────────────────────────── */
.quicklinks-section { background: var(--off-white); padding: 40px 0; border-bottom: 1px solid var(--border); }
.quicklink-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    text-decoration: none;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all .2s;
    box-shadow: var(--shadow-sm);
}
.quicklink-item:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.quicklink-icon {
    width: 52px; height: 52px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--green-dark);
    transition: all .2s;
}
.quicklink-item:hover .quicklink-icon { background: rgba(255,255,255,0.15); color: var(--gold); }
.quicklink-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); transition: color .2s; }
.quicklink-item:hover .quicklink-label { color: white; }

/* ── SECTION HEADERS ─────────────────────────────────────────── */
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--green-mid);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}
.section-label::before {
    content: '';
    width: 28px; height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
    margin-bottom: 8px;
}
.section-title span { color: var(--green-mid); }

/* ── WELCOME SECTION ─────────────────────────────────────────── */
.welcome-section { padding: 90px 0; background: var(--white); }
.welcome-image-wrap { position: relative; }
.welcome-image-accent {
    position: absolute;
    bottom: -16px; right: -16px;
    width: 100%; height: 100%;
    border: 3px solid var(--gold);
    border-radius: 16px;
    z-index: 1;
    pointer-events: none;
}
.welcome-image-badge {
    position: absolute;
    bottom: 24px; left: -20px;
    background: var(--gold);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    z-index: 3;
}
.badge-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--green-dark); line-height: 1; }
.badge-txt { font-size: 0.78rem; font-weight: 600; color: var(--green-dark); line-height: 1.3; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; }
.feature-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--green-pale);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--green-mid);
}
.feature-txt h6 { font-size: 0.88rem; font-weight: 700; color: var(--green-dark); margin-bottom: 2px; }
.feature-txt span { font-size: 0.8rem; color: var(--text-light); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-green {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-dark); color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600; font-size: 0.88rem;
    text-decoration: none;
    transition: all .2s;
    border: none; cursor: pointer;
}
.btn-green:hover { background: var(--green-mid); color: white; transform: translateY(-2px); }
.btn-view-all {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--green-dark);
    font-weight: 600; font-size: 0.85rem;
    text-decoration: none;
    border: 1.5px solid var(--border);
    padding: 8px 18px;
    border-radius: 20px;
    transition: all .2s;
}
.btn-view-all:hover { background: var(--green-dark); color: white; border-color: var(--green-dark); }

/* ── EVENTS SECTION ──────────────────────────────────────────── */
.events-section { padding: 90px 0; background: var(--off-white); }
.event-card {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .2s;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.event-date-box {
    flex-shrink: 0;
    width: 56px; text-align: center;
    background: var(--green-dark);
    border-radius: var(--radius);
    padding: 10px 8px;
}
.event-day { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.event-month { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.event-year { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.45); }
.event-info { flex: 1; }
.event-category { font-size: 0.72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.event-title { font-weight: 600; color: var(--green-dark); font-size: 0.95rem; margin-bottom: 8px; }
.event-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.event-meta span { font-size: 0.8rem; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.event-meta a { font-size: 0.8rem; color: var(--green-mid); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 4px; }

/* Mini Calendar Widget */
.calendar-widget { background: var(--white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--green-dark); }
.cal-nav { background: none; border: 1px solid var(--border); border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-mid); transition: all .15s; }
.cal-nav:hover { background: var(--green-dark); color: white; border-color: var(--green-dark); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-name { font-size: 0.7rem; font-weight: 700; color: var(--text-light); text-align: center; padding: 4px 0; text-transform: uppercase; }
.cal-day { font-size: 0.78rem; text-align: center; padding: 6px 4px; border-radius: 6px; cursor: default; color: var(--text-mid); position: relative; }
.cal-day.today { background: var(--green-dark); color: white; font-weight: 700; border-radius: 50%; }
.cal-day.has-event::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.cal-day.other-month { color: #ccc; }

/* ── PRINCIPAL SECTION ───────────────────────────────────────── */
.principal-section { padding: 90px 0; background: var(--green-dark); }
.principal-inner { }
.principal-photo-placeholder {
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--gold);
}
.principal-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: white; font-weight: 700; }
.principal-role { font-size: 0.72rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.ayah-box { background: rgba(255,255,255,0.06); border-radius: var(--radius-lg); padding: 20px 16px; border: 1px solid rgba(201,162,39,0.2); }
.ayah-arabic { font-family: 'Amiri', serif; font-size: 1.6rem; color: var(--gold); direction: rtl; text-align: center; margin-bottom: 8px; }
.ayah-translation { font-size: 0.8rem; color: rgba(255,255,255,0.65); font-style: italic; text-align: center; }
.ayah-reference { font-size: 0.72rem; color: rgba(255,255,255,0.4); text-align: center; margin-top: 4px; }
.principal-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gold-light);
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin-bottom: 20px;
    line-height: 1.7;
}
.principal-message-text { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.8; margin-bottom: 16px; }

/* ── NEWS SECTION ────────────────────────────────────────────── */
.news-section { padding: 90px 0; background: var(--white); }
.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .25s;
    background: var(--white);
    display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-img { position: relative; }
.news-img-placeholder {
    height: 200px;
    background: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(255,255,255,0.25);
}
.news-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.news-tag {
    position: absolute; top: 14px; left: 14px;
    background: var(--gold); color: var(--green-dark);
    font-size: 0.72rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.news-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.78rem; color: var(--text-light); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.news-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--green-dark); line-height: 1.4; margin-bottom: 10px; }
.news-title a { text-decoration: none; color: inherit; transition: color .2s; }
.news-title a:hover { color: var(--green-mid); }
.news-excerpt { font-size: 0.85rem; color: var(--text-light); line-height: 1.65; flex: 1; margin-bottom: 14px; }
.news-read-more { font-size: 0.83rem; font-weight: 700; color: var(--green-mid); text-decoration: none; display: flex; align-items: center; gap: 5px; margin-top: auto; }
.news-read-more:hover { color: var(--gold); }

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonials-section { padding: 90px 0; background: var(--off-white); }
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { font-size: 0.88rem; color: var(--text-mid); line-height: 1.75; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; gap: 12px; align-items: center; }
.author-avatar {
    width: 44px; height: 44px;
    background: var(--green-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: var(--gold);
    flex-shrink: 0;
}
.author-name { font-weight: 700; color: var(--green-dark); font-size: 0.88rem; }
.author-role { font-size: 0.78rem; color: var(--text-light); }

/* ── CTA BAND ────────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--gold) 0%, #e0b93a 100%);
    padding: 70px 0;
    text-align: center;
}
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--green-dark); margin-bottom: 12px; }
.cta-band p { color: rgba(10,61,46,0.75); font-size: 1rem; margin-bottom: 32px; }
.btn-cta-dark {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-dark); color: white;
    padding: 14px 32px; border-radius: 30px;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none; margin: 6px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(10,61,46,0.25);
}
.btn-cta-dark:hover { background: var(--green-mid); color: white; transform: translateY(-2px); }
.btn-cta-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid var(--green-dark); color: var(--green-dark);
    padding: 12px 30px; border-radius: 30px;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none; margin: 6px;
    transition: all .2s;
}
.btn-cta-outline:hover { background: var(--green-dark); color: white; transform: translateY(-2px); }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-light) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='30,5 55,20 55,40 30,55 5,40 5,20' fill='none' stroke='rgba(201,162,39,0.07)' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}
.page-hero-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.83rem; }
.page-hero-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.45); font-size: 0.83rem; }
.page-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }
.page-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: white; margin: 0; position: relative; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer { background: var(--green-dark); }
.footer-top { padding: 64px 0 40px; }
.footer-logo-icon {
    width: 52px; height: 52px;
    background: rgba(201,162,39,0.15);
    border: 2px solid rgba(201,162,39,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Amiri', serif; font-size: 1.6rem; color: var(--gold);
}
.footer-school-name { font-family: 'Playfair Display', serif; font-size: 0.9rem; color: white; font-weight: 700; line-height: 1.3; }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 4px; }
.footer-about { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 0.9rem;
    text-decoration: none;
    transition: all .2s;
}
.social-link:hover { background: var(--gold); color: var(--green-dark); }
.footer-heading {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 0.83rem; color: rgba(255,255,255,0.55);
    text-decoration: none; display: flex; align-items: center; gap: 6px;
    transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-links i { font-size: 0.6rem; }
.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact-item > i { color: var(--gold); font-size: 0.95rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item span { font-size: 0.83rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
.footer-input {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-size: 0.85rem;
    margin-bottom: 8px;
    outline: none;
    transition: border-color .2s;
}
.footer-input:focus { border-color: var(--gold); }
.footer-input::placeholder { color: rgba(255,255,255,0.35); }
.btn-subscribe {
    width: 100%;
    background: var(--gold);
    color: var(--green-dark);
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s;
}
.btn-subscribe:hover { opacity: 0.85; }
.prayer-time-widget { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 14px; border: 1px solid rgba(255,255,255,0.08); }
.prayer-widget-title { font-size: 0.78rem; color: var(--gold); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.prayer-times-grid { display: flex; flex-direction: column; gap: 6px; }
.prayer-item { display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.6); padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-bottom { background: rgba(0,0,0,0.2); padding: 18px 0; }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px;
    background: var(--green-dark);
    color: white;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none;
    transition: all .3s;
    z-index: 1000;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--green-dark); transform: translateY(-3px); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hero-slide { height: 520px; }
    .main-navbar .nav-link { padding: 12px 16px !important; }
    .main-navbar .nav-link::after { display: none; }
    .welcome-image-badge { left: 0; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .hero-slide { height: 440px; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-item:last-child { border-bottom: none; }
    .topbar { display: none; }
    .footer-top { padding: 40px 0 20px; }
}
@media (max-width: 480px) {
    .hero-slide { height: 380px; }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
}
