:root {
    --blue: #0a7199;
    --blue-dark: #075876;
    --pale: #f2f7f9;
    --ink: #173247;
    --muted: #607582;
    --line: #dfe8ec;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font: inherit;
}

.wrap {
    width: min(1190px, calc(100% - 44px));
    margin: auto;
}

/* Header */

.top {
    min-height: 38px;
    display: flex;
    align-items: center;
    color: #d3e0e6;
    background: var(--navy);
    font-size: 12px;
}

.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-links {
    display: flex;
    gap: 19px;
}

.top-links a {
    transition: color .2s ease;
}

.top-links a:hover {
    color: var(--gold);
}

.head {
    min-height: 103px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .01em;
    line-height: 1.03;
}

.brand-logo {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    object-fit: contain;
}

.brand small {
    display: block;
    margin-top: 6px;
    color: #708391;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.contacts {
    display: flex;
    gap: 28px;
    color: #718795;
    font-size: 12px;
}

.contacts span:first-child {
    padding-right: 28px;
    border-right: 1px solid #e1e8ec;
}

.contacts b {
    display: block;
    margin-top: 5px;
    color: var(--navy);
}

.nav {
    position: sticky;
    z-index: 30;
    top: 0;
    min-height: 65px;
    border-top: 1px solid #edf1f3;
    border-bottom: 1px solid #dfe8ec;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(8, 34, 50, .08);
}

.nav .wrap {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.menu {
    display: flex;
    flex: 1;
    align-items: center;
    gap: clamp(12px, 1.45vw, 24px);
    min-width: 0;
    color: #254154;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .015em;
}

.menu a {
    position: relative;
    padding: 24px 0 22px;
    white-space: nowrap;
    transition: color .2s ease;
}

.menu a::after {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--gold);
    opacity: 0;
    transform: scaleX(.3);
    transition: .2s ease;
}

.menu a:first-child,
.menu a:hover {
    color: var(--blue);
}

.menu a:first-child::after,
.menu a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.apply,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 19px;
    color: #19313d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    text-align: center;
    text-decoration: none;
    border: 0;
    background: var(--gold);
    transition: .2s ease;
}

.apply {
    flex: 0 0 auto;
    white-space: nowrap;
}

.apply:hover,
.button:hover {
    color: #ffffff;
    background: var(--navy);
}

.mobile-toggle {
    display: none;
}

/* Hero */

.hero {
    position: relative;
    min-height: 592px;
    overflow: hidden;
    color: #ffffff;
    background: var(--navy);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
    transition: opacity .85s ease, transform 6s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(3, 25, 42, .94) 0%, rgba(4, 35, 57, .82) 43%, rgba(4, 35, 57, .22) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-top: 123px;
}

.eyebrow,
.kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1,
.title {
    font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
    max-width: 760px;
    margin: 17px 0;
    color: #ffffff;
    font-size: clamp(44px, 5.8vw, 76px);
    line-height: .99;
}

.hero p {
    max-width: 590px;
    margin: 0;
    color: #dce9ef;
    font-size: 16px;
    line-height: 1.72;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 29px;
}

.outline {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .8);
    background: transparent;
}

.outline:hover {
    color: var(--navy);
    border-color: var(--gold);
    background: var(--gold);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 42px;
    color: #d8e6ec;
    font-size: 11px;
    font-weight: 800;
}

.hero-trust span {
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, .3);
}

.hero-trust span:first-child {
    padding-left: 0;
}

.hero-trust span:last-child {
    border-right: 0;
}

.slider {
    position: absolute;
    right: max(24px, calc((100% - 1160px) / 2));
    bottom: 30px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider button {
    cursor: pointer;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: transparent;
}

.dot[aria-current="true"] {
    border-color: var(--gold);
    background: var(--gold);
}

.change {
    padding: 4px 0;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    border: 0;
    background: transparent;
}

/* Four feature cards */

.quick {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 34px;
    border: 1px solid #e1e9ec;
    background: #ffffff;
    box-shadow: 0 17px 32px rgba(7, 35, 53, .13);
}

.quick article {
    padding: 28px 24px;
    border-right: 1px solid #e2eaee;
}

.quick article:last-child {
    border-right: 0;
}

.quick-icon {
    display: block;
    color: var(--blue);
    font-size: 20px;
    font-weight: 900;
}

.quick h3 {
    margin: 15px 0 7px;
    color: var(--navy);
    font-size: 15px;
}

.quick p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* Visitor statistics */

.visitor-band {
    margin-top: 58px;
    padding: 28px 0;
    color: #ffffff;
    background: #0a3c5b;
}

.visitor-grid {
    display: grid;
    grid-template-columns: 1.8fr repeat(3, 1fr);
    align-items: center;
}

.visitor-intro {
    padding-right: 25px;
}

.visitor-intro .eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 9px;
}

