/* ================================================
   Color Palette - QuranPath Premium Brand Theme
   Primary: #4b002b (Deep Burgundy)
   Secondary: #c2b169 (Gold)
   Neutral: #ffffff (White)
   ================================================ */
:root {
    /* Primary Colors */
    --primary: #4b002b;
    --primary-light: #6d1a4a;
    --primary-dark: #2a0018;
    --primary-hover: #3d0023;
    
    /* Secondary/Accent Colors */
    --secondary: #c2b169;
    --secondary-light: #d4c78a;
    --secondary-dark: #a89a52;
    --secondary-hover: #b5a45c;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #fafafa;
    --light-grey: #f5f5f5;
    --medium-grey: #e0e0e0;
    --dark-grey: #666666;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    
    /* Legacy variable mappings (for backward compatibility) */
    --primary-green: var(--primary);
    --primary-green-light: var(--primary-light);
    --primary-green-dark: var(--primary-dark);
    --accent-gold: var(--secondary);
    --accent-gold-light: var(--secondary-light);
    --light-background: var(--white);
    --text-dark-grey: var(--text-primary);
    --text-medium-grey: var(--text-secondary);
    --section-light-grey: var(--light-grey);
    --border-light-grey: var(--medium-grey);
    
    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(75, 0, 43, 0.06);
    --shadow-sm: 0 2px 8px rgba(75, 0, 43, 0.08);
    --shadow-md: 0 4px 16px rgba(75, 0, 43, 0.1);
    --shadow-lg: 0 8px 32px rgba(75, 0, 43, 0.12);
    --shadow-xl: 0 16px 48px rgba(75, 0, 43, 0.15);
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

/* ================================================
   Reset & Base Styles
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   Typography
   ================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    margin-top: 0;
    line-height: 1.3;
}

h2 {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    border-radius: 2px;
}

/* ================================================
   Buttons
   ================================================ */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1em;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(75, 0, 43, 0.25);
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 20px rgba(75, 0, 43, 0.35);
    transform: translateY(-3px);
    color: var(--white);
}

.btn-gold,
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(194, 177, 105, 0.3);
}

.btn-gold:hover,
.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    box-shadow: 0 6px 20px rgba(194, 177, 105, 0.4);
    color: var(--primary-dark);
}

/* Ensure primary buttons never get black text on hover (theme colors only) */
a.btn:hover, .btn:hover, button.btn:hover {
    color: var(--white);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(75, 0, 43, 0.25);
}

/* ================================================
   Header & Navigation
   ================================================ */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 15px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-base);
}

.logo a img {
    max-height: 70px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

.logo a:hover {
    opacity: 0.9;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95em;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.main-nav ul li a i {
    font-size: 0.7em;
    transition: transform var(--transition-base);
}

.main-nav ul li a.active,
.main-nav ul li a:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.15);
}

.main-nav ul li.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Menu - no gap so hover stays when moving to menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: var(--radius-lg);
    overflow: visible;
    margin-top: 0;
    padding-top: 12px;
    border: 1px solid var(--medium-grey);
    animation: dropdownFadeIn var(--transition-base);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Invisible bridge so hover is not lost when moving from trigger to menu */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.dropdown-content::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 20px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 0 0 3px 3px;
}

.main-nav .dropdown-content a {
    color: var(--text-primary);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-weight: 400;
    font-size: 0.95em;
    transition: var(--transition-base);
    border-left: 3px solid transparent;
}

.main-nav .dropdown-content a:hover {
    background-color: var(--light-grey);
    color: var(--primary) !important;
    border-left-color: var(--secondary);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Trial Button */
.trial-button .btn {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary-dark);
    padding: 12px 24px;
    font-size: 0.95em;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(194, 177, 105, 0.4);
}

.trial-button .btn:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194, 177, 105, 0.5);
    color: var(--primary-dark);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--secondary);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--secondary);
}

/* ================================================
   Bootstrap Carousel Custom Styles
   ================================================ */
#quranTeachingCarousel {
    margin-bottom: 0;
}

#quranTeachingCarousel .carousel-item {
    height: 85vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

#quranTeachingCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#quranTeachingCarousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Overlay using primary brand color */
    background: linear-gradient(
        135deg,
        rgba(75, 0, 43, 0.8) 0%,
        rgba(75, 0, 43, 0.65) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
    transition: var(--transition-slow);
}

#quranTeachingCarousel .carousel-item:hover::before {
    opacity: 0.9;
}

#quranTeachingCarousel .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    z-index: 10;
    text-align: center;
    padding: 0 15%;
}

#quranTeachingCarousel .carousel-caption h5 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2em;
    font-weight: bold;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    line-height: 1.2;
}

#quranTeachingCarousel .carousel-caption p {
    font-size: 1.25em;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

#quranTeachingCarousel .carousel-caption .btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border: none;
    color: var(--primary-dark);
    padding: 16px 45px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1em;
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(194, 177, 105, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#quranTeachingCarousel .carousel-caption .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(194, 177, 105, 0.5);
}

#quranTeachingCarousel .carousel-indicators {
    bottom: 30px;
}

#quranTeachingCarousel .carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.4);
    height: 4px;
    width: 40px;
    border: none;
    border-radius: 2px;
    margin: 0 6px;
    transition: var(--transition-base);
}

