:root {
    --navy-dark: #051628;  
    --navy-light: #0f3460; 
    --gold-primary: #c5a059; 
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #e6c88b 100%);
    --white: #ffffff;
}
body { font-family: 'Lato', sans-serif; background-color: var(--white); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; margin: 0; }

/* NAVBAR */
.navbar { background-color: var(--navy-dark); padding: 10px 0; }
.navbar-brand img { height: 70px; border-radius: 50%; border: 2px solid var(--gold-primary); }
.nav-link { color: var(--white) !important; margin: 0 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-link:hover { color: var(--gold-primary) !important; }
.btn-nav-gold { background: transparent; border: 1px solid var(--gold-primary); color: var(--gold-primary); border-radius: 20px; padding: 5px 20px; font-size: 0.9rem; transition: 0.3s; }
.btn-nav-gold:hover { background: var(--gold-primary); color: var(--navy-dark); }

/* BANNER */
.gold-banner {
    background: linear-gradient(90deg, #0a2340 0%, #163a63 50%, #0a2340 100%);
    background-size: 200% 200%; animation: gradientMove 5s ease infinite;
    color: var(--white); text-align: center; padding: 12px 0;
    border-top: 3px solid var(--gold-primary); border-bottom: 3px solid var(--gold-primary);
    font-family: 'Cinzel', serif; letter-spacing: 1px;
}
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.pulse-text { animation: pulse 2s infinite; color: #ffda85; font-weight: bold; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* FOOTER */
.footer-wave-container { width: 100%; overflow: hidden; line-height: 0; background-color: #fff; margin-top: auto; }
.footer { background-color: var(--navy-dark); color: var(--white); text-align: center; padding: 30px 0 20px 0; border-top: 4px solid var(--gold-primary); }

/* Additional Styles from DLA */
:root {
    --dla-gold: #c5a017;
    --dla-dark-blue: #0a2342;
    --dla-light-bg: #f8f9fa;
}

.islamic-pattern-bg {
    background-color: #fcfcfc;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5a017' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5 {
    font-family: 'Cinzel', serif;
    color: var(--dla-dark-blue);
    font-weight: 700;
}

/* HERO SECTION WITH BACKGROUND SLIDESHOW */
.hero-section {
    position: relative;
    color: white;
    padding: 200px 0 150px;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    opacity: 0;
    animation: slideShow 18s infinite;
}

.slide-1 { background-image: url('/media/css/hero-haram.png'); animation-delay: 0s; }
.slide-2 { background-image: url('/media/css/hero-kaaba.jpg'); animation-delay: 6s; }
.slide-3 { background-image: url('/media/css/hero-madina.jpg'); animation-delay: 12s; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 66, 0.30);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    38% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

#quote-container {
    min-height: 140px;
    margin-bottom: 20px;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}
.arabic-quote {
    font-family: 'Amiri', serif;
    font-size: 3rem;
    color: var(--dla-gold);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    line-height: 1.4;
}
.quote-ref {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #ccc;
    margin-top: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.fade-out {
    opacity: 0 !important;
}

.btn-dla-gold {
    background: linear-gradient(to bottom, #d4af37, #c5a017);
    color: var(--dla-dark-blue);
    padding: 15px 40px;
    font-weight: 700;
    border: 1px solid #fff;
    box-shadow: 0 5px 15px rgba(197, 160, 23, 0.4);
    transition: all 0.3s ease;
}
.btn-dla-gold:hover {
    background: #fff;
    color: var(--dla-dark-blue);
    transform: translateY(-3px);
}

.btn-dla-outline {
    background: transparent;
    color: #fff;
    padding: 15px 40px;
    font-weight: 700;
    border: 2px solid var(--dla-gold);
    transition: all 0.3s ease;
}
.btn-dla-outline:hover {
    background: var(--dla-gold);
    color: var(--dla-dark-blue);
    transform: translateY(-3px);
}

/* HOVER POPUP FEATURE CARDS */
.feature-card-wrapper {
    position: relative;
    height: 100%;
    perspective: 1000px;
}
.feature-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    border-bottom: 4px solid var(--dla-gold);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.feature-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dla-dark-blue);
    color: white;
    padding: 25px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
    border-radius: 8px;
    overflow: hidden;
    transform: translateY(20px);
    font-size: 0.95rem;
    border-bottom: 4px solid var(--dla-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature-card-wrapper:hover .feature-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.feature-icon {
    font-size: 3.5rem;
    color: var(--dla-gold);
    margin-bottom: 25px;
}
.text-gold {
    color: var(--dla-gold);
}

/* Faculty Auto-Scroller */
.faculty-scroll-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}
.faculty-list {
    animation: scrollUp 20s linear infinite;
}
.faculty-list:hover {
    animation-play-state: paused;
}
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-70%); }
}
.faculty-item {
    padding: 3px 0;
    font-size: 0.85rem;
    border-bottom: 1px dashed rgba(197, 160, 23, 0.3);
}

/* Stats Counter */
.stats-section {
    background: var(--dla-dark-blue);
    color: white;
    padding: 80px 0;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dla-gold);
    font-family: 'Cinzel', serif;
}

/* MEDIA TABS */
.nav-tabs {
    border-bottom: none;
    justify-content: center;
    gap: 15px;
}
.nav-tabs .nav-link {
    background-color: #e9ecef;
    color: #0a2342;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border: 1px solid #dee2e6;
    padding: 12px 25px;
    transition: all 0.3s ease;
    border-radius: 5px;
    opacity: 1;
}
.nav-tabs .nav-link:hover {
    background-color: #dfe6ed;
    color: var(--dla-gold);
}
.nav-tabs .nav-link.active {
    background-color: var(--dla-gold) !important;
    color: var(--dla-dark-blue) !important;
    border-color: var(--dla-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.tab-content {
    background: white;
    padding: 40px;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 10px;
    margin-top: 25px;
}
.media-image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}
.roman-urdu-box {
    background-color: #fdf8e4;
    padding: 20px;
    border-left: 4px solid var(--dla-gold);
    border-radius: 5px;
    margin-top: 20px;
    font-family: 'Verdana', sans-serif;
    font-size: 0.9rem;
}
.section-padding { padding: 100px 0; }

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(10, 35, 66, 0.95), rgba(10, 35, 66, 0.95)), url('https://images.unsplash.com/photo-1565552629477-ff1459a9a302?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-align: center;
}
.cta-links a {
    color: var(--dla-gold);
    text-decoration: none;
    border-bottom: 1px dashed var(--dla-gold);
    transition: 0.3s;
}
.cta-links a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* WHATSAPP BUTTON STYLES */
.whatsapp-btn-large {
    display: inline-block;
    background-color: #25D366;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    margin-top: 30px;
}
.whatsapp-btn-large:hover {
    background-color: #128C7E;
    transform: scale(1.05);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}