/* ---------- CSS RESET & VARIABLES ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1E272C;     /* Elegant Dark Charcoal */
    --accent-gold: #D4AF37;      /* Premium Royal Gold */
    --accent-hover: #AA820A;     /* Darker Gold for hover */
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --bg-light: #F8F9FA;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
    background-color: var(--primary-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    text-decoration: none;
}

.logo-section i {
    font-size: 32px;
    color: var(--accent-gold);
}

.logo-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* Desktop Dropdown Style */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.95);
    background-color: var(--primary-dark);
    min-width: 200px;
    border-radius: 6px;
    border-top: 3px solid var(--accent-gold);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    padding: 8px 0;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.header-btn {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

/* ---------- HERO SECTION WITH LOCAL IMAGE ---------- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)), 
                url('hero-bg.webp') no-repeat center center/cover;
    min-height: 95vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content {
    max-width: 850px;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

.bismillah-img {
    display: block;
    width: min(300px, 70vw);
    height: auto;
    margin: 0 auto 22px;
    filter: brightness(0) saturate(100%) invert(80%) sepia(45%) saturate(663%) hue-rotate(358deg) brightness(96%) contrast(92%);
}

.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content h2 span {
    color: var(--accent-gold);
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #F5F5F5;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
    margin-bottom: 25px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--text-light);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- COURSES SECTION CODE ---------- */
.courses-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--accent-gold);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--primary-dark);
    font-weight: 700;
}

.courses-intro {
    max-width: 920px;
    margin: -20px auto 40px;
    padding: 0 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* 1. Equal 3-column card layout for desktop screens */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3-column layout */
    gap: 30px;
}

/* 2. Premium shadow and border styling for course cards */
.course-card {
    background-color: var(--text-light);
    border-radius: 12px; /* Rounded corners for a softer card shape */
    padding: 40px 30px;
    text-align: center;
    /* Soft premium shadow to lift the card visually */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05); 
    border: 1px solid rgba(212, 175, 55, 0.15); /* Subtle gold border for a premium look */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth animation */
}

/* 3. Deeper shadow and gold accent on hover */
.course-card:hover {
    transform: translateY(-8px); /* Slight upward lift */
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.12); /* Gold shadow effect on hover */
    border-color: var(--accent-gold); /* Full gold border on hover */
}

/* 4. Responsive layout for tablet and mobile screens */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-column card layout on tablets */
    }
}

@media (max-width: 768px) {
    .courses-intro {
        margin: -15px auto 32px;
        padding: 0 6px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .courses-grid {
        grid-template-columns: 1fr; /* Single-column card layout on mobile */
    }
}
/* ---------- Course Icon Styling ---------- */
.course-icon {
    width: 70px;
    height: 70px;
    background-color: #FDFBF7;
    border: 1px solid #F1E5C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 28px;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

/* Change icon colors on hover */
.course-card:hover .course-icon {
    background-color: var(--accent-gold);
    color: var(--text-light);
}

.course-icon {
    width: 70px;
    height: 70px;
    background-color: #FDFBF7;
    border: 1px solid #F1E5C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 28px;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.course-card:hover .course-icon {
    background-color: var(--accent-gold);
    color: var(--text-light);
}

.course-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.course-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.course-btn {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.course-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.course-card:hover .course-btn {
    color: var(--accent-hover);
}

.course-card:hover .course-btn i {
    transform: translateX(5px);
}

/* ---------- Mobile View Adjustments ---------- */
@media (max-width: 768px) {
    /* 1. Add spacing between the hamburger button and site name */
    .nav-container {
        padding: 15px 25px; /* Increase left and right spacing */
    }

    .logo-section h1 {
        font-size: 18px; /* Slightly reduce the site name to avoid menu overlap */
    }

    .hamburger {
        display: block;
        padding-left: 15px; /* Add space to the left of the button */
    }
    @media (max-width: 768px) {
    .header-btn {
        display: none !important;
    }
}

    /* Base mobile menu settings */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-dark);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow-y: auto; /* Scroll inside the menu if it becomes tall */
        transition: max-height 0.4s ease-in-out;
        border-bottom: 3px solid var(--accent-gold);
    }

    .nav-links.active {
        max-height: 450px; /* Maximum expanded menu height */
    }

    /* Place each navigation link on its own line */
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* 2. Put courses and fee plan dropdowns on separate lines */
    .dropdown {
        width: 100%;
        display: block;
    }

    /* 3. Disable desktop animation and open dropdowns on click */
    .dropdown-menu {
        position: static; /* Remove desktop positioning */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none; /* Keep the course list hidden by default */
        background-color: rgba(0, 0, 0, 0.2);
        width: 100%;
        box-shadow: none;
        padding: 0;
        border-top: none;
    }

    /* Open the list below when courses are clicked */
    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 12px 0;
        font-size: 14px;
        color: #DDD;
        background-color: rgba(0, 0, 0, 0.1);
    }

    /* Hero section mobile spacing reset */
    .hero-section {
        min-height: auto;
        align-items: flex-start;
        justify-content: center;
        padding-top: 100px;
        padding-bottom: 45px;
        margin: 0;
        background-position: center center;
    }

    .hero-content {
        margin: 0;
        padding: 20px 20px 0;
    }

    .bismillah-img {
        width: min(230px, 76vw);
        margin-bottom: 16px;
    }

    .hero-content h2 {
        font-size: 30px;
        margin: 0 0 16px;
    }

    .hero-content p {
        font-size: 15px;
        margin: 28px 0 32px;
        padding-top: 16px;
        line-height: 1.6;
    }
}
/* ---------- WHY CHOOSE US FLIP CARDS STYLE ---------- */
.why-choose-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-light);
}

.why-choose-intro {
    max-width: 920px;
    margin: -20px auto 40px;
    padding: 0 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3-column grid layout */
    gap: 25px;
    margin-top: 40px;
}

/* Main container controlling card size */
.flip-card-container {
    background-color: transparent;
    height: 180px; /* Compact height to avoid taking too much vertical space */
    perspective: 1000px; /* Enables the 3D perspective effect */
    position: relative; /* For absolute positioning of the flip icon */
}

/* Premium 3D Flip Arrow Icon - Why Choose Us Section (Mobile Only) */
.why-choose-flip-icon {
    display: none; /* Hidden by default on desktop */
}

