* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: Inter, Arial, sans-serif;
    color: #152238;
    background: #fff;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    width: min(1180px, 92%);
    margin: auto;
}
.topbar {
    background: #032451;
    color: #fff;
    font-size: 12px;
}
.topbar-inner {
    min-height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 18px #001b3b14;
}
.nav-wrap {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #d9a51e;
    display: grid;
    place-items: center;
    background: #032451;
    color: #fff;
    font-weight: 800;
}
.brand h1 {
    font-size: 20px;
    line-height: 1.15;
    color: #032451;
}
.brand p,
.brand small {
    display: block;
    font-size: 11px;
    color: #5e6978;
}
nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    font-weight: 600;
}
nav a:hover,
nav .active {
    color: #d39a16;
}
.admission-btn {
    background: #032d63;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 7px;
}
.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 28px;
}
.hero {
    min-height: 510px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, #032451f2 0%, #032451cf 42%, #03245120 75%),
        url("../assets/campus.jpg") center/cover;
    position: relative;
    color: #fff;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0;
}
.eyebrow,
.mini-label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #dba624;
    font-weight: 800;
}
.hero h2 {
    font-family: "Playfair Display", serif;
    font-size: 54px;
    line-height: 1.08;
    margin: 12px 0;
}
.hero h2 span {
    color: #fff;
}
.tagline {
    font-size: 18px;
    margin-bottom: 14px;
}
.hero-text {
    max-width: 580px;
    color: #e6edf6;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}
.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 7px;
    font-weight: 700;
    border: 1px solid transparent;
}
.btn-gold {
    background: #e1aa24;
    color: #071e3c;
}
.btn-outline {
    border-color: #fff;
    color: #fff;
}
.btn-outline:hover {
    background: #fff;
    color: #032451;
}
.btn-light {
    background: #fff;
    color: #032451;
}
.quick-section {
    margin-top: -28px;
    position: relative;
    z-index: 5;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.quick-card {
    background: linear-gradient(145deg, #f7edd7 0%, #e1c98f 100%);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    box-shadow:
        0 12px 30px rgba(94, 74, 36, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(116, 89, 49, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #eef1f5;
}
.quick-card span {
    display: block;
    font-size: 65px;
}
.quick-card strong {
    display: block;
    font-size: 13px;
}
.quick-card small {
    color: #788392;
    font-size: 10px;
}
.section {
    padding: 80px 0;
}
.three-col {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 22px;
}
.panel {
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 25px;
    background: #fff;
    box-shadow: 0 8px 25px #001b3b0b;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 15px;
}
.section-heading h3,
.panel h3 {
    font-size: 22px;
    color: #032d63;
}
.section-heading a,
.text-btn {
    color: #b07d00;
    font-size: 12px;
    font-weight: 800;
}
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
}
.tab {
    border: 0;
    background: #f1f4f8;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 11px;
}
.tab.active {
    background: #032d63;
    color: #fff;
}
.notice-list {
    list-style: none;
}
.notice-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f3;
    font-size: 12px;
}
.notice-list a:hover {
    color: #b07d00;
}
.notice-list time {
    color: #8a94a1;
    font-size: 10px;
}
.new {
    background: #e7b62e;
    color: #071e3c;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 800;
    height: max-content;
}
.about-mini p {
    font-size: 13px;
    color: #657080;
    margin: 12px 0 20px;
}
.mini-stats {
    display: flex;
    gap: 15px;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
    padding: 14px 0;
    margin-bottom: 15px;
}
.mini-stats div {
    display: flex;
    flex-direction: column;
}
.mini-stats b {
    color: #032d63;
    font-size: 18px;
}
.mini-stats span {
    font-size: 9px;
    color: #7c8795;
}
.principal-flex {
    display: flex;
    gap: 15px;
    margin: 12px 0;
}
.principal-photo {
    width: 105px;
    height: 120px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e8edf4, #cbd5e2);
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 10px;
    color: #5c6a7d;
    flex: none;
}
.principal p {
    font-size: 12px;
    color: #657080;
}
.principal strong,
.principal small {
    display: block;
}
.principal strong {
    font-size: 12px;
    margin-top: 10px;
}
.principal small {
    font-size: 10px;
    color: #7c8795;
}
.stats {
    background: #032451;
    color: #fff;
    padding: 25px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    text-align: center;
}
.stats-grid b {
    display: block;
    color: #e1aa24;
    font-size: 27px;
}
.stats-grid span {
    font-size: 11px;
    color: #dce5ef;
}
.center-heading {
    text-align: center;
    margin-bottom: 35px;
}
.center-heading h2 {
    font-size: 34px;
    color: #032d63;
    margin: 5px 0;
}
.center-heading p {
    color: #718092;
    font-size: 13px;
}
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.course-card,
.facility-card {
    border: 1px solid #e7ecf2;
    padding: 28px;
    border-radius: 12px;
    transition: 0.3s;
    background: #fff;
}
.course-card:hover,
.facility-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 35px #001b3b13;
}
.course-card > div {
    font-size: 35px;
}
.course-card span {
    font-size: 10px;
    color: #b27e00;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.course-card h3 {
    font-size: 23px;
    color: #032d63;
    margin: 5px 0;
}
.course-card p,
.facility-card p {
    font-size: 13px;
    color: #687586;
    margin-bottom: 15px;
}
.course-card a {
    font-size: 12px;
    color: #032d63;
    font-weight: 800;
}
.admission-section {
    background: linear-gradient(100deg, #032451, #084987);
    color: #fff;
    padding: 55px 0;
}
.admission-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.admission-inner h2 {
    font-size: 35px;
    margin: 5px 0;
}
.admission-inner p {
    color: #d8e2ed;
}
.admission-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.facility-card {
    font-size: 32px;
}
.facility-card h3 {
    font-size: 18px;
    color: #032d63;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.gallery-item {
    height: 190px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbe5ef, #879bb0);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 8px #0006;
}
.contact-section {
    background: #f5f7fa;
    padding: 70px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-grid h2 {
    font-size: 35px;
    color: #032d63;
    margin: 5px 0 15px;
}
.contact-grid p {
    color: #657080;
    font-size: 14px;
}
.contact-grid form {
    display: grid;
    gap: 12px;
}
.contact-grid input,
.contact-grid textarea {
    width: 100%;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
    padding: 13px;
    font: inherit;
    background: #fff;
}
.contact-grid textarea {
    height: 130px;
    resize: vertical;
}
footer {
    background: #021a38;
    color: #c8d4e2;
    padding-top: 45px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
}
.footer-grid h3,
.footer-grid h4 {
    color: #fff;
    margin-bottom: 12px;
}
.footer-grid a {
    display: block;
    font-size: 12px;
    margin: 7px 0;
}
.copyright {
    text-align: center;
    border-top: 1px solid #ffffff18;
    padding: 15px;
    font-size: 11px;
}
.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #e1aa24;
    color: #032451;
    font-size: 20px;
    display: none;
    z-index: 999;
}
.back-top.show {
    display: block;
}
@media (max-width: 1000px) {
    nav {
        gap: 10px;
    }
    .quick-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .three-col {
        grid-template-columns: 1fr 1fr;
    }
    .notice-panel {
        grid-column: 1/-1;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 780px) {
    .topbar-inner {
        display: none;
    }
    .topbar {
        height: 4px;
    }
    .nav-wrap {
        min-height: 80px;
    }
    .brand h1 {
        font-size: 14px;
    }
    .brand p,
    .brand small {
        font-size: 8px;
    }
    .logo {
        width: 48px;
        height: 48px;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 80px;
        background: #fff;
        padding: 15px 5%;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 12px 25px #0002;
    }
    nav.open {
        display: flex;
    }
    .hero h2 {
        font-size: 40px;
    }
    .hero {
        min-height: 570px;
    }
    .three-col,
    .course-grid,
    .facility-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admission-inner {
        display: block;
    }
    .admission-actions {
        margin-top: 20px;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Reference-inspired premium college header */
[x-cloak] {
    display: none !important;
}
.topbar {
    background: linear-gradient(90deg, #5b0035, #790648);
    font-size: 12px;
}
.topbar-inner {
    min-height: 40px;
}
.topbar a {
    transition: 0.2s;
}
.topbar a:hover {
    color: #ffd666;
}
.top-contact,
.top-links {
    display: flex;
    align-items: center;
    gap: 9px;
}
.top-links a:not(:last-child)::after {
    content: "|";
    margin-left: 8px;
    color: #ffffff80;
}
.header {
    position: sticky;
    top: 0;
    background: #fff;
    box-shadow: 0 5px 22px #3e002315;
}
.identity-row {
    border-bottom: 1px solid #ece5e9;
}
.identity-inner {
    min-height: 126px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.brand {
    gap: 18px;
}
.logo {
    width: 86px;
    height: 86px;
    background: #fff;
    border: 5px solid #dca52a;
    color: #730641;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
}
.logo strong {
    font-size: 21px;
    line-height: 1;
}
.logo small {
    font:
        700 10px Inter,
        sans-serif;
    color: #730641;
    margin-top: 15px;
}
.brand-copy h1 {
    font-family: "Playfair Display", serif;
    color: #72063f;
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: 0.4px;
}
.brand-copy p {
    font-size: 15px;
    color: #647185;
    margin-top: 5px;
}
.brand-copy > small {
    font-size: 12px;
    color: #9a6500;
    font-weight: 700;
}
.admission-cta {
    min-width: 165px;
    padding: 14px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #72063f, #9b164f);
    color: #fff;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    box-shadow: 0 8px 22px #71043a25;
    transition: 0.25s;
}
.admission-cta span {
    font-size: 11px;
}
.admission-cta strong {
    font-size: 13px;
    color: #ffe15f;
}
.admission-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px #71043a35;
}
.menu-row {
    background: #fff;
}
.menu-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.round-menu,
.search-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 0;
    border-radius: 50%;
    background: #71043f;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}
.round-menu:hover,
.search-button:hover {
    background: #d49a20;
    transform: rotate(8deg);
}
#mainNav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
#mainNav > a,
.nav-dropdown > button {
    padding: 24px 14px;
    color: #1d2d45;
    background: none;
    border: 0;
    font: inherit;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}
#mainNav > a::after,
.nav-dropdown > button::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 15px;
    height: 2px;
    background: #8a0b4b;
    transform: scaleX(0);
    transition: 0.25s;
}
#mainNav > a:hover::after,
#mainNav > a.active::after,
.nav-dropdown > button:hover::after {
    transform: scaleX(1);
}
#mainNav > a:hover,
#mainNav > a.active,
.nav-dropdown > button:hover {
    color: #810847;
}
.nav-dropdown {
    position: relative;
}
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #fff;
    border-top: 3px solid #810847;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 35px #2a001a25;
    padding: 8px;
    z-index: 20;
}
.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    text-transform: none;
    color: #26364c;
    font-weight: 600;
}
.dropdown-panel a:hover {
    background: #fff3f8;
    color: #810847;
    padding-left: 16px;
}
.mobile-toggle {
    display: none;
}
@media (max-width: 1200px) {
    #mainNav > a,
    .nav-dropdown > button {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 11px;
    }
    .brand-copy h1 {
        font-size: 30px;
    }
}
@media (max-width: 900px) {
    .topbar-inner {
        display: flex;
        height: auto;
        min-height: 36px;
    }
    .topbar {
        height: auto;
    }
    .top-links {
        display: none;
    }
    .identity-inner {
        min-height: 92px;
    }
    .nav-wrap {
        min-height: 0;
    }
    .logo {
        width: 62px;
        height: 62px;
        border-width: 4px;
    }
    .logo strong {
        font-size: 17px;
    }
    .logo small {
        font-size: 8px;
        margin-top: 8px;
    }
    .brand h1,
    .brand-copy h1 {
        font-size: 21px;
    }
    .brand p,
    .brand-copy p {
        font-size: 11px;
    }
    .brand small,
    .brand-copy > small {
        font-size: 9px;
    }
    .admission-cta {
        display: none;
    }
    .mobile-toggle {
        display: block;
        border: 0;
        border-radius: 8px;
        background: #71043f;
        color: #fff;
        width: 43px;
        height: 43px;
        font-size: 24px;
    }
    .menu-row {
        position: relative;
    }
    .menu-inner {
        min-height: 0;
    }
    .round-menu,
    .search-button {
        display: none;
    }
    #mainNav {
        display: none;
        position: absolute;
        left: 4%;
        right: 4%;
        top: 0;
        background: #fff;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 15px 35px #2a001a30;
        border-radius: 0 0 12px 12px;
        max-height: 78vh;
        overflow: auto;
    }
    #mainNav.open {
        display: flex;
    }
    #mainNav > a,
    .nav-dropdown > button {
        display: block;
        width: 100%;
        padding: 12px 14px;
        text-align: left;
        border-bottom: 1px solid #f1e8ed;
    }
    #mainNav > a::after,
    .nav-dropdown > button::after {
        display: none;
    }
    .dropdown-panel {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: 0;
        border-left: 3px solid #810847;
        border-radius: 0;
        margin: 3px 0 6px;
        padding: 4px 8px;
    }
    .dropdown-panel a {
        font-size: 12px;
    }
    .top-contact {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 560px) {
    .brand {
        gap: 10px;
    }
    .brand h1,
    .brand-copy h1 {
        font-size: 16px;
    }
    .brand p,
    .brand-copy p {
        font-size: 9px;
        line-height: 1.3;
    }
    .brand small,
    .brand-copy > small {
        font-size: 8px;
    }
    .logo {
        width: 54px;
        height: 54px;
    }
    .top-contact {
        font-size: 10px;
    }
    .identity-inner {
        width: 94%;
    }
}

/* TPS College official brand colour and logo */
.brand-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex: 0 0 88px;
    filter: drop-shadow(0 5px 10px #890c2520);
}
.topbar {
    background: linear-gradient(90deg, #65091b, #890c25);
}
.brand-copy h1 {
    color: #890c25;
}
.admission-cta {
    background: linear-gradient(135deg, #890c25, #b01938);
    box-shadow: 0 8px 22px #890c2530;
}
.round-menu,
.search-button,
.mobile-toggle {
    background: #890c25;
}
#mainNav > a::after,
.nav-dropdown > button::after {
    background: #890c25;
}
#mainNav > a:hover,
#mainNav > a.active,
.nav-dropdown > button:hover,
.dropdown-panel a:hover {
    color: #890c25;
}
.dropdown-panel {
    border-top-color: #890c25;
}
.dropdown-panel a:hover {
    background: #fff3f5;
}
.hero {
    background:
        linear-gradient(90deg, #890c25f2 0%, #890c25cf 42%, #890c2520 75%),
        url("../assets/campus.jpg") center/cover;
}
.section-heading h3,
.panel h3,
.mini-stats b,
.center-heading h2,
.course-card h3,
.course-card a,
.facility-card h3,
.contact-grid h2 {
    color: #890c25;
}
.tab.active,
.stats {
    background: #890c25;
}
.admission-section {
    background: linear-gradient(100deg, #65091b, #b01938);
}
.btn-outline:hover,
.btn-light {
    color: #890c25;
}
/* Inedex */
.menu-row {
    position: relative;
    isolation: isolate;
    background: linear-gradient(110deg, #5d0819 0%, #8f0d2a 52%, #68091d 100%);
    border-top: 1px solid rgba(226, 184, 92, 0.65);
    box-shadow: 0 8px 22px rgba(73, 4, 22, 0.22);
}

.menu-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.07),
        transparent
    );
    pointer-events: none;
}

.menu-inner {
    min-height: 64px;
    gap: 8px;
}

.round-menu,
.search-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    display: grid;
    place-items: center;
    color: #fff5dc;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(226, 184, 92, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.round-menu:hover,
.search-button:hover {
    color: #5d0819;
    background: #e2b85c;
    border-color: #f4d58d;
    transform: translateY(-2px);
}

#mainNav {
    justify-content: space-between;
    gap: 1px;
}

#mainNav > a,
.nav-dropdown > button {
    padding: 20px clamp(4px, 0.55vw, 8px);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    font-size: clamp(9px, 0.78vw, 11.5px);
    letter-spacing: 0.15px;
    transition:
        color 0.22s ease,
        background 0.22s ease,
        transform 0.22s ease;
}

#mainNav > a:hover,
#mainNav > a.active,
.nav-dropdown > button:hover,
.nav-dropdown > button.active,
.nav-dropdown > button[aria-expanded="true"] {
    color: #ffe3a1;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

#mainNav > a::after,
.nav-dropdown > button::after {
    left: 9px;
    right: 9px;
    bottom: 10px;
    height: 2px;
    background: #e2b85c;
    border-radius: 999px;
}

.nav-dropdown > button .dropdown-icon {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.72em;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.nav-dropdown > button[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-panel {
    top: calc(100% + 1px);
    width: 235px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(137, 12, 37, 0.1);
    border-top: 3px solid #d6a941;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 38px rgba(54, 2, 17, 0.24);
}

.dropdown-panel a {
    padding: 11px 12px;
    color: #293348;
    border-radius: 7px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}

.dropdown-panel a:hover {
    padding-left: 17px;
    color: #890c25;
    background: #fff1f4;
}

.menu-row button:focus-visible,
.menu-row a:focus-visible,
.mobile-toggle:focus-visible {
    outline: 3px solid #f1c968;
    outline-offset: 3px;
}

.announcement-bar {
    position: relative;
    z-index: 12;
    overflow: hidden;
    background: linear-gradient(90deg, #fff9ec, #fffdf8);
    border-bottom: 1px solid rgba(137, 12, 37, 0.12);
    box-shadow: 0 5px 15px rgba(68, 5, 22, 0.07);
}

.announcement-inner {
    display: flex;
    align-items: stretch;
    min-height: 26px;
}

.announcement-label {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    margin-left: calc((100vw - min(1180px, 92vw)) / -2);
    padding: 0 24px 0 calc((100vw - min(1180px, 92vw)) / 2);
    color: #fff;
    background: linear-gradient(135deg, #890c25, #650919);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    white-space: nowrap;
}

.announcement-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: -18px;
    width: 36px;
    height: 100%;
    background: #650919;
    clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%);
}

.announcement-label i,
.announcement-label span {
    position: relative;
    z-index: 1;
}

.announcement-label i {
    color: #f0ca72;
    font-size: 0.9rem;
}

.announcement-window {
    position: relative;
    min-width: 0;
    display: flex;
    flex: 1;
    align-items: center;
    overflow: hidden;
    margin-left: 25px;
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 24px,
        #000 calc(100% - 24px),
        transparent
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 24px,
        #000 calc(100% - 24px),
        transparent
    );
}

.announcement-track {
    width: max-content;
    display: flex;
    flex: none;
    animation: announcement-scroll 34s linear infinite;
    will-change: transform;
}

.announcement-group {
    display: flex;
    flex: none;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
}

.announcement-group a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #30394a;
    font-size: 0.76rem;
    font-weight: 650;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.announcement-group a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -20px;
    width: 5px;
    height: 5px;
    background: #d7ad55;
    border-radius: 50%;
    transform: translateY(-50%);
}

.announcement-group a:hover,
.announcement-group a:focus-visible {
    color: #890c25;
}

.announcement-badge {
    padding: 2px 6px;
    color: #fff;
    background: #890c25;
    border-radius: 999px;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.announcement-window:hover .announcement-track,
.announcement-window:focus-within .announcement-track {
    animation-play-state: paused;
}

@keyframes announcement-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-track {
        animation: none;
    }

    .announcement-window {
        overflow-x: auto;
    }
}

.quick-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 20px;
}

.quick-card {
    position: relative;
    min-height: 185px;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 0;
    overflow: hidden;
    color: #57111b;
    background: linear-gradient(145deg, #f7edd7 0%, #e1c98f 100%);
    border: 1px solid rgba(104, 25, 37, 0.09);
    border-radius: 9px;
    animation-fill-mode: backwards;
    box-shadow:
        0 10px 22px rgba(60, 31, 18, 0.2),
        0 2px 5px rgba(60, 31, 18, 0.12);
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.quick-card::before {
    content: "";
    position: absolute;
    top: -55px;
    right: -45px;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.48),
        transparent 68%
    );
    pointer-events: none;
}

.quick-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 0 61px;
    background: linear-gradient(
        105deg,
        transparent 25%,
        rgba(255, 255, 255, 0.48) 48%,
        transparent 72%
    );
    transform: translateX(-130%) skewX(-12deg);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.quick-card .quick-card__icon {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100px;
    display: grid;
    place-items: center;
    color: #57111b;
    font-size: 3.6rem;
    line-height: 1;
    filter: drop-shadow(0 3px 1px rgba(255, 255, 255, 0.45));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-card .quick-card__title {
    position: relative;
    z-index: 3;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    color: #fff;
    background: linear-gradient(135deg, #741521 0%, #4c0a13 100%);
    border-top: 3px solid #d7ad55;
    transition: background 0.3s ease;
}

.quick-card .quick-card__title strong {
    font-size: 1rem;
    line-height: 1.2;
}

.quick-card .quick-card__title small {
    margin-top: 3px;
    color: #f2dca7;
    font-size: 0.68rem;
    line-height: 1.2;
}

.quick-card:hover {
    z-index: 2;
    background: linear-gradient(145deg, #fff6e4 0%, #ead199 100%);
    transform: translateY(-8px) scale(1.015);
    box-shadow:
        0 20px 34px rgba(70, 25, 23, 0.27),
        0 5px 10px rgba(70, 25, 23, 0.12);
}

.quick-card:hover::after {
    transform: translateX(130%) skewX(-12deg);
}

.quick-card:hover .quick-card__icon {
    transform: translateY(-4px) scale(1.1) rotate(-2deg);
}

.quick-card:hover .quick-card__title {
    background: linear-gradient(135deg, #862332 0%, #5b0d18 100%);
}

.updates-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(260px, 0.85fr));
    gap: 24px;
}

.message-panel {
    display: flex;
    flex-direction: column;
    border-top: 3px solid #d7ad55;
}

.message-panel .principal-flex {
    align-items: flex-start;
    flex: 1;
}

.message-panel .principal-photo {
    object-fit: cover;
    object-position: center top;
    border: 3px solid #f3e2bd;
    box-shadow: 0 8px 18px rgba(82, 18, 31, 0.14);
}

.message-panel .text-btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.vice-chancellor .principal-flex p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

.vice-chancellor .principal-flex p.message-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .updates-grid .notice-panel {
        grid-column: 1 / -1;
    }
}

.about-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 95% 8%,
            rgba(215, 173, 85, 0.2),
            transparent 24%
        ),
        linear-gradient(135deg, #fffdf8 0%, #f7efe2 100%);
}

.about-section::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -90px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(137, 12, 37, 0.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(137, 12, 37, 0.025),
        0 0 0 84px rgba(137, 12, 37, 0.018);
    pointer-events: none;
}

.about-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(38px, 6vw, 76px);
}

.about-visual {
    position: relative;
    max-width: 500px;
    min-height: 560px;
}

.about-visual__main {
    width: calc(100% - 46px);
    height: 530px;
    display: block;
    object-fit: cover;
    object-position: center;
    border: 8px solid #fff;
    border-radius: 22px 22px 80px 22px;
    box-shadow: 0 24px 55px rgba(72, 22, 20, 0.2);
}

.about-visual::before {
    content: "";
    position: absolute;
    top: -16px;
    left: -16px;
    z-index: -1;
    width: 160px;
    height: 160px;
    border-top: 4px solid #d7ad55;
    border-left: 4px solid #d7ad55;
    border-radius: 26px 0 0;
}

.about-founder {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(285px, 72%);
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: center;
    gap: 13px;
    padding: 12px;
    color: #fff;
    background: linear-gradient(135deg, #7b1026, #4d0815);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 15px;
    box-shadow: 0 18px 36px rgba(61, 8, 21, 0.3);
}

.about-founder img {
    width: 86px;
    height: 98px;
    object-fit: cover;
    object-position: center 18%;
    border: 3px solid #e5bd65;
    border-radius: 10px;
}

.about-founder small,
.about-founder strong,
.about-founder span {
    display: block;
}

.about-founder small {
    color: #e9c875;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-founder strong {
    margin: 3px 0;
    font-family: "Playfair Display", serif;
    font-size: 1.08rem;
    line-height: 1.2;
}

.about-founder span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    line-height: 1.35;
}

.about-content .mini-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.about-content .mini-label::before {
    content: "";
    width: 30px;
    height: 2px;
    background: #d7ad55;
}

.about-content h2 {
    max-width: 650px;
    margin: 9px 0 17px;
    color: #6e0c22;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    line-height: 1.08;
}

.about-lead {
    color: #30394a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75;
}

.about-copy {
    margin-top: 11px;
    color: #667080;
    font-size: 0.86rem;
    line-height: 1.8;
}

.about-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 23px 0;
}

.about-milestone {
    position: relative;
    padding: 15px 13px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(123, 16, 38, 0.11);
    border-radius: 11px;
    box-shadow: inset 0 1px 0 #fff;
}

.about-milestone::before {
    content: "";
    position: absolute;
    top: 0;
    left: 13px;
    width: 36px;
    height: 3px;
    background: #d7ad55;
    border-radius: 0 0 4px 4px;
}

.about-milestone strong,
.about-milestone span {
    display: block;
}

.about-milestone strong {
    color: #7b1026;
    font-size: 1.25rem;
}

.about-milestone span {
    margin-top: 2px;
    color: #747b88;
    font-size: 0.68rem;
    line-height: 1.35;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-pillar {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 13px;
    background: #fff;
    border: 1px solid #eee2d2;
    border-radius: 11px;
}

.about-pillar i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #890c25;
    border-radius: 9px;
}

.about-pillar strong,
.about-pillar span {
    display: block;
}

.about-pillar strong {
    color: #6e0c22;
    font-size: 0.82rem;
}

.about-pillar span {
    margin-top: 2px;
    color: #737b89;
    font-size: 0.68rem;
    line-height: 1.45;
}

.about-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.about-facilities span {
    padding: 6px 10px;
    color: #6e0c22;
    background: rgba(215, 173, 85, 0.14);
    border: 1px solid rgba(179, 132, 38, 0.18);
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
}

.about-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    color: #fff;
    background: linear-gradient(135deg, #890c25, #650919);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.about-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(137, 12, 37, 0.25);
}

.about-source {
    color: #7b818d;
    font-size: 0.65rem;
}

.gallery {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(215, 173, 85, 0.14),
            transparent 28%
        ),
        linear-gradient(180deg, #fffdf8 0%, #f7efe2 100%);
}

.gallery .center-heading {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

.gallery .center-heading p {
    margin-top: 8px;
    color: #687080;
    font-size: 0.9rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 220px;
    grid-auto-flow: dense;
    gap: 18px;
}

.gallery-item {
    position: relative;
    min-width: 0;
    height: auto;
    display: block;
    overflow: hidden;
    background: #3d101a;
    border: 1px solid rgba(112, 16, 40, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(61, 16, 26, 0.16);
    text-shadow: none;
}

.gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
}

.gallery-item > a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 38%,
        rgba(41, 4, 14, 0.9) 100%
    );
    transition: background 0.35s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.35s ease;
}

