@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Variables */
    --clr-primary: #064e3b; 
    --clr-secondary: #eab308; 
    --clr-accent-1: #0d9488; 
    --clr-accent-2: #be123c; 
    --clr-accent-3: #4f46e5; /* Indigo */
    --clr-accent-4: #db2777; /* Pink */
    
    --clr-light: #f8fafc;
    --clr-bg-1: #ecfdf5; /* Light Green Tint */
    --clr-bg-2: #f0fdf4; /* Light Minty Green */
    --clr-bg-3: #fffbeb; /* Light Gold */
    --clr-bg-4: #fdf2f8; /* Light Pink */
    --clr-bg-5: #f0fdfa; /* Light Teal Tint */
    
    --clr-dark: #022c22;
    --clr-text-main: #0f172a;
    --clr-text-muted: #475569;
    --clr-white: #ffffff;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 25px rgba(0,0,0,0.15);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-medium);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--clr-secondary), var(--clr-accent-1));
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-title p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-dark));
    color: var(--clr-white);
    border: none;
    box-shadow: 0 4px 15px rgba(10, 25, 71, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--clr-dark), var(--clr-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 25, 71, 0.3);
}

.btn-secondary {
    background-color: var(--clr-secondary);
    color: var(--clr-primary);
}

.btn-secondary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('../images/header-bg.jpg') center/cover;
    padding: 120px 0 80px;
    text-align: center;
    color: var(--clr-white);
}

.page-header-content h1 {
    font-size: 3.5rem;
    color: var(--clr-white);
    margin-bottom: 15px;
    font-weight: 800;
}

.page-header-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.header-breadcrumb a {
    color: var(--clr-secondary);
}

.header-breadcrumb i {
    font-size: 0.7rem;
}

/* =====================================================
   TICKER STRIP — shared by custom-top-bar
   ===================================================== */

/* Old .ticker-viewport removed — replaced by .custom-ticker-viewport */

/* ── Strip — holds two copies, scrolls left ── */
.ticker-strip {
    display: inline-flex;         /* inline so it won't wrap */
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 50s linear infinite;
    will-change: transform;
}
.ticker-strip:hover { animation-play-state: paused; }

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Inner copy ── */
.ticker-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* ── Each item ── */
.t-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 4px;
    white-space: nowrap;
    font-size: 0.87rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: filter 0.2s;
}
.t-item:hover { filter: brightness(1.2); }

