/* ═══════════════════════════════════════════════════════════════
   Al Zuhra Academy — Articles Hub Layout CSS
   Shared header + footer styles for ALL pages under /articles/
   Load this file on EVERY article and blogs page.
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset for layout layer ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Root tokens ─────────────────────────────────────────────── */
:root {
    --az-primary:      #2bee6c;
    --az-primary-dark: #10b981;
    --az-navy:         #0f172a;
    --az-slate-600:    #475569;
    --az-slate-400:    #94a3b8;
    --az-glass-white:  rgba(255, 255, 255, 0.85);
    --az-nav-height:   72px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
   ══════════════════════════════════════════════════════════════ */

.az-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    height: var(--az-nav-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.06);
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
    padding: 0;
}

.az-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 40px -12px rgba(15, 23, 42, 0.12);
    border-bottom-color: rgba(16, 185, 129, 0.12);
}

.az-nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* ── Brand ──────────────────────────────────────────────────── */
.az-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    flex-shrink: 0;
}

.az-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.az-brand:hover .az-brand-logo {
    transform: scale(1.06);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.3);
}

.az-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.az-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.az-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--az-navy) !important;
    text-decoration: none !important;
}

.az-brand-sub {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--az-primary-dark);
    margin-top: 3px;
}

/* ── Desktop Nav Pill ───────────────────────────────────────── */
.az-nav-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
}

.az-nav-link {
    padding: 0.55rem 1.1rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--az-slate-600) !important;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.az-nav-link:hover {
    color: var(--az-navy) !important;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.az-nav-link.active {
    color: var(--az-navy) !important;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ── CTA Button ─────────────────────────────────────────────── */
.az-nav-cta {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 1.5rem;
    border-radius: 9999px;
    background: var(--az-navy);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.az-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.45);
    color: #ffffff !important;
}

/* ── Mobile Menu Button ─────────────────────────────────────── */
.az-mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.9);
    color: var(--az-slate-600);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.az-mobile-btn:hover {
    background: #fff;
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--az-navy);
}

.az-mobile-btn .material-symbols-outlined {
    font-size: 22px;
    font-variation-settings: 'FILL' 0, 'wght' 500;
}

/* ── Mobile Dropdown ────────────────────────────────────────── */
.az-mobile-dropdown {
    position: absolute;
    top: var(--az-nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 20px 60px -15px rgba(15, 23, 42, 0.15);
    z-index: 998;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.az-mobile-dropdown.open {
    max-height: 600px;
    opacity: 1;
}

.az-mobile-dropdown-inner {
    padding: 1.5rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.az-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-radius: 1rem;
    color: var(--az-navy) !important;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.az-mobile-link:hover {
    background: rgba(16, 185, 129, 0.06);
    transform: translateX(4px);
    color: var(--az-primary-dark) !important;
}

.az-mobile-link .material-symbols-outlined {
    font-size: 18px;
    color: var(--az-slate-400);
}

.az-mobile-divider {
    height: 1px;
    background: rgba(226, 232, 240, 0.6);
    margin: 0.75rem 0;
}

.az-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: var(--az-navy);
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.3);
    margin-top: 0.5rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .az-nav-pill { display: none; }
}

@media (max-width: 640px) {
    .az-nav-cta { display: none; }
}

@media (max-width: 1023px) {
    .az-mobile-btn { display: flex; }
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.az-footer {
    background: var(--az-navy);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3rem;
}

/* Ambient glow blobs */
.az-footer::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.az-footer::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(43, 238, 108, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.az-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.az-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem 2rem;
    margin-bottom: 4rem;
}

/* ── Brand column ───────────────────────────────────────────── */
.az-footer-brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.az-footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.az-footer-logo img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.az-footer-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
}

.az-footer-brand-tag {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--az-primary-dark);
    display: block;
    margin-top: 2px;
}

.az-footer-tagline {
    font-size: 0.9rem;
    color: var(--az-slate-400);
    line-height: 1.75;
    max-width: 300px;
    margin-bottom: 1.75rem;
    font-weight: 500;
}

/* Enquire button */
.az-footer-enquire {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 1.5rem;
    border-radius: 9999px;
    background: var(--az-primary);
    color: var(--az-navy) !important;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px -4px rgba(43, 238, 108, 0.35);
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.az-footer-enquire:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(43, 238, 108, 0.5);
    color: var(--az-navy) !important;
}

/* Social buttons */
.az-social-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.az-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.az-social-btn:hover {
    background: var(--az-primary);
    border-color: var(--az-primary);
    color: var(--az-navy) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -4px rgba(43, 238, 108, 0.4);
}

/* ── Nav columns ─────────────────────────────────────────────── */
.az-footer-col-title {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
}

.az-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.az-footer-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--az-slate-400) !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.az-footer-link:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

/* ── Status card ─────────────────────────────────────────────── */
.az-footer-status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.az-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--az-primary);
    box-shadow: 0 0 10px rgba(43, 238, 108, 0.6);
    animation: az-pulse 2s ease-in-out infinite;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

@keyframes az-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.az-status-label {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
}

.az-status-text {
    font-size: 0.75rem;
    color: var(--az-slate-400);
    font-weight: 500;
    line-height: 1.65;
    margin: 0.75rem 0 1.25rem;
}

.az-status-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--az-primary);
    text-decoration: none !important;
    transition: color 0.2s;
}

.az-status-apply:hover { color: #ffffff !important; }

.az-status-apply .material-symbols-outlined {
    font-size: 14px;
}

/* ── Footer bottom bar ─────────────────────────────────────── */
.az-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.az-footer-copy {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--az-slate-400);
}

.az-footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.az-footer-legal a {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--az-slate-400) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.az-footer-legal a:hover { color: #ffffff !important; }

.az-footer-badge {
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.2);
}

/* ── Footer responsive ────────────────────────────────────── */
@media (max-width: 1023px) {
    .az-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }
}

@media (max-width: 640px) {
    .az-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .az-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
