/* 
   ==========================================================================
   STARS ENGLISH - PREMIUM REDESIGN STYLES
   ========================================================================== 
*/

:root {
    /* Color Palette - Educational Light Theme */
    --clr-bg-dark: #F8FAFC; /* Light gray background */
    --clr-bg-surface: #FFFFFF; /* Pure white surface */
    --clr-bg-elevated: rgba(255, 255, 255, 0.85); /* Light glass surface */
    
    --clr-primary: #FF9D00; /* Energetic Orange */
    --clr-primary-hover: #FFB333;
    --clr-primary-glow: rgba(255, 157, 0, 0.3);
    
    --clr-accent: #2563EB; /* Educational Royal Blue */
    --clr-accent-glow: rgba(37, 99, 235, 0.2);
    
    --clr-text-main: #0F172A; /* Deep Slate text */
    --clr-text-muted: #475569; /* Muted Slate text */
    
    --clr-white: #FFFFFF;
    --clr-glass-border: rgba(0, 0, 0, 0.06);

    /* Typography */
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px var(--clr-primary-glow);
}

/* =========================================
   RESET & GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, .logo {
    font-family: var(--ff-heading);
    line-height: 1.2;
    color: var(--clr-text-main);
}

.text-gradient {
    background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-highlight {
    color: var(--clr-primary);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.section-subtitle {
    display: inline-block;
    color: var(--clr-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    padding-left: 40px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 2px;
    background-color: var(--clr-primary);
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}
.text-center .section-subtitle {
    padding-left: 0;
}
.text-center .section-subtitle::before,
.text-center .section-subtitle::after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 2px;
    background-color: var(--clr-primary);
    margin: 0 12px;
    position: static;
    transform: none;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-bg-dark);
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--clr-primary-glow);
}

.btn-secondary {
    background-color: var(--clr-bg-elevated);
    color: var(--clr-text-main);
    border-color: var(--clr-glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--clr-accent);
    color: var(--clr-accent);
}

.btn-outline:hover {
    background-color: var(--clr-accent);
    color: var(--clr-white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-primary);
    font-weight: 500;
    margin-top: 24px;
    position: relative;
}

.link-arrow i {
    transition: transform var(--transition-fast);
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* Glass Cards */
.glass-card {
    background: var(--clr-bg-elevated);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-glass-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Orbs Background Elements */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    animation: float 15s ease-in-out infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background-color: var(--clr-accent-glow);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--clr-primary-glow);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: rgba(142, 68, 173, 0.2); /* Purple accent */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}

/* =========================================
   NAVIGATION
   ========================================= */
.news-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--clr-bg-surface); /* Solid background to look like a separate page */
    z-index: 2000; /* Highest priority */
    overflow-y: auto; /* Scroll bar directly on the full page */
    display: none;
    align-items: flex-start; /* So content can grow and scroll instead of center */
}

.news-popup-content {
    background: transparent;
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: none;
    position: relative;
    padding: 60px 20px 100px; /* Spacing from top */
    box-shadow: none; /* No shadow since it's a flat page */
    margin: 0 auto; /* Horizontally centered */
    overflow-y: visible; /* Scroll happens on overlay */
}
.nav-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.9); /* Light translucent background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Removed transform so it's always visible */
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
    transition: padding var(--transition-medium);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 101;
    color: var(--clr-text-main); 
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--clr-primary), #FF8A00);
    border-radius: 12px;
    color: var(--clr-white);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-text-main); 
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--clr-accent);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-text-main);
    cursor: pointer;
    z-index: 101;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 120px; /* Increased bottom padding */
    overflow: hidden;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 0;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-bottom: 60px; /* Space for the scroll indicator */
}

/* Hero Patterns & Decorations */
.hero-pattern {
    position: absolute;
    z-index: 1; /* Above the dark overlay */
    pointer-events: none;
}

.pattern-dots {
    top: 0;
    left: 0;
}

.pattern-cluster {
    opacity: 0.8;
}

.corner-tl {
    top: 0;
    left: 0;
    transform: translate(-10%, -10%);
}

.corner-br {
    bottom: 0;
    right: 0;
    transform: translate(20%, 20%);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.25;
    animation: float 8s ease-in-out infinite alternate;
}

.shape-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    bottom: 30%;
    right: 20%;
    animation-delay: -2s;
}

.shape-3 {
    top: 40%;
    right: 15%;
    animation-delay: -4s;
    animation-duration: 10s;
}