.t-icon {
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.t-text {
    letter-spacing: 0.1px;
}

/* ── Diamond separator ── */
.t-sep {
    display: inline-block;
    margin: 0 18px;
    font-size: 0.55rem;
    color: #a78bfa;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Old .ticker-date and mobile ticker tweaks removed */



/* Professional Header — kept for .main-header wrapper only */
.main-header {
    background: var(--clr-white);
    width: 100%;
    z-index: 1000;
}

/* Old header/nav rules removed — new design uses .custom-* classes */

.contact-diagonal {
    display: none; /* No longer needed with the pill layout */
}

.nav-flex::after {
    display: none; /* No longer needed */
}

.contact-info {
    display: flex;
    align-items: center;
    color: var(--clr-white);
    z-index: 2;
    height: 100%;
}

.phone-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-wrapper i {
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

.phone-numbers-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-numbers-row a {
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.phone-numbers-row a:hover {
    color: var(--clr-secondary);
    transform: scale(1.05);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Dropdown */
/* ── Each nav item must be the anchor point for its own dropdown ── */
.nav-links li {
    position: relative; /* Critical: dropdown aligns to THIS li, not the ul */
    list-style: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px); /* drops just below the pill button */
    left: 50%;             /* horizontally centered under the pill */
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 200px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-radius: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    padding: 10px 0;
    z-index: 9999;
    border: 1px solid rgba(0,0,0,0.06);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
    padding: 0 10px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--clr-text-main);
    font-size: 0.95rem;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: linear-gradient(to right, rgba(255, 193, 7, 0.1), rgba(0, 128, 128, 0.1));
    color: var(--clr-primary);
    padding-left: 20px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-primary);
    cursor: pointer;
}

@media (max-width: 992px) {
    .header-top {
        padding: 10px 0;
    }
    .logo img { height: 60px; }
    .logo-text h1 { font-size: 1.5rem; }
    
    .nav-flex:not(.custom-nav-bar .nav-flex) { padding: 10px 20px; }
    /* Only hide .main-nav in the OLD header layout, not .custom-nav-bar */
    header:not(.main-header) .main-nav { display: none; }
    .contact-bar { display: none; }
    .nav-flex::after { display: none; }
    
    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Footer */
footer {
    background-color: var(--clr-primary);
    color: var(--clr-light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--clr-white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* --- Professional Main Footer --- */
.main-footer {
    background-color: #0b0f17;
    color: #f8fafc;
    padding-top: 80px;
    font-family: var(--font-body);
}

.footer-top {
    padding-bottom: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.footer-col {
    min-width: 0;
}

.footer-col h4.col-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-col h4.col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 100%;
}

.footer-logo img {
    height: 80px !important;
    width: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    background: #fff !important;
    padding: 5px !important;
    border: 2px solid #fbbf24 !important;
    display: block !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4) !important;
}

.footer-logo i {
    font-size: 2.5rem;
    color: #fbbf24;
}

.footer-logo h3 {
    font-size: 1.35rem;
    margin: 0;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.about-col {
    display: flex;
    flex-direction: column;
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.7);
    margin-top: 15px;
    margin-bottom: 25px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #f8fafc;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    transform: translateY(-5px);
    color: #0b0f17;
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.social-icon.fb:hover { background: #fbbf24; }
.social-icon.insta:hover { background: #fbbf24; }
.social-icon.tw:hover { background: #fbbf24; }
.social-icon.yt:hover { background: #fbbf24; }

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(248, 250, 252, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.7rem;
    color: #fbbf24;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.2rem;
    color: #fbbf24;
    margin-top: 5px;
}

.contact-item p {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.7);
    margin: 0;
    line-height: 1.5;
}

.footer-map {
    height: 150px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer Bottom */
.footer-bottom {
    background: #070a10;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(248,250,252,0.5);
    margin: 0;
}

.dev-link {
    font-size: 0.9rem;
    color: rgba(248,250,252,0.5);
    margin: 0;
}

.dev-link a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 992px) {
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .bottom-flex { flex-direction: column; text-align: center; gap: 15px; }
    .main-footer { padding-top: 60px; }
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: var(--clr-white);
}

.course-icon {
    font-size: 3rem;
    color: var(--clr-primary);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.5s ease;
}

.course-card:hover .course-icon {
    transform: rotateY(360deg);
}

.social-icons a:hover {
    background: var(--clr-secondary);
    color: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.1);
}

/* --- Quick Links Section — Premium Animated Glassmorphism --- */
.quick-links-section {
    position: relative;
    z-index: 100;
    margin-top: -55px;
    padding: 0 5%;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Base Card ── */
.ql-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    isolation: isolate;
}

/* ── Color Themes ── */
.ql-card[data-color="crimson"] {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 40%, #dc2626 100%);
    box-shadow: 0 8px 32px rgba(185, 28, 28, 0.35);
}
.ql-card[data-color="amber"] {
    background: linear-gradient(135deg, #78350f 0%, #d97706 40%, #f59e0b 100%);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.35);
}
.ql-card[data-color="emerald"] {
    background: linear-gradient(135deg, #064e3b 0%, #059669 40%, #10b981 100%);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.35);
}

/* ── Hover Effects ── */
.ql-card:hover {
    transform: translateY(-12px) scale(1.02);
}
.ql-card[data-color="crimson"]:hover {
    box-shadow: 0 20px 60px rgba(185, 28, 28, 0.5), 0 0 40px rgba(220, 38, 38, 0.2);
}
.ql-card[data-color="amber"]:hover {
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.5), 0 0 40px rgba(245, 158, 11, 0.2);
}
.ql-card[data-color="emerald"]:hover {
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.5), 0 0 40px rgba(16, 185, 129, 0.2);
}

/* ── Animated Glow Orb ── */
.ql-card-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: -40px;
    right: -40px;
    background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
    animation: ql-glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ql-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ── Floating Particles ── */
.ql-card-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.ql-card-particles span {
    position: absolute;
    display: block;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: ql-float-up linear infinite;
}
.ql-card-particles span:nth-child(1) {
    left: 10%; width: 5px; height: 5px;
    animation-duration: 7s; animation-delay: 0s;
    bottom: -10px;
}
.ql-card-particles span:nth-child(2) {
    left: 30%; width: 8px; height: 8px;
    animation-duration: 5s; animation-delay: 1s;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.12);
}
.ql-card-particles span:nth-child(3) {
    left: 55%; width: 4px; height: 4px;
    animation-duration: 9s; animation-delay: 2s;
    bottom: -10px;
}
.ql-card-particles span:nth-child(4) {
    left: 75%; width: 7px; height: 7px;
    animation-duration: 6s; animation-delay: 0.5s;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.15);
}
.ql-card-particles span:nth-child(5) {
    left: 90%; width: 5px; height: 5px;
    animation-duration: 8s; animation-delay: 3s;
    bottom: -10px;
}

@keyframes ql-float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% {
        transform: translateY(-200px) rotate(720deg);
        opacity: 0;
    }
}

/* ── Card Inner Layout ── */
.ql-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 38px 32px;
}

/* ── Icon Wrapper with Animated Ring ── */
.ql-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.4s, background 0.4s;
}
.ql-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: ql-ring-spin 8s linear infinite;
    border-top-color: transparent;
    border-bottom-color: transparent;
}
.ql-card:hover .ql-icon-wrap {
    transform: scale(1.12) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}
@keyframes ql-ring-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ql-icon-wrap i {
    font-size: 1.6rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* ── Text Content ── */
.ql-card-content {
    flex: 1;
    min-width: 0;
}
.ql-card-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
    line-height: 1.25;
}
.ql-card-content p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.45;
}