.gallery-item figcaption {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
}

.gallery-item figcaption span {
    margin-bottom: 4px;
    color: #f2ca6d;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.gallery-item figcaption strong {
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
}

.gallery-item--featured figcaption strong {
    font-family: "Playfair Display", serif;
    font-size: 1.65rem;
}

.gallery-item .gallery-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(79, 7, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    transform: translateY(-55px);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.gallery-item:hover img {
    filter: saturate(1.08);
    transform: scale(1.065);
}

.gallery-item:hover > a::after {
    background: linear-gradient(
        180deg,
        rgba(137, 12, 37, 0.05) 28%,
        rgba(41, 4, 14, 0.94) 100%
    );
}

.gallery-item:hover .gallery-zoom {
    background: #890c25;
    transform: translateY(0);
}

.gallery-source {
    margin-top: 18px;
    color: #737987;
    font-size: 0.72rem;
    text-align: right;
}

.gallery-source a {
    color: #890c25;
    font-weight: 700;
}

@media (max-width: 900px) {
    .menu-row {
        border-top: 0;
        box-shadow: none;
    }

    #mainNav {
        gap: 2px;
        background: rgba(255, 255, 255, 0.99);
        border-top: 3px solid #d6a941;
        box-shadow: 0 18px 40px rgba(54, 2, 17, 0.24);
    }

    #mainNav > a,
    .nav-dropdown > button {
        color: #293348;
        font-size: 12px;
        border-radius: 7px;
    }

    #mainNav > a:hover,
    #mainNav > a.active,
    .nav-dropdown > button:hover,
    .nav-dropdown > button[aria-expanded="true"] {
        color: #890c25;
        background: #fff1f4;
        transform: none;
    }

    .dropdown-panel {
        width: 100%;
        border-top: 0;
        border-left: 3px solid #d6a941;
        border-radius: 0 0 8px 8px;
        box-shadow: none;
    }

    .updates-grid,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-visual {
        width: min(100%, 540px);
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 200px;
    }

    .gallery-item--featured {
        grid-column: span 2;
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .quick-grid {
        gap: 12px;
    }
    .quick-card {
        min-height: 165px;
    }
    .quick-card .quick-card__icon {
        min-height: 105px;
        font-size: 3rem;
    }
    .quick-card .quick-card__title strong {
        font-size: 0.88rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }
    .gallery-item--featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-item--featured figcaption strong {
        font-size: 1.2rem;
    }
    .about-visual {
        min-height: 470px;
    }
    .about-visual__main {
        width: calc(100% - 24px);
        height: 440px;
    }
    .about-founder {
        width: min(265px, 86%);
        grid-template-columns: 72px 1fr;
    }
    .about-founder img {
        width: 72px;
        height: 85px;
    }
    .about-timeline {
        grid-template-columns: 1fr;
    }
    .about-pillars {
        grid-template-columns: 1fr;
    }
    .announcement-inner {
        width: 100%;
    }
    .announcement-label {
        margin-left: 0;
        padding: 0 14px;
    }
    .announcement-label span {
        display: none;
    }
    .announcement-label::after {
        right: -14px;
        width: 28px;
    }
    .announcement-window {
        margin-left: 19px;
    }
}
/* Index */
/* Pages */
.subpage {
    background: #fffdf9;
    color: #263247;
}
.subpage .container {
    width: min(1180px, 92%);
    max-width: none;
}
.subpage .topbar {
    background: linear-gradient(90deg, #65091b, #890c25);
    color: #fff;
}
.subpage .top-contact,
.subpage .top-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.subpage .top-contact i {
    color: #f0ca72;
}
.subpage .sub-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 7px 24px rgba(68, 5, 22, 0.12);
}
.subpage .identity-row {
    background: #fff;
}
.subpage .identity-inner {
    min-height: 112px;
}
.subpage .brand-logo {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
}
.subpage .brand-copy h1 {
    font-size: 30px;
}
.subpage .brand-copy p {
    font-size: 13px;
}
.subpage .page-menu {
    background: linear-gradient(110deg, #5d0819, #8f0d2a 52%, #68091d);
    border-top: 1px solid rgba(226, 184, 92, 0.65);
    box-shadow: 0 8px 22px rgba(73, 4, 22, 0.2);
}
.page-menu-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-home,
.page-search {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    color: #fff5dc;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(226, 184, 92, 0.52);
    border-radius: 50%;
    transition: 0.2s;
}
.page-home:hover,
.page-search:hover {
    color: #5d0819;
    background: #e2b85c;
    transform: translateY(-2px);
}
.page-menu .navbar-collapse {
    flex: 1;
}
.subpage .page-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
}
.page-nav-inner a {
    position: relative;
    padding: 19px 13px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 6px;
    transition: 0.22s;
}
.page-nav-inner a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: 12px;
    height: 2px;
    background: #e2b85c;
    border-radius: 10px;
    transform: scaleX(0);
    transition: 0.22s;
}
.page-nav-inner a:hover,
.page-nav-inner a.active {
    color: #ffe3a1;
    background: rgba(255, 255, 255, 0.1);
}
.page-nav-inner a:hover::after,
.page-nav-inner a.active::after {
    transform: scaleX(1);
}
.page-menu-toggle {
    display: none;
    color: #fff;
    border: 1px solid rgba(226, 184, 92, 0.52);
    font-size: 13px;
}
.page-menu-toggle span {
    margin-left: 7px;
}
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(76, 6, 22, 0.97), rgba(137, 12, 37, 0.88)),
        var(--page-image, url("../assets/slides/slide-1.webp")) center/cover;
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(255, 255, 255, 0.04),
        0 0 0 110px rgba(255, 255, 255, 0.025);
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: #f0ca72;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.page-breadcrumb a {
    color: #fff;
}
.page-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.04;
}
.page-hero p {
    max-width: 700px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}