@media (max-width: 768px) {
        .why-choose-flip-icon {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 20;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    .why-choose-flip-icon i {
        font-size: 18px;
        color: #000000;
        font-weight: 700;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    
    /* Hover/Active state for the flip arrow on mobile */
    .flip-card-container:active .why-choose-flip-icon,
    .flip-card-container:focus .why-choose-flip-icon {
        animation: whyChooseArrowBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .flip-card-container:active .why-choose-flip-icon i {
        animation: whyChooseArrowRotate 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    }
}

/* Animation: Bounce effect for the flip arrow */
@keyframes whyChooseArrowBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-6px) rotate(12deg);
    }
    50% {
        transform: translateY(-10px) rotate(20deg);
    }
    75% {
        transform: translateY(-4px) rotate(12deg);
    }
}

/* Animation: Rotate effect for the arrow icon */
@keyframes whyChooseArrowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Flip cards on desktop hover */
@media (min-width: 769px) {
    .flip-card-container:hover .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Flip cards on mobile click */
.flip-card-container.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Shared front and back side settings */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Front side of the card */
.flip-card-front {
    background-color: var(--text-light);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.card-front-content i {
    font-size: 38px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    display: block;
}

.card-front-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Back side of the card */
.flip-card-back {
    background-color: var(--primary-dark);
    color: var(--text-light);
    transform: rotateY(180deg);
    border: 1px solid var(--accent-gold);
}

.card-back-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--accent-gold);
    margin-bottom: 8px;
    font-weight: 700;
}

.card-back-content p {
    font-size: 13px;
    line-height: 1.5;
    color: #E0E0E0;
}

/* Responsive settings for mobile and tablet */
@media (max-width: 992px) {
    .flip-cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-column layout on tablets */
    }
}

@media (max-width: 576px) {
    .why-choose-intro {
        margin: -15px auto 32px;
        padding: 0 6px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .flip-cards-grid {
        grid-template-columns: 1fr; /* Single-column layout on mobile */
        gap: 20px;
    }
    .flip-card-container {
        height: 160px; /* Slightly smaller card height on mobile */
    }
}
/* ---------- PREMIUM & ROYAL MODAL POPUP STYLE ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Darker background overlay */
    backdrop-filter: blur(8px); /* Premium blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Bring the form forward when clicked */
.modal-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

/* Royal form card design */
.modal-card {
    background: linear-gradient(rgba(27, 94, 64, 0.75), rgba(27, 94, 64, 0.75)), url('form-bg.jpg') no-repeat center center;
    background-size: cover; /* Royal green gradient background */
    width: 90%;
    max-width: 460px;
    padding: 45px 35px;
    border-radius: 20px; /* Larger premium rounded corners */
    border: 2px solid #d4af37; /* Thin gold border around the card */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.1);
    position: relative;
    text-align: center;
    transform: scale(0.85) translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Bounce animation on open */
.modal-overlay:target .modal-card {
    transform: scale(1) translateY(0);
}

/* Close (X) button with white and gold styling */
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    text-decoration: none;
    font-size: 32px;
    color: #ffffff;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    color: #d4af37; /* Gold color on hover */
    opacity: 1;
    transform: rotate(90deg); /* Rotation animation */
}

/* Main heading */
.modal-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff; /* White text color */
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Subtitle */
.modal-subtitle {
    font-size: 15px;
    color: #eceff1; /* Soft white-gray text color */
    opacity: 0.9;
    margin-bottom: 35px;
    font-weight: 500;
}

/* Premium input field design */
.modal-form .input-group {
    margin-bottom: 20px;
    width: 100%;
}

.modal-form input, .modal-form select {
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08); /* Transparent premium fields */
    color: #ffffff; /* White input text */
    outline: none;
    transition: all 0.3s ease;
}

/* Premium placeholder styling inside input fields */
.modal-form input::placeholder {
    color: rgba(255, 255, 255, 0.6); /* White placeholder with reduced opacity */
}

/* Keep dropdown options black for readability */
.modal-form select option {
    background-color: #1b5e40;
    color: #ffffff;
}

/* Gold border and glow effect on field focus */
.modal-form input:focus, .modal-form select:focus {
    border-color: #d4af37; /* Gold border */
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

/* Royal golden submit button */
.modal-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #c5a028 0%, #d4af37 50%, #e5c158 100%); /* Pure gold gradient */
    color: #0b2e1b; /* Dark green button text for classic contrast */
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

/* Hover effect for the golden button */
.modal-submit-btn:hover {
    background: linear-gradient(135deg, #e5c158 0%, #d4af37 50%, #c5a028 100%); /* Reverse the gradient on hover */
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px); /* Slight upward button lift */
}

.modal-submit-btn:active {
    transform: translateY(-1px);
}

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3) none;
    z-index: 10000;
    transition: all 0.3s ease;
}

.whatsapp-float span {
    display: none;
}

.whatsapp-float i {
    font-size: 30px;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent-gold);
    color: #FFFFFF;
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
}

/* ---------- NEW PAGE (QAIDA.HTML) STYLES ---------- */
.qaida-page-container {
    padding-top: 100px; /* Adjust for fixed header */
    background-color: var(--bg-light);
    min-height: 100vh;
}

.qaida-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.qaida-main-content {
    background-color: var(--text-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.page-hero-mini {
    position: relative;
    height: 250px;
    background: url('hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.page-hero-mini h1 {
    position: relative;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.course-details-body {
    padding: 40px;
}

.course-details-body h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    margin-top: 35px;
    border-left: 5px solid var(--accent-gold);
    padding-left: 15px;
}

.course-details-body h2:first-child { margin-top: 0; }

.course-details-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.styled-bullet-list {
    list-style: none;
    margin-bottom: 25px;
}

.styled-bullet-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

.styled-bullet-list li::before {
    content: '\f058'; /* FontAwesome Check Circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 18px;
}

/* Sidebar Styles */
.sidebar-registration-box {
    background-color: #1b5e40; /* Royal Green from theme */
    padding: 35px 25px;
    border-radius: 15px;
    border: 2px solid var(--accent-gold);
    color: var(--text-light);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: sticky;
    top: 120px;
}

.sidebar-registration-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    text-align: center;
    margin-bottom: 25px;
}

.sidebar-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    font-size: 15px;
}

.sidebar-form input::placeholder { color: rgba(255,255,255,0.7); }

.sidebar-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent-gold);
    border: none;
    border-radius: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    font-size: 16px;
}

.sidebar-submit-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive stacking */
@media (max-width: 992px) {
    .qaida-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sidebar-registration-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-hero-mini h1 { font-size: 28px; }

/* Course Organization Table */
.course-org-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.course-org-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #444;
}

.course-org-table tr td:first-child {
    background-color: #fcfcfc;
    font-weight: 700;
    color: var(--primary-dark);
    width: 35%;
}

