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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 1.4em;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero .degree {
    font-size: 1.1em;
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
}

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

.section {
    background: white;
    margin: 30px 0;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.section h2 {
    color: #1e3c72;
    font-size: 2em;
    margin-bottom: 25px;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 10px;
}

.program-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.info-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.info-block h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.info-block p, .info-block ul {
    color: #555;
    line-height: 1.7;
}

.info-block ul {
    padding-left: 20px;
}

.info-block li {
    margin-bottom: 5px;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th {
    background: #1e3c72;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background: #f8f9fa;
}

.credits {
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.3);
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.highlight-box h3 {
    margin-bottom: 15px;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 20px 0;
    will-change: transform;
}

.teacher-card {
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #2a5298;
}

.teacher-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #2a5298;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}

.photo-placeholder {
    font-size: 2em;
    color: white;
}

.teacher-card h3 {
    color: #1e3c72;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.teacher-position {
    color: #2a5298;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.teacher-specialty {
    color: #666;
    font-size: 0.85em;
    line-height: 1.4;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2em;
    }
    
    .program-info {
        grid-template-columns: 1fr;
    }
    
    .section {
        margin: 20px 0;
        padding: 25px;
    }
    
    table, th, td {
        font-size: 0.9em;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
    
    .carousel-btn.prev {
        left: -20px;
    }
    
    .carousel-btn.next {
        right: -20px;
    }
    
    .teacher-card {
        min-width: 250px;
    }
}