#quranTeachingCarousel .carousel-indicators button.active {
    background-color: var(--secondary);
    width: 60px;
}

#quranTeachingCarousel .carousel-control-prev,
#quranTeachingCarousel .carousel-control-next {
    width: 60px;
    opacity: 0;
    transition: var(--transition-base);
}

#quranTeachingCarousel:hover .carousel-control-prev,
#quranTeachingCarousel:hover .carousel-control-next {
    opacity: 1;
}

#quranTeachingCarousel .carousel-control-prev-icon,
#quranTeachingCarousel .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

/* ================================================
   Section Styles
   ================================================ */
section {
    text-align: center;
}

/* Courses Section */
.courses-offer-section {
    background-color: var(--white);
    padding: 100px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.course-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--medium-grey);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.course-card i {
    font-size: 3em;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, rgba(75, 0, 43, 0.08), rgba(194, 177, 105, 0.1));
    border-radius: 50%;
    transition: var(--transition-base);
}

.course-card-icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    display: inline-block;
    object-fit: contain;
    padding: 12px;
    background: linear-gradient(135deg, rgba(75, 0, 43, 0.08), rgba(194, 177, 105, 0.1));
    border-radius: 50%;
    transition: var(--transition-base);
}

/* Quran Reading icon – theme primary color (#4b002b) via CSS filter */
.course-card-icon-theme {
    filter: brightness(0) saturate(100%) invert(12%) sepia(73%) saturate(5000%) hue-rotate(268deg) brightness(95%) contrast(101%);
    transition: var(--transition-base);
}

.course-card:hover i {
    background: linear-gradient(135deg, rgba(75, 0, 43, 0.15), rgba(194, 177, 105, 0.2));
    color: var(--secondary-dark);
}

.course-card:hover .course-card-icon-img {
    background: linear-gradient(135deg, rgba(75, 0, 43, 0.15), rgba(194, 177, 105, 0.2));
}

/* Hover: icon tint to secondary (gold) */
.course-card:hover .course-card-icon-theme {
    filter: brightness(0) saturate(100%) invert(72%) sepia(35%) saturate(800%) hue-rotate(15deg) brightness(92%) contrast(88%);
}

.course-card h3 {
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition-base);
}

.course-card:hover h3 {
    color: var(--primary-light);
}

.course-card p {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
}

/* Registration Steps Section */
.registration-steps-section {
    background: linear-gradient(135deg, var(--light-grey) 0%, rgba(75, 0, 43, 0.03) 100%);
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    padding-top: 80px;
    border: 1px solid var(--medium-grey);
    transition: var(--transition-base);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.step-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(75, 0, 43, 0.35);
    border: 4px solid var(--white);
    transition: var(--transition-base);
}

.step-card:hover .step-icon {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 10px 30px rgba(75, 0, 43, 0.4);
}

.step-card h3 {
    font-size: 1.4em;
    color: var(--primary);
    margin-top: 15px;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--white);
    padding: 100px 0;
}

.pricing-toggle-wrapper {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    background-color: var(--light-grey);
    border-radius: var(--radius-full);
    padding: 6px;
    position: relative;
    border: 2px solid var(--medium-grey);
    gap: 0;
    box-shadow: var(--shadow-xs);
}

.btn-pricing {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 14px 45px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
    z-index: 2;
    min-width: 140px;
}

.btn-pricing:hover {
    color: var(--primary);
}

.btn-pricing.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(75, 0, 43, 0.3);
}

.toggle-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    z-index: 1;
    display: none; /* Using active class instead */
}

.pricing-plans {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}

.pricing-plans.active {
    display: flex;
}

.plan-card {
    flex: 0 0 260px;
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid var(--medium-grey);
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.plan-card h3 {
    font-size: 1.6em;
    color: var(--primary);
    margin-bottom: 8px;
}

.plan-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95em;
}

.plan-card .price {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
}

.plan-card .price span {
    font-size: 0.35em;
    font-weight: normal;
    color: var(--text-secondary);
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.plan-card ul li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95em;
    padding: 8px 0;
    border-bottom: 1px solid var(--medium-grey);
}

.plan-card ul li:last-child {
    border-bottom: none;
}

.plan-card .btn {
    width: 100%;
    padding: 12px 20px;
    color: var(--white);
}

.plan-card .btn:hover {
    color: var(--white);
}

/* Payment Methods Section */
.payment-methods-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 80px 0;
}

.payment-methods-section h2 {
    color: var(--white);
    margin-bottom: 40px;
}

.payment-methods-section h2::after {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 3.5em;
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition-base);
}

.payment-icons i:hover {
    opacity: 1;
    color: var(--secondary);
    transform: scale(1.1);
}

/* Faculty Slider Section */
.faculty-slider-section {
    background-color: var(--light-grey);
    padding: 100px 0;
}

.faculty-slider-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.faculty-slider-section .section-header h2 {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.faculty-slider-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.faculty-slider-section .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.15em;
    max-width: 550px;
    margin: 25px auto 0;
    line-height: 1.7;
    padding: 0 20px;
}

.faculty-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding: 20px 10px 30px;
    margin-top: 50px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--medium-grey);
}

