:root {
    /* Color Palette */
    --primary-color: #0c0d50;
    /* Deep Navy (solicitado) */
    --secondary-color: #c25210;
    /* Burnt Orange (solicitado) */
    --accent-color: #c25210;
    /* Subtle alert/CTA if needed, else mostly Gold */
    --text-dark: #1A1A1A;
    --text-light: #F4F4F4;
    --bg-light: #FFFFFF;
    --bg-off-white: #F8F9FA;
    --bg-dark: #0F172A;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    /* More rectangular/institutional */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #070726;
}

.btn-outline {
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #a6420e;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #fff;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

nav {
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    display: flex;
    /* alignment if icon added */
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    /* Commanding height */
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-light);
    margin-top: var(--header-height);
    background-color: var(--bg-dark);
    /* Fallback */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    /* Overlay effect handled by CSS or image opacity */
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(12, 13, 80, 0.9) 0%, rgba(12, 13, 80, 0.7) 50%, rgba(12, 13, 80, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
}

.hero-tagline {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(194, 82, 16, 0.08);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Sections Common */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Decorative underline for headers */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.section-header p {
    color: #666;
}

/* Por qué estudiar en UPN - nueva sección */
.por-que-estudiar {
    background: var(--bg-light);
    padding: 60px 0;
}

.por-que-estudiar .pq-header {
    text-align: left;
    margin-bottom: 20px;
}

.por-que-estudiar .pq-header h2 {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1.5rem;
    border: 2px solid rgba(12, 13, 80, 0.06);
}

.pq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 18px;
}

.pq-card {
    border: 3px solid #111;
    padding: 22px;
    background: #fff;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    min-height: 140px;
}

.pq-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--secondary-color);
    background: transparent;
}

.pq-content h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.pq-content p {
    color: #4a4a4a;
    margin: 0;
}

@media (max-width: 768px) {
    .por-que-estudiar .pq-header h2 {
        font-size: 1.25rem;
    }

    .pq-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        color: var(--primary-color);
    }

    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #fff;
        transition: 0.3s ease;
        padding: 40px;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    nav a {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-off-white);
    border-radius: var(--border-radius);
    transition: transform 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.value-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.about-img img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

/* Programs Section */
.programs {
    background-color: var(--bg-off-white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.program-img {
    height: 200px;
    overflow: hidden;
}

.program-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover .program-img img {
    transform: scale(1.05);
}

.program-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.program-details {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.program-details li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-details li i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.card-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
    }
}

/* Footer Redesign */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 0;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: #fff;
}

.location-info p,
.contact-details p,
.institution-details p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 5px;
    opacity: 0.9;
}

.location-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.location-link i:first-child {
    margin-right: 10px;
    color: #fff;
}

.location-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Contact Buttons */
.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.mensaje-box {
    background-color: #1a237e;
    /* Slightly lighter blue or distinct tone */
    background: linear-gradient(135deg, #151b54 0%, #1a237e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 140px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.mensaje-box:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.mensaje-box span {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.mensaje-box i {
    font-size: 1.5rem;
}

.reclamaciones-box {
    background-color: #e0e0e0;
    color: #333;
    width: 140px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reclamaciones-box:hover {
    background-color: #fff;
    transform: translateY(-2px);
}

.reclamaciones-box .top-text {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.reclamaciones-box .bot-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 2px;
}

.reclamaciones-box .book-icon {
    font-size: 1.2rem;
    color: #555;
    margin-top: 2px;
}

/* Institution Links */
.footer-nav {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    color: #fff;
}

.footer-nav li a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
    background-color: #070830;
    /* Darker shade */
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bottom-content p {
    font-size: 0.8rem;
    color: #ccc;
}

.social-links-circle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links-circle span {
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
    color: #ccc;
}

.social-links-circle a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #3b3c75;
    /* Lighter navy for social circles */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-links-circle a:hover {
    background-color: var(--secondary-color);
    transform: rotate(360deg);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bottom-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Lead Generation Banner Styles */
.banner-contacto {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Optional background pattern or gradient */
.banner-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(194, 82, 16, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.banner-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 450px;
}

.banner-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.b-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

.b-feature i {
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* Form Card */
.banner-form-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: 0.3s;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(12, 13, 80, 0.1);
}

.form-check {
    margin-bottom: 20px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
    transition: 0.2s;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #ccc;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check-text {
    line-height: 1.4;
    color: #666;
}

.btn-block {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    font-weight: 700;
}

/* Responsive Banner */
@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: 1fr;
        /* Stack */
        gap: 40px;
    }

    .banner-text {
        text-align: center;
    }

    .banner-features {
        align-items: center;
    }

    .banner-text h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .banner-form-card {
        padding: 20px;
    }
}

/* Dropdown Menu Styles */
nav ul li {
    position: relative;
}

.has-submenu>a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.has-submenu>a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-submenu:hover>a i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 240px;
    background-color: var(--primary-color);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

.has-submenu:hover .submenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.submenu li {
    width: 100%;
    padding: 0;
}

.submenu li a {
    color: #fff !important;
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.submenu li a:hover {
    background-color: var(--secondary-color);
    padding-left: 25px;
    /* Slight movement effect */
}

.submenu li a::after {
    display: none;
    /* Remove the underline effect from parent links */
}

/* Ensure navbar items don't break on resize if possible, but minimal check */
@media (max-width: 768px) {
    .submenu {
        position: static;
        width: 100%;
        visibility: visible;
        opacity: 1;
        transform: none;
        background: rgba(0, 0, 0, 0.05);
        /* Lighter bg for mobile nested */
        box-shadow: none;
        display: none;
        /* Hidden by default on mobile, could use JS toggle */
    }

    .has-submenu:hover .submenu {
        display: block;
        /* Basic hover for mobile or need JS click */
    }

    .submenu li a {
        color: var(--primary-color) !important;
        padding-left: 40px;
    }
}

/* Infinite Scroll Slider */
.slider-container {
    width: 100%;
}

.logo-slider {
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
    background: white;
    /* Optional: ensures clean background behind images */
}

/* Gradient Fade Effect */
.logo-slider::before,
.logo-slider::after {
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    /* Adjusted width */
    z-index: 2;
}

.logo-slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.logo-slider::before {
    left: 0;
    top: 0;
}

.slide-track {
    display: flex;
    width: calc(250px * 14);
    /* 14 slides total x 250px width each */
    animation: scroll 30s linear infinite;
    /* Adjusted speed */
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    /* Spacing between logos */
}

.slide img {
    max-width: 100%;
    max-height: 80%;
    /* Ensure they don't touch edges */
    object-fit: contain;
    /* Maintain aspect ratio */
    filter: grayscale(100%);
    /* Optional: makes them look uniform */
    transition: filter 0.3s;
    opacity: 0.7;
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 7));
        /* Move by half the total track width */
    }
}