.visitor-intro strong {
    font: 700 21px/1.2 Georgia, "Times New Roman", serif;
}

.visitor-stat {
    padding: 5px 25px;
    border-left: 1px solid rgba(255, 255, 255, .21);
}

.visitor-stat strong {
    display: block;
    color: var(--gold);
    font: 700 28px/1 Georgia, "Times New Roman", serif;
}

.visitor-stat span {
    display: block;
    margin-top: 6px;
    color: #d4e4eb;
    font-size: 11px;
    font-weight: 800;
}


/* Shared sections — balanced homepage spacing */

.section {
    padding: 60px 0;
}

@media (max-width: 880px) {
    .section {
        padding: 45px 0;
    }
}

@media (max-width: 570px) {
    .section {
        padding: 32px 0;
    }
}


.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.photos {
    position: relative;
    height: 398px;
}

.photos img {
    object-fit: cover;
}

.photos .big {
    width: 78%;
    height: 358px;
}

.photos .small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    height: 210px;
    border: 9px solid #ffffff;
}

.seal {
    position: absolute;
    top: 30px;
    right: 27%;
    display: grid;
    width: 112px;
    height: 112px;
    color: var(--navy);
    font: 700 11px/1.45 Georgia, "Times New Roman", serif;
    text-align: center;
    place-items: center;
    border-radius: 50%;
    outline: 8px solid rgba(245, 191, 67, .3);
    background: var(--gold);
}

.title {
    margin: 12px 0 16px;
    color: var(--navy);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.1;
}

.intro {
    max-width: 630px;
    color: var(--muted);
    line-height: 1.75;
}

.points {
    display: grid;
    gap: 17px;
    margin: 28px 0;
}

.point {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 13px;
}

.num {
    display: grid;
    width: 34px;
    height: 34px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    place-items: center;
    border-radius: 50%;
    background: #e1f3f8;
}

.point b {
    color: var(--navy);
    font-size: 14px;
}

.point p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

/* Academics */