.faculty-slider-container::-webkit-scrollbar {
    height: 8px;
}

.faculty-slider-container::-webkit-scrollbar-track {
    background: var(--medium-grey);
    border-radius: 4px;
}

.faculty-slider-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.faculty-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background-color: var(--white);
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--medium-grey);
}

.faculty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

/* Brand accent line at bottom of image */
.faculty-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 2;
}

/* Faculty Image Wrapper */
.faculty-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.faculty-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(1);
}

.faculty-card:hover .faculty-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Faculty icon placeholder (men/women icons instead of photos) */
.faculty-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.faculty-tutor-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition-base);
}

.faculty-card:hover .faculty-tutor-icon {
    transform: scale(1.05);
}

/* Faculty Overlay */
.faculty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(75, 0, 43, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-base);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.faculty-card:hover .faculty-overlay {
    opacity: 1;
}

.faculty-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.2em;
    transition: var(--transition-base);
    text-decoration: none;
}

.faculty-social a:hover {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.1);
}

/* Faculty Info */
.faculty-info {
    padding: 20px 18px 25px;
    text-align: center;
    background: var(--white);
    position: relative;
}

.faculty-card h3 {
    font-size: 1.1em;
    color: var(--text-primary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    gap: 8px;
}

.faculty-card h3 i {
    color: var(--primary);
    font-size: 0.9em;
}

.faculty-card .designation {
    color: var(--primary);
    font-size: 0.9em;
    margin-bottom: 10px;
    font-weight: 600;
}

.faculty-card .experience {
    color: var(--text-secondary);
    font-size: 0.75em;
    background: var(--light-grey);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    border: 1px solid var(--medium-grey);
}

.faculty-card .experience i {
    color: var(--secondary);
    font-size: 0.9em;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--white);
    padding: 100px 0;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding: 20px 10px 30px;
    margin-top: 50px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--medium-grey);
}

.testimonial-slider::-webkit-scrollbar {
    height: 8px;
}

.testimonial-slider::-webkit-scrollbar-track {
    background: var(--medium-grey);
    border-radius: 4px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.testimonial-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background-color: var(--light-grey);
    padding: 40px 30px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    border: 1px solid var(--medium-grey);
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 2em;
    color: var(--primary);
    opacity: 0.2;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05em;
    line-height: 1.8;
}

.testimonial-card h4 {
    color: var(--primary);
    font-size: 1.3em;
    margin-bottom: 5px;
}

.testimonial-card span {
    color: var(--secondary-dark);
    font-size: 0.95em;
    font-weight: 500;
}

/* ================================================
   About Page Styles
   ================================================ */
.about-page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

.about-page-hero h1 {
    color: var(--white);
    font-size: 3em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.about-page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-us-content-section {
    padding: 100px 0;
}

.about-us-content-section.section-even {
    background-color: var(--white);
}

.about-us-content-section.section-odd {
    background-color: var(--light-grey);
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.about-us-grid.reverse-grid {
    direction: rtl;
}

.about-us-grid.reverse-grid > * {
    direction: ltr;
}

.about-text {
    text-align: left;
}

.about-text h3 {
    font-size: 1.8em;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background-color: var(--white);
    padding: 40px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-light);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--medium-grey);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.feature-card i {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.2em;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

/* ================================================
   Contact Page Styles
   ================================================ */
.contact-page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.contact-page-hero h1 {
    color: var(--white);
    font-size: 3em;
    margin-bottom: 20px;
}

.contact-page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3em;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section {
    padding: 100px 0;
    background-color: var(--light-grey);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Modern Contact Form */
.contact-form-card {
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-grey);
}

.contact-form-card h3 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.contact-form-card > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.05em;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form .form-row-single {
    grid-template-columns: 1fr;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--medium-grey);
    border-radius: var(--radius-md);
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition-base);
    background-color: var(--light-grey);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(75, 0, 43, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group i {
    position: absolute;
    right: 20px;
    top: 50px;
    color: var(--text-secondary);
    pointer-events: none;
}

.contact-form .btn,
.contact-form .btn:hover {
    color: var(--white) !important;
}

.contact-form .btn {
    width: 100%;
    padding: 18px 30px;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Contact Info Cards */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.contact-info-card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-light);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--medium-grey);
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.contact-info-card i {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 50%;
}

.contact-info-card h4 {
    font-size: 1.2em;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-info-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

/* ================================================
   Footer
   ================================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 30px 0;
    font-size: 0.95em;
    box-shadow: 0 -5px 30px rgba(75, 0, 43, 0.2);
}

.footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.4em;
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
}

.footer-col h3.footer-logo {
    padding: 0;
    margin-bottom: 20px;
}

.footer-col h3.footer-logo a {
    display: inline-block;
}

.footer-col h3.footer-logo img {
    max-height: 44px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
}

.footer-col h3 span {
    color: var(--secondary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact-info div {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-info i {
    color: var(--secondary);
    margin-right: 12px;
    font-size: 1.1em;
    margin-top: 4px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition-base);
    font-size: 1.1em;
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(194, 177, 105, 0.4);
}

.newsletter-signup form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-signup input[type="email"] {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1em;
    transition: var(--transition-base);
}

.newsletter-signup input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-signup input[type="email"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(194, 177, 105, 0.2);
}

.newsletter-signup button {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-weight: 600;
}

.newsletter-signup button:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom .footer-links {
    margin: 15px 0;
}

.footer-bottom .footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 15px;
    transition: var(--transition-base);
}

.footer-bottom .footer-links a:hover {
    color: var(--secondary);
}

.payment-footer-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-footer-icons i {
    font-size: 2em;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.8;
    transition: var(--transition-base);
}

.payment-footer-icons i:hover {
    opacity: 1;
    color: var(--secondary);
    transform: scale(1.1);
}

/* ================================================
   Toaster Notification System
   ================================================ */
.toaster-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}

.toaster {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: all;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
}

.toaster.show {
    transform: translateX(0);
    opacity: 1;
}

.toaster.hide {
    transform: translateX(120%);
    opacity: 0;
}

/* Toaster Types */
.toaster.success {
    border-left: 4px solid var(--primary);
}

.toaster.error {
    border-left: 4px solid #e74c3c;
}

.toaster.warning {
    border-left: 4px solid var(--secondary);
}

.toaster.info {
    border-left: 4px solid #3498db;
}

/* Toaster Icon */
.toaster-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.toaster.success .toaster-icon {
    background: rgba(75, 0, 43, 0.1);
    color: var(--primary);
}

.toaster.error .toaster-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.toaster.warning .toaster-icon {
    background: rgba(194, 177, 105, 0.15);
    color: var(--secondary-dark);
}

.toaster.info .toaster-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Toaster Content */
.toaster-content {
    flex: 1;
}

.toaster-title {
    font-weight: 700;
    font-size: 1em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toaster-message {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Toaster Close Button */
.toaster-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--dark-grey);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
    font-size: 0.85em;
}

.toaster-close:hover {
    background: var(--light-grey);
    color: var(--text-primary);
}

/* Progress Bar */
.toaster-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.toaster-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
}

