:root {
    --primary: #8B1A1A;
    /* Deep Maroon */
    --primary-light: #A32828;
    --primary-dark: #661010;
    --secondary: #1A1A2E;
    /* Dark Navy for text and dark mode elements */
    --accent: #FFD700;
    /* Gold */
    --accent-hover: #E5C100;
    --bg-color: #F8F9FA;
    --surface-color: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(139, 26, 26, 0.15);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    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);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 26, 26, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s ease;
    /* Only fallback transition for transform */
}

@keyframes fadeInOpacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInOpacity 0.8s ease forwards;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.preloader-logo {
    width: 120px;
    height: auto;
    animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-text {
    margin-top: 20px;
    font-family: 'Algerian', 'Algeria', var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: preloaderTextFade 1.8s ease-in-out infinite;
}

.preloader-bar {
    width: 150px;
    height: 3px;
    background: #eee;
    margin: 25px auto 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: preloaderProgress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes preloaderTextFade {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes preloaderProgress {
    0% {
        left: -100%;
    }

    50% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

/* --- Section 1: Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0);
    /* Glass initially */
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Algeria', var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.navbar:not(.scrolled) .nav-links a {
    color: #fff;
}

.navbar:not(.scrolled) .logo {
    color: #fff;
}

/* Removed logo-icon inverted color styling as we now use an image */

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-normal);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
    background: none;
    border: none;
    padding: 0;
}

.navbar:not(.scrolled) .mobile-menu-btn {
    color: #fff;
}


/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-color);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    min-width: 250px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary) !important;
    /* Override white color on un-scrolled */
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(139, 26, 26, 0.05);
    color: var(--primary) !important;
    padding-left: 25px;
    /* Slight indent hover effect */
}


/* --- Section 2: Hero Banner Carousel --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 26, 46, 0.774) 0%, rgba(139, 26, 26, 0.237) 100%);
}

/* Slide Backgrounds */
.slide-1 {
    background-image: url('images/9.webp');
}

.slide-2 {
    background-image: url('images/5.webp');
}

.slide-3 {
    background-image: url('images/8.webp');
}

.slide-4 {
    background-image: url('images/neet.webp');
}

.slide-5 {
    background-image: url('images/commerce.webp');
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 800px;
    margin-top: 50px;
    /* offset for navbar */
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-btns {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: var(--transition-normal);
}

.carousel-btn:hover {
    background: var(--primary);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Section 3: Info Cards Overlay --- */
.info-cards {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.info-card {
    background: #FFFFFF;
    padding: 24px 24px 45px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid var(--secondary);
    position: relative;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 2;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 26, 26, 0.12);
}

.info-img-wrapper {
    width: 100%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(26, 26, 46, 0.1);
    transition: all 0.4s ease;
}

.info-card:hover .info-img-wrapper {
    border-color: rgba(139, 26, 26, 0.2);
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.15);
}

.info-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover .info-img-wrapper img {
    transform: scale(1.08) rotate(0.5deg);
}

.info-content {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: #FFFFFF;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    padding: 10px 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.info-card:hover .info-content {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(139, 26, 26, 0.2);
}

.info-card:hover .info-content h3 {
    color: #FFFFFF;
}

.info-content p {
    display: none;
    /* Hide default paragraphs if any in overlays */
}

/* --- About Us Section --- */
.about-section {
    background: #fff;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-intro strong {
    color: var(--primary);
}

.about-intro .highlight {
    color: var(--primary);
    font-weight: 600;
    background: rgba(139, 26, 26, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.about-programs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
}

.program-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid rgba(139, 26, 26, 0.08);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(139, 26, 26, 0.1);
    border-color: rgba(139, 26, 26, 0.2);
}

.program-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 26, 26, 0.25);
}

.program-info h4 {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 3px;
}

.program-info h4 span {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.program-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-approach p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 20px 24px;
    background: rgba(139, 26, 26, 0.03);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
}

.about-approach strong {
    color: var(--text-primary);
}

.about-tagline {
    margin-top: 25px;
}

.about-tagline blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    font-style: italic;
    position: relative;
    padding-left: 0;
}

.about-tagline blockquote::before {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 12px;
}

.about-visual {
    position: sticky;
    top: 120px;
}

.about-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    position: relative;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(139, 26, 26, 0.3), transparent);
    pointer-events: none;
}

.about-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.mini-stat {
    background: var(--bg-color);
    padding: 16px 12px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mini-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.mini-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.mini-stat span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- About: BTCGLS Assessment --- */
.about-assessment,
.about-diagnosis {
    margin-top: 30px;
    padding: 28px;
    background: var(--bg-color);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.assessment-title {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assessment-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.assessment-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.assessment-desc strong {
    color: var(--text-primary);
}

.btcgls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btcgls-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: white;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btcgls-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--btcgls-color);
}

.btcgls-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btcgls-item i {
    font-size: 1.4rem;
    color: var(--btcgls-color);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--btcgls-color) 10%, transparent);
}

.btcgls-item strong {
    font-size: 0.9rem;
    color: var(--secondary);
}

.btcgls-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- About: Learning Diagnosis --- */
.diagnosis-params {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.param-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.param-item:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.param-num {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    min-width: 36px;
    text-align: center;
}

.param-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--secondary);
    margin-bottom: 2px;
}

.param-item span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* --- Section 4: Our Courses --- */
.courses-container {
    background: #fff;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.course-card {
    height: 480px;
    perspective: 1200px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.course-card:hover,
.course-card:focus-within {
    transform: translateY(-8px);
}

.course-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.course-card:hover .course-card-inner,
.course-card:focus-within .course-card-inner {
    transform: rotateY(180deg);
}

.course-card-front,
.course-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.course-card-front {
    background: #FFFFFF;
    z-index: 2;
    transform: rotateY(0deg);
}

.course-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--secondary) 0%, #1A1A2E 100%);
    color: #FFFFFF;
    padding: 35px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 1.5px solid var(--primary);
    z-index: 1;
}