.pale {
    background: var(--pale);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.link {
    padding-bottom: 6px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    border-bottom: 2px solid var(--gold);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 39px;
}

.card {
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 19px rgba(10, 37, 52, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    box-shadow: 0 14px 30px rgba(10, 37, 52, .12);
    transform: translateY(-4px);
}

.card img {
    width: 100%;
    height: 188px;
    object-fit: cover;
}

.card div {
    padding: 22px;
}

.tag {
    color: #a87314;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card h3 {
    margin: 8px 0;
    color: var(--navy);
    font: 700 20px Georgia, "Times New Roman", serif;
}

.card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.card a {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

/* Why Qurtuba */

.dark {
    color: #ffffff;
    background: var(--navy);
}

.dark .title {
    color: #ffffff;
}

.dark .intro {
    color: #d4e4eb;
}

.steps {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 13px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.step strong {
    color: var(--gold);
    font: 700 22px Georgia, "Times New Roman", serif;
}

.step b {
    font-size: 14px;
}

.step p {
    margin: 6px 0;
    color: #c5d8e1;
    font-size: 12px;
    line-height: 1.5;
}

.side-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Campuses */

.center {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.center .intro {
    margin: auto;
}

.campus {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
    margin-top: 39px;
}

.campus-card {
    position: relative;
    min-height: 292px;
    overflow: hidden;
    color: #ffffff;
    background-position: center;
    background-size: cover;
    box-shadow: 0 6px 17px rgba(5, 32, 47, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.campus-card:nth-child(3n + 1) {
    background-image: url("https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?auto=format&fit=crop&w=900&q=85");
}

.campus-card:nth-child(3n + 2) {
    background-image: url("https://images.unsplash.com/photo-1564981797816-1043664bf78d?auto=format&fit=crop&w=900&q=85");
}

.campus-card:nth-child(3n + 3) {
    background-image: url("https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&w=900&q=85");
}

.campus-card:hover {
    box-shadow: 0 15px 30px rgba(5, 32, 47, .2);
    transform: translateY(-5px);
}

.campus-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(3, 29, 49, .94), rgba(3, 29, 49, .03) 68%);
}

.campus-card div {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px;
}

.campus-card small {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.campus-card h3 {
    margin: 8px 0;
    color: #ffffff;
    font: 700 20px Georgia, "Times New Roman", serif;
}

.campus-card p {
    margin: 0;
    color: #d6e7ee;
    font-size: 12px;
}

.campus-card span {
    display: inline-block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
}

.center-action {
    margin-top: 35px;
    text-align: center;
}

.outline-dark {
    color: var(--navy);
    border: 1px solid var(--navy);
    background: transparent;
}

.outline-dark:hover {
    color: #ffffff;
    background: var(--navy);
}

/* Highlights and vacancies */

.home-update-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 23px;
    margin-top: 40px;
}

.home-update-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 21px rgba(10, 37, 52, .05);
}

.home-update-heading {
    padding-bottom: 17px;
    margin-bottom: 5px;
    border-bottom: 1px solid #e3ebee;
}

.home-update-heading h3 {
    margin: 7px 0 0;
    color: var(--navy);
    font: 700 24px Georgia, "Times New Roman", serif;
}

.home-gallery-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e6edef;
}

.home-gallery-row:last-child,
.home-vacancy-row:last-child {
    border-bottom: 0;
}

.home-gallery-row img,
.gallery-placeholder {
    width: 96px;
    height: 67px;
    object-fit: cover;
    background: #dbe7eb;
}

.gallery-placeholder {
    display: grid;
    color: #607783;
    font-size: 10px;
    font-weight: 800;
    place-items: center;
}

.home-gallery-row small,
.home-vacancy-row small {
    display: block;
    margin-bottom: 5px;
    color: #9c7119;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.home-gallery-row b,
.home-vacancy-row b {
    display: block;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.35;
}

.home-gallery-row em,
.home-vacancy-row em {
    display: block;
    margin-top: 6px;
    color: var(--blue);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.home-vacancy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    padding: 18px 0;
    border-bottom: 1px solid #e6edef;
}

.home-vacancy-row > span {
    min-width: 0;
}

.home-vacancy-row > strong {
    display: grid;
    width: 33px;
    height: 33px;
    color: var(--blue);
    place-items: center;
    border-radius: 50%;
    background: #e4f2f6;
}

.home-empty {
    margin: 23px 0 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Notices */

.notice {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 49px;
    margin-top: 74px;
    margin-bottom: 74px;
    padding: 45px;
    background: #edf5f7;
}

.notices {
    display: grid;
    gap: 4px;
}

.notice-row {
    display: grid;
    grid-template-columns: 53px 1fr;
    gap: 13px;
    padding: 14px 0;
    border-bottom: 1px solid #d6e3e8;
    transition: padding-left .2s ease;
}

a.notice-row:hover {
    padding-left: 7px;
}

.date {
    padding: 6px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    background: var(--navy);
}

.date b {
    display: block;
    color: var(--gold);
    font: 700 20px Georgia, "Times New Roman", serif;
}

.notice-row b {
    color: var(--navy);
    font-size: 13px;
}

.notice-row span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.urgent {
    display: inline-block;
    padding: 2px 5px;
    margin-right: 5px;
    color: #ffffff;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    background: #b53a3a;
}

/* Footer */

.footer {
    padding: 53px 0 20px;
    color: #aec8d4;
    background: #031d2e;
}

.foot {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer .brand {
    color: #ffffff;
    font-size: 17px;
}

.footer .brand-logo {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
}

.footer .brand small {
    color: #a8c2d0;
}

.footer p,
.footer a {
    display: block;
    margin: 9px 0;
    color: #aec8d4;
    font-size: 12px;
    line-height: 1.7;
}

.footer a:hover {
    color: var(--gold);
}

.footer h4 {
    margin: 7px 0 17px;
    color: #ffffff;
    font-size: 13px;
}

.copy {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 31px;
    padding-top: 18px;
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

/* Messages */

.messages {
    padding-top: 18px;
}

.message {
    padding: 12px 15px;
    border-left: 4px solid var(--gold);
    background: #fff5d5;
}

/* Responsive */

@media (max-width: 1100px) {
    .menu {
        gap: 14px;
        font-size: 10px;
    }

    .apply {
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (max-width: 880px) {
    .contacts {
        display: none;
    }

    .quick,
    .cards,
    .campus {
        grid-template-columns: 1fr 1fr;
    }

    .two,
    .notice,
    .home-update-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .visitor-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }

    .section {
        padding: 74px 0;
    }

    .hero {
        min-height: 545px;
    }

    .hero-copy {
        padding-top: 102px;
    }
}

@media (max-width: 700px) {
    .top .wrap > span:first-child {
        display: none;
    }

    .top .wrap {
        justify-content: center;
    }

    .nav .wrap {
        position: relative;
    }

    .mobile-toggle {
        display: block;
        padding: 14px 0;
        color: var(--navy);
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .06em;
        border: 0;
        background: transparent;
    }

    .menu {
        display: none;
    }

    .menu.mobile-open {
        position: absolute;
        z-index: 50;
        top: 64px;
        right: -22px;
        left: -22px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 11px 22px 18px;
        background: #ffffff;
        box-shadow: 0 14px 25px rgba(9, 34, 49, .18);
    }

    .menu.mobile-open a {
        padding: 13px 0;
        border-bottom: 1px solid #e6edef;
    }

    .menu.mobile-open a::after {
        display: none;
    }

    .apply {
        padding: 11px 13px;
        font-size: 9px;
    }

    .visitor-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .visitor-intro {
        grid-column: 1 / -1;
        padding: 0 0 18px;
    }

    .visitor-stat {
        padding: 14px 15px;
    }

    .visitor-stat:first-of-type {
        border-left: 0;
    }
}

@media (max-width: 570px) {
    .wrap {
        width: min(100% - 32px, 1190px);
    }

    .top-links {
        gap: 14px;
        font-size: 11px;
    }

    .head {
        min-height: 91px;
    }

    .brand {
        gap: 9px;
        font-size: 17px;
    }

    .brand-logo {
        width: 59px;
        height: 59px;
        flex-basis: 59px;
    }

    .brand small {
        font-size: 7px;
        letter-spacing: 1.25px;
    }

    .nav,
    .nav .wrap {
        min-height: 59px;
    }

    .menu.mobile-open {
        top: 59px;
        right: -16px;
        left: -16px;
    }

    .hero {
        min-height: 570px;
    }

    .hero-copy {
        padding-top: 82px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-trust {
        gap: 9px;
        margin-top: 30px;
    }

    .hero-trust span {
        padding: 0;
        border: 0;
    }

    .hero-trust span::after {
        margin-left: 9px;
        content: "•";
    }

    .hero-trust span:last-child::after {
        display: none;
    }

    .slider {
        right: 16px;
        bottom: 20px;
        left: 16px;
        justify-content: space-between;
    }

    .change {
        font-size: 9px;
    }

    .quick,
    .cards,
    .campus,
    .foot {
        grid-template-columns: 1fr;
    }

    .quick {
        margin-top: 22px;
    }

    .quick article {
        border-right: 0;
        border-bottom: 1px solid #e6edf0;
    }

    .quick article:last-child {
        border-bottom: 0;
    }

    .visitor-band {
        margin-top: 40px;
    }

    .visitor-stat strong {
        font-size: 25px;
    }

    .photos {
        height: 330px;
    }

    .photos .big {
        height: 290px;
    }

    .photos .small {
        height: 150px;
    }

    .seal {
        width: 95px;
        height: 95px;
        font-size: 9px;
    }

    .section-head,
    .copy {
        display: block;
    }

    .section-head .link {
        display: inline-block;
        margin-top: 18px;
    }

    .notice {
        padding: 29px 21px;
        margin-top: 48px;
        margin-bottom: 52px;
    }

    .copy span {
        display: block;
        margin: 7px 0;
    }

    .home-update-card {
        padding: 21px;
    }
}