.toaster.success .toaster-progress-bar {
    background: var(--primary);
}

.toaster.error .toaster-progress-bar {
    background: #e74c3c;
}

.toaster.warning .toaster-progress-bar {
    background: var(--secondary);
}

.toaster.info .toaster-progress-bar {
    background: #3498db;
}

/* Toaster Responsive */
@media (max-width: 576px) {
    .toaster-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toaster {
        padding: 15px;
        gap: 12px;
    }
    
    .toaster-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 1em;
    }
    
    .toaster-title {
        font-size: 0.95em;
    }
    
    .toaster-message {
        font-size: 0.85em;
    }
}

/* ================================================
   Left Side Message Widget
   ================================================ */
.message-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1500;
}

/* Message Toggle Button */
.message-toggle-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(75, 0, 43, 0.4);
    transition: var(--transition-base);
    position: relative;
}

.message-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(75, 0, 43, 0.5);
}

.message-toggle-btn i {
    font-size: 1.6em;
    color: var(--white);
    transition: var(--transition-base);
}

.message-toggle-btn.active i.fa-comment-dots {
    opacity: 0;
    transform: rotate(90deg);
}

.message-toggle-btn i.fa-times {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.message-toggle-btn.active i.fa-times {
    opacity: 1;
    transform: rotate(0deg);
}

/* Tooltip */
.message-toggle-btn::before {
    content: 'Send us a message';
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.message-toggle-btn::after {
    content: '';
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.message-toggle-btn:hover::before,
.message-toggle-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.message-toggle-btn.active::before,
.message-toggle-btn.active::after {
    opacity: 0;
    visibility: hidden;
}

/* Notification Badge */
.message-toggle-btn .notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 700;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Message Chat Box */
.message-chat-box {
    position: absolute;
    bottom: 75px;
    left: 0;
    width: 340px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.message-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Message Header */
.message-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 20px 15px;
    text-align: center;
    position: relative;
}

.message-chat-header .header-avatar {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.message-chat-header .header-avatar i {
    font-size: 1.5em;
    color: var(--white);
}

.message-chat-header h4 {
    color: var(--white);
    font-size: 1.15em;
    margin-bottom: 4px;
    font-family: 'Playfair Display', serif;
}

.message-chat-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8em;
    margin: 0;
}

.message-chat-header .online-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.7em;
    color: var(--white);
}

.message-chat-header .online-status .dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: onlinePulse 2s ease-in-out infinite;
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.message-chat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

.message-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Message Body */
.message-chat-body {
    padding: 15px;
    background: #f8f9fa;
    max-height: 400px;
    overflow-y: auto;
}

/* Quick Options */
.message-quick-options {
    margin-bottom: 15px;
}

.message-quick-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: var(--dark-grey);
    margin-bottom: 10px;
    font-weight: 600;
}

.message-quick-options label i {
    color: var(--primary);
}

.quick-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-option-btn {
    padding: 6px 12px;
    border: 1px solid var(--medium-grey);
    border-radius: var(--radius-full);
    background: var(--white);
    cursor: pointer;
    font-size: 0.75em;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quick-option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(46, 125, 50, 0.05);
}

.quick-option-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.quick-option-btn i {
    font-size: 0.85em;
}

/* Message Form */
.message-form-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-xs);
}

.message-form-section .form-group {
    margin-bottom: 12px;
}