.badge {
    display: inline-block;
    padding: 10px 24px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-white);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    margin-bottom: 32px;
    line-height: 1.1;
    color: var(--clr-white);
}

.brand-name {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 10px;
    display: inline-block;
}

.main-slogan {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 10px;
    display: inline-block;
}

.accent-text {
    background: linear-gradient(135deg, #FFD700 0%, #FF9D00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 157, 0, 0.3));
}

.sub-slogan {
    font-size: clamp(1.2rem, 3vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 60px; /* Increased from 40px to prevent overlap */
    max-width: 700px;
    margin-inline: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    box-shadow: 0 0 30px var(--clr-primary-glow);
}

.hero-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--clr-white);
}

.hero-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Slightly reduced gap to save height */
    opacity: 0.7;
    animation: fadePulse 2s infinite;
}

.scroll-indicator p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-white);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--clr-primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* =========================================
   ABOUT (TRIẾT LÝ ĐÀO TẠO)
   ========================================= */
.about {
    padding: var(--section-padding);
    background-color: var(--clr-bg-surface);
    position: relative;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.glass-image-container {
    position: relative;
    border-radius: 30px;
    padding: 16px;
    background: var(--clr-bg-elevated);
    border: 1px solid var(--clr-glass-border);
    backdrop-filter: blur(10px);
}

.glass-image-container img {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    filter: brightness(0.9);
}

.floating-stat {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--clr-bg-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--clr-glass-border);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    animation: float 6s ease-in-out infinite alternate;
}

.floating-stat i {
    font-size: 2.5rem;
    color: var(--clr-primary);
}

.stat-number {
    display: block;
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-heading); /* Changed from white to dark heading color */
}

.stat-text {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

/* =========================================
   FEATURES (GIÁ TRỊ CỐT LÕI)
   ========================================= */
.features {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.1), inset 0 0 0 1px var(--clr-primary-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,184,0,0.1), rgba(255,184,0,0.05));
    border: 1px solid var(--clr-primary-glow);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 24px;
    transition: transform var(--transition-medium);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(255,184,0,0.2), rgba(255,184,0,0.1));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--clr-text-muted);
    flex-grow: 1;
}

/* =========================================
   LEARNING PATH (LỘ TRÌNH HỌC TẬP)
   ========================================= */
.learning-path {
    padding: var(--section-padding);
    background-color: var(--clr-bg-surface);
    position: relative;
    overflow: hidden;
}

.path-container {
    position: relative;
    margin-top: 80px;
    height: 400px;
    width: 100%;
}

.path-line-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(-50%);
    z-index: 1;
}

.path-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.path-track {
    stroke: var(--clr-glass-border);
    stroke-width: 4;
    stroke-dasharray: 8 8;
    fill: none;
}

.path-progress {
    stroke: var(--clr-primary);
    stroke-width: 4;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    fill: none;
    animation: drawPath 4s ease-out forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.path-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.path-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 120px;
    text-align: center;
    transition: transform var(--transition-medium);
}

.path-node:hover {
    transform: translate(-50%, -60%);
}

.path-node .node-icon {
    width: 60px;
    height: 60px;
    background: var(--clr-bg-surface);
    border: 2px solid var(--clr-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--clr-accent);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
    transition: all var(--transition-fast);
}

.path-node:hover .node-icon {
    background: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 15px 30px var(--clr-primary-glow);
}

.path-node h4 {
    font-size: 1.125rem;
    color: var(--clr-text-main);
    margin: 0;
}

.path-node span {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* =========================================
   TESTIMONIALS (BẢNG VÀNG THÀNH TÍCH)
   ========================================= */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--clr-bg-dark);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.testimonial-card {
    position: relative;
    padding-top: 40px;
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: rgba(37, 99, 235, 0.05);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--clr-glass-border);
    padding-top: 24px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--clr-accent-glow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--clr-accent);
    border: 1px solid var(--clr-glass-border);
}

