/* === MOBILE FIXES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* === ROOT VARIABLES === */
:root {
    --primary: #bb0000;
    --secondary: #ffffff;
    --accent: #F97316;
    --text: #000000;
    --background: #F9FAFB;
    --white: #FFFFFF;
    --gray-light: #E5E7EB;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --logo-red: #E63946;
    --logo-black: #000000;
    --animation-duration: 0.8s;
}

/* === RESET & BASE STYLES === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Ensure all containers don't overflow */
.container, section, div {
    max-width: 100%;
}

/* === ANIMATIONS === */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    min-height: 52px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #000000);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(187, 0, 0, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(187, 0, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, black, #00ff40);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 255, 64, 0.25);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 255, 64, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
    border: none;
}

.btn-accent:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(187, 0, 0, 0.25);
    border-color: var(--primary);
}

.btn-outline:hover::after {
    width: 100%;
}

/* === NAVBAR (MOBILE FIRST) === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.9);
    max-width: 100vw;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.logo.scrolled-logo {
    color: var(--logo-black);
}

.logo i {
    margin-right: 10px;
    color: var(--logo-red);
    font-size: 2rem;
}

.logo span:first-child {
    color: var(--white);
    font-weight: 900;
}

.logo span:last-child {
    color: var(--logo-red);
    font-weight: 900;
}

.scrolled-logo span:first-child {
    color: var(--logo-black);
}

/* === MOBILE TOGGLE === */
.mobile-toggle {
    display: flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.mobile-toggle.scrolled-toggle {
    color: var(--logo-black);
    background: rgba(0, 0, 0, 0.05);
}

.mobile-toggle.active {
    color: var(--logo-red);
    transform: rotate(90deg);
}

/* === NAV MENU (MOBILE) === */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 100px 25px 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    z-index: 999;
    list-style: none;
}

.nav-menu.active {
    right: 0;
}

.nav-item {
    margin-bottom: 5px;
    width: 100%;
    position: relative;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 10px;
    width: 100%;
    position: relative;
}

.nav-link.active {
    color: var(--primary);
    background: rgba(187, 0, 0, 0.05);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(187, 0, 0, 0.05);
    transform: translateX(5px);
}

.dropdown-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-icon.rotated {
    transform: rotate(180deg);
}

/* === DROPDOWN MENU (MOBILE) === */
.dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 20px;
    border-left: 2px solid var(--primary);
    padding-left: 15px;
}