.message-form-section .form-group:last-of-type {
    margin-bottom: 0;
}

.message-form-section label {
    display: block;
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.message-form-section label i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 0.9em;
}

.message-form-section input,
.message-form-section textarea {
    width: 100%;
    border: 1px solid var(--medium-grey);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.9em;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition-base);
    color: var(--text-primary);
    box-sizing: border-box;
}

.message-form-section input:focus,
.message-form-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(75, 0, 43, 0.1);
}

.message-form-section textarea {
    min-height: 80px;
    resize: none;
}

.message-form-section input::placeholder,
.message-form-section textarea::placeholder {
    color: #aaa;
}

/* Contact Options */
.message-contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.contact-option-btn {
    padding: 10px 12px;
    border: 1px solid var(--medium-grey);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-option-btn.whatsapp {
    color: #25D366;
}

.contact-option-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.contact-option-btn.email {
    color: var(--primary);
}

.contact-option-btn.email:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.contact-option-btn i {
    font-size: 1em;
}

/* Submit Button */
.message-submit-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.3);
}

.message-submit-btn,
.message-submit-btn:hover {
    color: var(--white) !important;
}

.message-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.4);
}

.message-submit-btn i {
    font-size: 0.95em;
}

/* Message Footer */
.message-chat-footer {
    text-align: center;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 0.7em;
    color: #999;
}

.message-chat-footer i {
    color: var(--primary);
    margin-right: 4px;
}

/* Message Widget Responsive */
@media (max-width: 576px) {
    .message-widget {
        bottom: 20px;
        left: 15px;
    }
    
    .message-chat-box {
        width: calc(100vw - 30px);
        left: 0;
        bottom: 70px;
        position: fixed;
        max-height: 80vh;
    }
    
    .message-toggle-btn {
        width: 50px;
        height: 50px;
    }
    
    .message-toggle-btn i {
        font-size: 1.3em;
    }
    
    .message-toggle-btn::before,
    .message-toggle-btn::after {
        display: none;
    }
    
    .message-chat-header {
        padding: 15px 12px;
    }
    
    .message-chat-header .header-avatar {
        width: 45px;
        height: 45px;
    }
    
    .message-chat-header .header-avatar i {
        font-size: 1.2em;
    }
    
    .message-chat-body {
        padding: 12px;
        max-height: 300px;
    }
    
    .message-contact-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-option-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .quick-option-btn {
        justify-content: center;
        font-size: 0.7em;
        padding: 5px 8px;
    }
    
    .message-form-section {
        padding: 12px;
    }
    
    .message-form-section input,
    .message-form-section textarea {
        padding: 8px 10px;
        font-size: 0.85em;
    }
    
    .message-form-section textarea {
        min-height: 60px;
    }
}

/* ================================================
   WhatsApp Integration Widget
   ================================================ */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

/* WhatsApp Toggle Button */
.whatsapp-toggle-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-toggle-btn i {
    font-size: 1.8em;
    color: #fff;
    transition: transform 0.3s ease;
}

.whatsapp-toggle-btn.active i {
    transform: rotate(90deg);
}

/* Tooltip */
.whatsapp-toggle-btn::before {
    content: 'Chat with us on WhatsApp';
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-toggle-btn::after {
    content: '';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-toggle-btn:hover::before,
.whatsapp-toggle-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.whatsapp-toggle-btn.active::before,
.whatsapp-toggle-btn.active::after {
    opacity: 0;
    visibility: hidden;
}

/* WhatsApp Chat Box */
.whatsapp-chat-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.whatsapp-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header - Keep WhatsApp green color for brand recognition */
.whatsapp-chat-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.whatsapp-chat-header .header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-chat-header .header-icon i {
    font-size: 1.5em;
    color: #fff;
}

.whatsapp-chat-header .header-info h4 {
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 3px;
}

.whatsapp-chat-header .header-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85em;
    margin: 0;
}

.whatsapp-chat-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Chat Body */
.whatsapp-chat-body {
    padding: 25px 20px;
    background: #f0f2f5;
}

/* Welcome Message Bubble */
.whatsapp-welcome-message {
    background: #fff;
    padding: 15px 18px;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    position: relative;
}

.whatsapp-welcome-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    border: 8px solid transparent;
    border-top-color: #fff;
    border-right-color: #fff;
}

