:root {
    --ra-primary: #8232A4;
    --ra-primary-dark: #6d2a8a;
    --ra-secondary: #F78437;
    /* Vibrant Orange */
    --ra-accent: #C43292;
    /* Magenta */
    --ra-highlight: #F8B13A;
    /* Mustard Yellow */
    --ra-surface: #FEFDFD;
    --ra-surface-alt: #E5DAE5;
    /* Pale Lavender */
    --ra-border: rgba(0, 0, 0, 0.05);
    --ra-shadow-sm: 0 2px 4px rgba(0, 0, 0, .04);
    --ra-shadow-lg: 0 24px 48px -12px rgba(130, 50, 164, 0.08);

    --bs-dark-rgb: 19, 20, 31;
    --ra-dark: #0f1016;
    --bs-primary: var(--ra-primary);
    --bs-primary-rgb: 130, 50, 164;
    --ra-primary-soft: rgba(130, 50, 164, 0.1);
    --ra-secondary-soft: rgba(247, 132, 55, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    background-color: var(--ra-surface);
}

h1,
h2,
h3,
h4,
.display-3,
.display-4,
.display-5 {
    letter-spacing: -0.03em;
    font-weight: 800;
}

.header-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-gradient {
    background: radial-gradient(circle at 10% 20%, rgba(130, 50, 164, 0.03) 0%, transparent 40%), #ffffff;
}

.btn-primary {
    padding: 12px 28px;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    background-color: var(--ra-primary);
    border-color: var(--ra-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--ra-primary-dark);
    border-color: var(--ra-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 50, 164, 0.2);
    color: #fff;
}

.btn-outline-primary {
    padding: 12px 28px;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    background-color: transparent;
    border-color: var(--ra-primary);
    color: var(--ra-primary);
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--ra-primary);
    border-color: var(--ra-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 50, 164, 0.15);
}

.btn-dark {
    padding: 12px 28px;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    background-color: #120c18;
    border-color: #120c18;
    color: #fff;
}

.btn-dark:hover {
    background-color: #2d1b4e;
    border-color: #2d1b4e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 27, 78, 0.25);
}

.btn-light {
    padding: 12px 28px;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    background-color: #fff;
    border-color: #fff;
    color: var(--ra-primary);
    font-weight: 600;
}

.btn-light:hover {
    background-color: var(--ra-surface-alt);
    border-color: var(--ra-surface-alt);
    color: var(--ra-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-outline-light {
    padding: 12px 28px;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    border-width: 2px;
}

.btn-outline-light:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--ra-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-link {
    padding: 12px 28px;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    color: var(--ra-primary);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--ra-primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
}

.card-modern {
    border: 1px solid var(--ra-border);
    border-radius: 24px;
    transition: all 0.4s ease;
    background: white;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--ra-shadow-lg) !important;
    border-color: rgba(130, 50, 164, 0.1);
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-modern:hover .icon-box {
    background-color: var(--ra-primary) !important;
    color: white !important;
    transform: scale(1.1);
}

.client-logo {
    filter: grayscale(100%) opacity(0.3);
    transition: all 0.3s ease;
    max-width: 120px;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
}

.badge-premium {
    background: rgba(130, 50, 164, 0.05);
    color: var(--ra-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 800;
}

.img-premium {
    border-radius: 28px;
    transition: all 0.5s ease;
}

.img-premium:hover {
    transform: scale(1.01);
    box-shadow: var(--ra-shadow-lg);
}

.footer-premium {
    background-color: var(--ra-dark) !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--ra-primary);
    padding-left: 4px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ra-primary);
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--ra-primary);
    color: white;
    transform: translateY(-3px);
}

.tracking-widest {
    letter-spacing: 0.15em !important;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 0.9rem;
}

.footer-contact i {
    width: 18px;
    color: var(--ra-primary);
    flex-shrink: 0;
}





/* Page Header Styles for Legal/Info Pages */
.page-header {
    background: radial-gradient(circle at top right, rgba(130, 50, 164, 0.03), transparent), #ffffff;
    padding: 120px 0 60px;
    text-align: center;
}

