:root {
    --font-main: 'Poppins', Arial, Helvetica, sans-serif;
    --primary: #0A38FF;
    --secondary: #0D233A;
    --accent: #D4AF37;
    --header-bg: #87CEEB;
    --background: #D3D3D3;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --text: #1E293B;
    --text-light: #64748B;
    --container: 1200px;
    --radius: 12px;
    --shadow: 0 12px 35px rgba(15, 45, 92, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #D3D3D3 !important;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text);
    background: #D3D3D3 !important;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.page-header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
}

.page-header-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.page-header-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.25;
}

.page-header-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.35;
}

@media (max-width: 720px) {
    .page-header-logo {
        width: 36px;
        height: 36px;
    }

    .page-header-title {
        font-size: 18px;
    }
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: var(--secondary);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    color: var(--text);
}

.section-heading h1 {
    margin: 0 0 12px;
    color: var(--secondary);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
}

.programmes-status {
    text-align: center;
    color: var(--text-light);
}

.faculty-block {
    margin-bottom: 48px;
}

.faculty-block h2 {
    margin: 0 0 16px;
    color: var(--secondary);
    font-size: 1.45rem;
}

.department-block {
    margin: 0 0 28px;
}

.department-block h3 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 1.05rem;
}

.programme-duration {
    margin-bottom: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    transition: .25s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.8);
}

.text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.info-card-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin: 0 0 18px;
}

.page-photo {
    margin: 0 auto 36px;
    max-width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-photo img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
}

.faculty-photo {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin: 0 0 16px;
}

.info-card i {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.5rem;
}

.info-card h3 {
    margin: 0 0 10px;
    color: var(--secondary);
}

.info-card p {
    color: var(--text-light);
}

.info-card a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.card-meta {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.page-prose {
    max-width: 760px;
    margin: 0 auto 40px;
    color: var(--text);
}

.page-prose p {
    margin: 0 0 16px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: start;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.contact-form-card {
    padding: 32px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-card h2 {
    margin: 0;
    color: var(--secondary);
}

.contact-form-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.contact-form-card input,
.contact-form-card textarea {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 400;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

.contact-form-card textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form-card button {
    cursor: pointer;
    font-family: var(--font-main);
}

.form-status {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.form-status.is-error {
    color: #C0392B;
}

.form-status.is-success {
    color: #1E8449;
}

.news-card p {
    white-space: pre-wrap;
}

.news-split {
    display: grid;
    grid-template-columns: minmax(0, 30%) minmax(0, 70%);
    gap: 32px;
    align-items: start;
}

.news-split-announce,
.news-split-news {
    min-width: 0;
}

.news-split .section-heading {
    max-width: none;
    margin: 0 0 20px;
    text-align: left;
}

.news-split .section-heading h1,
.news-split .section-heading h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.news-split .news-grid {
    grid-template-columns: 1fr 1fr;
}

.news-split .section-cta {
    justify-content: flex-start;
    margin-top: 24px;
}

.announce-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announce-item {
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.announce-item h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--secondary);
}

.announce-date {
    margin: 0 0 10px;
    color: var(--text-light);
    font-size: 13px;
}

.announce-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.announce-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f6;
    color: var(--secondary);
}

.announce-badge-PUBLIC {
    background: #e8f1ff;
    color: #1d4ed8;
}

.announce-badge-EVERYONE {
    background: #ecfdf3;
    color: #067647;
}

.announce-badge-STUDENT {
    background: #f4f0ff;
    color: #6941c6;
}

.announce-badge-STAFF {
    background: #fff6e8;
    color: #b54708;
}

.announce-badge-High {
    background: #fff4e5;
    color: #b45309;
}

.announce-badge-Urgent {
    background: #fdecec;
    color: #b42318;
}

.announce-more {
    display: inline-flex;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.announce-more:hover {
    text-decoration: underline;
}

.announce-body {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 14px;
    white-space: pre-wrap;
}

.announce-body[hidden] {
    display: none;
}

.news-media {
    position: relative;
    margin: 0 0 16px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f6;
    aspect-ratio: 16 / 9;
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-thumb-logo {
    object-fit: contain;
    padding: 28px;
    background: #f4f6f8;
}

.news-source-brand {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
}

.news-source-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    flex-shrink: 0;
}

.news-source-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 14px;
}

.news-card-external .news-visit {
    display: inline-block;
    margin-top: 2px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.news-card-external .news-visit:hover {
    filter: brightness(1.05);
}

.news-article {
    max-width: 760px;
}

.news-article-photo {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 0 18px;
}

.news-article-body {
    white-space: normal;
    line-height: 1.7;
}

.section-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.apply-pulse {
    animation: applyPulse 1.8s infinite;
}

@keyframes applyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10,56,255,.35); }
    50% { box-shadow: 0 0 0 9px rgba(10,56,255,0); }
}

.site-footer {
    background: var(--secondary);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding: 55px 0;
}

.footer-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.footer-brand h3 {
    margin: 14px 0 5px;
}

.footer-brand p,
.footer-contact p {
    color: rgba(255,255,255,.75);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: .8rem;
}

@media (max-width: 900px) {
    .card-grid,
    .footer-grid,
    .contact-layout {
        grid-template-columns: 1fr 1fr;
    }

    .news-split .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .news-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(var(--container), calc(100% - 30px));
    }

    .section {
        padding: 60px 0;
    }

    .card-grid,
    .footer-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .page-photo img {
        height: 240px;
    }
}