.whatsapp-welcome-message p {
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

.whatsapp-welcome-message .time {
    display: block;
    text-align: right;
    font-size: 0.75em;
    color: #999;
    margin-top: 8px;
}

/* Message Input Area */
.whatsapp-message-input {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.whatsapp-message-input label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.whatsapp-message-input textarea {
    width: 100%;
    height: 80px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95em;
    font-family: 'Roboto', sans-serif;
    resize: none;
    transition: all 0.3s ease;
    color: #333;
}

.whatsapp-message-input textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.whatsapp-message-input textarea::placeholder {
    color: #999;
}

/* Country Selection */
.whatsapp-country-selection {
    margin-top: 15px;
}

.whatsapp-country-selection label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.country-buttons {
    display: flex;
    gap: 10px;
}

.country-btn {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.country-btn:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.country-btn.selected {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    color: #128C7E;
}

.country-btn .flag {
    font-size: 1.3em;
}

.country-btn .country-name {
    font-weight: 600;
}

/* Send Button */
.whatsapp-send-btn {
    width: 100%;
    margin-top: 15px;
    padding: 14px 25px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.whatsapp-send-btn i {
    font-size: 1.1em;
}

/* Powered By */
.whatsapp-powered-by {
    text-align: center;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    font-size: 0.75em;
    color: #999;
}

.whatsapp-powered-by a {
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
}

/* WhatsApp Widget Responsive */
@media (max-width: 576px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 15px;
    }
    
    .whatsapp-chat-box {
        width: calc(100vw - 30px);
        right: 0;
        bottom: 70px;
    }
    
    .whatsapp-toggle-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-toggle-btn i {
        font-size: 1.6em;
    }
    
    .whatsapp-toggle-btn::before,
    .whatsapp-toggle-btn::after {
        display: none;
    }
    
    .whatsapp-chat-header {
        padding: 15px;
    }
    
    .whatsapp-chat-body {
        padding: 20px 15px;
    }
    
    .country-buttons {
        flex-direction: column;
    }
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 1200px) {
    .courses-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        padding: 15px 10px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }
    
    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background-color: rgba(255, 255, 255, 0.05);
        margin-top: 0;
        border-radius: 0;
        animation: none;
    }
    
    .dropdown-content::before {
        display: none;
    }
    
    .dropdown-content a {
        padding-left: 30px;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--secondary);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .trial-button {
        order: 2;
    }
    
    #quranTeachingCarousel .carousel-caption h5 {
        font-size: 2.2em;
    }
    
    #quranTeachingCarousel .carousel-caption p {
        font-size: 1.1em;
    }
    
    #quranTeachingCarousel .carousel-caption {
        padding: 0 10%;
    }
    
    h2 {
        font-size: 2em;
    }
    
    .about-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-us-grid.reverse-grid {
        direction: ltr;
    }
    
    .about-image::before {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .courses-grid,
    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .plan-card {
        flex: 0 0 100%;
        max-width: 350px;
    }
    
    .faculty-slider-section .section-header h2 {
        font-size: 2.2em;
    }
    
    .faculty-card {
        flex: 0 0 260px;
    }
    
    .faculty-img-wrapper {
        height: 250px;
    }
    
    .faculty-info {
        padding: 18px 15px 22px;
    }
    
    .faculty-card h3 {
        font-size: 1.05em;
    }
    
    .faculty-card .designation {
        font-size: 0.85em;
    }
    
    .faculty-card .experience {
        font-size: 0.72em;
        padding: 5px 12px;
    }
    
    .testimonial-card {
        flex: 0 0 320px;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact-info div {
        justify-content: center;
    }
    
    .about-page-hero h1,
    .contact-page-hero h1 {
        font-size: 2.2em;
    }
    
    .contact-form-card {
        padding: 30px 20px;
    }
    
    #quranTeachingCarousel .carousel-item {
        height: 70vh;
        min-height: 400px;
    }
    
    #quranTeachingCarousel .carousel-caption h5 {
        font-size: 1.8em;
    }
    
    #quranTeachingCarousel .carousel-caption p {
        font-size: 1em;
        margin-bottom: 25px;
    }
    
    #quranTeachingCarousel .carousel-caption .btn-primary {
        padding: 12px 30px;
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .courses-offer-section,
    .registration-steps-section,
    .pricing-section,
    .faculty-slider-section,
    .testimonials-section,
    .about-us-content-section,
    .contact-section {
        padding: 60px 0;
    }
    
    /* Faculty Section Mobile */
    .faculty-slider-section .section-header {
        margin-bottom: 40px;
    }
    
    .faculty-slider-section .section-header h2 {
        font-size: 1.8em;
    }
    
    .faculty-slider-section .section-header h2::after {
        width: 60px;
    }
    
    .faculty-slider-section .section-subtitle {
        font-size: 0.95em;
        margin-top: 18px;
    }
    
    .faculty-card {
        flex: 0 0 230px;
    }
    
    .faculty-img-wrapper {
        height: 220px;
    }
    
    .faculty-info {
        padding: 15px 12px 18px;
    }
    
    .faculty-card h3 {
        font-size: 0.95em;
    }
    
    .faculty-card .designation {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    
    .faculty-card .experience {
        font-size: 0.68em;
        padding: 5px 10px;
    }
    
    .logo a img {
        max-height: 40px;
        max-width: 140px;
    }
    
    .trial-button .btn {
        padding: 10px 16px;
        font-size: 0.85em;
    }
    
    .pricing-toggle {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-pricing {
        padding: 12px 30px;
    }
    
    .whatsapp-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-contact a {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-contact i {
        font-size: 1.6em;
    }
}

/* ================================================
   Utility Classes
   ================================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-0 { margin-top: 0; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ================================================
   Welcome Popup Styles
   ================================================ */
.welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 0, 43, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    padding: 20px;
}

.welcome-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.welcome-popup {
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.8) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.welcome-popup-overlay.active .welcome-popup {
    transform: scale(1) translateY(0);
}

/* Decorative Elements */
.welcome-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(194, 177, 105, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-popup::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(194, 177, 105, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Close Button */
.welcome-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.welcome-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

/* Popup Content */
.welcome-popup-content {
    position: relative;
    z-index: 1;
    padding: 50px 40px;
    text-align: center;
}

/* Arabic Text / Bismillah */
.welcome-popup-bismillah {
    font-family: 'Amiri', 'Times New Roman', serif;
    font-size: 1.8em;
    color: var(--secondary);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(194, 177, 105, 0.3);
    letter-spacing: 2px;
}

/* Icon */
.welcome-popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(194, 177, 105, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(194, 177, 105, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(194, 177, 105, 0.6), 0 0 20px rgba(194, 177, 105, 0.3);
    }
}

.welcome-popup-icon i {
    font-size: 2.2em;
    color: var(--primary-dark);
}

/* Heading */
.welcome-popup-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: var(--white);
    margin-bottom: 8px;
    font-weight: 600;
}

.welcome-popup-heading span {
    color: var(--secondary);
}

/* Subheading */
.welcome-popup-subheading {
    font-size: 1.3em;
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-popup-subheading i {
    font-size: 0.9em;
}

/* Description */
.welcome-popup-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* Features List */
.welcome-popup-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.welcome-popup-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
}

.welcome-popup-feature i {
    color: var(--secondary);
    font-size: 1.1em;
}

/* CTA Button */
.welcome-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--primary-dark);
    font-size: 1.15em;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: 0 8px 25px rgba(194, 177, 105, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(194, 177, 105, 0.5);
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
}

.welcome-popup-cta i {
    font-size: 1em;
}

/* Skip Link */
.welcome-popup-skip {
    display: block;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.welcome-popup-skip:hover {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 576px) {
    .welcome-popup {
        border-radius: 20px;
        margin: 15px;
    }
    
    .welcome-popup-content {
        padding: 40px 25px;
    }
    
    .welcome-popup-bismillah {
        font-size: 1.5em;
    }
    
    .welcome-popup-icon {
        width: 65px;
        height: 65px;
    }
    
    .welcome-popup-icon i {
        font-size: 1.8em;
    }
    
    .welcome-popup-heading {
        font-size: 1.6em;
    }
    
    .welcome-popup-subheading {
        font-size: 1.1em;
    }
    
    .welcome-popup-description {
        font-size: 0.95em;
    }
    
    .welcome-popup-features {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .welcome-popup-cta {
        padding: 16px 35px;
        font-size: 1em;
        width: 100%;
    }
    
    .welcome-popup-close {
        width: 35px;
        height: 35px;
        top: 12px;
        right: 12px;
    }
}

/* ================================================
   Registration Page Styles
   ================================================ */
.registration-page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.registration-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
}

.registration-page-hero .hero-content {
    position: relative;
    z-index: 1;
}

.registration-page-hero .hero-icon {
    width: 90px;
    height: 90px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-lg);
}

.registration-page-hero .hero-icon i {
    font-size: 2.5em;
    color: var(--primary);
}

.registration-page-hero h1 {
    color: var(--white);
    font-size: 2.8em;
    margin-bottom: 20px;
}

.registration-page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.registration-section {
    padding: 80px 0 100px;
    background-color: var(--light-grey);
}

.registration-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Registration Form Card */
.registration-form-card {
    background-color: var(--white);
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-grey);
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h3 {
    font-size: 1.8em;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-header h3 i {
    color: var(--secondary);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.05em;
    margin: 0;
}

/* Registration Form */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.registration-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.registration-form .form-group {
    position: relative;
}

.registration-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

.registration-form .form-group label i {
    color: var(--primary);
    font-size: 0.95em;
    width: 18px;
}

.registration-form .form-group label .required {
    color: #e74c3c;
    font-weight: bold;
}

.registration-form .form-group input,
.registration-form .form-group select,
.registration-form .form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--medium-grey);
    border-radius: 12px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--light-grey);
    color: var(--text-primary);
}