.btn-course-flip {
    padding: 8px 16px;
    background: rgba(139, 26, 26, 0.05);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(139, 26, 26, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover .btn-course-flip,
.course-card:focus-within .btn-course-flip {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-course-back {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.btn-course-back:hover {
    background: #FFFFFF;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.back-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.back-icon {
    font-size: 2.2rem;
    color: var(--accent);
    text-shadow: 0 4px 10px rgba(255, 215, 0, 0.25);
}

.course-card-back h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 10px 0 0 0;
}

.back-body {
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-body p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.course-header {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.course-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-card-img,
.course-card:focus-within .course-card-img {
    transform: scale(1.12);
}

.course-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.35), rgba(26, 26, 46, 0.75));
    z-index: 1;
    transition: background 0.3s ease;
}

.course-card:hover .course-header::before,
.course-card:focus-within .course-header::before {
    background: linear-gradient(to bottom, rgba(26, 26, 46, 0.45), rgba(26, 26, 46, 0.85));
}

.course-overlay {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.course-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 12px 0 8px;
    color: #FFFFFF;
}

.course-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-meta {
    margin-top: auto;
}

.course-simple-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 10px 0 15px;
    line-height: 1.5;
}

/* Course Specific Themes with Premium Gradients */
.course-1 .course-header {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    /* Teal Medical */
}

.course-card.course-1 .course-card-img {
    transform: scale(1.45);
    transform-origin: center bottom;
}

.course-card.course-1:hover .course-card-img,
.course-card.course-1:focus-within .course-card-img {
    transform: scale(1.55);
}

.course-2 .course-header {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    /* Tech Blue */
}

.course-3 .course-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    /* Emerald Green */
}

.course-4 .course-header {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    /* Violet Purple */
}

.course-5 .course-header {
    background: linear-gradient(135deg, #EA580C 0%, #C2410C 100%);
    /* Warm Orange/Red */
}

.course-6 .course-header {
    background: linear-gradient(135deg, #8B1A1A 0%, #1A1A2E 100%);
    /* Brand Maroon/Navy */
}

.course-overlay .course-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 6px 16px;
    border-radius: 30px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.course-category-in-overlay {
    position: static;
    margin-bottom: 12px;
}

.course-icon-bg {
    display: none;
}

.course-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    margin-bottom: 8px;
}

.course-body {
    display: none;
}

.course-card:hover h3,
.course-card:focus-within h3 {
    color: var(--primary);
}

.course-tagline,
.class-boxes-container {
    display: none;
}

.course-overlay .class-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
    display: block;
}

.course-overlay .class-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.course-overlay .class-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.course-overlay .commerce-board-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.course-overlay .board-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    min-width: 48px;
}

.course-overlay .course-duration {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-top: 12px;
}

.course-overlay .course-duration i {
    color: var(--accent);
}

.class-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.class-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(26, 26, 46, 0.1);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary);
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.course-card:hover .class-box,
.course-card:focus-within .class-box {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 26, 26, 0.03);
}

.commerce-board-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.board-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--secondary);
    min-width: 48px;
}

/* --- Section: Why Choose Us (New Premium Design) --- */
.skills-section {
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.why-choose-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    align-items: stretch;
}

.why-choose-text-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.why-choose-image-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.why-choose-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
}

.why-choose-image-wrapper img {
    transition: transform 0.5s ease;
}

.why-choose-image-wrapper:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .why-choose-layout {
        grid-template-columns: 1fr;
    }

    .why-choose-image-wrapper {
        min-height: 400px;
    }
}

/* --- Section: Elegant Why Choose Us --- */
.elegant-section {
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.elegant-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.elegant-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
    z-index: 1;
}

.elegant-title {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary-dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.elegant-title span {
    color: var(--primary);
    /* Deep Maroon */
    font-style: italic;
    font-family: 'Playfair Display', var(--font-heading);
}

.elegant-main-quote {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

.elegant-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.elegant-highlights-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.elegant-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.elegant-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    /* Deep Maroon */
    color: var(--accent);
    /* Gold icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.2);
}

.elegant-highlight-text h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 0 0 5px 0;
}

.elegant-highlight-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.elegant-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.elegant-image-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
}

/* Background outline frame */
.elegant-image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border: 2px solid var(--accent);
    /* Gold outline matching theme */
    border-radius: 20px;
    z-index: 0;
}

.elegant-image-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 12px solid #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.elegant-badge {
    position: absolute;
    bottom: -15px;
    right: 30px;
    background: var(--primary-dark);
    /* Dark red matching theme */
    color: var(--surface-color);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(102, 16, 16, 0.3);
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.elegant-badge strong {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
}

.elegant-badge span {
    font-size: 0.85rem;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

@media (max-width: 992px) {
    .elegant-text {
        padding-right: 0;
    }

    .elegant-image-frame::before {
        top: 15px;
        left: -10px;
        right: 15px;
        bottom: -15px;
    }
}

/* --- Section: Visit Our Campus --- */
.campus-visit-section {
    background: #f5f4f0;
    position: relative;
    overflow: hidden;
}

.campus-visit-section::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -8%;
    width: 50%;
    height: 130%;
    background: radial-gradient(ellipse at 30% 40%, rgba(255, 215, 0, 0.11) 0%, transparent 62%);
    pointer-events: none;
}

.campus-visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.campus-visit-content {
    max-width: 500px;
}

/* Section heading â€” centered title + left signboard */
.campus-section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 44px;
    padding: 0 120px;
    min-height: 4.5rem;
}

.campus-signboard {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(18%);
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 6px 14px rgba(102, 16, 16, 0.22));
}

.campus-signboard-board {
    position: relative;
    background: var(--primary-dark);
    border: 3px solid var(--accent);
    border-radius: 8px;
    padding: 10px 14px 10px 12px;
    min-width: 108px;
    text-align: center;
    color: #fff;
}

.campus-signboard-board::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--accent);
}

.campus-signboard-eyebrow {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 2px;
}

.campus-signboard-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.campus-signboard-here {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.campus-signboard-here i {
    font-size: 0.65rem;
    color: var(--accent);
}

.campus-signboard-pole {
    display: block;
    width: 8px;
    height: 36px;
    margin-top: -2px;
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12);
}

.campus-visit-title {
    margin: 0 auto;
    max-width: 720px;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}

.campus-visit-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: #5c5c5c;
    line-height: 1.65;
    margin: 0 0 30px;
    max-width: 400px;
}

.campus-contact-list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.campus-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.campus-contact-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.05rem;
}

