/* includes/assets/css/style.css */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cinzel:wght@400;500;600;700;800;900&family=Noto+Nastaliq+Urdu:wght@400;700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

/* --- Design Tokens / CSS Variables --- */
:root {
    --primary: #4A4A00;          /* Deep Olive Green */
    --primary-rgb: 74, 74, 0;
    --secondary: #D4AF37;        /* Luxury Gold */
    --secondary-rgb: 212, 175, 55;
    --bg-light: #F8F6EE;         /* Ivory White */
    --bg-dark: #1E1E02;          /* Luxury Dark Olive for Footer / Dark mode elements */
    --accent: #E8C766;           /* Soft Gold */
    --text-dark: #1A1A1A;        /* Charcoal Black */
    --text-muted: #6E6E6E;       /* Warm Gray */
    --white: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
    --border-gold: 1px solid rgba(212, 175, 55, 0.3);
    --border-light: 1px solid rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Poppins', sans-serif;
    --font-arabic: 'Urdu Typesetting', 'Amiri', serif;
    --font-urdu: 'Urdu Typesetting', 'Noto Nastaliq Urdu', serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Selection */
::selection {
    background-color: var(--secondary);
    color: var(--bg-dark);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: 2px solid var(--bg-light);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* --- Islamic Repeating Pattern Overlay --- */
.pattern-bg {
    position: relative;
}
.pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z M30 10 L50 30 L30 50 L10 30 Z M30 20 L40 30 L30 40 L20 30 Z' fill='%234a4a00' fill-opacity='0.02' stroke='%23d4af37' stroke-opacity='0.04' stroke-width='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Ensure content goes above background pattern */
.pattern-bg > * {
    position: relative;
    z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
}

p {
    color: var(--text-muted);
}

.arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.8rem;
    line-height: 2.2;
    direction: rtl;
    color: var(--primary);
}

.urdu-text {
    font-family: var(--font-urdu);
    font-size: 1.5rem;
    line-height: 2.5;
    direction: rtl;
}

/* --- Typography Helper Classes --- */
.text-center { text-align: center; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '❖';
    display: block;
    font-size: 1.2rem;
    color: var(--secondary);
    margin-top: 5px;
}
.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* --- Layout Container --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-gold-outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}
.btn-gold-outline:hover {
    background: var(--secondary);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* --- Glassmorphism --- */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-gold);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition-smooth);
}
.glass-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}

/* --- Header / Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(248, 246, 238, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    font-size: 1.8rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.logo-tag {
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--secondary);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-smooth);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--secondary);
    transition: var(--transition-smooth);
}
.nav-link:hover {
    color: var(--secondary);
}
.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px 0;
    background: linear-gradient(185deg, rgba(30, 30, 2, 0.88) 0%, rgba(48, 48, 0, 0.88) 60%, rgba(30, 30, 2, 0.88) 100%), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='%23d4af37' fill-opacity='0.02' stroke='%23d4af37' stroke-opacity='0.05' stroke-width='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-mosque-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' fill='%230f0f00' fill-opacity='0.4'%3E%3Cpath d='M0,224L120,208C240,192,480,160,720,160C960,160,1200,192,1320,208L1440,224L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 span {
    color: var(--secondary);
    display: block;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-premium-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: rgba(212, 175, 55, 0.15);
    border: var(--border-gold);
    backdrop-filter: blur(8px);
    padding: 15px;
    border-radius: 50%;
    color: var(--secondary);
    animation: float 6s ease-in-out infinite alternate;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(3deg); }
}

.hero-main-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
    animation: float 5s ease-in-out infinite alternate;
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-decoration: none;
}
.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--secondary);
    border-radius: 20px;
    margin-top: 10px;
    position: relative;
}
.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel-anim 1.5s ease-in-out infinite;
}
@keyframes scroll-wheel-anim {
    0% { top: 8px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* --- Why Choose Us Section --- */
.why-choose {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.grid-3x2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border: var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.4);
}
.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(74, 74, 0, 0.05);
    border: var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}
