/* =========================================
   VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Color Palette */
    --primary: #fcd35e;
    /* Yellow (Eternal Light) */
    --primary-dark: #dca02e;
    --primary-light: #fee38e;
    --secondary: #6b0e45;
    /* Dark Purple (Priestess) */
    --secondary-dark: #4d0a31;
    --accent: #f0b893;
    /* Peach (Moonbeams) */
    --accent-2: #a3e3cd;
    /* Mint (Daydream Believer) */

    /* Backgrounds */
    --bg-dark: #545455;
    /* Dark Grey (Ivy League) */
    --bg-light: #e6e1d6;
    /* Sand/Beige background */
    --bg-off-white: #f4efea;
    --bg-card: rgba(255, 255, 255, 0.6);

    /* Text Colors */
    --text-primary: #333333;
    /* Dark text for light theme */
    --text-muted: #aa8578;
    /* Brown (Desert Rose) */
    --text-dark: #1a1a1a;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --glass-blur: blur(10px);

    /* Utilities */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* =========================================
   BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(252, 211, 94, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(252, 211, 94, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transition: var(--transition);
    transform: scaleX(0);
    transform-origin: left;
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    color: var(--secondary-dark);
    box-shadow: 0 0 20px rgba(252, 211, 94, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--bg-light);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-header .subtitle {
    display: block;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(230, 225, 214, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(230, 225, 214, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 5px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    border-radius: 5px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--secondary);
    font-family: var(--font-heading);
}

.logo-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.navbar .nav-links {
    display: flex;
    gap: 2rem;
}

.navbar a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-close {
    display: none;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomInOut 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 225, 214, 0.85) 0%, rgba(240, 184, 147, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 52%;
    position: relative;
    z-index: 10;
    padding-left: 40px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(107, 14, 69, 0.1);
    border: 1px solid rgba(107, 14, 69, 0.3);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-bottom .shape-fill {
    fill: var(--bg-light);
}

/* =========================================
   PAGE HEADER (ABOUT, COURSES, ETC)
   ========================================= */
.page-header {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    color: var(--secondary);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 225, 214, 0.85) 0%, rgba(240, 184, 147, 0.8) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header .hero-title {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.page-header .hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 500;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.img-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.main-img img {
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.floating-img {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    border-radius: var(--border-radius);
    border: 5px solid var(--bg-light);
    animation: float 6s ease-in-out infinite;
}

.experience-badge {
    position: absolute;
    top: 30px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 1.5rem;
    background: rgba(107, 14, 69, 0.95);
    border-color: var(--primary);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.experience-badge .text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.2;
}

.about-content {
    flex: 1;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-list .icon-box {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-top: 5px;
}

.feature-list h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-family: var(--font-body);
    color: var(--text-dark);
}

/* =========================================
   COURSES SECTION
   ========================================= */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    position: relative;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.course-card.featured {
    border-color: rgba(252, 211, 94, 0.8);
    background: linear-gradient(180deg, rgba(252, 211, 94, 0.1) 0%, rgba(255, 255, 255, 0.6) 100%);
    transform: translateY(-10px);
}

.badge-popular {
    position: absolute;
    top: 0;
    right: 20px;
    transform: translateY(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(107, 14, 69, 0.4);
}

.course-icon {
    width: 60px;
    height: 60px;
    background: rgba(107, 14, 69, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.course-card:hover .course-icon {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.1) rotate(10deg);
}

.course-card h3 {
    color: var(--text-dark);
}

.course-features {
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-grow: 1;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.course-features li i {
    color: var(--secondary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* =========================================
   SERVICES SECTION (PARALLAX)
   ========================================= */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 14, 69, 0.85);
    /* Deep Priestess Purple overlay */
}

.section-header.light .subtitle,
.section-header.light h2,
.section-header.light p {
    color: #fff;
}

.section-header.light .subtitle {
    color: var(--primary);
}

.services-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.services-content {
    flex: 1;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(252, 211, 94, 0.4);
}

.service-info h4 {
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    color: #fff;
}

.service-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.services-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.services-image img {
    max-width: 90%;
}

.floating-animation {
    animation: float 5s ease-in-out infinite;
}

/* =========================================
   WHY CHOOSE US (ACCORDION)
   ========================================= */
.choose-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.choose-image {
    flex: 1;
}

.choose-image img {
    width: 100%;
}

.choose-content {
    flex: 1;
}

.accordion-item {
    background: var(--bg-off-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active {
    border-color: rgba(107, 14, 69, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
}

.accordion-header h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.accordion-header h3 i {
    color: var(--secondary);
}

.toggle-icon {
    width: 30px;
    height: 30px;
    background: rgba(107, 14, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
}

.accordion-item.active .toggle-icon {
    background: var(--secondary);
    color: #fff;
    transform: rotate(45deg);
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
}

.accordion-item.active .accordion-body {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-wrapper {
    display: flex;
    gap: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-info {
    flex: 1;
    padding: 4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-dark) 100%);
}

.contact-info .section-header h2,
.contact-info .section-header p {
    color: #fff;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-details i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    font-family: var(--font-body);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    color: #f0f0f0;
}

.contact-details p {
    margin: 0;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-5px);
}

.contact-form-container {
    flex: 1;
    padding: 4rem;
    background: var(--bg-off-white);
}

.contact-form h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
}

.form-group select option {
    background: #fff;
    color: var(--text-dark);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: #76287D;
    padding-top: 100px;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.footer .wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer .wave-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.footer .wave-top .shape-fill {
    fill: var(--bg-light);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col.about-col {
    flex: 1.5;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    border-radius: 5px;
}

.footer-logo .logo-text h1 {
    font-size: 1.2rem;
    white-space: nowrap;
}

.footer-logo .logo-text span {
    font-size: 0.65rem;
    float: right;
    margin-top: -5px;
}

.footer-col p {
    font-size: 0.95rem;
    color: #ffffff;
}

.footer-col h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    color: #ffffff;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #FFD700;
}

.links-col ul li {
    margin-bottom: 1rem;
}

.links-col ul li a {
    color: #ffffff;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.links-col ul li a::before {
    content: '\f105';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #FFD700;
    font-size: 0.8rem;
    transition: var(--transition);
}

.links-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.map-container iframe {
    border-radius: 12px;
    transition: var(--transition);
}

.footer-bottom {
    background: #530060;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    color: #ffffff;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   ANIMATIONS & RESPONSIVE
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 30s linear infinite;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Responsive Design */
@media (max-width: 1150px) {
    .navbar .nav-links {
        gap: 1rem;
    }
    .logo-text h1 {
        font-size: 1.2rem;
    }
    .logo-text span {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    .logo img {
        height: 40px;
    }
    .nav-actions .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .navbar a {
        font-size: 0.95rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 65%;
        padding-left: 20px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .about-container,
    .services-wrapper,
    .choose-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .img-wrapper.floating-img {
        width: 40%;
        bottom: -20px;
        right: -10px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-container {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }

    .nav-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: #fff;
        padding: 80px 0 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 1000;
        overflow-y: auto;
    }

    .navbar.active {
        transform: translateX(0);
    }

    .navbar .nav-links {
        flex-direction: column;
        text-align: left;
        gap: 0;
        width: 100%;
    }

    .navbar .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar .nav-links li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        font-size: 1.1rem;
        color: var(--text-primary);
        font-weight: 500;
        width: 100%;
    }

    .navbar .nav-links li a::after {
        display: none;
    }

    .navbar .nav-links li a.active {
        background: rgba(252, 211, 94, 0.1);
        color: var(--secondary);
    }

    /* Close Button in Sidebar */
    .menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--secondary);
        font-size: 1.8rem;
        cursor: pointer;
        display: block !important;
        z-index: 1001;
    }

    /* Menu Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        margin-top: 0;
        animation: none;
    }

    .dropdown-menu li {
        border-bottom: none !important;
    }

    .dropdown-menu li a {
        padding: 12px 45px !important;
        font-size: 1rem !important;
    }

    /* Disable the hover effect on mobile to only rely on JS click toggle */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu,
    .dropdown.active:hover .dropdown-menu {
        display: block;
    }

    .dropdown .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .dropdown.active .fa-chevron-down {
        transform: rotate(180deg);
    }

    .hero-content {
        max-width: 100%;
        padding-top: 120px;
        padding-bottom: 80px;
        padding-right: 70px; /* Space for floating icons */
        padding-left: 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        margin-top: 30px !important;
    }

    .btn-lg {
        width: 100%;
        text-align: center;
    }

    .section-padding {
        padding: 40px 0;
    }

    .syllabus-bg {
        padding: 40px 0 !important;
    }

    .footer-logo .logo-text h1 {
        white-space: normal;
        font-size: 1.1rem;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .course-detail-image-wrap img {
        height: 250px !important;
    }

    .cta-section {
        padding: 60px 0 !important;
    }

    .page-header, 
    .parallax {
        background-attachment: scroll !important;
    }

    .logo {
        gap: 8px;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-bottom .container {
        justify-content: center;
        text-align: center;
    }
}

/* =========================================
   DROPDOWN MENU
   ========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    color: var(--text-primary);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(252, 211, 94, 0.2);
    color: var(--secondary);
}

/* =========================================
   GALLERY GRIDS
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(118, 40, 125, 0.9), rgba(118, 40, 125, 0.4));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 20px;
    text-align: center;
}

.gallery-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-caption {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-icon,
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Refinements */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

/* Page Header and Parallax fixes */
@media (max-width: 768px) {
    .page-header, 
    .parallax {
        background-attachment: scroll !important;
    }
}

/* =========================================
   VIDEO GALLERY
   ========================================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================================
   FLOATING CONTACT ICONS
   ========================================= */
.floating-contact-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-decoration: none !important;
}

.floating-icon:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Individual Brand Colors */
.floating-icon.youtube {
    background: #FF0000;
}
.floating-icon.facebook {
    background: #1877F2;
}
.floating-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.floating-icon.whatsapp {
    background: #25D366;
}
.floating-icon.call {
    background: var(--secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .floating-contact-wrap {
        right: 20px;
        bottom: 20px;
        gap: 10px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* =========================================
   CERTIFICATE SECTION
   ========================================= */
.certificate-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
    border-top: 5px solid var(--primary);
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.certificate-title-box {
    margin-bottom: 30px;
}

.certificate-title-box h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.certificate-reg-num {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(252, 211, 94, 0.4);
    border: 2px solid var(--primary-dark);
}

.certificate-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.certificate-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}