/* ── Arrow Indicator ── */
.ql-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.35s;
    opacity: 0;
    transform: translateX(-10px);
}
.ql-arrow i {
    font-size: 0.85rem;
    color: #ffffff;
}
.ql-card:hover .ql-arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 255, 255, 0.22);
}

/* ── Shimmer line on top border ── */
.ql-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    background-size: 200% 100%;
    animation: ql-shimmer 3s ease-in-out infinite;
    z-index: 2;
}
@keyframes ql-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .quick-links-section {
        margin-top: 0;
        padding: 20px 4%;
    }
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ql-card-inner {
        padding: 28px 24px;
    }
}

/* =====================================================
   🎨 NEW AL-AQSA CUSTOM HEADER DESIGN
   ===================================================== */
.custom-top-bar {
    display: flex;
    align-items: center;
    background: #f1b80d;
    height: 40px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid #c8102e;
}
.latest-news-badge {
    background: #c8102e;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px 0 15px;
    font-weight: 700;
    font-size: 0.88rem;
    position: relative;
    z-index: 10;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
    white-space: nowrap;
}
.custom-ticker-viewport {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}
.top-bar-socials {
    background: #c8102e;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    margin-left: auto;
}
.top-bar-socials a {
    color: #fff;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.top-bar-socials a:hover {
    opacity: 0.8;
}