.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* --- About Us Brief Section --- */
.about-brief {
    padding: 100px 0;
    background-color: var(--white);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-brief-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.about-brief-text p {
    margin-bottom: 20px;
}

.about-brief-timeline {
    margin-top: 35px;
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.about-brief-img-wrapper {
    position: relative;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    padding: 15px;
}
.about-brief-img {
    width: 100%;
    border-radius: var(--radius-md);
    display: block;
}

/* --- Featured Courses --- */
.featured-courses-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.4);
}

.course-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    border: 1px solid var(--secondary);
    z-index: 2;
}

.course-card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.course-card:hover .course-card-img {
    transform: scale(1.1);
}

.course-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.course-meta i {
    color: var(--secondary);
}

.course-btn {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: var(--primary);
    border: var(--border-gold);
    padding: 10px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.course-card:hover .course-btn {
    background-color: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* --- Teachers Section --- */
.teachers-section {
    padding: 100px 0;
    background-color: var(--white);
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.teacher-card {
    background: var(--bg-light);
    border: var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    transition: var(--transition-smooth);
}
.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--secondary);
}

.teacher-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.teacher-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.teacher-card:hover .teacher-img {
    transform: scale(1.05);
}

.teacher-socials {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(0deg, rgba(74,74,0,0.85), transparent);
    padding: 15px 0;
    transition: var(--transition-smooth);
}
.teacher-card:hover .teacher-socials {
    bottom: 0;
}
.teacher-socials a {
    color: var(--secondary);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}
.teacher-socials a:hover {
    color: var(--white);
    transform: scale(1.2);
}

.teacher-info {
    padding: 25px;
}
.teacher-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.teacher-info .qualification {
    font-size: 0.8rem;
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 10px;
}
.teacher-info .exp {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.teacher-lang {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--primary);
    background-color: rgba(74,74,0,0.05);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* --- Learning Process --- */
.process-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.process-step {
    text-align: center;
    position: relative;
}
.process-step::after {
    content: '➔';
    position: absolute;
    top: 35px;
    right: -30px;
    font-size: 1.5rem;
    color: var(--secondary);
    opacity: 0.5;
}
.process-step:last-child::after {
    display: none;
}

.process-num {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
}
.process-step:hover .process-num {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--secondary);
}

/* --- Dashboard Preview / SaaS Section --- */
.dashboard-preview {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden;
}

.dashboard-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.dashboard-showcase-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.dashboard-features-list {
    margin-top: 30px;
    list-style: none;
}
.dashboard-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}
.dashboard-features-list i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.dashboard-mockup-wrapper {
    position: relative;
}
.dashboard-mockup {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: var(--border-gold);
}
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.85rem;
}
.float-1 {
    top: 15%;
    left: -40px;
    animation: float 4s ease-in-out infinite alternate;
}
.float-2 {
    bottom: 15%;
    right: -30px;
    animation: float 5s ease-in-out infinite alternate 1s;
}

/* --- Academy Statistics --- */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), #303000);
    color: var(--white);
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 10px;
}
.stat-item p {
    color: rgba(255,255,255,0.8);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonials-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-md);
}

.testimonial-slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    padding: 20px;
}

.testimonial-card-premium {
    background-color: var(--white);
    border: var(--border-gold);
    border-radius: var(--radius-md);
    padding: 50px 40px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.testimonial-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
}
.testimonial-quote::before, .testimonial-quote::after {
    content: '"';
    font-size: 4rem;
    color: rgba(212,175,55,0.15);
    position: absolute;
    line-height: 1;
}
.testimonial-quote::before { top: -20px; left: -20px; }
.testimonial-quote::after { bottom: -40px; right: -20px; }

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid var(--secondary);
}
.author-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(74, 74, 0, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.indicator-dot.active {
    background-color: var(--secondary);
    transform: scale(1.2);
}

/* --- Pricing Plans --- */
.pricing-section {
    padding: 100px 0;
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-light);
    border: var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.pricing-card.premium-plan {
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-gold);
    background-color: var(--white);
}
.pricing-card.premium-plan::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--primary);
    padding: 5px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border-radius: 20px;
}

