/* MDS 2025 Course Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header with water lilies photo */
.header {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../../../img/20250518_110527.jpg');
    /*
    Si tu imagen no carga, asegúrate de que la ruta sea correcta.
    La ruta desde teaching/graduate/MDS2025/ hacia img/ sería: ../../../img/
    */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
}

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

.logo {
    font-size: 20px;
    font-weight: 400;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
    font-weight: 500;
}

/* Header content */
.header-content {
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 40px;
}

.header-title {
    font-size: 54px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.header-subtitle {
    font-size: 24px;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 15px;
}

.header-meta {
    font-size: 16px;
    opacity: 0.8;
    font-weight: 300;
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
    margin: 0 10px;
}

/* Main content */
.main-content {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 40px;
}

/* Course Info Section */
.course-info {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.course-info h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 400;
}

.course-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.meta-item {
    text-align: center;
}

.meta-item i {
    font-size: 24px;
    color: #3498db;
    margin-bottom: 10px;
}

.meta-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-item p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Course Content Section */
.course-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 400;
    text-align: center;
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

.topic-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: white;
}

.topic-number {
    display: inline-block;
    background: #d3d3d3;
    /* Light gray estándar */
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.topic-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 500;
}

.topic-title a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.topic-title a:hover {
    color: #3498db;
}

.topic-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.topic-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.topic-link:hover {
    color: #2980b9;
    gap: 12px;
}

/* Mobile hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Evaluation Grid */
.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.eval-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.eval-percentage {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.eval-item h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.eval-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.link-category h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.link-category ul {
    list-style: none;
    padding: 0;
}

.link-category li {
    margin-bottom: 8px;
}

.link-category a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.link-category a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Requirements Section */
.requirement-category h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-category h3 i {
    color: #3498db;
    font-size: 20px;
}

.requirement-category ul {
    list-style: none;
    padding: 0;
}

.requirement-category li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.requirement-category li::before {
    content: "  ";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.requirements-note {
    background: white;
    border: .1px solid #bee5eb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.requirements-note p {
    margin: 0;
    color: #0c5460;
    font-style: italic;
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.delay-1 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.delay-2 {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.delay-3 {
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 30px 40px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header {
        height: 400px;
    }

    .header-title {
        font-size: 36px;
    }

    .header-subtitle {
        font-size: 20px;
    }

    .main-content {
        padding: 0 20px;
        margin: 40px auto;
    }

    .course-info,
    .course-content {
        padding: 25px;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .header-content {
        padding: 0 20px;
    }

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