:root {
    --primary-bg-gradient: linear-gradient(135deg, #8c6bf5 0%, #85befd 100%);
    --primary-bg-gradient-hover: linear-gradient(280deg, #8c6bf5 0%, #85befd 100%);
}

/* Enhanced Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-30px) rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
}

.enhanced-carousel {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 70vh;
}

.carousel-item {
    width: 100%;
    height: 70vh;
}

.slide-bg {
    position: relative;
    width: 100%;
    height: 70vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enhanced-overlay {
    background: linear-gradient(359deg, rgb(0 0 0 / 37%), rgba(112, 48, 160, -1.6));
    backdrop-filter: blur(0px);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: overlayFadeIn 1s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.enhanced-slide-img {
    animation: imageEnhance 1.5s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enhanced-slide-img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@keyframes imageEnhance {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.typing-effect {
    /* overflow: hidden; */
    border-right: 3px solid #fff;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #fff;
    }
}

.staggered-fade {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.enhanced-btn {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    border: 2px solid #fff;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(112, 48, 160, 0.2), transparent);
    transition: left 0.5s ease;
}

.enhanced-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.enhanced-btn:hover::before {
    left: 100%;
}

.enhanced-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.enhanced-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.enhanced-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.animated-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.animated-image {
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 1.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Stagger animations */
.animated-text:nth-child(1) {
    animation-delay: 0.2s;
}

.animated-text:nth-child(2) {
    animation-delay: 0.4s;
}

.animated-text:nth-child(3) {
    animation-delay: 0.6s;
}

.animated-image:nth-child(1) {
    animation-delay: 0.3s;
}

.animated-image:nth-child(2) {
    animation-delay: 0.5s;
}

/* Quiz styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Quiz Intro Card */
.quiz-intro-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(112, 48, 160, 0.05));
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(112, 48, 160, 0.1);
    position: relative;
    overflow: hidden;
}

.quiz-intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(112, 48, 160, 0.1), transparent);
    transition: left 0.6s ease;
}

.quiz-intro-card:hover::before {
    left: 100%;
}