.author-info h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.author-info span {
    color: var(--clr-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.score-details {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-top: 2px;
}

/* =========================================
   NEWS (GÓC TIN TỨC)
   ========================================= */
.news {
    padding: var(--section-padding);
}

.split-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.news-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.news-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 10px; /* For box-shadow */
    /* Hide scrollbar for a cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.news-slider::-webkit-scrollbar {
    display: none;
}

.news-slider .news-card {
    min-width: 350px;
    max-width: 400px;
    flex: 0 0 auto;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--clr-bg-elevated);
    border: 1px solid var(--clr-glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    color: var(--clr-text-main);
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    background: var(--clr-bg-elevated);
    color: var(--clr-text-main);
    transform: translateY(-50%) scale(1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.news-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: var(--clr-white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    transition: color var(--transition-fast);
}

.news-content h3 a:hover {
    color: var(--clr-primary);
}

.news-content p {
    color: var(--clr-text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content .link-arrow {
    margin-top: auto;
}

/* =========================================
   CONTACT (ĐĂNG KÝ TƯ VẤN)
   ========================================= */
.contact {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.contact-bg-elements .contact-orb {
    width: 600px;
    height: 600px;
    background: var(--clr-accent-glow);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: none; /* Just a static glow */
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px;
    position: relative;
    z-index: 2;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid var(--clr-glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details strong {
    display: block;
    font-size: 1.125rem;
    color: var(--clr-white);
    margin-bottom: 4px;
}

.contact-details span {
    color: var(--clr-text-muted);
}

/* Form Styles */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
}

.custom-form input,
.custom-form select {
    width: 100%;
    padding: 16px 20px;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-glass-border);
    border-radius: 12px;
    color: var(--clr-text-main);
    font-family: var(--ff-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.custom-form input:focus,
.custom-form select:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: var(--clr-bg-surface);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.custom-form input::placeholder {
    color: rgba(15, 23, 42, 0.4);
}

.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    pointer-events: none;
}

.custom-select-wrapper select option {
    background-color: var(--clr-bg-surface);
    color: var(--clr-text-main);
}

/* =========================================
 /* --- JOURNEY VISUAL SECTION --- */
.journey-visual {
    padding: 100px 0;
    background: var(--clr-bg-alt);
    position: relative;
    overflow: hidden;
}

.journey-container {
    padding: 40px;
    margin-top: 50px;
    position: relative;
    text-align: center;
    border-radius: 30px;
    overflow: hidden;
}

.journey-image-wrapper {
    position: relative;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.journey-container:hover .journey-image-wrapper {
    transform: scale(1.02);
}

.journey-main-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Atmosphere Decorations */
.journey-atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10; /* Bring above the image */
}

.twinkle-star {
    position: absolute;
    width: 30px; /* Slightly larger for visibility */
    height: 30px;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
    animation: star-twinkle 4s infinite ease-in-out;
}

.star-1 { top: 10%; left: 15%; animation-delay: 0s; width: 25px; color: var(--clr-primary); }
.star-2 { top: 60%; right: 10%; animation-delay: 1.5s; width: 35px; color: var(--clr-accent); }
.star-3 { bottom: 15%; left: 10%; animation-delay: 3s; width: 28px; color: #FFD700; }
.star-4 { top: 22%; left: 50%; animation-delay: 2s; width: 20px; color: #FFF; }
.star-5 { top: 35%; right: 25%; animation-delay: 0.5s; width: 18px; color: var(--clr-primary); }
.star-6 { bottom: 30%; right: 15%; animation-delay: 2.5s; width: 30px; color: var(--clr-accent); }

@keyframes star-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.2) rotate(180deg); }
}

.floating-cloud {
    position: absolute;
    width: 200px; /* Larger clouds */
    opacity: 0.5;
    animation: cloud-drift 40s infinite linear; /* Slower animation */
    filter: blur(2px);
    z-index: 5;
}

.cloud-1 { top: 20%; left: -250px; animation-duration: 50s; }
.cloud-2 { bottom: 25%; right: -250px; animation-duration: 65s; animation-direction: reverse; }
.cloud-3 { top: 50%; left: -250px; animation-duration: 60s; animation-delay: -10s; }
.cloud-4 { bottom: 10%; right: -250px; animation-duration: 45s; animation-direction: reverse; animation-delay: -5s; }

@keyframes cloud-drift {
    from { transform: translateX(0); }
    to { transform: translateX(2000px); } /* Use a fixed large value to ensure movement across the card */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .journey-visual {
        padding: 60px 0;
    }
    
    .journey-container {
        padding: 5px; /* Minimal padding for mobile to maximize image size */
        margin-top: 30px;
        border-radius: 15px;
    }
    
    .journey-main-img {
        border-radius: 10px;
    }

    .floating-cloud {
        width: 120px;
    }
}

.journey-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--grad-primary);
    filter: blur(100px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--clr-bg-surface);
    padding: 80px 0 30px;
    border-top: 1px solid var(--clr-glass-border);
}

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

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin-bottom: 12px;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-glass-border);
    border-radius: 50%;
    color: var(--clr-text-main);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--clr-accent);
    color: var(--clr-white);
    border-color: var(--clr-accent);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--clr-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--clr-text-muted);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--clr-glass-border);
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--clr-white);
}