.page-section {
    padding: 76px 0;
}
.page-section--soft {
    background: linear-gradient(180deg, #fffaf1, #f7eee0);
}
.page-heading {
    max-width: 720px;
    margin-bottom: 34px;
}
.page-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}
.page-kicker {
    display: block;
    margin-bottom: 7px;
    color: #b07d18;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.page-heading h2,
.content-card h2 {
    color: #710d23;
    font-family: "Playfair Display", serif;
}
.page-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}
.page-heading p {
    margin-top: 8px;
    color: #687383;
}
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.content-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.content-card {
    height: 100%;
    padding: 28px;
    background: #fff;
    border: 1px solid #eee4d6;
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(70, 25, 23, 0.08);
    transition: 0.25s;
}
.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(70, 25, 23, 0.13);
}
.content-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    margin-bottom: 17px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #890c25, #610817);
    border-radius: 12px;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(137, 12, 37, 0.2);
}
.content-card h2 {
    font-size: 1.6rem;
}
.content-card h3 {
    color: #710d23;
    font-size: 1.1rem;
}
.content-card p,
.content-card li {
    color: #667181;
    font-size: 0.86rem;
    line-height: 1.75;
}
.content-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
}
.feature-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 55px;
}
.feature-image {
    position: relative;
}
.feature-image > img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 22px 22px 70px 22px;
    box-shadow: 0 24px 50px rgba(71, 20, 21, 0.18);
}
.feature-copy h2 {
    margin-bottom: 18px;
    color: #710d23;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
}
.feature-copy p {
    color: #626d7d;
    line-height: 1.85;
}
.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 25px;
}
.timeline-item {
    padding: 17px;
    background: #fff;
    border-top: 3px solid #d7ad55;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(70, 25, 23, 0.08);
}
.timeline-item strong,
.timeline-item span {
    display: block;
}
.timeline-item strong {
    color: #790f24;
    font-size: 1.35rem;
}
.timeline-item span {
    color: #737b88;
    font-size: 0.72rem;
}
.page-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 11px 18px;
    color: #fff;
    background: linear-gradient(135deg, #890c25, #650919);
    border: 0;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    transition: 0.22s;
}
.page-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(137, 12, 37, 0.25);
}
.notice-page-list {
    display: grid;
    gap: 12px;
}
.notice-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 17px 20px;
    background: #fff;
    border: 1px solid #eee3d5;
    border-radius: 12px;
    box-shadow: 0 7px 18px rgba(70, 25, 23, 0.06);
}
.notice-row time {
    color: #8b1029;
    font-size: 0.72rem;
    font-weight: 800;
}
.notice-row a {
    color: #283348;
    font-size: 0.87rem;
    font-weight: 700;
}
.notice-row span {
    padding: 4px 8px;
    color: #650919;
    background: #f3d890;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 800;
}
.steps {
    counter-reset: admission-step;
}
.step-card {
    position: relative;
    padding-top: 72px;
}
.step-card::before {
    counter-increment: admission-step;
    content: counter(admission-step, decimal-leading-zero);
    position: absolute;
    top: 20px;
    left: 25px;
    color: rgba(137, 12, 37, 0.16);
    font:
        800 2.8rem/1 Inter,
        sans-serif;
}
.page-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.page-gallery a {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(61, 16, 26, 0.16);
}
.page-gallery a:first-child {
    grid-column: span 2;
    height: 360px;
}
.page-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.55s;
}
.page-gallery span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 40px 17px 15px;
    color: #fff;
    background: linear-gradient(transparent, rgba(44, 4, 15, 0.9));
    font-weight: 700;
}
.page-gallery a:hover img {
    transform: scale(1.06);
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
}
.contact-details,
.contact-form {
    padding: 32px;
    background: #fff;
    border: 1px solid #eee3d5;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(70, 25, 23, 0.08);
}
.contact-list {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}
.contact-list a,
.contact-list div {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 12px;
    color: #354052;
}
.contact-list i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #890c25;
    border-radius: 10px;
}
.contact-form {
    display: grid;
    gap: 14px;
}
.contact-form label {
    color: #4c5563;
    font-size: 0.78rem;
    font-weight: 700;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    margin-top: 5px;
    padding: 12px 13px;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    font: inherit;
}
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}
.form-status {
    padding: 10px 12px;
    color: #245c36;
    background: #e8f6ed;
    border-radius: 8px;
    font-size: 0.8rem;
}
.sub-footer {
    padding-top: 48px;
    background: #26050e;
    color: #d8cbd0;
}
.sub-footer .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
}
.sub-footer h3,
.sub-footer h4 {
    color: #fff;
}
.sub-footer p,
.sub-footer a {
    font-size: 12px;
}
.sub-footer a:hover {
    color: #f0ca72;
}
.footer-about {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.footer-about img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}
.subpage .back-top {
    display: none;
}
.subpage .back-top.show {
    display: grid;
    place-items: center;
}
.subpage .back-top i {
    font-size: 14px;
}
@media (max-width: 900px) {
    .subpage .identity-inner {
        min-height: 88px;
    }
    .subpage .brand-copy h1 {
        font-size: 21px;
    }
    .subpage .brand-logo {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
    }
    .page-menu-inner {
        min-height: 56px;
    }
    .page-home {
        display: none;
    }
    .page-menu-toggle {
        display: flex;
        align-items: center;
        color: #fff;
    }
    .page-menu .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 4%;
        left: 4%;
        z-index: 30;
        padding: 10px;
        background: #fff;
        border-top: 3px solid #d7ad55;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 18px 38px rgba(54, 2, 17, 0.24);
    }
    .subpage .page-nav-inner {
        display: flex;
        position: static;
        align-items: stretch;
        flex-direction: column;
        padding: 0;
        background: none;
        box-shadow: none;
    }
    .page-nav-inner a {
        padding: 12px 14px;
        color: #293348;
        border-bottom: 1px solid #f1e8ed;
    }
    .page-nav-inner a:hover,
    .page-nav-inner a.active {
        color: #890c25;
        background: #fff1f4;
    }
    .page-nav-inner a::after {
        display: none;
    }
    .page-search {
        margin-left: auto;
    }
    .content-grid,
    .content-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-layout,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
    .feature-image {
        max-width: 560px;
        margin: auto;
    }
    .page-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sub-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .subpage .top-links {
        display: none;
    }
    .subpage .top-contact {
        width: 100%;
        justify-content: center;
        font-size: 10px;
    }
    .subpage .identity-inner {
        min-height: 78px;
    }
    .subpage .brand-copy h1 {
        font-size: 16px;
    }
    .subpage .brand-copy p {
        font-size: 9px;
    }
    .subpage .brand-copy > small {
        font-size: 8px;
    }
    .subpage .brand-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
    .page-hero {
        padding: 56px 0;
    }
    .page-section {
        padding: 56px 0;
    }
    .content-grid,
    .content-grid--two,
    .timeline {
        grid-template-columns: 1fr;
    }
    .notice-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .page-gallery {
        grid-template-columns: 1fr;
    }
    .page-gallery a,
    .page-gallery a:first-child {
        grid-column: auto;
        height: 230px;
    }
    .feature-image > img {
        height: 420px;
    }
    .sub-footer .footer-grid {
        grid-template-columns: 1fr;
    }
}
.dynamic-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 28px;
}
.dynamic-page-layout > .content-card:only-child {
    grid-column: 1/-1;
}
.dynamic-page-content {
    height: auto;
    min-height: 280px;
}
.dynamic-page-content:hover {
    transform: none;
}
.dynamic-page-image {
    display: block;
    max-width: 100%;
    max-height: 460px;
    margin: 0 auto 28px;
    border-radius: 12px;
    object-fit: contain;
}
.cms-content {
    color: #4f5968;
    font-size: 0.95rem;
    line-height: 1.85;
}
.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4 {
    margin: 1.3em 0 0.55em;
    color: #710d23;
    font-family: "Playfair Display", serif;
}
.cms-content p {
    font-size: inherit;
}
.cms-content img {
    max-width: 100%;
    height: auto;
}
.cms-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}
.cms-content th,
.cms-content td {
    padding: 10px;
    border: 1px solid #ded5c8;
}
.page-document {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 12px 18px;
    color: #fff;
    background: #890c25;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
}
.page-document:hover {
    color: #fff;
    background: #650919;
}
.page-sidebar {
    padding: 24px;
    background: #fff;
    border: 1px solid #eee4d6;
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(70, 25, 23, 0.08);
}
.page-sidebar h3 {
    margin-bottom: 14px;
    color: #710d23;
    font-family: "Playfair Display", serif;
}
.page-sidebar ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-sidebar a {
    display: block;
    padding: 10px 12px;
    color: #384354;
    background: #fff8ed;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}
.page-sidebar a:hover {
    color: #fff;
    background: #890c25;
}
.album-grid span small {
    display: block;
    margin-top: 4px;
    color: #f2cf7a;
    font-size: 0.68rem;
}
.empty-state {
    grid-column: 1/-1;
    padding: 50px 25px;
    color: #687383;
    background: #fff;
    border: 1px dashed #d9c8b2;
    border-radius: 14px;
    text-align: center;
}
.empty-state i {
    margin-bottom: 12px;
    color: #890c25;
    font-size: 2.2rem;
}
.empty-state h3 {
    color: #710d23;
}
.page-pagination {
    margin-top: 28px;
}
.page-pagination nav {
    display: flex;
    justify-content: center;
}
.page-pagination svg {
    width: 20px;
}
.page-pagination [aria-current="page"] span {
    background: #890c25 !important;
    border-color: #890c25 !important;
}
@media (max-width: 900px) {
    .dynamic-page-layout {
        grid-template-columns: 1fr;
    }
}

footer {
    background: #500713;
}
.back-top {
    color: #890c25;
}
@media (max-width: 900px) {
    .brand-logo {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
    .dropdown-panel {
        border-left-color: #890c25;
    }
}
@media (max-width: 560px) {
    .brand-logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }
}

.principal-photo {
    object-fit: cover;
    object-position: 50% 18%;
    border: 3px solid #f4e4e8;
    background: #f7f2f4;
    box-shadow: 0 7px 18px #890c2520;
}

/* Hero image slider */
.hero {
    overflow: hidden;
    background: #3d050f;
}
.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-slides {
    z-index: 0;
}
.hero-slide {
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.035);
    transition:
        opacity 1s ease,
        transform 6s ease;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        #4b0613e8 0%,
        #890c25c7 43%,
        #2b02073d 78%,
        #00000014 100%
    );
}
.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border: 1px solid #ffffff70;
    border-radius: 50%;
    background: #890c25c7;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: 0.25s;
}
.slider-arrow:hover {
    background: #e1aa24;
    color: #4b0613;
    transform: scale(1.08);
}
.slider-prev {
    left: 22px;
}
.slider-next {
    right: 22px;
}
.slider-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}
.slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 20px;
    background: #ffffff75;
    cursor: pointer;
    transition: 0.25s;
}
.slider-dots button.active {
    width: 28px;
    background: #e1aa24;
    border-color: #e1aa24;
}
.hero-content {
    z-index: 2;
}
@media (max-width: 780px) {
    .hero-slide {
        object-position: center;
    }
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 26px;
    }
    .slider-prev {
        left: 9px;
    }
    .slider-next {
        right: 9px;
    }
    .slider-dots {
        bottom: 14px;
    }
    .hero-content {
        padding-left: 28px;
        padding-right: 28px;
    }
}
/* Database-backed dedicated page introductions */
.cms-page-intro{max-width:900px;margin:0 auto 44px;padding:24px 28px;color:#596474;background:#fff;border:1px solid #eadfce;border-left:4px solid #b78522;border-radius:14px;box-shadow:0 10px 26px rgba(72,13,28,.07);font-size:.94rem;line-height:1.82}.cms-page-intro h1,.cms-page-intro h2,.cms-page-intro h3{margin:0 0 10px;color:#710d23;font-family:"Playfair Display",serif}.cms-page-intro p:last-child{margin-bottom:0}.cms-page-intro ul,.cms-page-intro ol{margin:10px 0 0;padding-left:20px}.contact-form-heading h2,.contact-details h2{margin:4px 0 12px;color:#710d23;font-family:"Playfair Display",serif}.content-card[id],section[id]{scroll-margin-top:120px}@media(max-width:600px){.cms-page-intro{margin-bottom:32px;padding:20px}.contact-page-grid{gap:20px}.contact-details,.contact-form{padding:24px}}