.dropdown.active {
    max-height: 400px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.dropdown-item {
    display: block;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    color: var(--primary);
    padding-left: 10px;
}

/* === PAGE HERO === */
.course-hero {
    height: 100vh;
    min-height: 700px;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(187, 0, 0, 0.8)), url('web development/hero bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.course-hero-content {
    max-width: 900px;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
}

.course-hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.course-hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.course-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

/* === COURSE OVERVIEW SECTION === */
.course-overview-section {
    background-color: var(--white);
    position: relative;
    padding: 120px 0;
}

.overview-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-content {
    opacity: 0;
    transform: translateY(30px);
}

.overview-content.animated {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.overview-content h3 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 1.2;
}

.overview-content > p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: var(--background);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 5px solid var(--primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: var(--box-shadow);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.stat-card.animated {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.overview-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    opacity: 0;
    transform: translateY(30px);
    height: 500px;
    position: relative;
}

.overview-image.animated {
    animation: slideUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.8s ease;
}

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

/* === SECTION TITLE === */
.section-title {
    text-align: center;
    margin-bottom: 70px;
    overflow: hidden;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: -0.5px;
}

.section-title.animated h2 {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
    opacity: 0;
    transform: translateY(20px);
    line-height: 1.6;
}

.section-title.animated p {
    animation: slideUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--logo-red), var(--primary));
    border-radius: 4px;
    transition: transform 0.6s 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animated h2::after {
    transform: translateX(-50%) scaleX(1);
}

/* === SECTION ICON === */
.section-icon {
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.1;
    z-index: -1;
}

/* === CURRICULUM SECTION === */
.curriculum-section {
    background-color: var(--background);
    padding: 120px 0;
}

.curriculum-container {
    max-width: 1000px;
    margin: 0 auto;
}

.module {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.module:hover {
    box-shadow: var(--box-shadow-lg);
}

.module.animated {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.module-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(187, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    border-left: 5px solid var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.module-header:hover {
    background: linear-gradient(135deg, rgba(187, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
}

.module-header h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.module-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.module-title-text {
    flex: 1;
}

.module-duration {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    background: rgba(187, 0, 0, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
    margin-left: auto;
}

.module-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-content.active {
    padding: 30px;
    max-height: 1000px;
}

.topics-list {
    list-style: none;
    columns: 2;
    column-gap: 40px;
}

.topics-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 15px;
    break-inside: avoid;
}

.topics-list li:last-child {
    border-bottom: none;
}

.topics-list i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* === PROJECTS SECTION === */
.projects-section {
    background-color: var(--white);
    padding: 120px 0;
}

.projects-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    height: 100%;
}

.project-card.animated {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-lg);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tag {
    background: rgba(187, 0, 0, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* === INSTRUCTOR SECTION === */
.instructor-section {
    background-color: var(--background);
    padding: 120px 0;
}

.instructor-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.instructor-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    opacity: 0;
    transform: translateX(-50px);
    height: 500px;
}

.instructor-image.animated {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

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

.instructor-info {
    opacity: 0;
    transform: translateX(50px);
}

.instructor-info.animated {
    animation: slideInRight 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.instructor-info h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.1;
}

.instructor-title {
    color: #666;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.instructor-info > p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.instructor-experience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.exp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.exp-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.exp-icon {
    width: 50px;
    height: 50px;
    background: rgba(187, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* === CAREER OPPORTUNITIES === */
.career-section {
    background-color: var(--white);
    padding: 120px 0;
}

.career-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.career-card {
    background: var(--background);
    padding: 35px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    box-shadow: var(--box-shadow);
}

.career-card.animated {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.career-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.career-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.career-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.salary-range {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.3rem;
    margin-top: 15px;
}

/* === ENROLLMENT SECTION === */
.enrollment-section {
    background: linear-gradient(135deg, #000000, var(--primary));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0;
}

.enrollment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.enrollment-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.enrollment-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

.enrollment-content.animated {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.enrollment-content h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.enrollment-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.course-price {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 40px 0;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

/* REMOVED THE HORIZONTAL LINES FROM COURSE PRICE */
.course-price::before,
.course-price::after {
    display: none;
}

.price-note {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    font-weight: 500;
}

.enrollment-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 50px 0px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 25px;
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--logo-red);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.4s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* === LOADING ANIMATION === */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, var(--primary));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === DROPDOWN FOR DESKTOP === */
@media (min-width: 992px) {
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        overflow: visible;
        display: flex;
        right: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 0 0 0 30px;
        width: auto;
        position: relative;
    }

    .nav-link {
        color: var(--white);
        padding: 12px 0;
        border-bottom: none;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        background: transparent !important;
        border-radius: 0;
    }

    .navbar.scrolled .nav-link {
        color: var(--text);
    }

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

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

    .nav-link:hover {
        color: var(--logo-red);
        transform: none;
    }

    /* Show dropdown icon on all platforms */
    .nav-link .dropdown-icon {
        display: inline-block;
        margin-left: 8px;
        font-size: 0.8rem;
    }

    .mobile-toggle {
        display: none;
    }

    /* DROPDOWN FOR DESKTOP */
    .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--white);
        min-width: 280px;
        box-shadow: var(--box-shadow-lg);
        border-radius: var(--border-radius);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.4s ease;
        z-index: 1001;
        padding: 15px 0;
        max-height: none;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        display: block;
    }

    .dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px);
        max-height: none;
    }

    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px);
    }

    .dropdown-item {
        padding: 15px 30px;
        color: var(--text);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .dropdown-item:hover {
        background: linear-gradient(135deg, rgba(187, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
        color: var(--primary);
        padding-left: 35px;
    }
}

/* === EXTRA SMALL DEVICES === */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 46px;
    }
    
    .overview-stats {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .project-image img {
        height: 180px;
    }
    
    .course-hero {
        min-height: 500px;
        padding: 80px 0 40px;
    }
    
    .course-hero h1 {
        font-size: 2.2rem !important;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    .section-title h2 {
        font-size: 1.8rem !important;
    }
    
    .course-price {
        font-size: 2.5rem !important;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .topics-list {
        columns: 1 !important;
    }
    
    .instructor-experience {
        grid-template-columns: 1fr !important;
    }
    
    .feature-item {
        padding: 15px 20px;
    }
}

/* === TABLET STYLES === */
@media (min-width: 768px) {
    .section-icon {
        font-size: 4rem;
        top: -60px;
    }
    
    .course-hero h1 {
        font-size: 4.5rem;
    }

    .course-hero p {
        font-size: 1.5rem;
    }

    .overview-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .overview-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .career-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 3.5rem;
    }

    .section-title p {
        font-size: 1.3rem;
    }
    
    .topics-list {
        columns: 2;
    }
    
    /* Enrollment features - 2 columns on tablet */
    .enrollment-features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

/* === MOBILE SPECIFIC FIXES === */
@media (max-width: 767px) {
    .course-hero {
        min-height: 500px;
        padding: 100px 0 60px;
        margin-top: 70px;
        background-attachment: scroll;
    }
    
    .course-hero h1 {
        font-size: 2.8rem !important;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .course-hero p {
        font-size: 1.2rem !important;
        margin-bottom: 30px;
    }
    
    /* Overview stats - 2 columns on mobile */
    .overview-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    /* Instructor container - stack vertically */
    .instructor-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    /* FIX: Enrollment features - single column on mobile for better alignment */
    .enrollment-features {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin: 30px 0 35px;
    }
    
    .feature-item {
        padding: 16px 20px;
        gap: 15px;
        align-items: center;
    }
    
    .feature-item i {
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
    }
    
    .feature-item span {
        font-size: 1.05rem;
        font-weight: 500;
        flex: 1;
    }
    
    /* Button container - stack vertically */
    .course-hero-content > div,
    .enrollment-content > div:last-child {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .course-hero-content > div .btn,
    .enrollment-content > div:last-child .btn {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2.2rem !important;
    }
    
    h3 {
        font-size: 1.8rem !important;
    }
    
    .section-title h2 {
        font-size: 2.2rem !important;
    }
    
    .section-title p {
        font-size: 1.1rem !important;
    }
    
    .course-price {
        font-size: 3rem !important;
    }
    
    .overview-image {
        height: 350px;
    }
    
    .instructor-image {
        height: 400px;
    }
    
    .module-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .module-header h3 {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .module-icon {
        width: 40px;
        height: 40px;
    }
    
    .module-duration {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .topics-list {
        columns: 1;
    }
    
    .instructor-experience {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === DESKTOP STYLES === */
@media (min-width: 992px) {
    .course-hero h1 {
        font-size: 5rem;
    }
    
    .course-hero {
        height: 90vh;
        min-height: 800px;
    }

    .projects-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .career-container {
        grid-template-columns: repeat(3, 1fr);
    }

    /* FIX: Enrollment features - 4 columns on desktop */
    .enrollment-features {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 25px;
    }
    
    .overview-image {
        height: 500px;
    }
    
    .instructor-image {
        height: 500px;
    }
    
    .module-header h3 {
        font-size: 1.5rem;
        flex-direction: row;
        align-items: center;
    }
    
    .module-duration {
        margin-left: auto;
    }
    
    .topics-list {
        columns: 2;
    }
    
    .section-title {
        margin-bottom: 80px;
    }
}

/* === LARGE DESKTOP STYLES === */
@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
    }
    
    .nav-container {
        max-width: 1300px;
    }
    
    .course-hero h1 {
        font-size: 5.5rem;
    }
    
    .overview-container,
    .projects-container,
    .instructor-container,
    .career-container,
    .curriculum-container,
    .enrollment-container {
        max-width: 1300px;
    }
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #000000, var(--primary));
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--logo-red), var(--primary));
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-column {
    opacity: 0;
    transform: translateY(20px);
}

.footer-column.animated {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--logo-red);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.footer-column ul li a:hover {
    color: var(--logo-red);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.3rem;
}

.social-link:hover {
    background-color: var(--logo-red);
    transform: translateY(-5px) rotate(10deg);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (min-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 60px;
    }
}

@media (min-width: 1200px) {
    .footer-container {
        max-width: 1300px;
    }
    
    .copyright {
        max-width: 1300px;
    }
}