.plan-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.8rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 25px;
}
.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    flex-grow: 1;
}
.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-features li i {
    color: var(--secondary);
}

/* --- Free Trial Registration CTA --- */
.trial-cta-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, rgba(212,175,55,0.08) 100%);
}

.trial-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.trial-cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}
.trial-cta-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}
.trust-badge i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Forms System */
.premium-form {
    background-color: var(--white);
    border: var(--border-gold);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}
.form-control {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-smooth);
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}
textarea.form-control {
    border-radius: var(--radius-sm);
    resize: none;
}

.form-submit-btn {
    width: 100%;
    margin-top: 10px;
}

.form-message {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
    font-size: 0.85rem;
}
.form-message.success {
    background-color: rgba(46, 139, 87, 0.1);
    color: #2E8B57;
    border: 1px solid #2E8B57;
    display: block;
}
.form-message.error {
    background-color: rgba(139, 0, 0, 0.1);
    color: #8B0000;
    border: 1px solid #8B0000;
    display: block;
}

/* --- Blog Section --- */
.blog-section {
    padding: 100px 0;
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-light);
    border: var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: var(--secondary);
}

.blog-img-wrapper {
    height: 220px;
    overflow: hidden;
}
.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-content {
    padding: 30px;
}
.blog-category {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.blog-content h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 15px;
}
.blog-content h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.blog-content h3 a:hover {
    color: var(--secondary);
}
.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.faq-wrapper {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border: var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
}

.faq-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}
.faq-header h3 {
    font-size: 0.95rem;
    color: var(--primary);
}
.faq-icon {
    font-size: 0.8rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(248, 246, 238, 0.3);
}
.faq-body-content {
    padding: 20px 25px;
    border-top: 1px solid rgba(0,0,0,0.03);
    color: var(--text-muted);
}

.faq-item.active .faq-body {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* --- Contact Page / Section --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card-premium {
    background-color: var(--bg-light);
    border: var(--border-gold);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-smooth);
}
.contact-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}
.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.contact-card-details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}
.contact-card-details p {
    font-size: 0.85rem;
}
.contact-card-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.map-simulation {
    width: 100%;
    height: 250px;
    background-color: #e5e3df;
    border-radius: var(--radius-md);
    margin-top: 30px;
    border: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}
.map-marker {
    color: var(--secondary);
    font-size: 2.5rem;
    animation: float 2s ease-in-out infinite alternate;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
    position: relative;
}

/* Footer Geometric Divider */
.footer-divider {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark);
    border: var(--border-gold);
    color: var(--secondary);
    padding: 5px 25px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    border-radius: 30px;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-about .logo-text {
    color: var(--white);
}
.footer-about p {
    color: rgba(255,255,255,0.6);
    margin: 20px 0;
}

.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.footer-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    text-decoration: none;
}
.footer-social-icons a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background-color: rgba(212,175,55,0.1);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}
.newsletter-form .form-control {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
}
.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
}
.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* --- Dynamic Timeline Style --- */
.milestones-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px 0;
}
.milestones-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--secondary);
    top: 0;
}
.timeline-card-wrapper {
    width: 50%;
    padding: 0 40px;
    position: relative;
    margin-bottom: 40px;
}
.timeline-card-wrapper:nth-child(even) {
    left: 50%;
}
.timeline-card-wrapper:nth-child(odd) {
    text-align: right;
}
.timeline-card-wrapper::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--secondary);
    top: 15px;
    z-index: 2;
}
.timeline-card-wrapper:nth-child(odd)::after { right: -8px; }
.timeline-card-wrapper:nth-child(even)::after { left: -8px; }

/* --- SaaS Portal Design (Student/Parent Dashboard) --- */
.portal-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f0edf0;
}

.portal-sidebar {
    width: 260px;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--secondary);
}

.portal-brand {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.portal-menu {
    list-style: none;
    padding: 20px 15px;
}
.portal-menu li {
    margin-bottom: 8px;
}
.portal-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}
.portal-menu a:hover, .portal-menu li.active a {
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
}