.registration-form .form-group input:focus,
.registration-form .form-group select:focus,
.registration-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.registration-form .form-group input::placeholder,
.registration-form .form-group textarea::placeholder {
    color: #999;
}

.registration-form .form-group select[multiple] {
    min-height: 140px;
    padding: 12px;
}

.registration-form .form-group select[multiple] option {
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.registration-form .form-group select[multiple] option:checked {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.registration-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.registration-form .help-text {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.registration-form .help-text i {
    margin-right: 5px;
    color: var(--primary);
}

.registration-form .error-message {
    display: none;
    margin-top: 6px;
    font-size: 0.85em;
    color: #e74c3c;
}

.registration-form .form-group.error input,
.registration-form .form-group.error select,
.registration-form .form-group.error textarea {
    border-color: #e74c3c;
}

.registration-form .form-group.error .error-message {
    display: block;
}

/* Checkbox Styles */
.form-agreement {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--medium-grey);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: var(--light-grey);
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--white);
    font-size: 0.75em;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.registration-form .btn-submit,
.registration-form .btn-submit:hover {
    color: var(--white) !important;
}

.registration-form .btn-submit {
    width: 100%;
    padding: 18px 40px;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.registration-form .btn-submit i {
    font-size: 1em;
}

/* Benefits Sidebar */
.registration-benefits {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 100px;
}

.benefits-card,
.contact-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-light);
    border: 1px solid var(--medium-grey);
}

.benefits-card h4,
.contact-card h4 {
    font-size: 1.3em;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefits-card h4 i,
.contact-card h4 i {
    color: var(--secondary);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--medium-grey);
    color: var(--text-secondary);
    font-size: 0.95em;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li i {
    color: var(--primary);
    font-size: 1.1em;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.6;
}

.contact-card .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.contact-card .contact-item i {
    color: var(--primary);
    font-size: 1.1em;
    margin-top: 3px;
}

.contact-card .contact-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card .whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.contact-card .whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.contact-card .whatsapp-btn i {
    font-size: 1.3em;
}

/* Registration Page Responsive */
@media (max-width: 1024px) {
    .registration-wrapper {
        grid-template-columns: 1fr;
    }
    
    .registration-benefits {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .registration-page-hero {
        padding: 80px 0 60px;
    }
    
    .registration-page-hero h1 {
        font-size: 2.2em;
    }
    
    .registration-page-hero .hero-icon {
        width: 70px;
        height: 70px;
    }
    
    .registration-page-hero .hero-icon i {
        font-size: 2em;
    }
    
    .registration-section {
        padding: 60px 0 80px;
    }
    
    .registration-form-card {
        padding: 35px 25px;
    }
    
    .registration-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .registration-benefits {
        grid-template-columns: 1fr;
    }
    
    .form-header h3 {
        font-size: 1.5em;
    }
}

@media (max-width: 576px) {
    .registration-page-hero {
        padding: 70px 0 50px;
    }
    
    .registration-page-hero h1 {
        font-size: 1.8em;
    }
    
    .registration-page-hero p {
        font-size: 1em;
    }
    
    .registration-form-card {
        padding: 25px 20px;
    }
    
    .registration-form .form-group input,
    .registration-form .form-group select,
    .registration-form .form-group textarea {
        padding: 14px 16px;
    }
    
    .benefits-card,
    .contact-card {
        padding: 25px 20px;
    }
}

/* ================================================
   Registration Modal Styles
   ================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s ease;
    position: relative;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 35px 40px;
    text-align: center;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.modal-icon i {
    font-size: 2em;
    color: var(--primary);
}

.modal-header h2 {
    color: var(--white);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.modal-header h2::after {
    display: none;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

/* Registration Form Styles */
.registration-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.registration-form .form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.registration-form .form-group {
    flex: 1;
    min-width: 0;
}

.registration-form .form-group.full-width {
    flex: 0 0 100%;
}

.registration-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

.registration-form .form-group label i {
    color: var(--primary);
    font-size: 0.9em;
}

.registration-form .form-group input,
.registration-form .form-group select,
.registration-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--medium-grey);
    border-radius: 12px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--light-grey);
}

