:root {
    --color-primary: #0f4c81;
    --color-primary-dark: #08345c;
    --color-secondary: #c99a2e;
    --color-ink: #17212b;
    --color-muted: #657282;
    --color-surface: #ffffff;
    --color-soft: #f4f7fb;
    --color-border: #dfe7ef;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background: var(--color-surface);
}

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

.top-bar {
    color: #fff;
    font-size: 0.875rem;
    background: var(--color-primary-dark);
    padding: 0;
}

.top-bar .container {
    align-items: stretch !important;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.top-bar__item {
    opacity: 0.92;
}

.top-bar__links,
.top-bar__contact {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.top-bar__links {
    margin-left: auto;
}

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

.top-bar__link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 0.9rem;
    color: #fff;
    font-weight: 700;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0.96;
}

.top-bar__links .top-bar__link:last-child,
.top-bar__contact .top-bar__contact-link:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.top-bar__link:hover,
.top-bar__contact-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.top-bar__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0 0.9rem;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.top-bar__icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.site-header {
    z-index: 1030;
}

.navbar {
    min-height: 92px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.35rem;
}

.brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-title,
.brand-subtitle {
    display: block;
}

.brand-title {
    color: var(--color-primary-dark);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand-subtitle {
    color: var(--color-muted);
    font-size: 1rem;
    font-weight: 600;
}

.nav-link {
    color: var(--color-ink);
    font-weight: 600;
    padding: 0.75rem 0.9rem !important;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: #eef5fb;
}

.dropdown-menu {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(8, 52, 92, 0.12);
    padding: 0.55rem;
}

.dropdown-item {
    border-radius: 6px;
    color: var(--color-ink);
    font-weight: 600;
    padding: 0.55rem 0.7rem;
}

.dropdown-item:hover,
.dropdown-item.active {
    color: var(--color-primary);
    background: #eef5fb;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: -0.55rem;
    right: 100%;
    left: auto;
    margin-right: 0.2rem;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show {
    display: block;
}

.hero-section {
    color: #fff;
    background:
        linear-gradient(115deg, rgba(8, 52, 92, 0.96), rgba(15, 76, 129, 0.86)),
        linear-gradient(45deg, #0f4c81, #1c6a9f);
}

.hero-slide {
    min-height: clamp(560px, 76vh, 760px);
    display: flex;
    align-items: center;
    padding: clamp(5rem, 9vw, 8rem) 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0.8rem 0 1.25rem;
}

.hero-text {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.18rem;
    margin-bottom: 2rem;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-panel__label {
    color: var(--color-secondary);
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hero-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hero-panel__grid span {
    display: block;
    min-height: 92px;
    padding: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
}

.carousel-indicators {
    margin-bottom: 1.25rem;
}

.carousel-indicators [data-bs-target] {
    width: 40px;
    height: 4px;
    background-color: #fff;
    border: 0;
    opacity: 0.45;
}

.carousel-indicators .active {
    opacity: 1;
}

.section {
    padding: 5rem 0;
}

.section-muted {
    background: var(--color-soft);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-kicker {
    color: var(--color-secondary);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    color: var(--color-primary-dark);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0.45rem 0 0;
}

.section-text {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin: 0;
}

.principal-card,
.message-panel,
.info-card,
.notice-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.principal-card {
    padding: 1.5rem;
}

.principal-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    color: var(--color-primary);
    font-weight: 800;
    background: #eaf2f8;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.principal-photo img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.principal-name {
    color: var(--color-primary-dark);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}

.principal-role {
    color: var(--color-muted);
    margin: 0.2rem 0 0;
}

.message-panel {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.info-card {
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(8, 52, 92, 0.11);
}

.info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    font-weight: 800;
    background: var(--color-primary);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info-card h3,
.notice-item h3 {
    color: var(--color-primary-dark);
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--color-muted);
    margin: 0;
}

.read-more-link {
    color: var(--color-primary);
    display: inline-block;
    font-weight: 800;
    margin-top: 1rem;
}

.read-more-link:hover {
    color: var(--color-primary-dark);
}

.notice-list {
    display: grid;
    gap: 0.9rem;
}

.notice-board {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.notice-board__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    background: var(--color-primary-dark);
    padding: 0.9rem 1.1rem;
}

.notice-board__heading span,
.notice-board__heading a {
    font-weight: 800;
}

.notice-board__heading a {
    color: #fff;
    font-size: 0.9rem;
}

.notice-scroll {
    height: 210px;
    overflow: hidden;
    position: relative;
}

.notice-scroll ul {
    list-style: none;
    margin: 0;
    padding: 1rem 1.25rem;
    animation: noticeScroll 16s linear infinite;
}

.notice-scroll:hover ul {
    animation-play-state: paused;
}

.notice-scroll li {
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    padding: 0.85rem 0;
}

.notice-scroll li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
    margin-right: 0.6rem;
}

@keyframes noticeScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.notice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}

.notice-category {
    color: var(--color-secondary);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.notice-item time {
    color: var(--color-muted);
    flex: 0 0 auto;
    font-weight: 700;
}

.grievance-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.grievance-panel span {
    color: var(--color-primary-dark);
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.grievance-panel p {
    color: var(--color-muted);
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-tile {
    display: flex;
    align-items: end;
    min-height: 210px;
    color: #fff;
    font-weight: 800;
    background:
        linear-gradient(180deg, rgba(15, 76, 129, 0.15), rgba(8, 52, 92, 0.85)),
        #6d879e;
    border-radius: 8px;
    padding: 1rem;
}

.page-hero {
    color: #fff;
    background:
        linear-gradient(115deg, rgba(8, 52, 92, 0.96), rgba(15, 76, 129, 0.86)),
        #0f4c81;
    padding: 4rem 0;
}

.page-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0.6rem 0 0;
}

.content-text {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.content-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.content-card h2 {
    color: var(--color-primary-dark);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.content-card ul {
    color: var(--color-muted);
    margin: 0;
    padding-left: 1.1rem;
}

.content-card li + li {
    margin-top: 0.45rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.link-card {
    color: var(--color-primary-dark);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 800;
    padding: 1rem 1.2rem;
}

.link-card:hover {
    color: var(--color-primary);
    box-shadow: 0 14px 28px rgba(8, 52, 92, 0.1);
}

.contact-card p {
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    color: var(--color-primary);
    font-weight: 800;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(201, 154, 46, 0.12)),
        #eef5fb;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow: hidden;
}

.image-placeholder img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.faculty-intro {
    max-width: 820px;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.faculty-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.faculty-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    color: var(--color-primary);
    font-weight: 800;
    background: #eaf2f8;
}

.faculty-card__body {
    padding: 1.2rem;
}

.faculty-card h2 {
    color: var(--color-primary-dark);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.faculty-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: #0b253f;
    padding: 4rem 0 0;
}

.footer-title,
.footer-heading {
    color: #fff;
    font-weight: 800;
}

.footer-title {
    font-size: 1.4rem;
}

.footer-heading {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li {
    margin-top: 0.55rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links a::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 0.28rem solid transparent;
    border-bottom: 0.28rem solid transparent;
    border-left: 0.36rem solid #fff;
    flex: 0 0 auto;
    opacity: 0.95;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    margin-top: 3rem;
    padding: 1.25rem 0;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .dropdown-submenu > .dropdown-menu {
        border: 0;
        box-shadow: none;
        margin: 0.25rem 0 0 1rem;
        padding-top: 0;
        position: static;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .brand-subtitle {
        font-size: 0.88rem;
    }

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

    .content-grid {
        grid-template-columns: 1fr;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 575.98px) {
    .brand-logo {
        width: 54px;
        height: 54px;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        font-size: 0.74rem;
    }

    .hero-slide,
    .section {
        padding: 3.5rem 0;
    }

    .hero-slide {
        min-height: 620px;
    }

    .hero-panel__grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .notice-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .faculty-grid {
        grid-template-columns: 1fr;
    }
}