.portal-content {
    flex-grow: 1;
    padding: 40px;
    background-color: var(--bg-light);
    overflow-y: auto;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: var(--border-light);
}

.portal-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.portal-card-stat {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 25px;
    border: var(--border-light);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.portal-card-stat-info h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.portal-card-stat-info .num {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 800;
}
.portal-card-stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212,175,55,0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Table Design */
.premium-table-wrapper {
    background-color: var(--white);
    border-radius: var(--radius-md);
    border: var(--border-light);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-top: 30px;
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.premium-table th {
    background-color: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 15px 20px;
    border-bottom: var(--border-gold);
}
.premium-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
    color: var(--text-dark);
}
.premium-table tr:last-child td {
    border-bottom: none;
}
.premium-table tr:hover td {
    background-color: rgba(248, 246, 238, 0.5);
}

.badge-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}
.badge-status.success { background-color: rgba(46, 139, 87, 0.1); color: #2E8B57; }
.badge-status.warning { background-color: rgba(212, 175, 55, 0.1); color: var(--secondary); }
.badge-status.danger { background-color: rgba(139, 0, 0, 0.1); color: #8B0000; }

/* --- Admin Panel Styling --- */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #1e1e02 100%);
    padding: 20px;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: var(--border-gold);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary);
    padding: 15px 30px;
    border-bottom: 2px solid var(--secondary);
    color: var(--white);
}

.admin-nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.admin-nav-links a:hover {
    color: var(--secondary);
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--secondary);
}
input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary);
}
input:checked + .slider:before {
    transform: translateX(24px);
}

/* --- Reveal scroll animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero-grid, .split-layout, .dashboard-showcase, .trial-cta-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 1fr;
    }
    
    .milestones-timeline::before {
        left: 20px;
    }
    .timeline-card-wrapper {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-card-wrapper::after {
        left: 12px !important;
    }
    
    .portal-layout {
        flex-direction: column;
    }
    .portal-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Slide Drawer from right */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        left: auto;
        width: 300px;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        padding: 95px 30px;
        transition: var(--transition-smooth);
        z-index: 9999;
        box-shadow: -5px 0 25px rgba(0,0,0,0.25);
        align-items: flex-start;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: left;
    }
    
    .nav-menu li a {
        color: var(--white);
        font-size: 1.1rem;
        font-family: var(--font-heading);
        width: 100%;
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-menu li a.active {
        color: var(--secondary) !important;
        border-bottom: 1px solid var(--secondary);
    }
    
    .nav-menu li a.btn {
        margin-top: 15px;
        text-align: center;
        border-radius: 30px;
        color: var(--primary) !important;
    }

    .mobile-toggle {
        display: block;
        position: relative;
        z-index: 10000;
        color: var(--primary);
        transition: var(--transition-smooth);
    }
    
    header.scrolled .mobile-toggle {
        color: var(--primary);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        backdrop-filter: blur(3px);
        z-index: 9998;
        transition: var(--transition-smooth);
    }
    
    body.menu-open .mobile-toggle {
        color: var(--secondary) !important;
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Compact padding & layout blocks for mobile screen sizes */
    section {
        padding: 50px 0 !important;
    }
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 8px !important;
    }
    .section-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
    }
    .hero {
        padding: 100px 0 50px 0 !important;
        min-height: auto !important;
    }
    .hero-content p {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }
    .hero-main-img {
        max-width: 280px !important;
    }
    .split-layout, .container, .hero-grid, .grid-3x2, .course-grid, .teacher-grid, .process-grid {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .glass-card, .feature-card, .teacher-card, .course-card {
        padding: 20px !important;
    }
    .modal-content {
        width: 95% !important;
        padding: 25px !important;
        margin: 10px !important;
    }
    #modalArticleTitle {
        font-size: 1.5rem !important;
    }
    #modalArticleImgWrapper {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem !important;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    .section-title {
        font-size: 1.5rem !important;
    }
    /* Prevent text stretching or bad wrapping */
    h1, h2, h3, h4, p, span, a {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    /* Make tables responsive */
    .premium-table-wrapper {
        overflow-x: auto !important;
    }
}