.section-label {
    color: var(--ra-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.text-content {
    color: #4a5568;
    line-height: 1.8;
}

.text-content h3 {
    color: #1a202c;
    margin-top: 40px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--ra-surface);
    border-radius: 100px;
    color: #666;
    font-weight: 600;
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
}

.dropdown-menu .dropdown-submenu {
    position: relative;
}

.dropdown-menu .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -8px;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
}

/* Hover Bridge: prevents menu from closing on slight mouse movements between parent and child */
.dropdown-menu .dropdown-submenu::after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    width: 20px;
    height: 100%;
}

.dropdown-menu .dropdown-submenu:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Desktop Hover for Main Dropdown */
@media (min-width: 992px) {
    .nav-item.dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Hover bridge for main dropdown to prevent menu closing during transition gaps */
    .nav-item.dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 12px;
        z-index: 10;
    }
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--ra-primary) !important;
}

.navbar-nav .nav-link.active {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .dropdown-menu .dropdown-submenu .dropdown-menu {
        display: block !important;
        position: static;
        margin-left: 1rem;
        margin-top: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-submenu>.dropdown-item [data-lucide="chevron-right"] {
        display: none !important;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-badge {
    background: rgba(130, 50, 164, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(130, 50, 164, 0.2);
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 20px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.bg-grid {
    position: relative;
}

.bg-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(247, 132, 55, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 132, 55, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-mesh {
    background-color: var(--ra-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(130, 50, 164, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(50, 130, 204, 0.1) 0px, transparent 50%);
}

.border-sharp {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.hero-visual-static {
    background: var(--ra-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.feature-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border: 1px solid rgba(130, 50, 164, 0.3);
    border-radius: 6px;
    color: var(--ra-primary);
    background: rgba(130, 50, 164, 0.05);
}

.hero-cyber {
    background-color: #0c0614;
    background-image:
        radial-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
}

.hero-cyber::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(130, 50, 164, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-cyber>.container {
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .hero-cyber>.container {
        padding: 0 16px;
    }
}

/* Extraneous overlay removed for cleaner dot-grid style */
.hero-cyber::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 132, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.bg-dark {
    background: #1a0e24 !important;
}

.bg-dark i {
    color: var(--ra-secondary);
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(130, 50, 164, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* .text-mono {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
} */

.hero-title-giant {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.0 !important;
}

.tag-tech {
    font-family: monospace;
    font-size: 0.7rem;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-card-v2 {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    position: relative;
    padding: 40px;
}

.hero-card-v2::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 40px;
    width: 60px;
    height: 3px;
    background: var(--ra-primary);
}

.stat-item-v2 {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
}

.hero-unique {
    background: #ffffff;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.fw-950 {
    font-weight: 950 !important;
}

.tracking-tight {
    letter-spacing: -0.04em !important;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 40%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-white {
    filter: brightness(0) invert(1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--ra-secondary);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 1.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(.5);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.text-gradient-purple {
    background: linear-gradient(135deg, #ffffff 10%, #bf87ff 60%, var(--ra-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-visual-card {
    background: linear-gradient(135deg, rgba(130, 50, 164, 0.1), rgba(0, 0, 0, 0.2));
    border-radius: 32px;
    padding: 2px;
    position: relative;
}

.hero-visual-inner {
    background: var(--ra-dark);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.code-snippet {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #a0aec0;
    line-height: 1.6;
}

.code-keyword {
    color: #d53f8c;
}

.code-function {
    color: #4299e1;
}

.code-string {
    color: #48bb78;
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

/* Masterclass / Workshop UI Components */
.info-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.info-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.info-pill i {
    width: 14px;
    height: 14px;
    color: var(--ra-secondary);
    /* Orange accent for contrast */
}

.btn-vibrant-accent {
    background: var(--ra-secondary);
    /* Vibrant Orange */
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-vibrant-accent:hover {
    background: #e67e22;
    /* Slightly darker orange */
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(247, 132, 55, 0.3);
    color: #fff;
}

.video-card-v2 {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card-v2 img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.video-card-v2:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    margin-left: 5px;
}

.play-overlay:hover {
    background: var(--ra-secondary);
    border-color: var(--ra-secondary);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Syllabus Matrix (Accordion) */
.syllabus-matrix .accordion-item {
    background: #fff;
    border: 1px solid var(--ra-border);
    border-radius: 12px !important;
    margin-bottom: 16px;
    overflow: hidden;
}

.syllabus-matrix .accordion-button {
    padding: 24px;
    background: #fff;
    color: var(--ra-primary);
    font-weight: 700;
    box-shadow: none;
}

.syllabus-matrix .accordion-button:not(.collapsed) {
    background: var(--ra-surface-alt);
    color: var(--ra-primary);
}

.syllabus-matrix .accordion-button::after {
    filter: brightness(0);
}

.syllabus-matrix .accordion-body {
    padding: 24px;
    background: #fff;
}

/* Enrollment Station Card */
.station-card {
    background: #fff;
    border: 1px solid var(--ra-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ra-shadow-lg);
}

.station-header {
    background: var(--ra-primary);
    padding: 24px;
    color: #fff;
}

.station-body {
    padding: 32px;
}

.station-fee {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ra-primary);
    display: block;
    margin-bottom: 8px;
}

/* Dynamic Course Price Component */
.course-price-dynamic {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    padding-top: 24px;
    font-family: 'Inter', sans-serif;
}

.price-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff4d4f;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.25);
    letter-spacing: 0.05em;
    z-index: 1;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-strikethrough {
    text-decoration: line-through;
    color: #a0aec0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

.price-actual {
    font-size: 1.75rem;
    font-weight: 950;
    color: #1a202c;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .price-actual {
        font-size: 1.5rem;
    }

    .price-strikethrough {
        font-size: 0.9rem;
    }
}

/* Premium Form Styles */
.form-control-premium {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1a202c;
    min-height: 56px;
    border-radius: 12px !important;
}

.form-control-premium:focus {
    background: #fff;
    border-color: var(--ra-primary);
    box-shadow: 0 0 0 4px rgba(130, 50, 164, 0.1);
    outline: none;
}

.form-control-premium::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

select.form-control-premium {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 16px 12px;
}

.text-mono {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

.x-small {
    font-size: 0.75rem;
}

/* Course Sub-nav */
.course-subnav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ra-border);
    position: sticky;
    top: 68px;
    /* Adjusted to sit below main header */
    z-index: 1020;
}

.course-subnav .nav-link {
    color: var(--ra-primary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 18px 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.course-subnav .nav-link:hover,
.course-subnav .nav-link.active {
    opacity: 1;
    color: var(--ra-secondary);
}

/* Feature Grid Labels */
.learn-grid-item {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ra-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
}

.learn-grid-item:hover {
    border-color: var(--ra-primary);
    background: var(--ra-surface-alt);
    transform: translateY(-5px);
}

.learn-grid-item i {
    color: var(--ra-secondary);
    flex-shrink: 0;
}

/* =========================================
   RESPONSIVE & MOBILE-FIRST OPTIMIZATIONS
   ========================================= */

/* 1. Global Reset & Typography Scaling */
html,
body {
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    width: 100%;
}

/* Responsive Image Scaling */
img,
video,
canvas,
audio,
iframe,
embed,
object {
    max-width: 100%;

    display: block;
}

/* Ensure inline svgs behave correctly */
svg {
    max-width: 100%;
    height: auto;
}

/* Typography Optimization using clamp() */
h1,
.hero-title-giant {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem) !important;
    line-height: 1.1;
}

.display-3 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

.display-4 {
    font-size: clamp(1.8rem, 3.5vw, 3rem) !important;
}

.display-5 {
    font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem) !important;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2rem) !important;
}

/* 2. Layout & Spacing Adjustments */

/* Mobile Devices (max-width: 575.98px) */
@media (max-width: 575.98px) {
    section {
        padding: 40px 0 !important;
        /* Reduced padding for mobile */
    }

    .hero-cyber {
        padding: 80px 0 60px 0 !important;
        text-align: left;
        /* Keep left align for hero, generally looks better with this design */
    }

    /* Stack buttons on mobile */
    .d-flex.gap-4.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: 16px !important;
        width: 100%;
    }

    .d-flex.gap-3.justify-content-center.flex-wrap a {
        width: 100%;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Adjust Gutter Spacing */
    .g-5,
    .gy-5 {
        --bs-gutter-y: 2rem !important;
        /* Smaller vertical gap on mobile */
    }

    .hero-glow {
        display: none;
        /* Hide heavy glow on mobile for performance */
    }

    .info-pill-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .info-pill {
        width: 100%;
        justify-content: center;
    }
}

/* Tablet & Small Desktop (max-width: 991.98px) */
@media (max-width: 991.98px) {

    /* Navbar Dropdowns on Mobile/Tablet */
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        margin-top: 10px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .dropdown-menu {
        border: none;
        background: transparent;
        box-shadow: none;
        padding-left: 10px;
    }

    .dropdown-item {
        padding: 10px 15px;
        color: var(--ra-primary-dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .dropdown-toggle::after {
        margin-left: auto;
        /* Align chevron to right */
    }

    .video-card-v2 {
        max-width: 100%;
        margin: 20px 0 0 0;
    }

    /* Ensure hero layout stacks */
    .hero-cyber .col-lg-7,
    .hero-cyber .col-lg-5 {
        width: 100%;
    }

    .hero-cyber .col-lg-5 {
        margin-top: 30px;
    }

    .course-subnav {
        top: 0;
        overflow-x: auto;
        white-space: nowrap;
    }

    .course-subnav .container {
        padding: 0;
    }

    .course-subnav .d-flex {
        display: block !important;
        padding-bottom: 5px;
        padding-left: 10px;
    }

    .course-subnav .nav-link {
        display: inline-block;
        padding: 15px 15px;
    }
}

/* 3. Component Specific Fixes */

/* Responsive Tables */
.table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--ra-border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

/* Responsive Charts */
.chart-container {
    position: relative;
    height: auto;
    min-height: 300px;
    width: 100%;
}

/* 4. Fix for Mobile Alignment */

/* Program & Internship Cards */
.program-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--ra-primary);
}

.program-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(130, 50, 164, 0.08);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.program-card:hover .program-icon-box {
    background: var(--ra-primary);
}

.program-card:hover .program-icon-box i,
.program-card:hover .program-icon-box svg {
    color: #fff;
}

.program-icon-box i,
.program-icon-box svg {
    width: 28px;
    height: 28px;
    color: var(--ra-primary);
    transition: all 0.3s ease;
}

/* Filter Buttons (Pills) */
.filter-btn {
    padding: 14px 28px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    color: #444;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-btn:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(130, 50, 164, 0.1);
    color: var(--ra-primary);
    border-color: rgba(130, 50, 164, 0.2);
}

.filter-btn.active {
    background: var(--ra-primary);
    color: #ffffff;
    border-color: var(--ra-primary);
    box-shadow: 0 15px 35px rgba(130, 50, 164, 0.3);
    transform: translateY(-3px);
}

.filter-btn:not(.active) i {
    opacity: 0.5;
}

.filter-btn.active i {
    color: #ffffff;
}

.filter-wrapper {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: inline-flex;
    justify-content: center;
    gap: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

@media (max-width: 767.98px) {
    .filter-wrapper {
        border-radius: 24px;
        display: flex;
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* FAQ Accordion Styling */
.faq-accordion .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
    border-color: rgba(130, 50, 164, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.faq-accordion .accordion-button {
    padding: 24px;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #fff;
    color: var(--ra-primary);
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238232A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    transform: rotate(-180deg);
}

.faq-accordion .accordion-body {
    padding: 0 24px 24px;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Sticky Contact Widget */
.sticky-contact-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.widget-btn:hover {
    transform: scale(1.1) translateY(-5px);
    color: #fff;
}

.widget-whatsapp {
    background: #25D366;
}

.widget-phone {
    background: var(--ra-primary);
}

.widget-label {
    position: absolute;
    right: 75px;
    background: #1a1a1a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.widget-btn:hover .widget-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .sticky-contact-widget {
        bottom: 20px;
        right: 20px;
    }

    .widget-btn {
        width: 50px;
        height: 50px;
    }
}

/* --- Floating Category Cards Section --- */
.category-promo-section {
    background: linear-gradient(135deg, rgba(130, 50, 164, 0.05) 0%, #ffffff 100%);
    padding: 20px 0;
    overflow: hidden;
}

.category-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    scrollbar-width: none;
    /* Firefox */
}

.category-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.category-card {
    min-width: 200px;
    height: 100px;
    background: white;
    border-radius: 12px;
    border: none;
    border-left: 4px solid var(--border-color, #8232A4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(130, 50, 164, 0.1);
}

.category-card::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    height: 0;
    width: 4px;
    background: var(--border-color);
    transition: all 0.4s ease;
    transform: translateY(-50%);
    border-radius: 4px;
    filter: brightness(1.2) saturate(1.2);
}

.category-card:hover::after {
    height: 60%;
    box-shadow: 0 0 15px var(--border-color);
}

.category-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--border-color);
}

.category-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Category Specific Colors */
.card-fullstack {
    --border-color: #8232A4;
}

/* Purple */
.card-datascience {
    --border-color: #38a169;
}

/* Green */
.card-cloud {
    --border-color: #d53f8c;
}

/* Pink */
.card-uiux {
    --border-color: #f6ad55;
}

/* Orange */
.card-cyber {
    --border-color: #3182ce;
}

/* Blue */
.card-mobile {
    --border-color: #4c51bf;
}

/* Indigo */
.card-blockchain {
    --border-color: #2c7a7b;
}

/* Teal */
.card-marketing {
    --border-color: #ecc94b;
}

/* Yellow */

/* --- Course Card Premium (Grid Section) --- */
.course-card-premium {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 5px solid var(--course-color, var(--ra-primary));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    padding: 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
}

.course-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(130, 50, 164, 0.1);
    border-color: rgba(130, 50, 164, 0.1);
}

.course-icon-premium-box {
    width: 64px;
    height: 64px;
    background: rgba(var(--course-color-rgb, 130, 50, 164), 0.1);
    color: var(--course-color, var(--ra-primary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.course-icon-premium-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.course-card-premium:hover .course-icon-premium-box img {
    transform: scale(1.15);
}

.course-icon-premium-box i {
    width: 32px;
    height: 32px;
}

.course-card-premium:hover .course-icon-premium-box {
    background: var(--course-color, var(--ra-primary));
    color: white;
}

.course-info-premium {
    flex: 1;
}

.course-title-premium {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.course-desc-premium {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Course Box Utilities */
.view-all-courses-card {
    border: 2px dashed rgba(130, 50, 164, 0.25);
    border-radius: 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(130, 50, 164, 0.03);
    min-height: 112px;
}

.view-all-courses-card:hover {
    border-style: solid;
    border-color: var(--ra-primary);
    background: rgba(130, 50, 164, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(130, 50, 164, 0.1);
}

.view-all-text {
    font-weight: 700;
    color: var(--ra-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Colors for Courses */
.course-mern {
    --course-color: #8232A4;
    --course-color-rgb: 130, 50, 164;
}

.course-python {
    --course-color: #F78437;
    --course-color-rgb: 247, 132, 55;
}

.course-cyber {
    --course-color: #3182ce;
    --course-color-rgb: 49, 130, 206;
}

.course-data {
    --course-color: #38a169;
    --course-color-rgb: 56, 161, 105;
}

.course-cloud {
    --course-color: #d53f8c;
    --course-color-rgb: 213, 63, 140;
}