.custom-branding-row {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}
.custom-branding-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}
.custom-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.custom-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}
.custom-logo-seal {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #064e3b;
    border: 3px double #ffffff;
    outline: 3px solid #064e3b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.custom-logo-text {
    display: flex;
    flex-direction: column;
}
.custom-logo-text h1 {
    color: #064e3b;
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    font-family: inherit;
}
.custom-logo-text h2 {
    color: #064e3b;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2px 0 0 0;
    line-height: 1.1;
}
.custom-logo-text h3 {
    color: #333333;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 3px 0 0 0;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.custom-contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
}
.contact-info-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info-block .icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}
.whatsapp-circle { background: #25d366; }
.email-circle { background: #c8102e; }
.info-text {
    display: flex;
    flex-direction: column;
}
.info-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}
.info-value {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 700;
    text-decoration: none;
}
.info-value:hover {
    color: #c8102e;
}

.header-prospectus-blink {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #c8102e 0%, #a50a22 100%);
    text-decoration: none;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(200, 16, 46, 0.2);
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.header-prospectus-blink:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
}

/* Pulsing Outer Wave */
.header-prospectus-blink::after {
    content: '';
    position: absolute;
    top: -2.5px;
    left: -2.5px;
    right: -2.5px;
    bottom: -2.5px;
    border: 1.5px solid #c8102e;
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    animation: prospectusPulseShape 1.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Pulsing Green Dot */
.header-prospectus-blink .pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #22c55e;
    animation: dotPulse 1.2s ease-in-out infinite alternate;
}

@keyframes prospectusPulseShape {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        opacity: 0.45;
    }
    100% {
        transform: scale(1.08);
        opacity: 0;
    }
}

@keyframes dotPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.custom-nav-bar {
    background: #c8102e;
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.custom-nav-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
}
.custom-nav-bar .nav-flex {
    display: flex;
    align-items: center;
    height: 100%;
}
.custom-nav-bar .menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}
.custom-nav-bar .main-nav {
    width: 100%;
    height: 100%;
}
.custom-nav-bar .custom-nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}
.custom-nav-bar .custom-nav-links > li {
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.25);
}
.custom-nav-bar .custom-nav-links > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 0 20px;
    font-weight: 600;
    font-size: 0.9rem;
    height: 100%;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.custom-nav-bar .custom-nav-links > li > a:hover {
    background: rgba(255, 255, 255, 0.12);
}
.custom-nav-bar .custom-nav-links > li.home-link-li {
    background: #f1b80d;
}
.custom-nav-bar .custom-nav-links > li.home-link-li > a {
    color: #000;
    padding: 0 22px;
}
.custom-nav-bar .custom-nav-links > li.home-link-li > a:hover {
    background: #e0aa0b;
}

/* Dropdown styling */
.custom-nav-bar .custom-nav-links li.dropdown {
    position: relative;
}
.custom-nav-bar .custom-nav-links li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-nav-bar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000;
}
.custom-nav-bar .dropdown-menu li {
    width: 100%;
}
.custom-nav-bar .dropdown-menu li a {
    color: #333333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.custom-nav-bar .dropdown-menu li a:hover {
    background: #f8fafc;
    color: #c8102e;
}

/* =====================================================
   📱 MOBILE RESPONSIVE HEADER
   ===================================================== */