/* =========================================
   UTILITIES & ANIMATION CLASSES
   ========================================= */
.d-none-mobile {
    display: inline-flex;
}

.d-mobile-only {
    display: none;
}

.mt-4 {
    margin-top: 2rem;
}

/* Animation Classes assigned via JS or static */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal on Scroll classes */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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


/* =========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1024px) {
    .split-layout {
        gap: 40px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .navbar {
        padding: 0 24px;
    }
    
    .nav-links, .nav-btn {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--clr-bg-elevated);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px;
        border-bottom: 1px solid var(--clr-glass-border);
        box-shadow: var(--shadow-soft);
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
    
    .floating-stat {
        bottom: -10px;
        left: -10px;
        padding: 12px 20px;
    }
    
    .split-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    /* Learning Path Mobile */
    .path-line-wrapper {
        display: none;
    }
    
    .path-container {
        height: auto;
        margin-top: 40px;
    }
    
    .path-nodes {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: center;
        height: auto;
    }
    
    .path-node {
        position: relative;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        width: 100%;
        max-width: 300px;
        background: var(--clr-bg-elevated);
        border: 1px solid var(--clr-glass-border);
        padding: 24px;
        border-radius: 20px;
        flex-direction: row;
        text-align: left;
    }
    
    .path-node:hover {
        transform: translateY(-5px) !important;
    }
    
    .path-node .node-icon {
        flex-shrink: 0;
    }
    
    .d-none-mobile {
        display: none !important;
    }
    
    .d-mobile-only {
        display: block;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .contact-wrapper {
        padding: 30px 20px;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
}

/* =========================================
   NEWS POPUP MODAL
   ========================================= */
.news-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--clr-bg-surface); /* Solid background to act as a page */
    z-index: 98; /* Below nav-bg (99) and navbar (100) */
    display: none; /* Changed to none default */
    overflow-y: auto; /* Scrollable like a real page */
}

.news-popup-content {
    background: transparent;
    width: 100%;
    max-width: 900px;
    margin: 0 auto; /* Center horizontally */
    min-height: 100%;
    position: relative;
    padding: 120px 40px 80px; /* 120px top padding (80px header + 40px spacing) */
    box-shadow: none; /* No shadow */
}

/* Custom scrollbar for popup */
.news-popup-content::-webkit-scrollbar {
    width: 8px;
}
.news-popup-content::-webkit-scrollbar-track {
    background: transparent;
}
.news-popup-content::-webkit-scrollbar-thumb {
    background-color: var(--clr-border);
    border-radius: 10px;
}

.popup-close-btn {
    position: sticky;
    top: 100px;
    left: 0;
    background: var(--clr-white);
    border: 1px solid var(--clr-border);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--clr-text-main);
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.popup-close-btn:hover {
    background: var(--clr-bg-elevated);
    box-shadow: var(--shadow-soft);
    color: var(--clr-primary);
}

.popup-inner-content {
    padding-bottom: 30px;
}

.popup-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 30px;
}

.popup-meta {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
    margin-bottom: 16px;
}

.popup-meta i {
    color: var(--clr-primary);
    margin-right: 6px;
}

#popupTitle {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--clr-text-heading);
    margin-bottom: 24px;
    line-height: 1.3;
}

.popup-body-text {
    color: var(--clr-text-main);
    font-size: 1.125rem;
    line-height: 1.8;
}

.popup-body-text p {
    margin-bottom: 20px;
}

.popup-body-text strong {
    color: var(--clr-text-heading);
}

.popup-body-text ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.popup-body-text li {
    margin-bottom: 12px;
}

/* =========================================
   FLOATING ACTION BUTTONS
   ========================================= */
.floating-actions {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.btn-floating {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-white);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    text-decoration: none;
}

.btn-call {
    background: var(--clr-primary);
}

.btn-call:hover {
    transform: scale(1.1);
    background: var(--clr-primary-hover);
}

.btn-scroll-top {
    background: var(--clr-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scroll-top:hover {
    background: #1d4ed8; /* Darker blue */
    transform: scale(1.1);
}

/* Call Button Pulse Effect */
.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--clr-primary);
    border-radius: 50%;
    z-index: -1;
    animation: floatingPulse 2s infinite;
}

@keyframes floatingPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-actions {
        right: 20px;
        bottom: 20px;
    }
    .btn-floating {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    .news-popup-content {
        padding: 24px;
    }
    .popup-hero-image {
        height: 250px;
    }
}
