html {
    scroll-behavior: smooth;
}

:root {
    /* Premium Dark Grey Palette */
    --bg-color: #1a1a1e;
    --surface-color: #1a1a1c;
    --text-primary: #f0f0f2;
    --text-secondary: #a0a0a5;
    --accent-color: #ff0000; /* Vibrant Yellow Accent */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Scroll Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delay System */
.reveal-stagger {
    display: contents; /* Ensures it doesn't break grid/flex layouts */
}

.reveal-stagger.active > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-40px) scale(0.98);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.main-header {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    height: 80px; /* Reduced from 100px */
    width: 100%;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header.scrolled {
    background-color: rgba(0, 0, 0, 1);
    height: 60px; /* Shrinks further on scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.main-header.scrolled .logo-img {
    height: clamp(30px, 3.5vw, 45px); /* Slightly smaller logo when header shrinks */
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: clamp(35px, 4vw, 55px); /* Responsive height scaling */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, height 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #ff0000;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}
/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 60px 20px; /* Shifted down to account for fixed header */
    overflow: hidden;
    min-height: 80vh;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-hero {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.mobile-welcome-text {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: capitalize;
}

.mobile-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.mobile-hero-logo {
    width: 80%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


.poster-display-main {
    padding-top: 120px; /* Space for the fixed header */
    min-height: 100vh;
    width: 100%;
    max-width: 1600px; /* Wider for this page */
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.poster-display-container {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
}

.poster-sidebar {
    flex: 0 0 30%; /* 30% area as requested */
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.poster-sidebar::-webkit-scrollbar {
    width: 4px;
}

.poster-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar-belt {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.poster-sidebar-card {
    background: #1e1e22;
    border-radius: 16px;
    padding: 20px 24px; /* Increased padding for text-only layout */
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.poster-sidebar-card:hover {
    background: #25252a;
    transform: translateX(10px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.card-label {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.card-name {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

.poster-view-area {
    flex: 1; /* 70% area */
    background: #111113;
    border-radius: 24px;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Start from top for long posters */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    position: sticky;
    top: 120px;
}

.main-poster-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#active-poster {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: none; /* Shown via JS */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.poster-sidebar-card.active {
    background: #25252a;
    border-color: var(--accent-color);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.poster-sidebar-card.active .card-name {
    color: var(--accent-color);
}

.poster-placeholder {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
}

.center-logo {
    width: 100%;
    max-width: clamp(200px, 35vw, 500px); /* Responsive max-width scaling */
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 5;
    transition: max-width 0.3s ease;
}

/* Branching System */
.branching-system {
    position: relative;
    width: 95vw;
    height: calc(100vh - 100px); /* Fill space below header */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5; /* Above background but behind nodes (10) */
}

.branch-line {
    stroke: #757575;
    stroke-width: 1;
    opacity: 0.1;
    transition: opacity 0.5s ease;
    will-change: stroke-dashoffset, opacity;
}

.energy-line {
    stroke: #ffffff;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
    will-change: stroke-dashoffset, opacity;
}

.branch-dot {
    fill: #ffffff;
    opacity: 0;
    transition: all 0.5s ease-out;
    will-change: opacity, transform, filter;
}

.branch-dot.ignited-permanent {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1));
}

.center-node {
    position: relative;
    z-index: 10;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; /* Much larger than the logo to prevent clipping */
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hexagon-node {
    position: absolute;
    width: 140px;
    aspect-ratio: 1.154 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25252a;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    /* Initial state for animation */
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.8);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.6s ease-out, 
                background-color 0.4s ease;
    pointer-events: none;
    will-change: transform, opacity, background-color;
}

/* Yellow Glow via Pseudo-element for Performance */
.hexagon-node::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    box-shadow: inset 0 0 20px rgba(255, 230, 0, 0);
    filter: drop-shadow(0 0 2px rgba(255, 220, 0, 0));
    opacity: 0;
    transition: opacity 0.8s ease-in;
    pointer-events: none;
    z-index: -1;
}

.hexagon-node.visible {
    animation: hexagonPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
}

@keyframes hexagonPop {
    0% {
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(0.5) rotate(-15deg);
        filter: brightness(2);
    }
    70% {
        transform: translate3d(-50%, -50%, 0) scale(1.1) rotate(2deg);
        filter: brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) scale(1) rotate(0deg);
        filter: brightness(1);
    }
}

.hexagon-node.ignited-permanent {
    background-color: #ffffff;
    color: #000000;
}

.hexagon-node.ignited-permanent::after {
    opacity: 1;
    /* Clean sharp red outline using multiple drop-shadows for edge-to-edge coverage */
    filter: drop-shadow(2px 0 0 #ff0000) 
            drop-shadow(-2px 0 0 #ff0000) 
            drop-shadow(0 2px 0 #ff0000) 
            drop-shadow(0 -2px 0 #ff0000);
}

/* Sessions Section */
.sessions-section {
    background-color: #000000;
    width: 100%;
    padding: 100px 20px 60px 20px; /* Reduced bottom padding */
    position: relative;
    z-index: 10;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center; /* Centered as requested */
}

.section-heading {
    font-size: 3rem;
    color: #ffffff; /* Fallback */
    font-weight: 800;
    margin-bottom: 80px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.accent-word {
    background: linear-gradient(135deg, var(--accent-color) 0%, #fffb00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.3));
    font-style: italic;
    padding-right: 5px; /* Adjust for italic lean */
}

/* Video Belts */
.video-belt-container {
    margin-bottom: 40px;
}

.video-belt-container:last-child {
    margin-bottom: 0;
}

.video-belt {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 20px 20px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.video-belt::-webkit-scrollbar {
    height: 6px;
}

.video-belt::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.video-card {
    min-width: 320px;
    flex: 0 0 320px;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: left; /* Ensure left alignment for titles/meta */
}

.video-card:hover {
    transform: translateY(-5px);
}

.thumbnail-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #2a2a2f;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .thumbnail {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.video-info {
    display: flex;
    gap: 12px;
}

.channel-icon {
    width: 36px;
    height: 36px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
}

.channel-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.channel-name, .video-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Energy Build-up Styles */
.energy-line {
    stroke: #ffffff;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
    pointer-events: none;
    z-index: 5;
    opacity: 0.8;
}

.hexagon-node:hover {
    background-color: #ff0000;
    transform: translate3d(-50%, -50%, 0) scale(1.1);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.4);
    z-index: 100;
    color: #ffffff; /* White text on red hover */
}

.hexagon-content {
    padding: 15px;
    user-select: none;
    line-height: 1.2;
}

/* Specific Node Positions - Compact Edge-to-Edge Layout */
/* 7 Nodes Above Logo */
.node-1 { left: 8%; top: 25%; transform: translate(-50%, -50%); } 
.node-2 { left: 20%; top: 38%; transform: translate(-50%, -50%); }
.node-3 { left: 33%; top: 20%; transform: translate(-50%, -50%); }
.node-4 { left: 50%; top: 12%; transform: translate(-50%, -50%); }
.node-5 { left: 67%; top: 20%; transform: translate(-50%, -50%); }
.node-6 { left: 80%; top: 38%; transform: translate(-50%, -50%); }
.node-7 { left: 92%; top: 25%; transform: translate(-50%, -50%); }

/* 7 Nodes Below Logo */
.node-8 { left: 8%; top: 75%; transform: translate(-50%, -50%); } 
.node-9 { left: 20%; top: 62%; transform: translate(-50%, -50%); }
.node-10 { left: 33%; top: 80%; transform: translate(-50%, -50%); }
.node-11 { left: 50%; top: 88%; transform: translate(-50%, -50%); }
.node-12 { left: 67%; top: 80%; transform: translate(-50%, -50%); }
.node-13 { left: 80%; top: 62%; transform: translate(-50%, -50%); }
.node-14 { left: 92%; top: 75%; transform: translate(-50%, -50%); }

/* Resources Section */
.resources-section {
    width: 100%;
    padding: 100px 5% 100px 0;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center the blocks with the side panel */
    gap: 5%; /* Space between side panel and grid */
}

.resources-intro {
    flex: 0 0 25%; /* Fixed at 25% width as previously requested */
    background-color: #000000;
    padding: 60px 40px 60px 5vw;
    text-align: left;
    margin-left: 0;
    border-radius: 0 24px 24px 0;
    border-right: 2px solid #ff0000;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.4);
}

.resources-heading {
    font-size: 3rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.resources-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.highgrads-logo {
    margin-top: 40px;
    margin-left: auto; /* Pushes the image to the right */
    margin-right: 0;
    max-width: 180px;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Resources Grid & Neumorphism */
.resources-grid-container {
    flex: 1; /* Takes the remaining ~70% of space */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    grid-template-rows: repeat(2, 1fr); /* 2 rows */
    gap: 30px;
}

.resource-card {
    background-color: #161618; /* Very dark grey for neumorphism contrast */
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.8), 
        -8px -8px 16px rgba(45, 45, 45, 0.3); /* Subtle dark neumorphism */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0);
}

.resource-card:hover {
    transform: translateY(-8px) scale(1.02);
    background-color: #1a1a1c;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 
        15px 15px 30px rgba(0, 0, 0, 0.9), 
        -10px -10px 20px rgba(255, 0, 0, 0.05);
}

.card-title {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.01em;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Telegram Poster Section */
.tg-poster-section {
    width: 100%;
    padding: 0 0 100px 5%; /* Removed right padding to allow sticking to the edge */
    display: flex;
    justify-content: flex-end; /* Align to the very right */
    background-color: var(--bg-color);
}

.tg-poster-container {
    max-width: 95%; /* Pushed to near edge-to-edge size */
    width: 100%; /* Ensure it tries to take full available space up to max-width */
    min-width: min(900px, 100%); /* Extreme minimum width, but never exceeding viewport */
    transition: transform 0.3s ease;
}

.tg-poster-container:hover {
    transform: translateY(-5px);
}

.tg-poster {
    width: 100%;
    height: auto;
    border-radius: 24px 0 0 24px; /* Rounded on left, flat on right to stick to edge */
    display: block;
    box-shadow: 
        -12px 12px 24px rgba(0, 0, 0, 0.8), 
        -8px -8px 24px rgba(45, 45, 45, 0.4); /* Neumorphic effect directly on the image */
    transition: box-shadow 0.3s ease;
}

.tg-poster-container:hover .tg-poster {
    box-shadow: 
        -16px 16px 30px rgba(0, 0, 0, 0.9), 
        -12px -12px 30px rgba(50, 50, 50, 0.5); /* Deeper shadow on hover */
}

/* Why Us Poster Section */
.why-us-section {
    width: 100%;
    padding: 0 5% 100px 0; /* Removed left padding to allow sticking to the edge */
    display: flex;
    justify-content: flex-start; /* Align to the very left */
    background-color: var(--bg-color);
}

.why-us-container {
    max-width: 95%; /* Same massive size as tg-poster */
    width: 100%;
    min-width: min(900px, 100%); /* Never exceeds viewport */
    transition: transform 0.3s ease;
}

.why-us-container:hover {
    transform: translateY(-5px);
}

.why-us-poster {
    width: 100%;
    height: auto;
    border-radius: 0 24px 24px 0; /* Flat on left, rounded on right to stick to edge */
    display: block;
    box-shadow: 
        12px 12px 24px rgba(0, 0, 0, 0.8), 
        8px -8px 24px rgba(45, 45, 45, 0.4); /* Neumorphic effect directly on the image, cast to the right */
    transition: box-shadow 0.3s ease;
}

.why-us-container:hover .why-us-poster {
    box-shadow: 
        16px 16px 30px rgba(0, 0, 0, 0.9), 
        12px -12px 30px rgba(50, 50, 50, 0.5); /* Deeper shadow on hover */
}

/* Final Black Section */
.final-black-section {
    background-color: #000000;
    width: 100%;
    min-height: 400px; /* Provides a substantial black block */
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

.courses-main-heading {
    font-size: 4.5rem; /* Significantly increased heading size */
    margin-bottom: 60px;
}

/* Course Block Containers */
.course-block {
    margin-bottom: 120px; /* Spacing between the different courses */
}

.course-block:last-child {
    margin-bottom: 0;
}

/* Reversed Course Modifier */
.reversed-course .course-content-wrapper {
    flex-direction: row-reverse;
}

.reversed-course .course-bottom-actions {
    flex-direction: row-reverse;
}

.reversed-course .course-details {
    padding-left: 0;
    padding-right: 40px; /* Switch padding to the other side since video is now on the right */
}

.reversed-course .purchase-actions {
    align-items: flex-start; /* Align the buy buttons and price to the left side */
    padding-right: 0;
}

.reversed-course .player-action-icons {
    margin-left: 0; /* Both columns are equal flex now, no offset needed */
}

/* Course Video Player Section */
.course-content-wrapper {
    display: flex;
    justify-content: space-between; /* Creates space between the two columns */
    align-items: stretch; /* Forces both columns to have the exact same height */
    width: 100%;
    margin-top: 20px;
}

.course-video-player {
    width:45%; /* Explicitly 40% as requested */
    
    /* Removed aspect-ratio: 16/9 to allow dynamic height stretching */
    background-color: #1a1a1c; /* Dark screen look */
    border-radius: 30px; /* Increased from 12px for a rounder look */
    position: relative; 
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.course-video-player:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 0, 0.5); /* Subtle red accent on hover */
}

/* YouTube Style Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: rgba(255, 0, 0, 0.8); /* Classic YouTube Red, slightly transparent until hovered */
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.course-video-player:hover .play-button {
    background-color: #ff0000; /* Solid red on hover */
    transform: translate(-50%, -50%) scale(1.05); /* Slight pop */
}

/* The actual triangle play icon */
.play-icon {
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #ffffff;
    margin-left: 5px; /* Visually center the triangle inside the rectangle */
}

/* Course Details Right Side */
.course-details {
    flex: 1; /* Takes the remaining space */
    text-align: left; /* Left-align the heading to match the icons */
    padding-left: 40px; /* Space from the video */
}

.course-title {
    font-size: 2.6rem; /* Scaled down to fit on a single line */
    white-space: nowrap; /* Forces text to stay on one line */
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 0; /* Ensures flush alignment with the top of the video */
}

.text-red {
    color: #ff0000;
}

/* Feature Icons List */
.feature-icons-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns the items directly to the left edge of the heading */
    gap: 20px; /* Gap between each feature row */
}

.feature-item {
    display: flex;
    align-items: flex-start; /* Top-align icon with first line of text */
    gap: 16px; /* Space between the hat icon and the text */
}

.study-hat-icon {
    width: 50px; /* Clean icon size for main feature list */
    height: auto;
    display: block;
    flex-shrink: 0; /* Prevents the icon from shrinking */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); /* Subtle depth */
    margin-top: 2px; /* Fine-tune vertical alignment with first text line */
}

.feature-text {
    font-size: 1.2rem;
    color: #d7d7d7; /* Matches other descriptive text */
    line-height: 1.5;
    font-weight: 500;
}

/* Course Bottom Actions (Holds both left buttons and right purchase actions) */
.course-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 25px; /* Space from the player/features above */
}

/* Left Action Column (Holds buttons and icons under the player) */
.left-action-column {
    width: 45%; /* Explicitly matches the video player width */
    display: flex;
    flex-direction: column;
    gap: 25px; /* Spacing between the buttons and the icons below */
}

/* Player Action Buttons */
.player-action-buttons {
    width: 100%; /* Takes full width of the left column */
    display: flex;
    gap: 15px; /* Spacing between the two buttons */
}

.player-action-icons {
    display: flex;
    width: 100%;
    margin-top: 5px; /* Slight adjustment for visual balance */
    gap: 40px; /* Consistent gap between left and right columns */
}

/* Smaller icons for the metadata row under the player */
.player-action-icons .study-hat-icon {
    width: 36px;
    margin-top: 1px;
}

.player-action-icons .feature-item {
    gap: 12px;
}

.player-action-icons .feature-text-line {
    font-size: 1rem;
}

.player-action-icons .feature-text-line-sub {
    font-size: 0.85rem;
}

.left-feature-icons {
    display: flex;
    flex-direction: column;
    gap: 22px; /* Gap between the two icons */
    flex: 1; /* Equal flex distribution */
}

.right-feature-icons {
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1; /* Equal flex distribution */
    padding-left: 0; /* Removed percentage padding — using gap instead */
}

/* Two-Line Text Block for Icons */
.feature-text-block {
    display: flex;
    flex-direction: column;
    gap: 3px; /* Small gap between the primary and secondary text */
    text-align: left; /* Overrides any centered text inheritance */
}

.feature-text-line {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.35;
}

.feature-text-line-sub {
    font-size: 0.88rem;
    color: #777777;
    font-weight: 500;
    line-height: 1.3;
    margin-top: 1px;
}

.btn-demo, .btn-brochure {
    flex: auto; /* Allows buttons to size automatically based on text length to fill the 45% */
    padding: 15px 0;
    border-radius: 16px; /* Increased from 8px */
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.05em;
}

.btn-demo {
    background-color: #ffffff;
    color: #000000;
}

.btn-demo:hover {
    background-color: #dddddd;
    transform: translateY(-2px);
}

.btn-brochure {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-brochure:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Purchase Actions & Buttons */
.purchase-actions {
    margin-top: 45px; /* Shifted down slightly as requested */
    flex: 1; /* Takes the remaining space on the right */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns all children (price + buttons) to the right edge */
    gap: 15px;
    padding-right: 20px;
}

.price-tag-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.btn-buy-now {
    background-color: #ffd700; /* Vibrant yellow */
    color: #444444; /* Dark grey text */
    font-size: 1.2rem;
    font-weight: 800;
    padding: 15px 0;
    width: 250px; /* Fixed width for uniform stacking */
    border-radius: 16px; /* Increased from 8px */
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); /* Subtle yellow glow */
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-buy-now:hover {
    background-color: #ffe600;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-buy-emi {
    background-color: transparent;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 0;
    width: 250px; /* Matches Buy Now button width */
    border-radius: 16px; /* Increased from 8px */
    border: 2px solid #555555; /* Subtle grey border */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.btn-buy-emi:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

.discounted-price {
    font-size: 2.13rem; /* Large impact */
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.5); /* Premium red glow to match the foundation text */
    letter-spacing: -0.02em;
}

/* Footer Styles */
.main-footer {
    background-color: #000000;
    color: var(--text-primary);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

.footer-tagline {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #1a1a1c;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    transform: translateY(-3px);
    background: #25252a;
    border-color: var(--accent-color);
}

.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Mobile Responsive Footer */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand, .footer-logo {
        align-self: center;
    }
    
    .footer-tagline {
        margin: 0 auto;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* ===================================================================
   HAMBURGER MENU & MOBILE NAV — Always present in DOM, hidden on desktop
   =================================================================== */

.hamburger-btn {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger → X animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Nav overlay backdrop — always in DOM, hidden by default */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Hide contact button on mobile */
.desktop-only { display: inline-flex; }

/* Body lock when nav open */
body.nav-open {
    overflow: hidden;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

/* ─────────────────────────────────────────────
   TABLET LANDSCAPE & SMALL DESKTOP (≤ 1200px)
   ───────────────────────────────────────────── */
@media (max-width: 1200px) {
    /* Resources: 2-column grid */
    .resources-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    /* Course titles: allow wrapping */
    .course-title {
        font-size: 2rem;
        white-space: normal;
    }

    .courses-main-heading {
        font-size: 3.5rem;
    }

    /* Feature text: allow wrapping */
    .feature-text-block {
        white-space: normal;
    }

    .feature-text-line {
        font-size: 1rem;
    }

    .feature-text-line-sub {
        font-size: 0.85rem;
    }

    /* Poster sections: remove min-width */
    .tg-poster-container,
    .why-us-container {
        min-width: 0;
        max-width: 100%;
    }

    /* Hexagons: slightly smaller */
    .hexagon-node {
        width: 120px;
        font-size: 0.75rem;
    }

    /* Player action icons: remove negative margin */
    .reversed-course .player-action-icons {
        margin-left: 0;
    }

    .right-feature-icons {
        padding-left: 10%;
    }
}


/* ─────────────────────────────────────────────
   TABLET PORTRAIT (≤ 1024px)
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Header: show hamburger, hide nav links */
    .hamburger-btn {
        display: flex;
    }
    .desktop-only {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        gap: 0;
        z-index: 1050;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-link {
        font-size: 1.15rem;
        padding: 18px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-link::after {
        bottom: 0;
        height: 2px;
    }

    /* Header container padding */
    .header-container {
        padding: 0 20px;
    }

    /* Resources section: stack vertically */
    .resources-section {
        flex-direction: column;
        padding: 60px 5%;
        gap: 40px;
    }

    .resources-intro {
        flex: none;
        width: 100%;
        border-radius: 16px;
        padding: 40px 30px;
        text-align: center;
        border-right: none;
        border-bottom: 2px solid #ff0000;
    }

    .resources-heading {
        font-size: 2.4rem;
    }

    .highgrads-logo {
        margin: 30px auto 0;
    }

    .resources-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Course section: stack video + details */
    .course-content-wrapper {
        flex-direction: column !important;
    }

    .course-video-player {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 250px;
    }

    .course-details {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 30px;
    }

    .course-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .feature-icons-list {
        align-items: flex-start;
    }

    .feature-item {
        gap: 15px;
    }

    .study-hat-icon {
        width: 45px;
    }

    /* Course bottom actions: stack */
    .course-bottom-actions {
        flex-direction: column !important;
        align-items: center;
        gap: 30px;
    }

    .left-action-column {
        width: 100%;
        max-width: 500px;
    }

    .player-action-icons {
        flex-direction: column;
        gap: 20px;
    }

    .left-feature-icons,
    .right-feature-icons {
        padding-left: 0;
        flex: none;
    }

    .reversed-course .player-action-icons {
        margin-left: 0;
    }

    .purchase-actions {
        align-items: center !important;
        padding-right: 0 !important;
        margin-top: 0;
    }

    .courses-main-heading {
        font-size: 2.8rem;
    }

    .course-block {
        margin-bottom: 80px;
    }

    /* Poster sections */
    .tg-poster-section {
        padding: 0 5% 60px 5%;
        justify-content: center;
    }

    .tg-poster {
        border-radius: 16px;
    }

    .why-us-section {
        padding: 0 5% 60px 5%;
        justify-content: center;
    }

    .why-us-poster {
        border-radius: 16px;
    }

    /* Sessions */
    .sessions-section {
        padding: 60px 15px 40px;
    }

    .section-heading {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }

    /* Hexagons: smaller */
    .hexagon-node {
        width: 100px;
        font-size: 0.7rem;
    }

    .hexagon-content {
        padding: 10px;
    }

    .center-node::before {
        width: 350px;
        height: 350px;
    }

    /* Footer */
    .main-footer {
        padding: 60px 0 25px;
    }

    .footer-container {
        padding: 0 20px;
    }
}


/* ─────────────────────────────────────────────
   MOBILE (≤ 768px)
   ───────────────────────────────────────────── */
/* 
   MOBILE HERO VS DESKTOP HEX
   Show hex in landscape (including desktop), 
   Show welcome message in portrait (mobile/tablet)
   ───────────────────────────────────────────── */
@media (orientation: portrait) {
    .branching-system {
        display: none !important;
    }
    
    .mobile-hero {
        display: flex;
    }
    
    .hero {
        padding-top: 120px;
        min-height: calc(100vh - 80px);
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* Header: more compact */
    .main-header {
        height: 65px;
    }

    .main-header.scrolled {
        height: 55px;
    }

    .logo-img {
        height: clamp(28px, 8vw, 40px);
    }

    /* Hero: reduce padding, show simplified hero */
    .hero {
        padding: 80px 15px 40px;
        min-height: 85vh;
        overflow: hidden;
        max-width: 100vw;
    }

    .branching-system {
        width: 100%;
        height: calc(85vh - 80px);
        overflow: hidden;
    }

    .center-logo {
        max-width: clamp(150px, 50vw, 280px);
    }

    /* Hexagons: even smaller and tighter */
    .hexagon-node {
        width: 80px;
        font-size: 0.6rem;
    }

    .hexagon-content {
        padding: 6px;
        line-height: 1.1;
    }

    .center-node::before {
        width: 250px;
        height: 250px;
    }

    /* Sessions */
    .sessions-section {
        padding: 50px 10px 30px;
    }

    .section-heading {
        font-size: 1.6rem;
        margin-bottom: 35px;
    }

    .video-card {
        min-width: 260px;
        flex: 0 0 260px;
    }

    .video-title {
        font-size: 0.9rem;
    }

    /* Resources section */
    .resources-section {
        padding: 40px 15px;
        gap: 30px;
    }

    .resources-intro {
        padding: 30px 20px;
    }

    .resources-heading {
        font-size: 2rem;
    }

    .resources-description {
        font-size: 0.95rem;
    }

    .resources-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .resource-card {
        padding: 22px 20px;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .card-desc {
        font-size: 0.88rem;
    }

    /* Poster sections: full width */
    .tg-poster-section,
    .why-us-section {
        padding: 0 0 40px 0;
    }

    .tg-poster-container,
    .why-us-container {
        max-width: 100%;
        min-width: 0;
    }

    .tg-poster,
    .why-us-poster {
        border-radius: 0;
    }

    /* Courses section */
    .final-black-section {
        padding: 50px 15px;
    }

    .courses-main-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .course-title {
        font-size: 1.5rem;
    }

    .course-block {
        margin-bottom: 60px;
    }

    .feature-icons-list {
        margin-top: 20px;
        gap: 15px;
    }

    .feature-item {
        gap: 12px;
    }

    .study-hat-icon {
        width: 36px;
    }

    .feature-text-line {
        font-size: 0.9rem;
    }

    .feature-text-line-sub {
        font-size: 0.8rem;
    }

    /* Buttons */
    .player-action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-demo, .btn-brochure {
        font-size: 0.95rem;
        padding: 13px 0;
        border-radius: 12px;
    }

    .btn-buy-now {
        width: 100%;
        max-width: 280px;
        font-size: 1.1rem;
        padding: 14px 0;
    }

    .btn-buy-emi {
        width: 100%;
        max-width: 280px;
        font-size: 1rem;
        padding: 12px 0;
    }

    .discounted-price {
        font-size: 1.8rem;
    }

    /* Footer */
    .main-footer {
        padding: 50px 0 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-logo {
        height: 40px;
    }
}


/* ─────────────────────────────────────────────
   SMALL PHONE (≤ 480px)
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
    /* Header */
    .main-header {
        height: 58px;
    }

    .main-header.scrolled {
        height: 50px;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo-img {
        height: clamp(24px, 9vw, 36px);
    }

    /* Hero */
    .hero {
        padding: 65px 10px 30px;
        min-height: 75vh;
    }

    .branching-system {
        height: calc(75vh - 65px);
    }

    .center-logo {
        max-width: clamp(120px, 45vw, 200px);
    }

    /* Hexagons: minimal */
    .hexagon-node {
        width: 60px;
        font-size: 0.5rem;
    }

    .hexagon-content {
        padding: 4px;
        line-height: 1;
    }

    .center-node::before {
        width: 180px;
        height: 180px;
    }

    /* Sessions */
    .section-heading {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .video-card {
        min-width: 230px;
        flex: 0 0 230px;
    }

    .video-belt {
        padding: 0 10px 15px;
    }

    /* Resources */
    .resources-heading {
        font-size: 1.7rem;
    }

    .resources-description {
        font-size: 0.88rem;
    }

    .resources-grid-container {
        grid-template-columns: 1fr;
    }

    /* Courses */
    .courses-main-heading {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .course-title {
        font-size: 1.25rem;
    }

    .feature-text-block {
        white-space: normal;
    }

    .study-hat-icon {
        width: 30px;
    }

    .feature-text-line {
        font-size: 0.82rem;
    }

    .feature-text-line-sub {
        font-size: 0.72rem;
    }

    .course-block {
        margin-bottom: 45px;
    }

    /* Purchase buttons */
    .btn-buy-now,
    .btn-buy-emi {
        max-width: 100%;
        border-radius: 12px;
    }

    .discounted-price {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-brand, .footer-logo {
        align-self: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-container {
        padding: 0 15px;
    }
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.close-modal {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    margin-bottom: 30px;
}

.points-list {
    list-style: none;
    padding: 0;
}

.points-list li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    gap: 12px;
}

.point-icon {
    color: var(--accent-color);
    font-weight: 700;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-continue {
    background: var(--accent-color);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-continue:hover {
    transform: translateY(-2px);
    background: #ff2222;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .points-list li {
        font-size: 0.88rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer button {
        width: 100%;
    }
}