.campus-contact-text h4 {
    margin: 0 0 4px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.campus-contact-text p {
    margin: 0;
    font-size: 0.94rem;
    color: #5c5c5c;
    line-height: 1.5;
}

.campus-contact-text a {
    color: inherit;
    text-decoration: none;
}

.campus-contact-text a:hover {
    color: var(--primary);
}

.campus-directions-btn {
    display: inline-block;
    padding: 13px 34px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(139, 26, 26, 0.25);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.campus-directions-btn:hover {
    background: var(--primary-light);
    box-shadow: 0 8px 22px rgba(139, 26, 26, 0.3);
    color: #fff;
}

.campus-visit-map {
    display: flex;
    justify-content: center;
    align-items: center;
}

.campus-map-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 440px;
    background: #fff;
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
}

.campus-map-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    right: 10px;
    bottom: -10px;
    border: 2px solid var(--accent);
    border-radius: 18px;
    z-index: 0;
}

.campus-map-frame iframe {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
    display: block;
}

.campus-map-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(102, 16, 16, 0.3);
    line-height: 1.2;
}

.campus-map-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
}

.campus-map-badge span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    margin-top: 2px;
    opacity: 0.95;
}

@media (max-width: 992px) {
    .campus-section-header {
        padding: 0 100px 0 90px;
        margin-bottom: 36px;
    }

    .campus-visit-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .campus-visit-content {
        max-width: 100%;
    }

    .campus-map-frame {
        max-width: 100%;
        height: 360px;
    }
}

@media (max-width: 576px) {
    .campus-section-header {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 20px;
        margin-bottom: 28px;
        min-height: 0;
    }

    .campus-signboard {
        position: static;
        transform: none;
    }

    .campus-signboard-board {
        min-width: 96px;
        padding: 8px 12px;
    }

    .campus-signboard-title {
        font-size: 0.9rem;
    }

    .campus-signboard-pole {
        height: 28px;
    }

    .campus-visit-title {
        font-size: 1.9rem;
    }

    .campus-contact-icon {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .campus-map-frame {
        height: 300px;
    }

    .campus-map-badge {
        bottom: 14px;
        right: 14px;
        padding: 10px 14px;
    }

    .campus-map-badge strong {
        font-size: 1.2rem;
    }
}

/* --- Section: USP (Solar System Showcase) --- */
.usp-section {
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0f0f1e 40%, #060612 100%);
    position: relative;
    overflow: hidden;
    padding-bottom: 20px !important;
}

/* Star field */
.usp-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 22% 65%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 35% 12%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 48% 78%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 62% 25%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 75% 55%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 88% 38%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 5% 90%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 42% 42%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 58% 88%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 95% 10%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 18% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 72%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 30% 95%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 68% 5%, rgba(255, 255, 255, 0.5), transparent);
    animation: starTwinkle 6s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes starTwinkle {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}


.usp-section .section-title {
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.usp-section .section-title h2 {
    color: #ffffff;
}

.usp-section .section-title h2::after {
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

.usp-orbit-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 0 0 40px 0;
    margin-top: -10px;
    position: relative;
    z-index: 1;
}

.usp-orbit-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 850px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-ring-1 {
    width: 375px;
    height: 200px;
    border-color: rgba(255, 180, 100, 0.18);
}

.orbit-ring-2 {
    width: 495px;
    height: 264px;
    border-color: rgba(100, 220, 180, 0.16);
}

.orbit-ring-3 {
    width: 615px;
    height: 328px;
    border-color: rgba(100, 160, 255, 0.14);
}

.orbit-ring-4 {
    width: 735px;
    height: 392px;
    border-color: rgba(180, 130, 255, 0.13);
}

.orbit-ring-5 {
    width: 855px;
    height: 456px;
    border-color: rgba(255, 150, 150, 0.12);
}

.orbit-ring-6 {
    width: 975px;
    height: 520px;
    border-color: rgba(100, 230, 200, 0.11);
}

.orbit-ring-7 {
    width: 1095px;
    height: 584px;
    border-color: rgba(130, 170, 255, 0.10);
}

.orbit-ring-8 {
    width: 1215px;
    height: 648px;
    border-color: rgba(200, 150, 255, 0.09);
}

/* Sun Hub */
.usp-orbit-hub {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff5cc, #ffd700 30%, #ff8c00 60%, #e65100 100%);
    border: none;
    box-shadow:
        0 0 30px rgba(255, 165, 0, 0.7),
        0 0 60px rgba(255, 140, 0, 0.4),
        0 0 100px rgba(255, 100, 0, 0.25),
        0 0 160px rgba(255, 69, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 200, 0, 0.8);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1.5px;
    z-index: 10;
    cursor: default;
    animation: sunPulse 4s ease-in-out infinite;
}

@keyframes sunPulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(255, 165, 0, 0.7), 0 0 60px rgba(255, 140, 0, 0.4), 0 0 100px rgba(255, 100, 0, 0.25), 0 0 160px rgba(255, 69, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 50px rgba(255, 165, 0, 0.9), 0 0 80px rgba(255, 140, 0, 0.5), 0 0 130px rgba(255, 100, 0, 0.3), 0 0 200px rgba(255, 69, 0, 0.15);
    }
}

.usp-orbit-hub small {
    font-size: 0.6rem;
    display: block;
    margin-top: 2px;
    color: #fff5cc;
    letter-spacing: 1px;
}

.usp-orbit-hub:hover {
    transform: scale(1.08);
}

/* Planet Cards */
.usp-orbit-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: transparent;
    border: none;
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    padding: 0;
    transition: none;
}

.usp-orbit-card .orbit-card-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
}

