:root {
    --primary: #0a4d68;
    --primary-dark: #08374a;
    --accent: #088395;
    --accent-light: #05bfdb;
    --bg: #f5f9fb;
    --card-bg: #ffffff;
    --text: #1e2a32;
    --text-muted: #5a6b75;
    --border: #e2ebf0;
    --shadow: 0 4px 20px rgba(10, 77, 104, 0.08);
    --shadow-hover: 0 8px 30px rgba(10, 77, 104, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
    pointer-events: none;
}

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

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.hero .subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    opacity: 0.92;
    max-width: 750px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    margin-bottom: 22px;
    color: rgba(255,255,255,0.78);
}

.breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 4px 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.breadcrumb a:hover {
    color: white;
    border-bottom-color: rgba(255,255,255,0.6);
}

.breadcrumb-sep {
    opacity: 0.55;
    font-weight: 600;
}

.breadcrumb-current {
    color: white;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Language switcher */
.lang-switcher {
    position: absolute;
    top: 22px;
    right: 24px;
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    padding: 4px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.22);
    z-index: 10;
}

.lang-switcher button {
    background: transparent;
    color: white;
    border: none;
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-switcher button:hover {
    background: rgba(255,255,255,0.15);
}

.lang-switcher button.active {
    background: white;
    color: var(--primary);
}

.container {
    max-width: 1100px;
    margin: -30px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

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

.section h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--accent-light);
    display: inline-block;
    font-weight: 700;
}

.section h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin: 22px 0 12px;
    font-weight: 600;
}

.section p {
    margin-bottom: 14px;
    color: var(--text);
    text-align: justify;
}

/* Director card */
.director {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.director-photo {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border: 4px solid white;
}

.director-info h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--primary);
}

.director-info .position {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 1rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

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

.info-list .label {
    font-weight: 600;
    color: var(--primary-dark);
    min-width: 160px;
    flex-shrink: 0;
}

.info-list .value {
    color: var(--text);
}

/* Programs grid */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 18px;
}

.program-col {
    background: linear-gradient(135deg, #f0f7fa 0%, #e6f2f6 100%);
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--accent);
}

.program-col h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.program-col ul {
    list-style: none;
}

.program-col li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(8, 131, 149, 0.25);
    font-size: 0.97rem;
}

.program-col li:last-child {
    border-bottom: none;
}

.program-code {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 2px 9px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.83rem;
    margin-right: 8px;
    font-family: "SF Mono", Menlo, monospace;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.feature-tag {
    background: #e6f5f8;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid #c8e7ee;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: #f7fbfc;
}

tbody tr:last-child td {
    border-bottom: none;
}

.num-cell {
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    width: 50px;
}

.name-cell {
    font-weight: 600;
    color: var(--primary-dark);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 22px;
    border-radius: 12px;
    text-align: center;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.92;
}

.partners-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.partner-item {
    background: #f7fbfc;
    border-left: 3px solid var(--accent);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.contact-card {
    background: #f7fbfc;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-card .icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.contact-card h4 {
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 1rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .section {
        padding: 26px 22px;
    }
    .director {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .director-photo {
        margin: 0 auto;
    }
    .info-list li {
        flex-direction: column;
        gap: 4px;
    }
    .programs-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 90px 20px 50px;
    }
    .lang-switcher {
        top: 14px;
        right: 14px;
    }
    .lang-switcher button {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}