.registration-form .form-group input:focus,
.registration-form .form-group select:focus,
.registration-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.registration-form .form-group input::placeholder,
.registration-form .form-group textarea::placeholder {
    color: #999;
}

.registration-form .form-group select[multiple] {
    min-height: 120px;
    padding: 10px;
}

.registration-form .form-group select[multiple] option {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.registration-form .form-group select[multiple] option:checked {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.registration-form .form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.registration-form .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.registration-form .btn-submit {
    flex: 0 0 100%;
    padding: 18px 40px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.registration-form .btn-submit i {
    font-size: 1em;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 30px 25px;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.5em;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .registration-form .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .modal-icon i {
        font-size: 1.6em;
    }
}

@media (max-width: 576px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-header {
        padding: 25px 20px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .registration-form .form-group input,
    .registration-form .form-group select,
    .registration-form .form-group textarea {
        padding: 12px 14px;
    }
}

/* ================================================
   Policy Modals (Terms, Refund, Privacy)
   ================================================ */
.policy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 0, 43, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    padding: 20px;
    overflow-y: auto;
}

.policy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.policy-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s ease;
    position: relative;
    margin: auto;
}

.policy-modal-overlay.active .policy-modal {
    transform: scale(1) translateY(0);
}

.policy-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: var(--transition-base);
    z-index: 2;
}

.policy-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    transform: rotate(90deg);
}

.policy-modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 28px 40px 24px;
    text-align: center;
}

.policy-modal-header h2 {
    color: var(--white);
    font-size: 1.6em;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.policy-modal-header h2::after {
    display: none;
}

.policy-modal-header h2 i {
    color: var(--secondary);
}

.policy-modal-body {
    padding: 32px 40px 40px;
    overflow-y: auto;
    flex: 1;
}

.policy-modal-body p,
.policy-modal-body li {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 14px;
}

.policy-modal-body h4 {
    color: var(--primary);
    font-size: 1.1em;
    margin-top: 24px;
    margin-bottom: 10px;
}

.policy-modal-body h4:first-of-type {
    margin-top: 0;
}

.policy-inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.policy-inline-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

@media (max-width: 576px) {
    .policy-modal {
        border-radius: 20px;
        max-height: 85vh;
    }
    
    .policy-modal-header {
        padding: 24px 24px 20px;
    }
    
    .policy-modal-header h2 {
        font-size: 1.35em;
    }
    
    .policy-modal-body {
        padding: 24px 24px 32px;
    }
}