/* Planet colors */
.usp-orbit-card .orbit-card-icon.color-1 {
    background: radial-gradient(circle at 30% 30%, #ff9a76, #ff6b6b 50%, #c0392b);
    box-shadow: 0 0 18px rgba(255, 107, 107, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.usp-orbit-card .orbit-card-icon.color-2 {
    background: radial-gradient(circle at 30% 30%, #6ee7b7, #10b981 50%, #047857);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.usp-orbit-card .orbit-card-icon.color-3 {
    background: radial-gradient(circle at 30% 30%, #93c5fd, #3b82f6 50%, #1d4ed8);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.usp-orbit-card .orbit-card-icon.color-4 {
    background: radial-gradient(circle at 30% 30%, #c4b5fd, #8b5cf6 50%, #6d28d9);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}

.usp-orbit-card:hover .orbit-card-icon {
    transform: scale(1.3);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.4);
}

.usp-orbit-card .orbit-card-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.usp-orbit-card:hover .orbit-card-img {
    transform: scale(1.3);
    box-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
}

.usp-orbit-card h3 {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
    pointer-events: none;
}

.usp-orbit-card:hover h3 {
    color: #ffffff;
}

/* Global color utility classes */
.color-1 {
    background: rgba(255, 107, 107, 0.08);
    color: #FF6B6B;
}

.color-2 {
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
}

.color-3 {
    background: rgba(59, 130, 246, 0.08);
    color: #3B82F6;
}

.color-4 {
    background: rgba(139, 92, 246, 0.08);
    color: #8B5CF6;
}

/* Solar system responsive */
@media (max-width: 768px) {
    .usp-orbit-container {
        height: 600px;
    }

    .orbit-ring-1 {
        width: 255px;
        height: 136px;
    }

    .orbit-ring-2 {
        width: 345px;
        height: 184px;
    }

    .orbit-ring-3 {
        width: 435px;
        height: 232px;
    }

    .orbit-ring-4 {
        width: 525px;
        height: 280px;
    }

    .orbit-ring-5 {
        width: 615px;
        height: 328px;
    }

    .orbit-ring-6 {
        width: 705px;
        height: 376px;
    }

    .orbit-ring-7 {
        width: 795px;
        height: 424px;
    }

    .orbit-ring-8 {
        width: 885px;
        height: 472px;
    }

    .usp-orbit-card {
        width: 48px;
        height: 48px;
    }

    .usp-orbit-card .orbit-card-icon {
        font-size: 1rem;
    }

    .usp-orbit-card h3 {
        font-size: 0.55rem;
        bottom: -15px;
    }

    .usp-orbit-hub {
        width: 70px;
        height: 70px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .usp-orbit-container {
        height: 450px;
    }

    .orbit-ring-1 {
        width: 180px;
        height: 96px;
    }

    .orbit-ring-2 {
        width: 240px;
        height: 128px;
    }

    .orbit-ring-3 {
        width: 300px;
        height: 160px;
    }

    .orbit-ring-4 {
        width: 360px;
        height: 192px;
    }

    .orbit-ring-5 {
        width: 420px;
        height: 224px;
    }

    .orbit-ring-6 {
        width: 480px;
        height: 256px;
    }

    .orbit-ring-7 {
        width: 540px;
        height: 288px;
    }

    .orbit-ring-8 {
        width: 600px;
        height: 320px;
    }

    .usp-orbit-card {
        width: 36px;
        height: 36px;
    }

    .usp-orbit-card .orbit-card-icon {
        font-size: 0.8rem;
    }

    .usp-orbit-card h3 {
        font-size: 0.45rem;
        bottom: -13px;
    }

    .usp-orbit-hub {
        width: 50px;
        height: 50px;
        font-size: 0.55rem;
        letter-spacing: 0.5px;
    }
}




/* --- Section 6: Learning Steps --- */
.steps-section {
    background: linear-gradient(135deg, #FCF5F5 0%, #F0F4FA 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Programmatic Vector Road Container */
.road-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: none;
    /* Shown only on desktop */
}

.timeline-svg {
    width: 100%;
    height: 100%;
}

/* Step Specific Themes */
.step-item.step-1 {
    --step-color: #2B6CB0;
    /* Premium Blue */
    --step-color-light: #4299E1;
    --step-bg-alpha: rgba(43, 108, 176, 0.05);
    --step-color-rgb: 43, 108, 176;
}

.step-item.step-2 {
    --step-color: #2F855A;
    /* Premium Green */
    --step-color-light: #48BB78;
    --step-bg-alpha: rgba(47, 133, 90, 0.05);
    --step-color-rgb: 47, 133, 90;
}

.step-item.step-3 {
    --step-color: #DD6B20;
    /* Premium Orange */
    --step-color-light: #ED8936;
    --step-bg-alpha: rgba(221, 107, 32, 0.05);
    --step-color-rgb: 221, 107, 32;
}

.step-item.step-4 {
    --step-color: #6B46C1;
    /* Premium Purple */
    --step-color-light: #9F7AEA;
    --step-bg-alpha: rgba(107, 70, 193, 0.05);
    --step-color-rgb: 107, 70, 193;
}

/* Custom CSS Map Pin Marker */
.step-dot {
    position: absolute;
    width: 54px;
    height: 54px;
    background: var(--step-color);
    border: 3px solid #FFFFFF;
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -50%) rotate(-45deg) scale(1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.step-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    background: #FFFFFF;
    border-radius: 50%;
    z-index: 1;
}

.step-dot span {
    display: block;
    color: var(--step-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 2;
}

/* Infinite Flowing Road Striping Animation */
@keyframes roadFlow {
    to {
        stroke-dashoffset: -24;
    }
}

.road-stripes {
    stroke-dasharray: 10, 14;
    animation: roadFlow 1.2s linear infinite;
}

/* Map Pin Radiating Pulse Animation */
@keyframes pinPulse {
    0% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(var(--step-color-rgb), 0.5);
    }

    70% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(var(--step-color-rgb), 0);
    }

    100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(var(--step-color-rgb), 0);
    }
}

/* Active Pin Pulse Trigger */
.step-item.active-step .step-dot {
    animation: pinPulse 2s infinite;
}

/* Step Content Card Style (Book Cover) */
.step-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px 30px 30px 42px;
    /* Extra left padding for the book spine */
    border-radius: 12px;
    border: 2px solid var(--step-color);
    position: relative;
    z-index: 5;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    /* Enable 3D rendering for inner pages flipping */

    /* Simulated pages peeking from the right side of the book */
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08),
        3px 3px 0px -1px #ffffff,
        3px 3px 0px 0px rgba(var(--step-color-rgb), 0.3),
        6px 6px 0px -2px #ffffff,
        6px 6px 0px -1px rgba(var(--step-color-rgb), 0.2);
}

/* Spine & Crease Elements (Spiral Metal comb binder) */
.step-content::after {
    content: '';
    position: absolute;
    top: 5%;
    left: -6px;
    /* Slightly overhangs the cover like a real spiral binder */
    width: 14px;
    height: 90%;
    border-radius: 6px;
    background: repeating-linear-gradient(to bottom,
            #ffffff 0px,
            #e2e8f0 2px,
            #cbd5e0 4px,
            #718096 6px,
            #2d3748 8px,
            transparent 8px,
            transparent 20px);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 12;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 10px;
    /* Aligns black holes with the rings */
    width: 4px;
    height: 90%;
    background: repeating-linear-gradient(to bottom,
            #2d3748 0px,
            #2d3748 4px,
            transparent 4px,
            transparent 20px);
    border-radius: 1px;
    opacity: 0.8;
    z-index: 11;
}

.step-content:hover {
    transform: translateY(-8px);
    background: #FFFFFF;
    box-shadow:
        0 25px 45px rgba(0, 0, 0, 0.12),
        4px 4px 0px -1px #ffffff,
        4px 4px 0px 0px rgba(var(--step-color-rgb), 0.4),
        8px 8px 0px -2px #ffffff,
        8px 8px 0px -1px rgba(var(--step-color-rgb), 0.3);
}

.step-content h3 {
    color: var(--step-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--step-color-light);
}

/* DESKTOP WINDING ROAD TIMELINE LAYOUT */
@media (min-width: 992px) {
    .road-container {
        display: none !important;
        /* Hidden as we use straight line */
    }

    .timeline {
        height: 1800px;
    }

    /* Vertical Center Straight Line */
    .timeline::before {
        content: '';
        position: absolute;
        left: 50% !important;
        top: 0;
        width: 4px;
        height: 0;
        background: linear-gradient(to bottom, #2B6CB0, #6B46C1);
        border-radius: 2px;
        transform: translateX(-50%) !important;
        transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
        z-index: 1;
    }

    .timeline.appear::before {
        height: 100%;
    }

    .step-item {
        position: absolute;
        width: 100%;
        margin-bottom: 0;
        display: block;
        /* Override default flex */
        height: 0;
        perspective: 1200px;
        z-index: 2;
        /* Sits on top of the vertical timeline line */
    }

    .step-item:hover {
        z-index: 50;
    }

    /* Distribute Step Items vertically along the timeline */
    .step-item.step-1 {
        top: 13%;
    }

    .step-item.step-2 {
        top: 35%;
    }

    .step-item.step-3 {
        top: 57%;
    }

    .step-item.step-4 {
        top: 79%;
    }

    /* Position Map Pins Precisely in the Center Line */
    .step-1 .step-dot,
    .step-2 .step-dot,
    .step-3 .step-dot,
    .step-4 .step-dot {
        left: 50% !important;
        top: 0;
        transform: translate(-50%, -50%) rotate(-45deg) scale(1) !important;
    }

    /* Position Cards next to Pins (Alternating Left & Right Book Design) */
    .step-1 .step-content,
    .step-3 .step-content {
        position: absolute;
        right: calc(50% + 60px) !important;
        left: auto !important;
        top: 0;
        transform: translateY(-50%);
        width: 360px;
        padding: 30px 42px 30px 30px !important;
        /* Spine on right */

        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.08),
            -3px 3px 0px -1px #ffffff,
            -3px 3px 0px 0px rgba(var(--step-color-rgb), 0.3),
            -6px 6px 0px -2px #ffffff,
            -6px 6px 0px -1px rgba(var(--step-color-rgb), 0.2) !important;
    }

    /* Spine and Crease on Right Edge for Left Book (Spiral rings and holes) */
    .step-1 .step-content::after,
    .step-3 .step-content::after {
        left: auto !important;
        right: -6px !important;
        top: 5% !important;
        height: 90% !important;
        width: 14px !important;
        border-radius: 6px !important;
        background: repeating-linear-gradient(to bottom,
                #ffffff 0px,
                #e2e8f0 2px,
                #cbd5e0 4px,
                #718096 6px,
                #2d3748 8px,
                transparent 8px,
                transparent 20px) !important;
        box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.15) !important;
    }

    .step-1 .step-content::before,
    .step-3 .step-content::before {
        left: auto !important;
        right: 10px !important;
        top: 5% !important;
        height: 90% !important;
        width: 4px !important;
        background: repeating-linear-gradient(to bottom,
                #2d3748 0px,
                #2d3748 4px,
                transparent 4px,
                transparent 20px) !important;
        box-shadow: none !important;
        border-radius: 1px !important;
        opacity: 0.8 !important;
    }

    .step-1 .step-content:hover,
    .step-3 .step-content:hover {
        box-shadow:
            0 25px 45px rgba(0, 0, 0, 0.12),
            -4px 4px 0px -1px #ffffff,
            -4px 4px 0px 0px rgba(var(--step-color-rgb), 0.4),
            -8px 8px 0px -2px #ffffff,
            -8px 8px 0px -1px rgba(var(--step-color-rgb), 0.3) !important;
    }

    .step-2 .step-content,
    .step-4 .step-content {
        position: absolute;
        left: calc(50% + 60px) !important;
        right: auto !important;
        top: 0;
        transform: translateY(-50%);
        width: 360px;
        padding: 30px 30px 30px 42px !important;
        /* Spine on left */

        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.08),
            3px 3px 0px -1px #ffffff,
            3px 3px 0px 0px rgba(var(--step-color-rgb), 0.3),
            6px 6px 0px -2px #ffffff,
            6px 6px 0px -1px rgba(var(--step-color-rgb), 0.2) !important;
    }

    /* Spine and Crease on Left Edge for Right Book (Spiral rings and holes) */
    .step-2 .step-content::after,
    .step-4 .step-content::after {
        left: -6px !important;
        right: auto !important;
        top: 5% !important;
        height: 90% !important;
        width: 14px !important;
        border-radius: 6px !important;
        background: repeating-linear-gradient(to bottom,
                #ffffff 0px,
                #e2e8f0 2px,
                #cbd5e0 4px,
                #718096 6px,
                #2d3748 8px,
                transparent 8px,
                transparent 20px) !important;
        box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15) !important;
    }

    .step-2 .step-content::before,
    .step-4 .step-content::before {
        left: 10px !important;
        right: auto !important;
        top: 5% !important;
        height: 90% !important;
        width: 4px !important;
        background: repeating-linear-gradient(to bottom,
                #2d3748 0px,
                #2d3748 4px,
                transparent 4px,
                transparent 20px) !important;
        box-shadow: none !important;
        border-radius: 1px !important;
        opacity: 0.8 !important;
    }

    .step-2 .step-content:hover,
    .step-4 .step-content:hover {
        box-shadow:
            0 25px 45px rgba(0, 0, 0, 0.12),
            4px 4px 0px -1px #ffffff,
            4px 4px 0px 0px rgba(var(--step-color-rgb), 0.4),
            8px 8px 0px -2px #ffffff,
            8px 8px 0px -1px rgba(var(--step-color-rgb), 0.3) !important;
    }

    /* Scroll Focus Parallax & Hover Effects on Desktop */
    .step-item .step-content {
        opacity: 1;
        transform: translateY(-50%);
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .step-item.active-step .step-content {
        transform: translateY(-50%) scale(1.02);
        box-shadow: 0 20px 40px rgba(var(--step-color-rgb), 0.12);
        background: #FFFFFF;
    }

    .step-item .step-content:hover,
    .step-item.active-step .step-content:hover {
        transform: translateY(-50%) translateY(-10px) scale(1.04) !important;
        box-shadow: 0 25px 45px rgba(var(--step-color-rgb), 0.18) !important;
        background: #FFFFFF !important;
    }

    /* Scroll Card Slide-in Animations (3D Book Opening Effect) */
    .step-content.fade-in-left {
        opacity: 0;
        transform-origin: right center;
        transform: translateY(-50%) rotateY(-80deg) scale(0.95) !important;
        transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .step-content.fade-in-right {
        opacity: 0;
        transform-origin: left center;
        transform: translateY(-50%) rotateY(80deg) scale(0.95) !important;
        transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .step-content.fade-in-left.appear {
        opacity: 1 !important;
        transform: translateY(-50%) rotateY(0deg) scale(1) !important;
    }

    .step-content.fade-in-right.appear {
        opacity: 1 !important;
        transform: translateY(-50%) rotateY(0deg) scale(1) !important;
    }

    /* Preserve Active Scale Focus and Hover after sliding in */
    .step-item.active-step .step-content.appear {
        transform: translateY(-50%) rotateY(0deg) scale(1.02) !important;
    }

    .step-item .step-content.appear:hover,
    .step-item.active-step .step-content.appear:hover {
        transform: translateY(-50%) translateY(-10px) rotateY(0deg) scale(1.04) !important;
    }

    /* Sequential Slide-in Delays for Desktop */
    .step-1 .step-content.appear {
        transition-delay: 0.1s !important;
    }

    .step-2 .step-content.appear {
        transition-delay: 0.4s !important;
    }

    .step-3 .step-content.appear {
        transition-delay: 0.7s !important;
    }

    .step-4 .step-content.appear {
        transition-delay: 1.0s !important;
    }

    /* Instantly respond on hover without delay overrides */
    .step-item .step-content:hover,
    .step-item.active-step .step-content:hover {
        transition-delay: 0s !important;
    }

    /* Inner Page Flip Effect on Desktop (Notebook Page Turn) */
    .step-1 .step-content>h3,
    .step-1 .step-content>ul,
    .step-3 .step-content>h3,
    .step-3 .step-content>ul {
        transform-origin: right center !important;
        transform: rotateY(-75deg) rotateZ(5deg) scale(0.9) !important;
        opacity: 0;
        transition: transform 1.6s cubic-bezier(0.25, 1.1, 0.5, 1.05) 0.3s, opacity 1.2s ease 0.3s !important;
    }

    .step-1 .step-content.appear>h3,
    .step-1 .step-content.appear>ul,
    .step-3 .step-content.appear>h3,
    .step-3 .step-content.appear>ul {
        transform: rotateY(0deg) rotateZ(0deg) scale(1) !important;
        opacity: 1 !important;
    }

    .step-2 .step-content>h3,
    .step-2 .step-content>ul,
    .step-4 .step-content>h3,
    .step-4 .step-content>ul {
        transform-origin: left center !important;
        transform: rotateY(75deg) rotateZ(-5deg) scale(0.9) !important;
        opacity: 0;
        transition: transform 1.6s cubic-bezier(0.25, 1.1, 0.5, 1.05) 0.3s, opacity 1.2s ease 0.3s !important;
    }

    .step-2 .step-content.appear>h3,
    .step-2 .step-content.appear>ul,
    .step-4 .step-content.appear>h3,
    .step-4 .step-content.appear>ul {
        transform: rotateY(0deg) rotateZ(0deg) scale(1) !important;
        opacity: 1 !important;
    }
}


/* Mobile Scroll Card Slide-in Animations */
@media (max-width: 991px) {

    .step-content.fade-in-left,
    .step-content.fade-in-right {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .step-content.fade-in-left.appear,
    .step-content.fade-in-right.appear {
        opacity: 1;
        transform: translateY(0);
    }

    /* Sequential Slide-in Delays for Mobile */
    .step-1 .step-content.appear {
        transition-delay: 0.1s;
    }

    .step-2 .step-content.appear {
        transition-delay: 0.3s;
    }

    .step-3 .step-content.appear {
        transition-delay: 0.5s;
    }

    .step-4 .step-content.appear {
        transition-delay: 0.7s;
    }
}


/* --- Section 7: App Download --- */
.app-section {
    background: var(--bg-color);
    overflow: hidden;
}

.app-container {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--primary);
    border-radius: 30px;
    padding: 50px;
    color: white;
    position: relative;
}

.app-content {
    flex: 1;
    z-index: 2;
}

.app-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.app-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.app-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.app-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    max-width: 300px;
}

.app-form input:focus {
    outline: 2px solid var(--accent);
}

.store-buttons {
    display: flex;
    gap: 15px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    transition: var(--transition-normal);
}

.store-btn:hover {
    background: black;
    transform: translateY(-3px);
}

.store-btn i {
    font-size: 1.8rem;
}

.store-btn span {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    line-height: 1.2;
}

.store-btn span strong {
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.app-image {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
}

/* Placeholder for phone mockup */
.phone-mockup {
    width: 250px;
    height: 500px;
    background: var(--surface-color);
    border-radius: 35px;
    border: 10px solid #333;
    position: absolute;
    bottom: -100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color), #eaeaea);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.phone-screen .mock-logo {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 40px;
    font-family: var(--font-heading);
}

.phone-screen .mock-content {
    width: 100%;
    height: 60%;
    background: white;
    border-radius: 10px;
    margin-top: 20px;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.mock-line {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* --- Footer --- */
.footer {
    background: #161625;
    color: white;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

/* Removed footer logo-icon inverted color styling */

.footer-brand p {
    color: #a0a0b0;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s var(--transition-normal);
}

.social-link:hover {
    background: rgba(139, 26, 26, 0.2);
    color: var(--accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.footer-widget h4 {
    width: 24px;
    height: 2px;
    background-color: var(--accent);
    margin-bottom: 25px;
    text-indent: -9999px;
    overflow: hidden;
    display: block;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a0b0;
    transition: all 0.3s var(--transition-normal);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent) !important;
    transform: translateX(6px);
}

.contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--transition-normal);
}

.contact-info a:hover {
    color: var(--accent) !important;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #a0a0b0;
    transition: color 0.3s var(--transition-normal);
}

.contact-info li:hover {
    color: #ffffff;
}

.contact-info i {
    color: var(--accent);
    margin-top: 5px;
    transition: transform 0.3s ease;
}

.contact-info li:hover i {
    transform: scale(1.15);
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0b0;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-card:last-child {
        grid-column: span 2;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 768px) {

    /* Navbar */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--surface-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--secondary) !important;
        font-size: 1.2rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        background: rgba(0, 0, 0, 0.02);
        margin-top: 10px;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .carousel-btn {
        display: none;
    }

    /* Sections */
    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .info-card:last-child {
        grid-column: span 1;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline Mobile Responsiveness Fallback */
    .timeline::before {
        content: '';
        position: absolute;
        left: 30px;
        top: 0;
        width: 4px;
        height: 0;
        background: linear-gradient(to bottom, #2B6CB0, #6B46C1);
        border-radius: 2px;
        transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
        display: block !important;
    }

    .timeline.appear::before {
        height: 100%;
    }

    .step-item,
    .step-item:nth-child(even) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        width: 100%;
        margin-bottom: 45px;
        height: auto;
    }

    .step-dot {
        position: absolute;
        left: 30px;
        top: 30px;
        transform: translate(-50%, -50%) rotate(-45deg) scale(1) !important;
        z-index: 10;
    }

    .step-item.appear .step-dot {
        transform: translate(-50%, -50%) rotate(-45deg) scale(1) !important;
    }

    .step-content {
        width: calc(100% - 65px) !important;
        margin-left: 65px !important;
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        opacity: 0;
        transform: translateY(30px) !important;
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .step-item.appear .step-content {
        opacity: 1;
        transform: translateY(0) !important;
    }

    /* Cascade delays for mobile/tablet */
    .step-item.appear .step-dot {
        transition-delay: 0.1s !important;
    }

    .step-item.appear .step-content {
        transition-delay: 0.2s !important;
    }

    /* App Section */
    .app-container {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .app-form {
        flex-direction: column;
    }

    .app-form input {
        max-width: 100%;
    }

    .store-buttons {
        justify-content: center;
    }

    .phone-mockup {
        position: relative;
        bottom: 0;
        margin-top: 50px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Section: Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
    transform: translateY(10px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* --- Admin Page Styles --- */
.admin-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--surface-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.admin-login-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.login-box {
    background: var(--bg-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-box h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.login-box input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
}

.admin-dashboard {
    padding-top: 100px;
    min-height: 100vh;
}

.form-card {
    background: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.1);
}

.marks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Report View */
#report-view {
    display: none;
}

.report-container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.report-header {
    text-align: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.report-header h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.report-header p {
    color: var(--text-secondary);
}

.student-details-report {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(139, 26, 26, 0.05);
    border-radius: 10px;
}

.student-details-report p {
    font-size: 1.1rem;
}

.student-details-report strong {
    color: var(--secondary);
}

.report-body {
    display: flex;
    gap: 40px;
    align-items: center;
}

.report-table-container {
    flex: 1;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.report-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.report-table tr:last-child td {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(255, 215, 0, 0.2);
}

.chart-container {
    flex: 1;
    max-width: 400px;
    min-height: 400px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Print CSS adjustments for standard A4 formatting */
@media print {
    @page {
        margin: 0;
    }

    body {
        background: white;
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body * {
        visibility: hidden;
    }

    #report-content,
    #report-content * {
        visibility: visible;
    }

    #report-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 2cm;
        /* Add padding here so it's not at the very edge since we removed page margins */
        box-shadow: none;
        border-radius: 0;
        box-sizing: border-box;
    }

    .chart-container {
        max-width: 300px;
        min-height: 300px;
        margin: 0 auto;
    }
}



/* --- Section: Online Facilities --- */
.online-section {
    background: white;
}

.feature-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-img {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.feature-img img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-content {
    flex: 1.2;
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 26, 26, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Section: Gallery --- */
.gallery-section {
    background: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 26, 26, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

/* --- Section: Director Tour --- */
.director-section {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: white;
}

.director-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.director-video {
    flex: 1.5;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.director-content {
    flex: 1;
}

.director-content h2 {
    color: white;
    margin-bottom: 20px;
}

.director-quote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    padding-left: 30px;
}

.director-quote::before {
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.5;
}

.director-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.director-title {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Responsive - About Section */
@media (max-width: 992px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        position: static;
        order: -1;
    }

    .about-image-wrapper img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .about-stats-mini {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .program-card {
        padding: 14px 18px;
    }

    .about-tagline blockquote {
        font-size: 1.15rem;
    }

    .btcgls-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .about-assessment,
    .about-diagnosis {
        padding: 18px;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {

    .feature-layout,
    .director-layout {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .feature-content,
    .director-content {
        order: 1;
    }

    .feature-img,
    .director-video {
        order: 2;
        width: 100% !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* --- Final Cleanup: Remove trailing space --- */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

.footer {
    margin-bottom: 0 !important;
    display: block !important;
}

.footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: 40px !important;
}

/* --- Section: Associations --- */
.associations-section {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 60px 0;
}

.association-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 50px;
}

.association-title span {
    color: #a41c1c;
    /* The exact red color from the image */
    font-weight: 700;
}

.association-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.association-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.association-logo-box:hover {
    transform: translateY(-5px);
}

.assoc-logo {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .association-logos-container {
        gap: 40px;
        flex-direction: column;
    }

    .association-title {
        font-size: 1.5rem;
    }
}


/* --- Simple CSS Desktop Monitor Architecture --- */
.test-series-section {
    padding: 80px 20px;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
}

.simple-desktop-monitor {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Bezel */
.monitor-bezel {
    background: #000;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.25);
    width: 100%;
    position: relative;
    border: 2px solid #222;
}

/* Glass Reflection */
.monitor-bezel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 45%);
    border-radius: 20px;
    pointer-events: none;
    z-index: 10;
}

/* Screen */
.monitor-screen {
    background: #ffffff;
    border-radius: 8px;
    overflow-x: hidden;
    height: auto;
    position: relative;
}

.monitor-screen::-webkit-scrollbar {
    width: 8px;
}

.monitor-screen::-webkit-scrollbar-thumb {
    background: #ccc;
}

/* Stand and Base */
.monitor-stand {
    width: 120px;
    height: 80px;
    background: linear-gradient(to right, #cfd8dc 0%, #eceff1 50%, #cfd8dc 100%);
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 18px;
}

.monitor-base {
    width: 300px;
    height: 15px;
    background: linear-gradient(to bottom, #cfd8dc 0%, #b0bec5 100%);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ts-title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 40px auto;
    border-radius: 2px;
}

/* Inside Window Content */
.test-series-layout {
    padding: 60px 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.test-series-content {
    max-width: 900px;
    width: 100%;
}

.ts-tagline {
    margin-bottom: 25px;
}

.ts-tagline-text {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
}

.ts-tagline-line {
    display: block;
}

.ts-tagline-lead {
    color: var(--primary);
}

.ts-tagline-secondary {
    color: #475569;
    font-weight: 600;
}

.ts-tagline-closer {
    font-size: 3rem;
    color: #0f172a;
    margin-top: 10px;
}

.ts-tagline-closer em {
    color: var(--accent);
    font-style: normal;
}

.ts-desc {
    font-size: 1.25rem;
    margin-bottom: 50px;
    color: #334155;
}

.ts-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    text-align: left;
}

.ts-feature {
    background: #f8fafc;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.ts-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ts-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.ts-feature-icon.icon-solid {
    background: rgba(139, 26, 26, 0.1);
    color: var(--primary);
}

.ts-feature-icon.icon-light {
    background: rgba(139, 26, 26, 0.05);
    color: var(--primary);
}

.ts-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #1e293b;
    font-weight: 700;
}

.ts-feature p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.ts-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(139, 26, 26, 0.3);
}

.ts-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 26, 26, 0.4);
}

@media (max-width: 992px) {
    .ts-features {
        grid-template-columns: 1fr;
    }

    .ts-tagline-text {
        font-size: 2rem;
    }

    .ts-tagline-closer {
        font-size: 2.2rem;
    }

    .test-series-layout {
        padding: 40px 20px;
    }

    .monitor-bezel {
        padding: 15px;
        border-radius: 15px;
    }

    .monitor-base {
        width: 200px;
    }
}

/* Moved from index.html */

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* AAKASH STACKED STEP STRUCTURE */
.aakash-step-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 0;
    padding: 0;
}

/* Roadmap Vertical Line */
.aakash-step-container::before {
    display: none;
}

.aakash-step-block {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0;
    border-radius: 24px;
    box-shadow: none;
    text-align: center;
    overflow: visible;
    color: #ffffff;
    z-index: 1;
}

/* Roadmap Nodes */
.aakash-step-block::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;


    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;

}

/* Alternating content direction */
.aakash-step-block:nth-child(even) .aakash-step-content {
    flex-direction: row-reverse;
}

/* Dynamic Background Colors for Steps */


.aakash-step-block:nth-child(1) .aakash-step-label,
.aakash-step-block:nth-child(1) .aakash-step-details {
    color: #1e3a29;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(30, 58, 41, 0.2);
    text-shadow: none;
}

.aakash-step-block:nth-child(1) .aakash-step-title {
    text-shadow: none;
}

.aakash-step-block:nth-child(1) .aakash-step-details li::before {
    color: #2e7d32;
}



.aakash-step-block:nth-child(2) .aakash-step-label,
.aakash-step-block:nth-child(2) .aakash-step-details {
    color: #333333;
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

.aakash-step-block:nth-child(2) .aakash-step-title {
    text-shadow: none;
}

.aakash-step-block:nth-child(2) .aakash-step-details li::before {
    color: #e65100;
}



.aakash-step-block:nth-child(3) .aakash-step-label,
.aakash-step-block:nth-child(3) .aakash-step-details {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.aakash-step-block:nth-child(3) .aakash-step-details li::before {
    color: #ffffff;
}

/* Subtle Spiral/Sunburst Background Effect */
.aakash-step-block::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg 8deg, rgba(255, 255, 255, 0.08) 8deg 16deg);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

/* Remove spiral from 3rd step */
.aakash-step-block:nth-child(3)::before {
    display: none;
}

.aakash-step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.aakash-step-image-col {
    width: 100%;
    height: 400px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.aakash-step-text-col {
    flex: 1;
    text-align: left;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.aakash-step-image-col.appear,
.aakash-step-text-col.appear {
    opacity: 1;
    transform: translateX(0);
}

.aakash-step-image-col img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.aakash-step-image-col img:hover {
    transform: scale(1.03);
}

/* Placeholder for step content */
.step-content-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 80%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

/* Overlay effect for steps */
.step-overlay {
    display: none;
}

.aakash-step-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: #ffffff;
}

.aakash-step-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    line-height: 1.2;
}

.aakash-step-details {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.aakash-step-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aakash-step-details li {
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.aakash-step-details li:last-child {
    margin-bottom: 0;
}

.aakash-step-details li::before {
    content: "✓";
    font-weight: bold;
    margin-right: 15px;
    color: #FFD700;
    font-size: 1.2rem;
}

@media(max-width: 950px) {

    .aakash-step-container::before,
    .aakash-step-block::after {
        display: none;
    }

    .aakash-step-content,
    .aakash-step-block:nth-child(even) .aakash-step-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .aakash-step-image-col {
        height: 300px;
    }

    .aakash-step-text-col {
        text-align: center;
    }

    .aakash-step-details {
        text-align: left;
    }
}

@media(max-width: 768px) {
    .aakash-step-title {
        font-size: 2.2rem;
    }

    .aakash-step-block {
        padding: 0;
    }
}

/* Disable focus outline on click/mouse focus */
*:focus {
    outline: none;
}

/* Keyboard navigation accessibility focus indicator */
*:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}