/* Course Detail Page Styles */
@media (max-width: 900px) {
    .course-hero .container {
        grid-template-columns: 1fr !important;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        margin-top: 30px;
        position: static;
    }

    .course-page-wrapper {
        position: static;
    }

    .course-grid {
        display: grid;
        grid-template-columns: 1fr;
        padding-right: 0;
    }


    .course-sidebar {
        position: static;
        width: 100%;
        margin-top: 80px;
        /* Clear fixed header */
        margin-bottom: 30px;
    }
}

.course-hero {
    background-color: #000c24;
    color: white;
    padding: 120px 0 60px 0;
}

.hero-badge {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

.course-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.course-hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 25px;
}

/* Hero Redesign Elements */
.hero-breadcrumb {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #aeb5bd;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.hero-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 30px;
    max-width: 700px;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-stats-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars {
    color: #fca311;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #e0e6ed;
}

.hero-stats-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #e0e6ed;
}

.hero-share {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #e0e6ed;
}

.hero-share-icons {
    display: flex;
    gap: 10px;
}

.share-icon {
    color: #fff;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.share-icon:hover {
    opacity: 0.8;
}

/* Update Badge to match "Diploma" pill */
.hero-badge {
    background-color: #fca311;
    /* Golden/Orange */
    color: #000;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}



.btn-light-outline:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.course-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 80px;
    position: relative;
}

.course-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 2rem;
    color: #000;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 1.1rem;
    color: #000;
}

.info-item span {
    font-size: 0.9rem;
    color: #666;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-subtitle {
    margin-bottom: 30px;
    color: #666;
}

.accordion {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: #f9f9f9;
    padding: 20px;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    color: #333;
}

.accordion-header:hover {
    background: #f0f0f0;
}

.accordion-header.active {
    background: #eef2ff;
    color: var(--primary-color);
}

.accordion-header i {
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.accordion-body ul {
    list-style: disc;
    padding: 20px 40px;
    color: #555;
    line-height: 1.6;
}

.accordion-body li {
    margin-bottom: 8px;
}

/* Main Wrapper Context */
.course-page-wrapper {
    position: relative;
    overflow-x: clip;
    /* Prevent horizontal scrollbar if calc is slightly off */
}

/* Sidebar Absolute Positioning (Desktop) */
@media (min-width: 901px) {
    .course-page-wrapper {
        overflow: visible;
    }

    .course-grid {
        display: block;
        /* Disable grid columns */
        padding-right: 400px;
        /* Reserve space for absolute sidebar */
        min-height: 800px;
        /* Ensure height for sidebar */
    }

    .course-sidebar {
        position: absolute;
        top: 80px;
        /* Just below header */
        right: max(20px, calc((100% - 1200px) / 2 + 20px));
        bottom: 0;
        width: 350px;
        z-index: 20;
        margin-top: 0;
        height: auto;
    }
}

.sticky-card {
    position: sticky;
    top: 100px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 30;
}

.card-image-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.card-body {
    padding: 25px;
    text-align: center;
}

.card-course-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

.card-price .currency {
    font-size: 1rem;
}

.card-price .modality {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.full-width {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-whatsapp {
    background: #fff;
    color: #25D366;
    border: 2px solid #25D366;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    line-height: 1.2;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: #fff;
}