.quiz-title {
    color: var(--esg-primary);
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.quiz-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.btn-quiz-start {
    background: var(--primary-bg-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(112, 48, 160, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-quiz-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(112, 48, 160, 0.4);
    background: var(--primary-bg-gradient-hover);
    color: white !important;
    transition: all 0.8s ease;
}


/* SLIDE 1 */
.carousel-item.active .slide-img-1 {
    animation: zoomInGlow 2s ease-in-out forwards;
    position: relative;
}

.carousel-item.active .slide-img-1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: glowFade 3s ease-in-out infinite alternate;
}

@keyframes zoomInGlow {
    from {
        transform: scale(1);
        opacity: 0;
    }

    to {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes glowFade {
    from {
        opacity: 0.1;
    }

    to {
        opacity: 0.3;
    }
}

/* SLIDE 2 */
.carousel-item.active .slide-img-2 {
    animation: slideInPath 2.5s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.carousel-item.active .slide-img-2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: linear-gradient(to right, #4CAF50, #2196F3);
    animation: progressFill 4s ease-in-out forwards;
}

@keyframes slideInPath {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes progressFill {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* SLIDE 3 */
.carousel-item.active .slide-img-3 {
    animation: fadeUpGrow 2s ease-in forwards;
    position: relative;
}

.carousel-item.active .slide-img-3::before,
.carousel-item.active .slide-img-3::after {
    content: '🌿';
    position: absolute;
    font-size: 30px;
    opacity: 0;
    animation: leafGrow 3s ease-out forwards;
}

.carousel-item.active .slide-img-3::before {
    top: 20%;
    left: 10%;
    animation-delay: 1s;
}

.carousel-item.active .slide-img-3::after {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes fadeUpGrow {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes leafGrow {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    to {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
}

/* RESULT CSS */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

.hero-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.score-hero {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite alternate;
}

.percentage-hero {
    font-size: 2.5rem;
    color: #311aa9;
    opacity: 0.9;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.main-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.level-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    margin: 10px 0;
}

.level-beginner {
    background: linear-gradient(45deg, #FF5722, #FF9800);
}

.level-intermediate {
    background: linear-gradient(45deg, #FF9800, #FFC107);
}

.level-advanced {
    background: linear-gradient(45deg, #2196F3, #4CAF50);
}

.level-expert {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
}

.progress-levels {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.progress-levels .progress {
    height: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-levels .progress-bar {
    transition: width 1.5s ease;
}

.advice-accordion .accordion-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 10px !important;
}

.advice-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(45deg, #764ba2, #667eea);
    color: white;
}

.advice-accordion .accordion-body {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.btn-custom {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000;
}

.result-text {
    font-size: 20px;
    font-weight: 500;
}

.suggestion-heading {
    font-size: 20px;
}

.suggestion-sub-heading {
    font-size: 15px;
    font-style: italic;
    font-weight: 300;
}

.suggestion-info {
    font-size: 18px;
}

.flag-icon img {
    width: 30px;
    height: 30px;
}

.flag-icon {
    position: relative;
    top: 40px;
    left: 7px;
    /* display: inline-block; */
    width: 1.33333em;
    line-height: 1em;
}

.form-select {
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid var(--Gray-200, #D5DAE1);
    background-color: var(--White, #FFF);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: #8D99AC;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    padding-left: 50px;
}

.country-label {
    position: absolute;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e0e7ff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    padding: 13px 14px;
    transition: all 0.3s ease;
}

.pass-container {
    position: relative;
}

.pass-icon {
    position: absolute;
    right: 25px;
    bottom: 18px;
    font-size: 20px;
    cursor: pointer;
}

/* Added ESG Risk Viewer theme and components */

:root {
    --esg-primary: #304157;
    --btn-gradient: linear-gradient(to right, #7030a0 0%, #202a44 50%, #7030a0 100%);
}



/* Navbar and floating */
.navbar-floating {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
}

.navbar-floating.solid {
    background: #304157;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .btn-gradient {
    background: var(--btn-gradient);
    border: none;
}

/* Hero parallax layer */
.hero-section {
    min-height: 70vh;
    padding-top: 85px;
    position: relative;
    color: white;
    /* background-color: #304157; */
}

.hero-section .parallax-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: translateY(0);
    will-change: transform;
    filter: brightness(0.6) saturate(1.05);
}

.hero-section>.container {
    position: relative;
    z-index: 2;
}

/* Gradient buttons */
.btn-gradient {
    background: var(--btn-gradient);
    color: white;
    border-radius: 8px;
    padding: 10px 18px;
    box-shadow: 0 10px 30px rgba(32, 42, 68, 0.12);
}

.btn-gradient:hover {
    transform: translateY(-2px);
}

#start p {
    font-size: 25px;
    font-weight: 800;
    color: var(--esg-primary);
}

/* Feature cards */
.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.95));
    border: 1px solid rgba(48, 65, 87, 0.1);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(112, 48, 160, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card h5 {
    color: var(--esg-primary);
    font-weight: 700;
    transition: color 0.3s ease;
}

.feature-card img {
    width: 35%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(48, 65, 87, 0.25);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.feature-card:hover h5 {
    color: #7030a0;
}

/* .feature-card:hover img {
    transform: translateY(-5px);
} */

/* Parallax screenshot animations (re-use existing slide animations) */
.slide-img-1,
.slide-img-2,
.slide-img-3 {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.slide-img-1:hover,
.slide-img-2:hover,
.slide-img-3:hover {
    transform: scale(1.02) translateY(-6px);
}

/* Tabs and cards */
.nav-tabs .nav-link.active {
    background: var(--esg-primary);
    /* border-bottom: 3px solid var(--esg-primary); */
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
}

.nav-tabs {
    border-bottom: none;
}

.nav.nav-tabs {
    justify-content: center;
}

.nav-tabs .nav-link {
    color: var(--esg-primary);
    font-weight: 700;
}

.card-title {
    color: var(--esg-primary);
    font-weight: 600;
}

/* Sticky video */
.sticky-video {
    position: sticky;
    top: 100px;
    /* z-index: 1040; */
    background: linear-gradient(135deg, rgba(48, 65, 87, 0.05), rgba(112, 48, 160, 0.05));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Insights section adjustments for sticky video */
#insights {
    padding-top: 0;
    padding-bottom: 3rem;
}

#insights .container {
    padding-top: 3rem;
}

/* Points list */
.points-list h5 {
    color: var(--esg-primary);
}

.points-list .point {
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(0);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.points-list .point::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(112, 48, 160, 0.05), transparent);
    transition: left 0.6s ease;
}

.points-list .point:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.points-list .point:hover::before {
    left: 100%;
}

.point-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    column-gap: 20px;
    margin-bottom: 10px;
}

.point-header img {
    width: 12%;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.point:hover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Footer small tweaks */
footer a {
    text-decoration: none;
    opacity: 0.95;
}

/* Catchy Footer Styles */
.footer-catchy {
    position: relative;
    overflow: hidden;
}

.footer-bg-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: footerFloat 8s ease-in-out infinite;
}

.footer-bg-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.footer-bg-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -25px;
    animation-delay: 2s;
}

.footer-bg-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes footerFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.05;
    }

    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.1;
    }
}

.footer-brand h5 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #7030a0, #202a44);
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

.btn-footer-cta {
    background: linear-gradient(45deg, #fff, #f8f9fa);
    color: #202a44;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-footer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #f8f9fa, #fff);
    color: #202a44 !important;
}

.news-card {
    /* flex: 0 0 calc(33.333% - 2rem);
    opacity: 0.7; */
    transform: scale(0.95);
    transition: all 0.4s ease;

}

.offer-list {
    list-style: none;
    color: rgb(83, 83, 83);
    font-weight: 500;
    font-size: 15px;
    padding: 0;
    /* optional: removes default padding */
    margin: 0;
    /* optional: removes default margin */
}

.offer-list li::before {
    content: '✓ ';
    color: green;
    font-weight: bold;
}

.pay-header-section {
    background: linear-gradient(135deg, #a13da1 0%, #8e2372 100%);
    padding: 32px 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-card {
    /* flex: 0 0 calc(33.333% - 2rem);
    opacity: 0.7; */
    transform: scale(0.95);
    transition: all 0.4s ease;

}

#moduleTabsContent .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgb(48 65 87 / 0.2);
}

.owl-carousel .owl-stage {
    display: flex;
    /* Makes the stage a flex container */
}

.owl-carousel .owl-item {
    display: flex;
    flex: 1 0 auto;
}

.owl-carousel .owl-item .inner-content-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.owl-carousel .owl-item .inner-content-container .flex-grow-element {
    flex-grow: 1;
}

/* Owl Carousel nav styling: hide navigation buttons */
.owl-carousel .owl-nav {
    display: none;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .sticky-video {
        position: static;
    }
}

/* Parallax effects */
.parallax-section {
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    z-index: 1;
    pointer-events: none;
    transform: translateY(0);
    will-change: transform;
}

.parallax-section.parallax-active::before {
    transform: var(--parallax-y, translateY(-50px));
}

/* small page-level tweaks */
/* .navbar-floating {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(6px);
} */
.custom-btn {
    background: red;
    color: #FFF;
    border: none;
}

.custom-btn:hover {
    background: green;
}

/* Module Cards Styles */
.module-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(48, 65, 87, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(112, 48, 160, 0.05), transparent);
    transition: left 0.6s ease;
}

.module-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(48, 65, 87, 0.25);
}

.module-card:hover::before {
    left: 100%;
}

.skill-section h6 {
    color: var(--esg-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.skill-section ul li {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 5px;
}

.skill-section i {
    color: #7030a0;
}

/* Quiz Question Styles */
.question {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(61, 85, 123, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
}

.animate-slide-up {
    animation: slideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.question-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e7ff;
}

.question-header h4 {
    color: var(--esg-primary);
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.2rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.option-item {
    background: #f7f9fc;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* .option-item:hover {
    background: #e9efff;
    border-color: #8b6df5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(112, 48, 160, 0.1);
} */

/* .option-item.selected {
    background: linear-gradient(135deg, #7030a0, #3f206c);
    color: white;
    border-color: #8b6df5;
    box-shadow: 0 5px 15px rgba(112, 48, 160, 0.3);
    transform: translateY(-2px);
} */

.option-letter {
    background: rgba(48, 65, 87, 0.1);
    color: var(--esg-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* .option-item.selected .option-letter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
} */

.option-text {
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

/* Fill in Blanks Styles */
.blank-sentence {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
    padding: 20px;
    background: #f7f9fc;
    border-radius: 12px;
    margin-top: 15px;
    text-align: center;
}

.blank {
    border-bottom: 2px dashed #7030a0;
    padding: 2px 15px;
    margin: 0 5px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    font-weight: 600;
    color: #7030a0;
    transition: all 0.3s ease;
}

.blank.filled {
    border-style: solid;
    border-radius: 8px;
    animation: fillAnimation 0.5s ease;
}

@keyframes fillAnimation {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.blanks-options .option-item {
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

/* Voice Question Styles */
.voice-controls {
    text-align: center;
}

.btn-play-voice {
    background: var(--primary-bg-gradient);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-play-voice:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--primary-bg-gradient-hover);
}

.voice-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 15px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wave-bar {
    width: 4px;
    background: #415870;
    border-radius: 2px;
    animation: waveAnimation 1.5s ease-in-out infinite;
}

@keyframes waveAnimation {

    0%,
    100% {
        height: 10px;
        opacity: 0.4;
    }

    50% {
        height: 30px;
        opacity: 1;
    }
}

/* .voice-line {
    background: #f7f9fc;
    border: 2px dashed #c3d0e6;
    border-radius: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
    margin-top: 20px;
    font-size: 16px;
    color: #8a9ab0;
    font-weight: 500;
    transition: all 0.3s ease;
} */

.voice-word {
    background: #7030a0;
    color: white;
    padding: 6px 12px;
    border-radius: 18px;
    margin: 5px;
    animation: wordAppear 0.3s ease;
}

@keyframes wordAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Matching Pairs Styles */
.matching-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.matching-item {
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

/* .matching-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(48, 65, 87, 0.1);
    border-color: #7030a0;
} */

/* .matching-item.selected {
    background: linear-gradient(135deg, #7030a0, #3f206c);
    color: white;
    border-color: #7030a0;
    transform: scale(1.03);
} */

.matching-item.matched {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745;
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for correct/wrong answers */
.option-item.correct-answer,
.blank.correct-answer {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745 !important;
    animation: correctPulse 0.6s ease;
}

.option-item.correct-answer .option-letter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.option-item.wrong-answer,
.blank.wrong-answer,
.matching-item.wrong-answer {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    border-color: #dc3545 !important;
    animation: wrongShake 0.5s ease;
}

.option-item.wrong-answer .option-letter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes wrongShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-8px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(8px);
    }
}

/* Progress Bar Enhancement */
.progress-bar.bg-gradient {
    background: linear-gradient(45deg, #7030a0, #202a44);
}

/* Quiz Navigation Buttons */
.btn-secondary,
.btn-primary,
.btn-success {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, #198754, #146c43);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .matching-container {
        flex-direction: column;
        gap: 20px;
    }

    .question-header h4 {
        font-size: 1.1rem;
    }

    .blank-sentence {
        font-size: 1.1rem;
    }

    .voice-line {
        font-size: 14px;
    }
}

/* Signup Page Enhancements */
.signup-form .main-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.85));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.signup-icon {
    font-size: 3rem;
    color: #7030a0;
    background: -webkit-linear-gradient(45deg, #7030a0, #202a44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.signup-form h2 {
    font-weight: 700;
    color: var(--esg-primary);
}

.signup-form .form-control:focus {
    border-color: #7030a0;
    box-shadow: 0 0 0 0.25rem rgba(112, 48, 160, 0.15);
}

/* Quiz Question Styles */
.question {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(48, 65, 87, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.question-header {
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.03), rgba(32, 42, 68, 0.03));
    padding: 10px 15px;
    border-bottom: 1px solid rgba(48, 65, 87, 0.03);
}

.question-header h4 {
    color: var(--esg-primary);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.question-body {
    padding: 15px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.option-item {
    background: #f8f9fa;
    border: 2px solid rgba(48, 65, 87, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-align: left;
}

/* .option-item:hover {
    background: #e9ecef;
    border-color: #7030a0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(48, 65, 87, 0.1);
} */

/* .option-item.selected {
    background: var(--primary-bg-gradient);
    color: white;
    border-color: #7030a0;
    box-shadow: 0 3px 8px rgba(112, 48, 160, 0.2);
} */

.option-letter {
    background: rgba(48, 65, 87, 0.1);
    color: var(--esg-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

/* .option-item.selected .option-letter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
} */

.option-text {
    font-weight: 500;
    font-size: 13px;
    margin: 0;
}

/* Fill in Blanks Styles */
.blank-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.blank {
    background: white;
    border: 2px dashed #7030a0;
    border-radius: 8px;
    padding: 5px 15px;
    margin: 0 5px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    font-weight: 600;
    color: #7030a0;
    transition: all 0.3s ease;
}

.blank.filled {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
    animation: fillAnimation 0.5s ease;
}

@keyframes fillAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.blanks-options .option-item {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

/* Voice Question Styles */
.voice-controls {
    text-align: center;
    margin-bottom: 30px;
}

.btn-play-voice {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-play-voice:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.voice-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 15px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* .wave-bar {
    width: 4px;
    background: #7030a0;
    border-radius: 2px;
    animation: waveAnimation 1.5s ease-in-out infinite;
} */

@keyframes waveAnimation {

    0%,
    100% {
        height: 10px;
        opacity: 0.4;
    }

    50% {
        height: 30px;
        opacity: 1;
    }
}

/* .voice-line {
    background: #f8f9fa;
    border: 2px dashed #7030a0;
    border-radius: 25px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px;
    margin-top: 20px;
    font-size: 16px;
    color: #7030a0;
    font-weight: 500;
} */

.voice-word {
    background: #7030a0;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 5px;
    animation: wordAppear 0.3s ease;
}

@keyframes wordAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Matching Pairs Styles */
.matching-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.matching-left,
.matching-right {
    flex: 1;
}

.matching-item,
.matching-target {
    background: white;
    border: 2px solid rgba(48, 65, 87, 0.1);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

/* .matching-item:hover,
.matching-target:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(48, 65, 87, 0.15);
    border-color: #7030a0;
} */

/* .matching-item.selected {
    background: linear-gradient(135deg, #7030a0, #202a44);
    color: white;
    border-color: #7030a0;
} */

.matching-target.matched,
.matching-item.matched {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745;
    opacity: 0.7;
    pointer-events: none;
}

.matching-target.wrong-match {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    border-color: #dc3545;
    animation: wrongMatch 0.5s ease;
}

@keyframes wrongMatch {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Animation for correct/wrong answers */
.correct-answer {
    animation: correctPulse 0.6s ease;
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.wrong-answer {
    animation: wrongShake 0.5s ease;
}

@keyframes wrongShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Progress Bar Enhancement */
.progress-bar.bg-gradient {
    background: linear-gradient(45deg, #7030a0, #202a44);
}

/* Quiz Navigation Buttons */
.btn-secondary,
.btn-primary,
.btn-success {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .matching-container {
        flex-direction: column;
        gap: 20px;
    }

    .question-header h4 {
        font-size: 1.1rem;
    }

    .blank-container {
        font-size: 16px;
    }

    .voice-line {
        font-size: 14px;
    }
}

#features {
    background: radial-gradient(#e0d5ff, transparent);
}

/* Pricing Cards Styles */
.pricing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.pricing-card.pricing-popular {
    /* border-color: #7030a0; */
    border-color: #002546;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(112, 48, 160, 0.05));
}

.pricing-card.pricing-popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(112, 48, 160, 0.1), transparent);
    transition: left 0.6s ease;
}

.pricing-card.pricing-popular:hover::before {
    left: 100%;
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    /* background: linear-gradient(45deg, #7030a0, #202a44); */
    background: linear-gradient(45deg, #81b5fc, #002546);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    margin-top: 5px;
}

.pricing-header {
    padding: 30px 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.1), rgba(32, 42, 68, 0.1));
}

.pricing-title {
    color: var(--esg-primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #7030a0;
}

.price-period {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.pricing-body {
    padding: 25px;
}

.pricing-description {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 8px 0;
    color: #444;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #28a745;
    font-size: 16px;
}

.pricing-footer {
    padding: 20px 25px 30px;
}

.btn-pricing {
    border-radius: 25px;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-free {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
}

.btn-free:hover {
    background: linear-gradient(45deg, #218838, #1aa085);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
    color: white !important;
}

.btn-popular {
    background: linear-gradient(45deg, #7030a0, #202a44);
    border: none;
    color: white;
}

.btn-popular:hover {
    background: linear-gradient(45deg, #5a2590, #1a1f2e);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(112, 48, 160, 0.3);
    color: white !important;
}

.btn-premium {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    color: white;
}

.btn-premium:hover {
    background: linear-gradient(45deg, #e55a2b, #e8850e);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
    color: white !important;
}

/* Quiz Question Styles */
.question {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(48, 65, 87, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.question-header {
    background: linear-gradient(135deg, rgba(112, 48, 160, 0.03), rgba(32, 42, 68, 0.03));
    padding: 10px 15px;
    border-bottom: 1px solid rgba(48, 65, 87, 0.03);
}

.question-header h4 {
    color: var(--esg-primary);
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.question-body {
    padding: 15px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.option-item {
    background: #f8f9fa;
    border: 2px solid rgba(48, 65, 87, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-align: left;
    justify-content: space-between;
}

.option-item:hover {
    background: #e9ecef;
    border-color: #8b6df5;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(48, 65, 87, 0.1);
}

.option-item.selected {
    /* background: linear-gradient(181deg, #3376ff 0%, #415870 75%);
    color: white; */
    color: #000;
    border-color: #4c7db1;
    box-shadow: 0 3px 8px rgba(112, 48, 160, 0.2);
    border: 3px solid #4c7db1;
}

.option-letter {
    background: rgba(48, 65, 87, 0.1);
    color: var(--esg-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.option-item.selected .option-letter {
    background: rgb(76 125 177);
    color: white;
    transform: scale(1.1);
}

.option-text {
    font-weight: 500;
    font-size: 13px;
    margin: 0;
}

/* Describe Image style */
.quest-img-section img{
    width: 100%;
    height: auto;
}
.quest-opt-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 5px;
}

/* Fill in Blanks Styles */
.blank-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.blank {
    background: white;
    border: 2px dashed #415870;
    border-radius: 8px;
    padding: 5px 15px;
    margin: 0 5px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    font-weight: 600;
    color: #415870;
    transition: all 0.3s ease;
}

.blank.filled {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
    animation: fillAnimation 0.5s ease;
}

@keyframes fillAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.blanks-options .option-item {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

/* Voice Question Styles */
.voice-controls {
    text-align: center;
    margin-bottom: 30px;
}

.btn-play-voice {
    background: var(--primary-bg-gradient); /* linear-gradient(45deg, #ff6b35, #f7931e); */
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--primary-bg-gradient-hover);
}

.btn-play-voice:hover {
    transform: translateY(-3px);
    box-shadow: var(--primary-bg-gradient-hover);
}

.btn-audio{
    background: var(--primary-bg-gradient);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgb(198 209 235);
}
.btn-audio:hover {
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgb(181 200 255);
}

.voice-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    margin-top: 15px;
    height: 40px;
}

/* .wave-bar {
    width: 4px;
    background: #7030a0;
    border-radius: 2px;
    animation: waveAnimation 1.5s ease-in-out infinite;
} */

.wave-bar:nth-child(1) {
    animation-delay: 0s;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes waveAnimation {

    0%,
    100% {
        height: 10px;
        opacity: 0.4;
    }

    50% {
        height: 30px;
        opacity: 1;
    }
}

.voice-line {
    background: #f8f9fa;
    border: 2px dashed #415870;
    border-radius: 25px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 16px;
    color: #415870;
    font-weight: 500;
}

.voice-word {
    background: #415870;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 0 5px;
    animation: wordAppear 0.3s ease;
}

@keyframes wordAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Matching Pairs Styles */
.matching-container {
    display: flex;
    gap: 0px;
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.matching-left,
.matching-right {
    flex: 1;
}

.matching-item,
.matching-target {
    background: white;
    border: 2px solid rgba(48, 65, 87, 0.1);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    width: 100%;
}

.matching-item:hover,
.matching-target:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(48, 65, 87, 0.15);
    border-color: #8b6df5;
}

.matching-item.selected {
    background: linear-gradient(181deg, #3376ff 0%, #415870 75%);
    color: white;
    border-color: #8b6df5;
}

.matching-target.matched {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745;
    opacity: 0.7;
    pointer-events: none;
}

.matching-item.matched {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745;
    opacity: 0.7;
    pointer-events: none;
}

.matching-target.wrong-match {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    border-color: #dc3545;
    animation: wrongMatch 0.5s ease;
}

.cust-matching-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    column-gap: 10px;
}

@keyframes wrongMatch {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Animation for correct answers */
.correct-answer {
    animation: correctPulse 0.6s ease;
}

@keyframes correctPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.wrong-answer {
    animation: wrongShake 0.5s ease;
}

@keyframes wrongShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Progress Bar Enhancement */
.progress-bar.bg-gradient {
    background: linear-gradient(45deg, #7030a0, #202a44);
}

/* Quiz Navigation Buttons */
.btn-secondary,
.btn-primary,
.btn-success {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5a6268, #343a40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
}

.btn-success:hover {
    background: linear-gradient(45deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* LOADER SECTION STYLES */
#loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#loader-container.show {
    display: flex;
}

.loader {
    width: 75px;
    aspect-ratio: 1;
    display: grid;
}

.loader:before,
.loader:after {
    content: "";
    grid-area: 1/1;
    width: 35px;
    aspect-ratio: 1;
    box-shadow: 0 0 0 3px #fff inset;
    filter: drop-shadow(40px 40px 0 #fff);
    animation: l8 2s infinite alternate;
}

.loader:after {
    margin: 0 0 0 auto;
    filter: drop-shadow(-40px 40px 0 #fff);
    animation-delay: -1s;
}

.loader-text {
    color: #fff;
    margin-top: 20px;
    font-size: 1.8em;
    font-weight: bold;
    animation: pulse 1.5s infinite alternate;
}

@keyframes l8 {
    0%, 10% { border-radius: 0; }
    30%, 40% { border-radius: 50% 0; }
    60%, 70% { border-radius: 50%; }
    90%, 100% { border-radius: 0 50%; }
}

@keyframes pulse {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

/* Attractive Login and Dashboard Buttons */
.navbar-floating .login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.navbar-floating .login-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white !important;
    text-decoration: none;
}

.navbar-floating .dashboard-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.navbar-floating .dashboard-btn:hover {
    background: linear-gradient(135deg, #e083eb 0%, #e54a5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
    color: white !important;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .options-grid {
        /* grid-template-columns: 1fr; */
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .matching-container {
        /* flex-direction: column; */
        /* gap: 20px; */
        flex-direction: row;
        gap: 0px;
    }
    .matching-column{
        gap: 5px;
    }
    .matching-item, .matching-target{
        min-height: 105px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .matching-column .cust-matching-container .audio-option {
        display: none;
    }

    .question-header h4 {
        font-size: 1.1rem;
    }

    .blank-container {
        font-size: 16px;
    }

    .voice-line {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 5px;
    }

    .level-btn {
        padding: 8px 15px !important;
    }

    .result-container {
        margin-top: 25% !important;
    }

    .animated-image .img-icon {
        height: 60px !important;
    }

    .typing-effect{
        text-wrap: balance;
    }

    .enhanced-carousel{
        height: 80vh;
    }
    .carousel-inner {
        height: 100%;
    }
    .hero-section{
        padding-top: 65px;
        min-height: 100vh;
    }

    .enhanced-overlay {
        padding: 35px;
    }

    .carousel-item {
        height: 100%;
    }
}