/* ── Tablet & below (≤992px) ── */
@media (max-width: 992px) {
    /* Branding Row */
    .custom-branding-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px 15px;
    }
    .custom-logo-area {
        flex-direction: column;
    }
    .custom-logo-text {
        align-items: center;
    }
    .custom-logo-text h1 {
        font-size: 1.4rem;
    }
    .custom-logo-text h2 {
        font-size: 1.05rem;
    }
    .custom-contact-info {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 30px;
        width: 100%;
        margin-top: 12px;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }
    .contact-info-block .icon-circle {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }
    .info-label {
        font-size: 0.68rem;
    }
    .info-value {
        font-size: 0.82rem;
    }

    /* Nav Bar - show hamburger */
    .custom-nav-bar {
        height: auto;
        min-height: 48px;
        padding: 0;
    }
    .custom-nav-bar .nav-flex {
        flex-wrap: wrap;
        padding: 0 15px;
        min-height: 48px;
    }
    .custom-nav-bar .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        color: #fff;
        font-size: 1.4rem;
        cursor: pointer;
        border-radius: 8px;
        transition: background 0.2s ease;
        z-index: 10;
    }
    .custom-nav-bar .menu-toggle:hover {
        background: rgba(255,255,255,0.15);
    }
    .custom-nav-bar .menu-toggle.is-active {
        background: rgba(255,255,255,0.2);
    }

    /* Main Nav - hidden by default, slide down when open */
    .custom-nav-bar .main-nav {
        display: none;
        width: 100%;
        order: 2;
        overflow: visible;
    }
    .custom-nav-bar .main-nav.mobile-open {
        display: block !important;
        animation: navSlideDown 0.3s ease forwards;
    }

    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Nav links - vertical stack */
    .custom-nav-bar .custom-nav-links {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 8px 0 12px 0;
        gap: 2px;
    }
    .custom-nav-bar .custom-nav-links > li {
        border-right: none;
        height: auto;
        width: 100%;
    }
    .custom-nav-bar .custom-nav-links > li > a {
        padding: 12px 20px;
        font-size: 0.92rem;
        height: auto;
        color: #fff;
        border-radius: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        transition: background 0.2s ease;
    }
    .custom-nav-bar .custom-nav-links > li > a:hover {
        background: rgba(255,255,255,0.1);
    }
    .custom-nav-bar .custom-nav-links > li:last-child > a {
        border-bottom: none;
    }

    /* Home link mobile */
    .custom-nav-bar .custom-nav-links > li.home-link-li {
        background: transparent;
    }
    .custom-nav-bar .custom-nav-links > li.home-link-li > a {
        background: rgba(241, 184, 13, 0.15);
        color: #f1b80d;
    }
    .custom-nav-bar .custom-nav-links > li.home-link-li > a:hover {
        background: rgba(241, 184, 13, 0.25);
    }

    /* Login buttons on mobile - full width, stacked */
    .custom-nav-bar .custom-nav-links > li > a[style*="background: linear-gradient"] {
        margin: 4px 15px !important;
        border-radius: 8px !important;
        justify-content: center;
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
    }

    /* Dropdown menu on mobile */
    .custom-nav-bar .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none;
        background: rgba(0, 0, 0, 0.15);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 100%;
        margin: 0;
    }
    .custom-nav-bar .custom-nav-links li.dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }
    .custom-nav-bar .custom-nav-links li.dropdown.mobile-dropdown-open .dropdown-menu {
        display: block;
        animation: navSlideDown 0.25s ease forwards;
    }
    .custom-nav-bar .dropdown-menu li a {
        color: rgba(255,255,255,0.85);
        padding: 11px 20px 11px 40px;
        font-size: 0.85rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .custom-nav-bar .dropdown-menu li a:hover {
        background: rgba(255,255,255,0.08);
        color: #f1b80d;
    }

    /* Dropdown chevron rotation */
    .custom-nav-bar .custom-nav-links li.dropdown > a > i.fa-chevron-down {
        transition: transform 0.3s ease;
        margin-left: auto !important;
    }
    .custom-nav-bar .custom-nav-links li.dropdown.mobile-dropdown-open > a > i.fa-chevron-down {
        transform: rotate(180deg);
    }
}

/* ── Small phones (≤600px) ── */
@media (max-width: 600px) {
    .custom-branding-row {
        padding: 10px 0;
    }
    .custom-logo-img {
        height: 55px;
    }
    .custom-logo-text h1 {
        font-size: 1.2rem;
    }
    .custom-logo-text h2 {
        font-size: 0.95rem;
    }
    .custom-logo-text h3 {
        font-size: 0.7rem;
    }
    .custom-contact-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        border-top: 1px solid #f1f5f9;
        padding-top: 10px;
        margin-top: 8px;
    }
    .contact-info-block {
        width: 100%;
        max-width: 290px;
        justify-content: flex-start;
    }
    .latest-news-badge {
        font-size: 0.75rem;
        padding: 0 12px 0 8px;
    }
    .custom-top-bar {
        height: 34px;
    }
}
