/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

/* --- Local Font Face --- */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('https://firebasestorage.googleapis.com/v0/b/madarishub-a0a3a.appspot.com/o/Jameel-Noori-Nastaleeq.woff2?alt=media&token=1b858547-8621-4f36-92a4-15a5281c3c97') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Use swap for better performance */
}

/* --- Root Variables --- */
:root {
    --bg-deep-dark: #020c1b;
    --bg-dark: #0a192f;
    --bg-medium: #112240;
    --accent-gold: #FFD700;
    --accent-cyan: #64ffda;
    --text-light: #ccd6f6;
    --text-muted: #8892b0;
    --white: #ffffff;
    --section-padding: 100px 0;
}

/* --- Base & Typography --- */
body {
    /* Primary font stack: Jameel Noori for Urdu, fallback to Noto Nastaliq, then generic Arabic, then serif */
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif;
    background-color: var(--bg-dark);
    color: var(--text-muted);
    line-height: 1.8;
    padding-top: 85px;
}

h1, h2, h3, h4, h5, h6 {
    /* Font stack for headings: Prioritize Urdu fonts, then Montserrat for English/numbers, then fallbacks */
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Montserrat', 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
    color: var(--text-light);
}

/* --- Utility Classes --- */
.montserrat-font {
    /* Force Montserrat font for specific elements like the logo */
    font-family: 'Montserrat', sans-serif;
}

.section { 
    padding: var(--section-padding); 
    position: relative; 
}

.section-title { 
    font-size: 2.8rem; 
    margin-bottom: 60px; 
    text-align: center; 
    position: relative; 
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

/* --- Header --- */
.navbar {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand { font-size: 1.8rem; font-weight: 800; }
.navbar-brand .logo-text-1 { color: var(--white); }
.navbar-brand .logo-text-2 { color: var(--accent-gold); }

.nav-link { 
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif; /* Ensure nav links also use Urdu font */
    color: var(--text-light) !important; 
    font-size: 1.2rem; /* Slightly larger for better readability */
    margin: 0 10px;
    padding: 8px 12px !important;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover, .nav-link.active { 
    color: var(--accent-gold) !important;
    background-color: rgba(255, 215, 0, 0.1);
}

.btn-register {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif; /* Ensure button uses Urdu font */
    background-color: var(--accent-gold);
    color: var(--bg-deep-dark) !important;
    font-weight: bold;
    border: 1px solid var(--accent-gold);
    border-radius: 25px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-register:hover {
    background-color: transparent;
    color: var(--accent-gold) !important;
    transform: scale(1.05);
}

/* --- Buttons --- */
.btn-primary-gold {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
    background-color: var(--accent-gold);
    color: var(--bg-deep-dark) !important;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.btn-primary-gold:hover {
    background-color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}


/* --- Footer --- */
.footer {
    background-color: var(--bg-deep-dark);
    color: var(--text-muted);
    padding: 80px 0 30px;
    border-top: 2px solid var(--accent-gold);
}

.footer .footer-brand {
     text-align: center;
     margin-bottom: 40px;
}

.footer-brand .navbar-brand { font-size: 2.2rem; }

.footer .footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 40px;
}

.footer .footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

.footer .social-icons { text-align: center; margin-bottom: 40px; }

.footer .social-icons a {
    color: var(--text-light);
    font-size: 1.6rem;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer .social-icons a:hover { color: var(--accent-gold); }

.footer .copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- PAGE SPECIFIC STYLES --- */

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.95)), url('https://images.pexels.com/photos/5926382/pexels-photo-5926382.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') center/cover no-repeat;
}

.hero h1 { 
    font-size: 3.8rem; 
    margin-bottom: 20px; 
    line-height: 1.4; 
}

.hero h1 .highlight { color: var(--accent-gold); }

.hero p { 
    font-size: 1.5rem; 
    max-width: 850px; 
    margin: 0 auto 40px auto; 
}

/* Icon Cards */
.icon-card {
    background-color: var(--bg-medium);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
}

.icon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-gold);
}

.icon-card .icon { font-size: 3.5rem; color: var(--accent-gold); margin-bottom: 25px; }
.icon-card h3 { font-size: 1.6rem; margin-bottom: 15px; color: var(--text-light); }

/* Image & Text Sections */
.image-text-section .img-fluid { 
    border-radius: 10px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.5); 
}

.image-text-section a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* How It Works Section */
.step-card {
    text-align: center;
}

.step-card .step-number {
    width: 60px;
    height: 60px;
    background-color: var(--bg-medium);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif; /* Numbers should be Montserrat */
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 2px solid var(--accent-gold);
}

.step-card h4 {
    font-size: 1.3rem;
    color: var(--text-light);
}

/* Testimonial Section */
.testimonial-card {
    background-color: var(--bg-medium);
    padding: 30px;
    border-radius: 10px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
}

.testimonial-card .author {
    font-weight: bold;
    color: var(--accent-gold);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--accent-gold), #ffd700);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--bg-deep-dark);
    font-size: 2.5rem;
}

.cta-section .btn-dark {
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Noto Sans Arabic', sans-serif;
    background-color: var(--bg-deep-dark);
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
}

/* Page Hero (for inner pages) */
.page-hero {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-deep-dark);
}

.page-hero h1 { font-size: 3.2rem; margin-bottom: 15px; }
.page-hero .lead { font-size: 1.3rem; }

/* About Page - Info Card */
.info-card {
    background-color: var(--bg-medium);
    padding: 40px;
    border-radius: 12px;
    height: 100%;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-gold);
}

.info-card .icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}