.course-org-table tr:last-child td {
    border-bottom: none;
}

/* Additional styling for the registration form when embedded within course details */
.course-details-body .sidebar-registration-box {
    position: static; /* Override sticky position from the general sidebar-registration-box */
    margin-top: 50px; /* Specific top margin for this placement within the main content */
    max-width: 100%; /* Ensure it takes full width of its parent container */
    /* The box-shadow, background-color, padding, border-radius, border, and color
       are already defined for the .sidebar-registration-box class and will apply here.
       No need to redefine them unless a different visual style is intended for this specific instance. */
}
    .course-details-body { padding: 25px; }
}

/* --- Quran Memorization & Course Details Page Styling --- */

/* General list enhancements for detail pages */
.course-details-body .styled-bullet-list li {
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.course-details-body .styled-bullet-list li strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Structured styling for the 'Course Organization' section */
/* This targets the list items to make them look like clean, organized info-cards */
.course-details-body h2:last-of-type + .styled-bullet-list li {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 15px 15px 15px 45px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.course-details-body h2:last-of-type + .styled-bullet-list li:hover {
    border-color: var(--accent-gold);
    transform: translateX(8px);
    background-color: #fdfdfd;
}

.course-details-body h2:last-of-type + .styled-bullet-list li::before {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}
/* General list enhancements for detail pages - Premium Card Style */
.course-details-body .styled-bullet-list li {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    padding: 15px 15px 15px 45px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.03);
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-details-body .styled-bullet-list li:hover {
    border-color: var(--accent-gold);
    transform: translateX(8px);
    background-color: #fdfdfd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Adjust icon position for card style */
.course-details-body .styled-bullet-list li::before {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.course-details-body .styled-bullet-list li strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ---------- HOW IT WORKS SECTION ---------- */
.how-it-works {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.process-card {
    background-color: var(--text-light);
    padding: 60px 35px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.process-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.15);
}

.step-number {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.1); /* Very subtle background number */
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.process-icon {
    width: 85px;
    height: 85px;
    background-color: var(--primary-dark);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 34px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.process-card:hover .process-icon {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: rotateY(360deg);
}

.process-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 700;
}

.process-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ---------- FEE PLANS SECTION ---------- */
.fee-plans-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.fee-intro {
    max-width: 920px;
    margin: -20px auto 40px;
    padding: 0 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    align-items: flex-start;
}

.fee-card {
    background-color: var(--text-light);
    border-radius: 15px;
    padding: 45px 25px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.fee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.fee-card.popular {
    border: 2px solid var(--accent-gold);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.15);
}

.fee-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    padding: 6px 22px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.fee-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.fee-price {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.fee-price span {
    font-size: 16px;
    font-weight: 500;
    color: #777;
}

.fee-features {
    list-style: none;
    margin-bottom: 35px;
    flex-grow: 1;
}

.fee-features li {
    padding: 14px 0;
    border-bottom: 1px dashed #eee;
    color: #555;
    font-size: 15px;
}

.fee-features li:last-child {
    border-bottom: none;
}

.fee-btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.fee-btn:hover {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.fee-card.popular .fee-btn {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.fee-card.popular .fee-btn:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
}

@media (max-width: 1100px) {
    .fee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    .fee-card.popular {
        transform: none;
    }
    .fee-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 600px) {
    .fee-intro {
        margin: -15px auto 32px;
        padding: 0 6px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .fee-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- INTERNATIONAL PRICING TABLE STYLING ---------- */
.international-pricing-wrapper {
    margin-bottom: 60px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.international-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--primary-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 40px rgba(212, 175, 55, 0.1);
    font-family: 'Poppins', sans-serif;
    min-width: 600px;
}

/* Table Header Styling */
.international-pricing-table thead {
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(30, 39, 44, 0.95) 100%);
}

.international-pricing-table thead tr {
    border-bottom: 2px solid var(--accent-gold);
}

.international-pricing-table thead th {
    padding: 18px 15px;
    color: var(--text-light);
    font-weight: 700;
    text-align: center;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--primary-dark);
}

.international-pricing-table thead th:first-child {
    text-align: left;
    padding-left: 20px;
}

/* Table Body Rows */
.international-pricing-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Zebra Striping - Alternating Row Colors */
.international-pricing-table tbody tr:nth-child(odd) {
    background-color: rgba(212, 175, 55, 0.05);
}

.international-pricing-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Hover Effect on Rows */
.international-pricing-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.15);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* Table Data Cells */
.international-pricing-table td {
    padding: 16px 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.international-pricing-table td:last-child {
    border-right: none;
}

/* First Column - Country Names */
.international-pricing-table tbody td:first-child {
    text-align: left;
    padding-left: 20px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 15px;
}

/* Responsive Text for Currency Rates */
.international-pricing-table tbody td:not(:first-child) {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

/* Mobile Responsive Scrolling */
@media (max-width: 768px) {
    .international-pricing-wrapper {
        margin: -20px -20px 50px -20px;
        padding: 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .international-pricing-table {
        min-width: 500px;
    }

    .international-pricing-table thead th,
    .international-pricing-table td {
        padding: 14px 12px;
        font-size: 12px;
    }

    .international-pricing-table thead th {
        font-size: 12px;
    }

    .international-pricing-table tbody td:first-child {
        padding-left: 15px;
        min-width: 70px;
    }

    .international-pricing-table tbody td:not(:first-child) {
        font-size: 12px;
    }
}

/* Sponsorship Line Styling */
.sponsorship-line {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    margin: 50px 0 40px;
    font-style: italic;
    font-weight: 500;
}

/* ---------- DISCOUNTS & CUSTOMIZED PLAN SECTION ---------- */
.discounts-custom-section {
    padding: 0 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.discounts-custom-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: relative;
}

.info-box {
    background-color: #1e1e24;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-box:hover {
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-5px);
}

.box-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(30, 30, 36, 0.95) 100%);
    padding: 25px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent-gold);
}

.box-header h3 {
    color: var(--accent-gold);
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.box-intro {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list li i {
    color: var(--accent-gold);
    font-size: 18px;
    margin-top: 4px;
    min-width: 24px;
    flex-shrink: 0;
}

.info-list li span {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.info-list li strong {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Special Programs Box - Internal Sections */
.special-programs-box .box-content {
    padding: 0;
    display: block;
}

.program-section {
    padding: 30px;
}

.program-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.program-intro {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    line-height: 1.6;
}

.program-section .info-list {
    margin: 0;
}

.program-section .info-list li {
    margin-bottom: 18px;
}

.program-section .info-list li:last-child {
    margin-bottom: 0;
}

/* Divider between Referral and Customized Programs */
.program-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 0 30px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .discounts-custom-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .info-box {
        height: auto;
    }
}

@media (max-width: 768px) {
    .special-programs-box .box-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .special-programs-box .program-section {
        padding: 25px 0;
    }

    .special-programs-box .program-section:first-child {
        padding-top: 0;
    }

    .special-programs-box .program-divider {
        margin-left: 0;
        margin-right: 0;
    }

    .special-programs-box .info-list li {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .info-box {
        border-radius: 10px;
    }
    
    .box-header {
        padding: 20px 15px;
    }

    .box-header h3 {
        font-size: 18px;
    }

    .box-content {
        padding: 25px;
    }

    .info-list li {
        margin-bottom: 16px;
    }

    .info-list li span {
        font-size: 13px;
    }
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: var(--text-light);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.12);
}

.testimonial-icon {
    font-size: 50px;
    color: var(--primary-dark);
    opacity: 0.2;
    margin-bottom: 15px;
}

.rating-stars {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    font-size: 15px;
}

.author-info h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 13px;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 50px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    background-color: var(--text-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: var(--primary-dark);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #263238;
}

.faq-question h3 {
    color: var(--text-light);
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    padding-right: 15px;
}

.faq-toggle {
    color: var(--accent-gold);
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active {
    border-color: var(--accent-gold);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust if answers are very long */
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg); /* Plus becomes a close/cross icon */
}

.faq-answer p {
    padding: 25px 30px;
    color: #555;
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
    border-top: 1px solid #eee;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.reveal.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- STAGGERED REVEAL ANIMATIONS ---------- */
.staggered-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

.staggered-reveal.active-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- PREMIUM FOOTER STYLES ---------- */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 0 0;
    border-top: 1px solid var(--accent-gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-logo i { font-size: 28px; }
.footer-logo h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--accent-gold);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: #ddd;
}

.footer-col h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #c5a880; /* Elegant gold accent requested */
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
    color: #ddd;
}

.footer-contact i { color: var(--accent-gold); font-size: 18px; width: 20px; }

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p { font-size: 14px; color: #aaa; margin: 0; }
.privacy-link { color: #c5a880; text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.3s ease; }
.privacy-link:hover { color: var(--text-light); }

@media (max-width: 992px) { .footer-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; padding-bottom: 40px; }
    .footer-logo { justify-content: center; }
    .footer-contact p { justify-content: center; }
    .footer-bottom-container { flex-direction: column; text-align: center; }
}

/* ---------- CONTACT PAGE STYLES ---------- */
.contact-page-container {
    padding-top: 100px; /* Adjust for fixed header */
    background-color: var(--bg-light);
    min-height: 100vh;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.contact-hero-content h1 {
    margin-bottom: 10px;
}
.contact-hero-content p {
    margin-top: 10px;
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 500;
}

.contact-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 2fr; /* Left column smaller for info, right larger for form */
    gap: 40px;
    align-items: start;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background-color: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.contact-card .icon {
    font-size: 45px;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.contact-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
}

.contact-form-column {
    background: linear-gradient(rgba(27, 94, 64, 0.75), rgba(27, 94, 64, 0.75)), url('form-bg.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-gold);
}

.contact-form-column h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    text-align: center;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.contact-form select option {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #c5a028 0%, #d4af37 50%, #e5c158 100%);
    color: #0b2e1b;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #e5c158 0%, #d4af37 50%, #c5a028 100%);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-form-column h2 {
        font-size: 24px;
    }
}

/* Sidebar Registration Box (used on course detail pages) */
.sidebar-registration-box {
    background: linear-gradient(rgba(27, 94, 64, 0.75), rgba(27, 94, 64, 0.75)), url('form-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 35px 25px;
    border-radius: 15px;
    border: 2px solid var(--accent-gold);
    color: var(--text-light);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: sticky;
    top: 120px;
}

/* ---------- BLOG CARDS AND PREMIUM PAGE CURL ---------- */
.blog-section {
    padding: 60px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* Slice off the top-right corner of the entire card to accommodate the folded corner */
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

/* Premium Page Curl Flap */
.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, transparent 50%, #AA820A 50%, #D4AF37 75%, #FFF0AD 100%);
    border-bottom-left-radius: 6px; /* Soft curl/peel effect */
    z-index: 10;
    filter: drop-shadow(-3px 3px 4px rgba(0, 0, 0, 0.35));
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; /* Let clicks pass through to card if needed */
}

/* Page Curl Under-Shadow to give realistic depth */
.blog-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at 100% 0%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, transparent 70%);
    z-index: 9;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* Hover Animations - peeling action */
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
    clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%);
}

.blog-card:hover::before {
    width: 42px;
    height: 42px;
    border-bottom-left-radius: 8px;
    filter: drop-shadow(-5px 5px 6px rgba(0, 0, 0, 0.45));
}

.blog-card:hover::after {
    width: 48px;
    height: 48px;
}

/* Card internal parts */
.blog-card-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-badge {
    position: absolute;
    bottom: 15px;
    left: 20px;
    background-color: var(--primary-dark);
    color: var(--accent-gold);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.blog-card-content {
    padding: 25px 25px 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

.blog-meta span i {
    color: var(--accent-gold);
    margin-right: 4px;
}

.blog-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-content h3 {
    color: var(--accent-gold);
}

.blog-card-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-btn {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.blog-card-btn i {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-btn {
    color: var(--accent-hover);
}

.blog-card:hover .blog-card-btn i {
    transform: translateX(6px);
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-section {
        padding: 40px 15px 60px;
    }
    
    /* Optimized page curl for mobile */
    .blog-card {
        clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
    }
    
    .blog-card::before {
        width: 24px;
        height: 24px;
    }
    
    .blog-card:hover::before {
        width: 36px;
        height: 36px;
    }
    
    .blog-card:hover {
        clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
    }
}

/* ==========================================================================
   4. ABOUT PAGE STYLES (about.html)
   ========================================================================== */

/* Specific About Page Styles */
.about-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--accent-gold);
}

.about-text p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.cta-section {
    background-color: var(--primary-dark);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 18px;
}

/* Styles for the About Page Hero Section Text */
.about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-hero-content h1 {
    margin-bottom: 10px;
}

.about-hero-content p {
    margin-top: 10px;
}

/* Premium Dark Style for Tutors Section Cards */
.staggered-card {
    background-color: var(--primary-dark) !important;
    color: var(--text-light) !important;
    border: 1px solid var(--accent-gold) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3) !important;
}

.staggered-card h3 {
    color: var(--accent-gold) !important;
    font-weight: 700 !important;
}

.staggered-card p {
    color: #ddd !important;
}

.staggered-card .course-icon {
    background-color: rgba(212, 175, 55, 0.1) !important;
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cta-section h2 {
        font-size: 28px;
    }
}

/* ==========================================================================
   5. PRIVACY POLICY PAGE STYLES (privacy-policy.html)
   ========================================================================== */

.privacy-page-wrapper {
    padding: 140px 20px 80px;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.privacy-card {
    background-color: var(--primary-dark);
    max-width: 900px;
    width: 100%;
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    color: var(--text-light);
}

.privacy-card h1 {
    color: var(--accent-gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 20px;
}

.privacy-card h2 {
    color: #c5a880; /* Elegant gold accent */
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.privacy-card p {
    font-size: 17px;
    line-height: 1.9;
    color: #f5f5f5;
    margin-bottom: 25px;
    text-align: justify;
}

@media (max-width: 768px) {
    .privacy-page-wrapper { padding-top: 100px; }
    .privacy-card { padding: 40px 25px; }
    .privacy-card h1 { font-size: 28px; }
    .privacy-card h2 { font-size: 20px; }
    .privacy-card p { font-size: 16px; text-align: left; }
}

/* ==========================================================================
   6. THANK YOU PAGE STYLES (thank-you.html)
   ========================================================================== */

.thank-you-container {
    min-height: calc(100vh - 100px); /* Adjust for header/footer height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px; /* Top padding for fixed header */
    background-color: var(--bg-light);
}

.success-block {
    background-color: var(--text-light);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.success-icon {
    font-size: 80px;
    color: var(--accent-gold);
    margin-bottom: 30px;
    animation: bounceIn 0.8s ease-out;
}

.success-block h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.success-block p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 40px;
}

.back-home-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.back-home-btn:hover {
    background-color: var(--accent-hover);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .success-block h1 { font-size: 28px; }
    .success-block p { font-size: 16px; }
    .success-icon { font-size: 60px; }
    .back-home-btn { padding: 12px 25px; font-size: 15px; }
}

/* ==========================================================================
   7. FEE EXPERIMENTS PAGE STYLES (fee-experiments.html)
   ========================================================================== */

/* --- Experimental Showcase Styles --- */
.experiment-container {
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.experiment-header {
    text-align: center;
    margin-bottom: 60px;
}

.experiment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.exp-label {
    display: block;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Common Card Elements */
.price-val { font-size: 36px; font-weight: 700; color: var(--primary-dark); display: block; margin: 10px 0; }
.price-val span { font-size: 16px; font-weight: 400; color: #777; }

/* STYLE 1: Minimalist */
.card-minimal {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s ease;
}
.card-minimal:hover { border-color: var(--accent-gold); transform: translateY(-5px); }
.btn-minimal {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: 0.3s;
}
.btn-minimal:hover { background: var(--accent-gold); }

/* STYLE 2: 3D Card Flip */
.card-flip-wrapper { height: 400px; perspective: 1000px; }
.card-flip-inner {
    position: relative; width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}
.card-flip-wrapper:hover .card-flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden; border-radius: 15px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.flip-front { background: #fff; border: 1px solid var(--accent-gold); }
.flip-back { background: var(--primary-dark); color: #fff; transform: rotateY(180deg); }
.flip-back .price-val { color: var(--accent-gold); }

/* STYLE 3: Premium Pop & Glow */
.card-glow {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.card-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-gold);
}

/* STYLE 4: Sliding Panel */
.card-slide {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.slide-main { padding: 40px; text-align: center; }
.slide-overlay {
    position: absolute; bottom: -100%; left: 0; width: 100%; height: 80%;
    background: var(--primary-dark); color: #fff; padding: 30px;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; justify-content: center;
}
.card-slide:hover .slide-overlay { bottom: 0; }

/* STYLE 5: Glassmorphism Gradient */
.glass-bg-wrap {
    background: linear-gradient(45deg, #1e272c, #d4af37);
    padding: 20px; border-radius: 20px;
}
.card-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}
.card-glass:hover { background: rgba(255, 255, 255, 0.15); }

/* Responsive for experiments page */
@media (max-width: 768px) {
    .experiment-container { padding: 80px 20px 60px; }
    .experiment-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ==========================================================================
   8. UTILITY CLASSES FOR INLINE STYLES
   ========================================================================== */

/* Dropdown Chevron Icon Styling */
.nav-links a .fa-chevron-down,
.dropdown a .fa-chevron-down {
    font-size: 11px;
    margin-left: 2px;
}

/* About Page Hero Subtitle Styling */
.about-page-subtitle {
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 500;
}

/* Mission Image Styling */
.mission-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--accent-gold);
}

/* CTA Button Override */
.cta-section-btn {
    padding: 18px 45px;
    border-radius: 50px;
}

/* Contact Info Styling */
.contact-info-bold {
    font-weight: 600;
    margin-top: 10px;
}

/* Trial Form Note Styling */
.trial-form-note {
    color: #eee;
    font-size: 13px;
    text-align: center;
    margin-bottom: 20px;
}

/* Experiment Section Styling */
.experiment-section {
    margin-bottom: 10px;
}

.experiment-section-icon {
    font-size: 40px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.experiment-list {
    list-style: none;
    margin: 15px 0;
}

.experiment-list li {
    margin: 15px 0;
    line-height: 2;
}

.experiment-highlight {
    color: var(--accent-gold);
    margin-top: 20px;
    font-weight: 700;
}

.experiment-button-override {
    background: var(--accent-gold) !important;
    color: var(--primary-dark) !important;
}

.popular-badge {
    background: var(--accent-gold);
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
    position: absolute;
    top: 20px;
    right: 20px;
}
/* ---------- QAIDA PAGE IMAGE FIX ---------- */
.course-details-body img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

@media (max-width: 768px) {
    .course-details-body img {
        max-width: 100%;
        margin: 15px 0;
    }
}
/* ---------- QURAN READING PAGE IMAGE FIX ---------- */
.quran-reading-body img,
.course-details-body img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

@media (max-width: 768px) {
    .quran-reading-body img,
    .course-details-body img {
        max-width: 100%;
        margin: 15px 0;
    }
}

/* ==========================================================================
   NEW ACADEMY PORTAL CUSTOM THEME (MATCHED WITH INSTITUTION COLORS)
   ========================================================================== */

/* Main Container Styling */
.portal-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Montserrat', 'Noto Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Portal Box / Card Layout */
.portal-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) none;
    width: 100%;
    max-width: 450px;
    border-top: 5px solid #0f5132; /* Beautiful Quranic Dark Green Accent */
    text-align: left;
}

.portal-box h2 {
    color: #0f5132;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

/* Input Fields & Labels */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 15px;
    color: #333333;
    background-color: #f9f9f9;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Input Focus State */
.input-group input:focus, 
.input-group select:focus {
    border-color: #0f5132;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(15, 81, 50, 0.2);
}

/* Login & Action Buttons */
.portal-btn {
    width: 100%;
    padding: 14px;
    background: #0f5132; /* Primary Dark Green */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.portal-btn:hover {
    background: #157347; /* Lighter Green on Hover */
}

/* ========================================== */
/* DASHBOARD & CLASS CARDS STYLING            */
/* ========================================== */

.dashboard-card {
    max-width: 1120px;
    width: 100%;
}

.dashboard-card h2 {
    text-align: left;
    margin-bottom: 5px;
}

.sub-text {
    color: #666666;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Teacher Roster Table */
.teacher-dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 26px;
}

.dashboard-kicker {
    display: inline-flex;
    align-items: center;
    color: #d9a74a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.teacher-dashboard-header h2 {
    color: #0f5132;
    font-size: 30px;
    margin-bottom: 6px;
}

.teacher-dashboard-header .sub-text {
    margin-bottom: 0;
}

.roster-summary {
    min-width: 140px;
    padding: 16px 18px;
    border: 1px solid rgba(217, 167, 74, 0.38);
    border-radius: 8px;
    background: linear-gradient(135deg, #0f5132, #157347);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 14px 30px rgba(15, 81, 50, 0.18);
}

.roster-summary span {
    display: block;
    color: #d9a74a;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.roster-summary small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.student-roster-shell {
    overflow: hidden;
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 81, 50, 0.1);
}

.student-roster-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.student-roster-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.student-roster-table thead {
    background: #0f5132;
}

.student-roster-table th {
    padding: 17px 18px;
    color: #f4f7f5;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.student-roster-table th:last-child,
.student-roster-table td:last-child {
    text-align: center;
}

.student-roster-table tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #e8eee9;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.student-roster-table tbody tr:nth-child(even) {
    background: #fbfcfb;
}

.student-roster-table tbody tr:hover {
    background: #f4f7f5;
    box-shadow: inset 4px 0 0 #d9a74a;
}

.student-roster-table td {
    padding: 16px 18px;
    color: #34443b;
    font-size: 14px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

.student-name-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f5132;
    font-weight: 800;
}

.student-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    background: rgba(217, 167, 74, 0.16);
    border: 1px solid rgba(217, 167, 74, 0.42);
    color: #0f5132;
    font-size: 12px;
    font-weight: 800;
}

.course-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f4f7f5;
    border: 1px solid rgba(15, 81, 50, 0.12);
    color: #0f5132;
    font-size: 13px;
    font-weight: 800;
}

.roster-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 10px 15px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0f5132, #126b42);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(15, 81, 50, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.roster-start-btn i {
    color: #d9a74a;
    font-size: 13px;
}

.roster-start-btn:hover {
    background: linear-gradient(135deg, #126b42, #0f5132);
    box-shadow: 0 14px 28px rgba(15, 81, 50, 0.28);
    transform: translateY(-2px);
}

.roster-start-btn:focus-visible {
    outline: 3px solid rgba(217, 167, 74, 0.45);
    outline-offset: 3px;
}

/* Teacher Grid Configuration */
.teacher-classes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Responsive breakpoint to show two classes side-by-side on desktop views */
@media (min-width: 768px) {
    .teacher-classes-grid {
        grid-template-columns: 1fr 1fr; 
    }
}

/* Individual Class Card Design */
.class-info-card {
    background: #f4f7f5; /* Very Soft Greenish/Grey Background */
    border: 1px solid #e2ebd5;
    padding: 25px;
    border-radius: 8px;
    text-align: left;
}

.class-info-card h3 {
    color: #0f5132;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
    margin-top: 0;
}

.class-info-card p {
    font-size: 14px;
    color: #555555;
    margin-bottom: 10px;
}

.class-info-card strong {
    color: #222222;
}

/* Zoom Link Button */
.zoom-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background: #d9a74a; /* Golden/Amber Theme Accent */
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.zoom-btn:hover {
    background: #b8862b; /* Darker Gold on Hover */
}

/* Blue color specifically for Teacher's Start Button */
.start-btn {
    background: #2b7de9; 
}

.start-btn:hover {
    background: #1a5cb8;
}

/* Responsive adjustments for Mobile */
@media (max-width: 768px) {
    .portal-container {
        padding: 10px;
        margin: 30px auto;
    }
    .portal-box {
        padding: 25px;
    }

    .teacher-dashboard-header {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-dashboard-header h2 {
        font-size: 25px;
    }

    .roster-summary {
        width: 100%;
    }

    .student-roster-shell {
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .student-roster-table-wrap {
        overflow-x: visible;
    }

    .student-roster-table,
    .student-roster-table thead,
    .student-roster-table tbody,
    .student-roster-table th,
    .student-roster-table td,
    .student-roster-table tr {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .student-roster-table thead {
        display: none;
    }

    .student-roster-table tbody tr,
    .student-roster-table tbody tr:nth-child(even) {
        margin-bottom: 14px;
        padding: 16px;
        border: 1px solid rgba(15, 81, 50, 0.12);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 10px 26px rgba(15, 81, 50, 0.08);
    }

    .student-roster-table tbody tr:hover {
        box-shadow: 0 12px 30px rgba(15, 81, 50, 0.12), inset 4px 0 0 #d9a74a;
    }

    .student-roster-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 0;
        border-bottom: 1px solid #edf1ee;
        text-align: right;
        white-space: normal;
    }

    .student-roster-table td::before {
        content: attr(data-label);
        color: #0f5132;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.4px;
        text-align: left;
        text-transform: uppercase;
    }

    .student-roster-table td:last-child {
        border-bottom: none;
        justify-content: stretch;
        text-align: left;
    }

    .student-roster-table td:last-child::before {
        display: none;
    }

    .roster-start-btn {
        width: 100%;
        min-height: 44px;
    }
}

/* ==========================================================================
   PORTAL MIGRATION ADDITIONS
   Floating login button, standalone portal page, and dashboard refinements
   ========================================================================== */

.floating-login-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 20px;
    border: 1px solid rgba(217, 167, 74, 0.55);
    border-radius: 999px;
    background: linear-gradient(135deg, #0f5132, #157347);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(15, 81, 50, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-login-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d9a74a;
    color: #0f5132;
    font-size: 14px;
}

.floating-login-btn:hover {
    background: linear-gradient(135deg, #157347, #0f5132);
    box-shadow: 0 20px 42px rgba(15, 81, 50, 0.42);
    transform: translateY(-3px);
}

.portal-page {
    min-height: 100vh;
    padding: 128px 20px 80px;
    background:
        linear-gradient(135deg, rgba(15, 81, 50, 0.94), rgba(30, 39, 44, 0.86)),
        url('hero-bg.webp') no-repeat center center/cover;
}

.portal-hero-panel {
    width: min(1120px, 100%);
    min-height: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-card {
    width: min(460px, 100%);
    padding: 38px;
    border: 1px solid rgba(217, 167, 74, 0.38);
    border-top: 5px solid #d9a74a;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
}

.portal-card-heading {
    margin-bottom: 28px;
    text-align: center;
}

.portal-card-heading h1 {
    color: #0f5132;
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
}

.portal-card-heading p {
    color: #59675f;
    font-size: 15px;
    line-height: 1.7;
}

.portal-login-card .input-group input,
.portal-login-card .input-group select {
    min-height: 48px;
    border-color: #dbe5df;
    background: #f4f7f5;
}

.portal-login-card .portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin-top: 6px;
    background: linear-gradient(135deg, #0f5132, #157347);
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(15, 81, 50, 0.22);
}

.portal-login-card .portal-btn:hover {
    background: linear-gradient(135deg, #157347, #0f5132);
    transform: translateY(-2px);
}

.portal-page .dashboard-card {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: #d9a74a;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.26);
}

.student-dashboard-card {
    max-width: 860px;
}

.student-class-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 24px;
    padding: 26px;
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 8px;
    background: #f4f7f5;
}

.student-class-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f5132;
    color: #d9a74a;
    font-size: 36px;
    box-shadow: 0 16px 30px rgba(15, 81, 50, 0.22);
}

.student-class-details h3 {
    color: #0f5132;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 4px 0 18px;
}

.student-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.student-detail-grid p {
    min-height: 72px;
    padding: 14px;
    border: 1px solid rgba(15, 81, 50, 0.1);
    border-radius: 8px;
    background: #ffffff;
    color: #52635a;
    font-size: 13px;
    line-height: 1.5;
}

.student-detail-grid i {
    display: block;
    color: #d9a74a;
    font-size: 16px;
    margin-bottom: 7px;
}

.student-detail-grid strong {
    color: #0f5132;
    margin-right: 4px;
}

.student-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-height: 44px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d9a74a, #b8862b);
    color: #ffffff;
    font-weight: 800;
}

.student-join-btn:hover {
    background: linear-gradient(135deg, #b8862b, #d9a74a);
}

@media (max-width: 768px) {
    .floating-login-btn {
        right: 16px;
        bottom: 16px;
        min-height: 50px;
        padding: 0 16px;
    }

    .floating-login-btn span {
        display: none;
    }

    .portal-page {
        padding: 104px 14px 56px;
    }

    .portal-hero-panel {
        min-height: auto;
    }

    .portal-login-card {
        padding: 28px 22px;
    }

    .portal-card-heading h1 {
        font-size: 28px;
    }

    .student-class-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .student-class-icon {
        width: 76px;
        height: 76px;
        font-size: 30px;
    }

    .student-detail-grid {
        grid-template-columns: 1fr;
    }

    .student-join-btn {
        width: 100%;
    }
}

/* ==========================================================================
   FINAL PORTAL CLEANUP OVERRIDES
   Round floating button, footer bottom row, password toggle, and roster mobile
   ========================================================================== */

.floating-login-btn {
    width: 60px;
    height: 60px;
    min-height: 60px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    background: #0f5132;
    border: 2px solid #d9a74a;
    box-shadow: 0 10px 25px rgba(15, 81, 50, 0.35);
}

.floating-login-btn span {
    display: none;
}

.floating-login-btn i {
    width: auto;
    height: auto;
    background: transparent;
    color: #d9a74a;
    font-size: 24px;
}

.floating-login-btn:hover {
    background: #157347;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 81, 50, 0.42);
}

.main-footer .footer-bottom {
    width: 100%;
    min-height: 0;
    padding: 22px 0;
    margin-top: 0;
    display: block;
    flex: 0 0 auto;
}

.main-footer .footer-bottom-container {
    min-height: 0;
}

.main-footer .footer-bottom p {
    line-height: 1.6;
}

.main-footer .footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 40px;
    width: 100%;
    grid-column: 1 / -1;
}

.main-footer .footer-logo h3,
.main-footer .footer-col h4 {
    color: #c5a880;
}

.main-footer .footer-contact {
    list-style: none;
}

.main-footer .footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #ddd;
    font-size: 15px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #0f5132;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease, color 0.25s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(217, 167, 74, 0.16);
    color: #b8862b;
    outline: none;
}

.remember-me-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -4px 0 14px;
    color: #44534b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.remember-me-row input {
    width: 16px;
    height: 16px;
    accent-color: #0f5132;
}

.portal-message {
    min-height: 20px;
    margin-bottom: 12px;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.teacher-dashboard-actions {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.portal-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid rgba(217, 167, 74, 0.45);
    border-radius: 6px;
    background: #0f5132;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 81, 50, 0.18);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.portal-logout-btn i {
    color: #d9a74a;
    font-size: 14px;
}

.portal-logout-btn:hover,
.portal-logout-btn:focus-visible {
    background: #157347;
    box-shadow: 0 16px 30px rgba(15, 81, 50, 0.25);
    outline: none;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .floating-login-btn {
        width: 60px;
        height: 60px;
        min-height: 60px;
        right: 20px;
        bottom: 20px;
        padding: 0;
    }

    .floating-login-btn i {
        font-size: 24px;
    }

    .student-roster-table td[data-label="Student Name"] {
        justify-content: flex-start;
        text-align: left;
    }

    .student-roster-table td[data-label="Student Name"]::before {
        display: none;
    }

    .student-roster-table td[data-label="Student Name"] .student-name-cell {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        line-height: 1.3;
    }

    .student-roster-table td[data-label="Student Name"] .student-avatar {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        margin: 0;
    }

    .main-footer .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-footer .footer-logo {
        justify-content: center;
    }

    .main-footer .footer-contact li {
        justify-content: center;
    }

    .teacher-dashboard-actions {
        flex-direction: column;
    }

    .portal-logout-btn {
        width: 100%;
    }
}

/* ==========================================================================
   FINAL ACADEMY PORTAL POLISH
   Footer structure, WhatsApp-size portal button, and roster alignment
   ========================================================================== */

.footer-container.footer-container-stacked {
    display: block;
}

.footer-container.footer-container-stacked .footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 40px;
    width: 100%;
}

.footer-container.footer-container-stacked + .footer-bottom {
    clear: both;
}

.main-footer .footer-bottom {
    width: 100%;
    min-height: auto;
    padding: 22px 0;
}

.main-footer .footer-bottom-container {
    min-height: auto;
}

.floating-login-btn {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    padding: 0;
    border-radius: 50%;
    background: #0f5132;
    border: 2px solid #d9a74a;
}

.floating-login-btn i {
    font-size: 24px;
    line-height: 1;
}

.floating-login-btn:focus-visible {
    outline: 3px solid rgba(217, 167, 74, 0.55);
    outline-offset: 4px;
}

.student-name-cell {
    min-width: 0;
}

.student-avatar {
    aspect-ratio: 1 / 1;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-container.footer-container-stacked .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .floating-login-btn {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        max-width: 60px;
        max-height: 60px;
    }

    .student-roster-table td[data-label="Student Name"] {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding-top: 2px;
        padding-bottom: 13px;
    }

    .student-roster-table td[data-label="Student Name"] .student-name-cell {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        gap: 12px;
        color: #0f5132;
        text-align: left;
    }

    .student-roster-table td[data-label="Student Name"] .student-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
        flex: 0 0 34px;
        transform: none;
    }
}

/* ==========================================================================
   GLOBAL THEME CONSISTENCY
   Aligns the free-trial modal and academy portal with the homepage palette.
   ========================================================================== */

.modal-overlay {
    background-color: rgba(30, 39, 44, 0.78);
}

.modal-card {
    background:
        linear-gradient(rgba(30, 39, 44, 0.94), rgba(30, 39, 44, 0.9)),
        url('hero-bg.webp') no-repeat center center/cover;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-top: 5px solid var(--accent-gold);
    border-radius: 8px;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.38);
}

.modal-close-btn {
    color: var(--text-light);
}

.modal-close-btn:hover {
    color: var(--accent-gold);
}

.modal-card h2 {
    color: var(--text-light);
    letter-spacing: 0;
    text-transform: none;
}

.modal-subtitle {
    color: #f5f5f5;
}

.modal-form input,
.modal-form select {
    min-height: 50px;
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-dark);
}

.modal-form input::placeholder {
    color: #6f7780;
}

.modal-form select option {
    background-color: var(--text-light);
    color: var(--text-dark);
}

.modal-form input:focus,
.modal-form select:focus {
    border-color: var(--accent-gold);
    background-color: var(--text-light);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.modal-submit-btn,
.portal-btn,
.portal-login-card .portal-btn,
.zoom-btn,
.student-join-btn {
    border: none;
    border-radius: 5px;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.modal-submit-btn:hover,
.portal-btn:hover,
.portal-login-card .portal-btn:hover,
.zoom-btn:hover,
.student-join-btn:hover {
    background: var(--accent-hover);
    color: var(--text-light);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.portal-page {
    background:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)),
        url('hero-bg.webp') no-repeat center center/cover;
}

.portal-login-card,
.portal-page .dashboard-card,
.portal-box {
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-top: 5px solid var(--accent-gold);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.26);
}

.portal-card-heading h1,
.portal-box h2,
.teacher-dashboard-header h2,
.student-class-details h3 {
    color: var(--primary-dark);
}

.portal-card-heading p,
.sub-text,
.student-detail-grid p,
.class-info-card p {
    color: #555;
}

.dashboard-kicker,
.student-detail-grid i,
.portal-logout-btn i,
.roster-start-btn i {
    color: var(--accent-gold);
}

.input-group label,
.remember-me-row,
.student-detail-grid strong {
    color: var(--primary-dark);
}

.input-group input,
.input-group select,
.portal-login-card .input-group input,
.portal-login-card .input-group select {
    min-height: 48px;
    border: 1px solid #d8dde0;
    border-radius: 6px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent-gold);
    background: var(--text-light);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.password-toggle {
    color: var(--primary-dark);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(212, 175, 55, 0.16);
    color: var(--accent-hover);
}

.remember-me-row input {
    accent-color: var(--accent-gold);
}

.roster-summary,
.student-roster-table thead,
.student-class-icon,
.portal-logout-btn,
.roster-start-btn,
.floating-login-btn {
    background: var(--primary-dark);
    color: var(--text-light);
}

.roster-summary {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 14px 30px rgba(30, 39, 44, 0.18);
}

.roster-summary span,
.floating-login-btn i {
    color: var(--accent-gold);
}

.student-roster-shell,
.student-class-card,
.class-info-card,
.student-detail-grid p {
    border-color: rgba(212, 175, 55, 0.16);
}

.student-class-card,
.class-info-card,
.student-roster-table tbody tr:hover,
.course-pill {
    background: var(--bg-light);
}

.student-roster-table tbody tr:hover {
    box-shadow: inset 4px 0 0 var(--accent-gold);
}

.student-roster-table td {
    color: var(--text-dark);
}

.student-name-cell,
.student-avatar,
.course-pill {
    color: var(--primary-dark);
}

.student-avatar {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.42);
}

.roster-start-btn {
    box-shadow: 0 10px 22px rgba(30, 39, 44, 0.2);
}

.roster-start-btn:hover,
.portal-logout-btn:hover,
.portal-logout-btn:focus-visible,
.floating-login-btn:hover {
    background: var(--accent-hover);
    color: var(--text-light);
    box-shadow: 0 16px 30px rgba(30, 39, 44, 0.25);
}

.roster-start-btn:focus-visible,
.floating-login-btn:focus-visible {
    outline: 3px solid rgba(212, 175, 55, 0.5);
}

.floating-login-btn {
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 25px rgba(30, 39, 44, 0.35);
}

@media (max-width: 768px) {
    .student-roster-table tbody tr,
    .student-roster-table tbody tr:nth-child(even) {
        border-color: rgba(212, 175, 55, 0.16);
        box-shadow: 0 10px 26px rgba(30, 39, 44, 0.08);
    }

    .student-roster-table tbody tr:hover {
        box-shadow: 0 12px 30px rgba(30, 39, 44, 0.12), inset 4px 0 0 var(--accent-gold);
    }

    .student-roster-table td::before,
    .student-roster-table td[data-label="Student Name"] .student-name-cell {
        color: var(--primary-dark);
    }
}


