:root {
    --primary: #012951;
    --accent: #ea6645;
    --footer-bg: #012951;
    --footer-bottom-bg: #012447;
    --text-color: #333;
    --light-bg: #f7f7f7;
    --white: #ffffff;
}

#cms-breadcrumb { display: none; }

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

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 0.5rem + 0.5vw, 16px);
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

#wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container-wide {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.info {
    padding: 10px 20px;
}

main {
    padding-top: 145px;
}
main.has-hero-carousel {
    padding-top: 0;
}

#a-mission-defined-by-possibility, #nitt-stats, #news-grid, #academics, #schools, #research, #campus-life, #arts, #events, #health-care, #athletics, #admission {
    position: relative;
    z-index: 1;
    background: var(--white);
}

#a-mission-defined-by-possibility {
    margin-top: 100vh;
    margin-top: 100dvh;
    padding-top: 145px;
    padding-bottom: 60px;
}

#page-footer {
    position: relative;
    z-index: 1;
}

.info span {
    display: block;
}

/* ========== HEADER OVERLAY ========== */
.navigation-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: background 0.3s ease;
}

.top-shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 22vh;
    background: linear-gradient(to bottom, rgba(0, 10, 30, 0.7) 0%, rgba(1,41,81,0.6) 33%, rgba(1,41,81,0.4) 66%, rgba(1,41,81,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.navigation-wrapper.scrolled .secondary-navigation-wrapper {
    background: rgb(1, 41, 81);
}

.navigation-wrapper.scrolled .nav-header {
    background: rgb(1, 41, 81);
}

.navigation-wrapper.scrolled .primary-navigation-wrapper {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.navigation-wrapper.scrolled .main-nav::before {
    background: #fff;
}

.navigation-wrapper.scrolled .main-nav .nav-list > li > a {
    color: var(--primary);
    text-shadow: none;
}

.navigation-wrapper.scrolled .main-nav .nav-list > li.has-dropdown .dropdown-toggle,
.navigation-wrapper.scrolled .main-nav .nav-list > li.has-mega-menu .dropdown-toggle {
    color: var(--primary);
}

/* ========== SECONDARY NAV ========== */
.secondary-navigation-wrapper {
    width: 100%;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease;
}

.secondary-navigation-wrapper .container-wide {
    max-width: none;
    padding: 0 5vw;
}

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

.secondary-nav-inner ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.secondary-nav-inner ul li a {
    color: var(--white);
    padding: 8px 10px;
    display: inline-block;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.secondary-nav-inner ul li a:hover {
    color: var(--accent);
}

.navigation-wrapper .secondary-navigation-wrapper ul li a .fa {
    font-size: 14px;
    color: #fff;
}

.secondary-nav-search button {
    background: none;
    border: none;
    color: var(--white);
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
}

.secondary-nav-search button:hover {
    color: var(--accent);
}

/* ========== NAV MORE DROPDOWN ========== */
.nav-more {
    position: relative;
}
.secondary-nav-inner .nav-more-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary);
    min-width: auto;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    z-index: 10;
}
.secondary-nav-inner .nav-more.open .nav-more-menu {
    display: block;
}
.nav-more-menu li {
    display: block;
}
.nav-more-menu li a {
    display: block;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    white-space: nowrap;
    color: var(--white);
}
.nav-more-menu li a:hover {
    color: var(--accent);
}
@media (min-width: 769px) {
    .secondary-nav-inner .nav-more-trigger {
        display: none;
    }
    .secondary-nav-inner .nav-more-menu {
        display: flex;
        position: static;
        background: none;
        box-shadow: none;
        min-width: auto;
    }
    .nav-more-menu li {
        display: list-item;
    }
    .nav-more-menu li a {
        padding: 8px 10px;
        border-bottom: none;
        white-space: normal;
    }
    .navigation-wrapper .secondary-navigation-wrapper .nav-more-menu li a .fa {
        font-size: 14px;
        color: #fff;
    }
}

/* ========== COLLAPSE ========== */
.collapse {
    display: none;
}

.collapse.in {
    display: block;
}

/* ========== PRIMARY NAV ========== */
.primary-navigation-wrapper {
    background: transparent;
    width: 100%;
    position: relative;
    transition: background 0.3s ease;
}

.primary-navigation-wrapper .container-wide {
    max-width: none;
    padding: 0 5vw;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    transition: background 0.3s ease;
}

.logo-desktop {
    display: block;
    width: 50vw;
}

.nav-header .logo {
    margin: 0 auto;
}

.logo-mobile {
    display: none;
}

.navbar-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    line-height: 1;
}

.navbar-toggle .hamburger-icon,
.navbar-toggle .close-icon {
    font-size: 20px;
    color: var(--primary);
}
.navbar-toggle .close-icon { display: none; }
.navbar-toggle.active .hamburger-icon { display: none; }
.navbar-toggle.active .close-icon { display: inline; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.main-nav .nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-nav .nav-list > li {
    position: relative;
}

.main-nav .nav-list > li.has-dropdown,
.main-nav .nav-list > li.has-mega-menu {
    display: inline-flex;
    align-items: center;
}

.main-nav .nav-list > li > a {
    display: block;
    padding: 12px 16px;
    color: var(--white);
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.main-nav .nav-list > li > a:hover {
    color: var(--accent);
}

.navigation-wrapper.scrolled .main-nav .nav-list > li > a:hover {
    color: var(--accent);
}

.main-nav .nav-list > li.has-dropdown .dropdown-toggle {
    color: var(--white);
}
.main-nav .nav-list > li.has-mega-menu .dropdown-toggle {
    color: var(--white);
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* ========== DROPDOWN MENU ========== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    z-index: 10;
}

.main-nav .nav-list > li:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== MEGA MENU ========== */
.has-mega-menu {
    position: static !important;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    z-index: 10;
}

.has-mega-menu:hover .mega-menu {
    display: block;
}

.mega-menu-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.mega-title {
    font-weight: 700;
    font-size: 14px;
    margin: 10px 0;
    color: var(--primary);
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.mega-title a {
    color: var(--primary);
}

.mega-cols {
    display: flex;
    gap: 30px;
}

.mega-col {
    flex: 1;
}

.mega-col li a {
    display: block;
    padding: 6px 0;
    color: var(--text-color);
    font-size: 13px;
}

.mega-col li a:hover {
    color: var(--accent);
}

/* ========== FOOTER ========== */
#page-footer {
    width: 100%;
    margin-top: auto;
}

#footer-content {
    background: var(--footer-bg);
    color: #ccc;
    padding: 40px 0 20px;
    position: relative;
}

#footer-content .container-wide,
#footer-bottom .container-wide {
    max-width: none;
    padding: 0 5vw;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col-wide {
    flex: 1.5;
    min-width: 180px;
}

.footer-col h4 {
    color: var(--white);
    font-size: clamp(0.875rem, 0.75rem + 0.4vw, 1rem);
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-col ul li {
    font-size: clamp(0.75rem, 0.68rem + 0.25vw, 0.8125rem);
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #ccc;
    font-size: clamp(0.75rem, 0.68rem + 0.25vw, 0.8125rem);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bg-layer {
    display: none;
}

#footer-bottom {
    background: var(--footer-bottom-bg);
    padding: 15px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright p {
    color: #ccc;
    font-size: 12px;
}

.copyright p a {
    color: #ccc;
}

.copyright p a:hover {
    color: var(--accent);
}

.copyright p span {
    display: block;
    font-size: 11px;
}

.footer-nav {
    display: flex;
    gap: 15px;
}

.footer-nav li a {
    color: #ccc;
    font-size: 12px;
}

.footer-nav li a:hover {
    color: var(--accent);
}

/* ========== SWIPER OVERRIDES ========== */
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

/* Scroll-down button */
.scroll-down {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgb(234, 102, 69);
    color: white;
    border: none;
    border-radius: 4px;
    width: auto;
    height: 48px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s, opacity 0.3s;
    padding: 0 20px;
}
.scroll-down:hover {
    transform: scale(1.1);
}
.scroll-down-hidden {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 768px) {
    .scroll-down { display: none; }
}

#hero-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: -2;
}

.heroSwiper {
    width: 100%;
    height: 100vh;
    height: 100dvh;
}

.heroSwiper .swiper-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.heroSwiper .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.7;
}

.heroSwiper .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

/* ========== MOBILE DRAWER ========== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    z-index: 40;
    background: var(--white);
    box-shadow: -2px 0 12px rgba(0,0,0,.15);
    transition: right .3s ease;
    overflow-y: auto;
}
.mobile-drawer.open { right: 0; }

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 30;
    display: none;
}
.mobile-drawer-overlay.open { display: block; }

.mobile-drawer .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 140px 0 0;
    margin: 0;
    border-top: 1px solid #e0e0e0;
}
.mobile-drawer .nav-list > li { width: 100%; }
.mobile-drawer .nav-list > li > a {
    font-size: 13px;
    padding: 10px 20px;
    color: var(--primary);
    display: block;
    font-weight: 600;
}
.mobile-drawer .nav-list > li.has-dropdown,
.mobile-drawer .nav-list > li.has-mega-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.mobile-drawer .nav-list > li.has-dropdown > a,
.mobile-drawer .nav-list > li.has-mega-menu > a {
    flex: 1;
    border-bottom: none;
    font-size: 13px;
    padding: 10px 20px;
}
.mobile-drawer .dropdown-toggle {
    padding: 10px 16px;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
}
.mobile-drawer .dropdown-toggle .caret { margin: 0; }
.mobile-drawer .nav-list > li.has-dropdown .dropdown-menu,
.mobile-drawer .nav-list > li.has-mega-menu .mega-menu {
    flex: 0 0 100%;
    position: static;
    box-shadow: none;
    display: none;
    width: 100%;
}
.mobile-drawer .dropdown-menu,
.mobile-drawer .mega-menu {
    position: static;
    box-shadow: none;
    display: none;
    width: 100%;
}
.mobile-drawer .nav-list > li.open > .dropdown-menu,
.mobile-drawer .nav-list > li.open > .mega-menu { display: block; }
.mobile-drawer .dropdown-menu li a {
    font-size: 12px;
    padding: 8px 20px;
    color: var(--primary);
}
.mobile-drawer .mega-menu li a {
    font-size: 12px;
    padding: 8px 20px;
    color: var(--primary);
}
.mobile-drawer .mega-cols { flex-direction: column; gap: 0; }

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 991px) {
    .navbar-toggle {
        display: block;
        padding: 6px 10px;
    }

    .nav-header {
        padding-top: 15px;
        padding-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        max-height: 70px;
    }

    .main-nav {
        display: none;
    }

    .secondary-nav-left,
    .secondary-nav-right {
        flex-wrap: wrap;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .navbar-toggle { border-color: var(--white); }
    .navbar-toggle .hamburger-icon,
    .navbar-toggle .close-icon { color: var(--white); }

    .navigation-wrapper { background: rgb(1, 41, 81); z-index: 50; }
    .navigation-wrapper .secondary-navigation-wrapper { background: rgb(1, 41, 81); }
    .navigation-wrapper .nav-header { background: rgb(1, 41, 81); }
    .navigation-wrapper .primary-navigation-wrapper { background: rgb(1, 41, 81); }
    .navigation-wrapper .main-nav .nav-list > li > a { color: var(--primary); text-shadow: none; font-weight: 600; }
    .navigation-wrapper.scrolled .secondary-navigation-wrapper,
    .navigation-wrapper.scrolled .nav-header,
    .navigation-wrapper.scrolled .primary-navigation-wrapper { background: rgb(1, 41, 81); }
    .navigation-wrapper.scrolled .main-nav .nav-list > li > a { color: var(--primary); text-shadow: none; font-weight: 600; }
    .navigation-wrapper.scrolled .main-nav::before { background: rgb(1, 41, 81); }
    .top-shadow { display: none; }
}

/* ========== STATS SECTION ========== */
#nitt-stats {
    padding: 80px 0;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.stats-row + .stats-row {
    margin-top: 32px;
}

.stat-col {
    flex: 1 1 100%;
    max-width: 100%;
}

@media (max-width: 767px) {
    .stat-col { flex: 1 1 calc(50% - 32px); max-width: calc(50% - 32px); }
    .stats-row-3 .stat-col:first-child { flex: 1 1 calc(100% - 32px); max-width: calc(100% - 32px); }
}

@media (min-width: 768px) {
    .stat-col { flex: 1 1 calc(25% - 32px); max-width: calc(25% - 32px); }
    .stats-row-3 .stat-col { flex: 1 1 calc(33.333% - 32px); max-width: calc(33.333% - 32px); }
}

@media (max-width: 767px) {
    .footer-grid { gap: 36px 20px; justify-content: center; }
    .footer-col,
    .footer-col-wide { flex: 0 0 calc(50% - 10px); min-width: 0; text-align: center; }
    .footer-col:nth-child(n+3),
    .footer-col-wide:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; }
}

.nitt-stat-card {
    text-align: center;
    padding: 24px 20px;
    background: var(--light-bg);
    border: 1px solid rgba(1,41,81,0.1);
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nitt-stat-label {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.nitt-stat-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.nitt-stat-number {
    color: var(--primary);
    font-size: clamp(1.875rem, 1.25rem + 1.5vw, 3rem);
    font-weight: 700;
    line-height: 1;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.nitt-stat-suffix {
    color: var(--accent);
    font-size: clamp(1.25rem, 0.75rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1;
}

/* ========== PANEL / MISSION SECTION ========== */
.panel {
    padding: 80px 5vw;
    text-align: center;
}

.panel.theme--white {
    background: var(--white);
}

.panel h2.center {
    font-size: clamp(1.6rem, 1rem + 2vw, 3.15rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.panel[data-type="position-stmt"],
.panel[data-type="call-to-action"] {
    padding: 0 5vw;
}

.panel[data-type="position-stmt"] {
    max-width: 1100px;
    margin: 0 auto;
}

.panel[data-type="position-stmt"] p {
    font-size: clamp(0.95rem, 0.75rem + 0.6vw, 1.25rem);
    line-height: 1.8;
    color: var(--text-color);
}

.panel[data-type="call-to-action"] {
    margin-top: 36px;
}

.panel[data-type="call-to-action"] a {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 1.4rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.panel[data-type="call-to-action"] a:hover {
    background: var(--accent);
}

/* ========== CAMPUS NEWS ========== */
.theme--fog {
    background: #f4f4f4;
}

#campus-life {
    background: #f4f4f4;
}

#campus-life header {
    text-align: center;
    margin-bottom: 40px;
}

#campus-life header h2.center {
    font-size: clamp(1.6rem, 1rem + 2vw, 3.15rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

#campus-life header p {
    font-size: clamp(0.85rem, 0.7rem + 0.4vw, 1.15rem);
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

#campus-life > .panel[data-type="posts"] {
    padding: 0 5vw;
}

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

.grid-container article:first-child,
.grid-container article:last-child {
    grid-column: span 2;
}

#campus-life .grid-container article {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,.15), 0 3px 3px rgba(0,0,0,.15);
    transition: box-shadow 0.3s ease-in;
}

#campus-life .grid-container article:hover {
    box-shadow: 0 0 10px rgba(0,0,0,.2), 0 7px 10px rgba(0,0,0,.2);
}

#campus-life .grid-container article.theme--choco {
    position: relative;
    background: transparent;
    min-height: 320px;
}

#campus-life .grid-container article.theme--choco figure.landscape {
    position: absolute;
    inset: 0;
    height: auto;
    aspect-ratio: auto;
}

#campus-life .grid-container article.theme--choco .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.15) 70%, transparent 100%);
    color: #fff;
}

#campus-life .grid-container article.theme--choco .content h3 a {
    color: #fff;
}

#campus-life .grid-container article.theme--choco::after {
    content: '';
    display: block;
    height: 320px;
}

#campus-life figure.landscape {
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

#campus-life figure.landscape a {
    display: block;
    width: 100%;
    height: 100%;
}

#campus-life figure.landscape picture {
    display: block;
    width: 100%;
    height: 100%;
}

#campus-life figure.landscape img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#campus-life .grid-container article:hover figure.landscape img {
    transform: scale(1.03);
}

#campus-life .content {
    padding: 16px;
}

#campus-life .post-meta {
    margin-bottom: 6px;
}

#campus-life .post-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin: 0;
}

#campus-life article.theme--choco .post-category {
    color: rgba(255,255,255,0.75);
}

#campus-life .content h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

#campus-life .content h3 a {
    color: var(--primary);
}

#campus-life .content h3 a:hover {
    color: var(--accent);
}

#campus-life > .panel[data-type="call-to-action"] {
    text-align: center;
    padding: 40px 5vw 0;
}

#campus-life > .panel[data-type="call-to-action"] a {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 4px;
}

#campus-life > .panel[data-type="call-to-action"] a:hover {
    background: var(--accent);
}

/* ========== NOTICES / CIRCULARS ========== */
#notices {
    background: #fff;
    padding: 120px 5vw;
}

#notices header {
    text-align: center;
    margin-bottom: 40px;
}

#notices header h2.center {
    font-size: clamp(1.6rem, 1rem + 2vw, 3.15rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.grid-container-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.card-notice {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,.15), 0 3px 3px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.card-notice-header {
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 20px;
    flex-shrink: 0;
}

.card-notice-body {
    padding: 4px 0;
    flex: 1;
    overflow-y: auto;
}

.card-notice-body::-webkit-scrollbar {
    width: 6px;
}

.card-notice-body::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.card-notice-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.card-notice-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.card-notice ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-notice li {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
}

.card-notice li:last-child {
    border-bottom: none;
}

.card-notice li:hover {
    background: #f8f9fa;
}

.card-notice a {
    color: #006cb8;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: inline;
}

.card-notice a:hover {
    text-decoration: underline;
    color: #00548f;
}

.card-notice a strong {
    font-weight: 600;
}

.badge-new {
    display: inline-block;
    background: #d00;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    line-height: 1.4;
}

/* ========== ACHIEVEMENTS & EVENTS ========== */
#achievements-events {
    padding: 120px 5vw;
}

#achievements-events header {
    text-align: center;
    margin-bottom: 40px;
}

#achievements-events header h2.center {
    font-size: clamp(1.6rem, 1rem + 2vw, 3.15rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.ae-section-heading {
    font-size: clamp(1.2rem, 0.75rem + 1.2vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 16px;
    max-width: 1400px;
}

.ae-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,.15), 0 3px 3px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    max-width: 1400px;
    margin: 0 auto 48px;
}

.ae-card:last-child {
    margin-bottom: 0;
}

.ae-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,.2), 0 7px 10px rgba(0,0,0,.2);
}

.ae-card-body {
    flex: 1;
    overflow: hidden;
    min-height: 160px;
}

.ae-swiper {
    width: 100%;
}

/* Author carousel card — matches nitt.edu event card style */
.ae-swiper .author {
    padding: 24px 32px;
}

.ae-swiper .author blockquote {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.ae-swiper .author figure.date {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.15;
    margin: 0;
}

.ae-swiper .author figure.date .fa-trophy {
    font-size: 1.3rem;
    color: #fff;
}

/* When figure contains fa-trophy (achievements) */
.ae-swiper .author figure.date:has(.fa-trophy) {
    background: var(--accent);
}

.ae-swiper .author .paragraph-wrapper {
    flex: 1;
    min-width: 0;
}

.ae-swiper .author .paragraph-wrapper .inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ae-swiper .upcoming-header {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.45;
}

.ae-swiper .upcoming-header .event_item {
    color: #006cb8;
    text-decoration: none;
    font-weight: 500;
}

.ae-swiper .upcoming-header .event_item:hover {
    text-decoration: underline;
    color: #00548f;
}

.ae-swiper .upcoming-header a.event_item {
    color: #006cb8;
    text-decoration: none;
    font-weight: 500;
}

.ae-swiper .upcoming-header a.event_item:hover {
    text-decoration: underline;
    color: #00548f;
}

.ae-swiper .author footer {
    font-size: 0.85rem;
    color: #888;
}

/* Swiper pagination inside card body */
.ae-pagination {
    position: relative !important;
    bottom: auto !important;
    padding: 8px 0 14px;
}

.ae-pagination .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 4px;
}

.ae-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* =============================================
   INNER PAGE LAYOUT (sidebar + content)
   ============================================= */
.page-with-sidebar {
    padding-top: 100px;
}
.cms-admin-boxed {
    padding-top: 100px;
}
.cms-admin-boxed .inner-content {
    padding: 0 24px 40px;
}

.inner-page-grid {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
    align-items: flex-start;
    min-height: calc(100vh - 148px);
}

/* --- Sidebar --- */
.inner-sidebar {
    background: #fff;
    padding: 0 0 20px;
    margin-top: 24px;
    box-shadow: 0 0 10px rgba(0,0,0,.15), 0 3px 3px rgba(0,0,0,.15);
    width: 20%;
    flex-shrink: 0;
}
.cms-menuhead {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
}
.sibling-menu-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    cursor: pointer;
}
.sibling-menu-parent-link {
    color: #fff;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    display: inline-block;
}
.sibling-menu-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    flex: 0 0 auto;
}
.sibling-menu-toggle .caret {
    transform: rotate(0deg);
    transition: transform .2s ease;
    color: #fff;
}
.sibling-menu-heading[aria-expanded="true"] .sibling-menu-toggle .caret,
.sibling-menu-toggle[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}
.inner-sidebar .sibling-menu-list.is-collapsed {
    display: none;
}
.inner-sidebar ul {
    padding: 0;
    margin: 5px 0 10px;
    list-style: none;
}
.inner-sidebar ul li {
    list-style: none;
    border-bottom: 1px dotted #ddd;
    margin: 0;
    padding: 0;
}
.inner-sidebar ul li a {
    display: block;
    padding: 8px 16px;
    color: #444;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.inner-sidebar ul li a:hover,
.inner-sidebar ul li a:focus {
    background: #e8e8e8;
    color: var(--primary);
}
.inner-sidebar ul li.active > a,
.inner-sidebar ul li a.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}
.inner-sidebar ul li.navigate > a::after {
    content: "\f0d7";
    font-family: FontAwesome;
    float: right;
    font-size: 10px;
    margin-top: 3px;
}
.inner-sidebar ul ul {
    margin: 0;
    padding: 0 0 0 16px;
    background: #fafafa;
}
.inner-sidebar ul ul li {
    border-bottom: 1px dotted #eee;
}
.inner-sidebar ul ul li a {
    padding: 6px 16px 6px 20px;
    font-size: 12px;
    color: #555;
}

/* --- Content area wrapper --- */
.inner-content {
    flex: 1;
    min-width: 0;
    padding: 0 0 40px;
    min-height: 420px;
    margin-top: 24px;
}

/* --- Content container (matches nitt_13inner exactly) --- */
#contentcontainer {
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1rem);
    background: #fff;
    padding: 24px;
    box-shadow: 0 0 10px rgba(0,0,0,.15), 0 3px 3px rgba(0,0,0,.15);
    color: #000;
}
#contentcontainer, #contentcontainer * {
    font-family: 'Open Sans', sans-serif !important;
}
#contentHeading {
    font-size: clamp(1.1rem, 0.75rem + 0.8vw, 1.75rem);
    color: teal;
    border-bottom: 2px solid #CCC;
    padding-left: 10px;
    font-weight: normal;
    text-align: inherit;
    clear: both;
    margin: 8px 0 22px 0;
}
#contentcontainer h1 {
    color: teal;
    font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
    border-bottom: 2px solid #CCC;
    padding-left: 10px;
    font-weight: normal;
    text-align: inherit;
    clear: both;
    margin: 8px 0 22px 0;
}
#contentcontainer p {
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1rem);
    line-height: 1.6;
    color: #505050;
    margin: 18px 0;
}
#contentcontainer h2 {
    color: #2083A4;
    font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.4rem);
    border-bottom: 2px solid #CCC;
    font-weight: normal;
    text-align: inherit;
    clear: both;
    margin: 22px 0 18px 0;
}
#contentcontainer h3 {
    color: #333;
    font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.25rem);
    border-left: 4px solid #333;
    padding-left: 10px;
    background-color: #EFEFEF;
    font-weight: normal;
    text-align: inherit;
    text-transform: capitalize;
    clear: both;
    margin: 18px 0;
}
#contentcontainer h4 {
    color: #505050;
    clear: both;
    font-weight: bold;
    margin: 12px 0;
}
#contentcontainer strong, #contentcontainer b {
    font-weight: bold;
}
#contentcontainer ol {
    color: #505050;
    margin-left: 24px;
}
#contentcontainer ol li {
    margin-left: 18px;
    padding-left: 6px;
    list-style-type: decimal;
}
#contentcontainer ul, #contentcontainer ol {
    margin-top: 8px;
    margin-bottom: 8px;
}
#contentcontainer ul {
    margin-left: 16px;
}
#contentcontainer ul li {
    list-style-type: circle;
    margin-left: 10px;
}
#contentcontainer li {
    font-size: clamp(0.85rem, 0.78rem + 0.25vw, 0.95rem);
    margin-top: 10px;
}
#contentcontainer a {
    color: #3B5998;
    border-bottom: 1px dotted #3B5998;
    line-height: 1.4;
}
#contentcontainer a:hover {
    color: #d97431;
    border-bottom: 1px dotted #d97431;
}
#contentcontainer img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 2px solid rgba(200,200,200,0.5);
    box-shadow: 1px 1px 5px 1px rgba(200,200,200,1);
    margin: 10px;
}

/* Academic Departments page (facindex) */
.left { float: left; }
.right { float: right; }
.clearer { clear: both; width: 100%; height: 0; font-size: 0; }
.half {
    display: flex;
    flex-wrap: wrap;
}

#facindex { overflow: hidden; padding: 8px; }
#facindex h1 {
    color: teal;
    font-size: 1.2em;
    font-weight: bold;
    margin: 5pt 0 0 5px;
    text-align: left;
    background-color: transparent;
    border: none;
    padding-left: 0;
    clear: none;
}
#facindex img { float: left; }
#facindex a { color: #000; text-decoration: none; }
#facindex p { padding: 0 1em .5em .65em; }

.facitem {
    box-sizing: content-box;
    color: #111;
    cursor: pointer;
    font-size: 80%;
    text-align: left;
    background: #efefef;
    border-radius: 20px;
    width: 40%;
    margin: 2%;
    padding: 2%;
    overflow: hidden;
}
#contentcontainer .facitem img {
    float: left;
    max-width: none;
    width: 100px !important;
    height: 100px !important;
    border-radius: 50%;
    padding: 0;
    margin: 20px;
    border: 2px solid rgba(200,200,200,0.5);
    box-shadow: 1px 1px 5px 1px rgba(200,200,200,1);
}
.facitem:hover {
    background: #e4e4e4;
    border-radius: 20px;
}
.half .clearer { display: none; }

/* Content buttons */
section.panel > a:only-child,
section.panel > p:only-child > a,
section.panel > div:only-child > a,
#more-about-nitt a,
[data-type="call-to-action"] a {
    display: inline-block;
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.05rem);
    padding: clamp(10px, 0.6rem + 0.4vw, 16px) clamp(20px, 1.2rem + 0.6vw, 32px);
    width: auto;
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
}
#contentcontainer a[style*="background"],
#contentcontainer a[style*="padding"]:not([style*="padding:0"]),
#contentcontainer .btn-wrap a,
#contentcontainer .read-more,
#contentcontainer .more-link {
    display: inline-block;
    font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.05rem);
    padding: clamp(10px, 0.6rem + 0.4vw, 16px) clamp(20px, 1.2rem + 0.6vw, 32px);
    width: auto;
}
table.nitttable {
    border-collapse: collapse;
    font-size: 13px;
    margin: 8px 0;
    text-align: left;
    width: 100%;
}
table.nitttable th {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
}
table.nitttable td {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    color: #333;
    padding: 10px 12px;
}
table.nitttable tbody tr:hover td {
    background: #f5f7fa;
}

.cms-admin-boxed .cke_contents {
    height: min(50vw, 600px) !important;
    min-height: 300px;
}

@media (max-width: 768px) {
    .inner-page-grid {
        padding: 0;
    }
    .inner-content {
        padding: 0 0 40px;
        margin-top: 0;
    }
    .cms-admin-boxed .inner-content {
        padding: 0 0 40px;
    }
    .cms-admin-boxed #contentcontainer {
        max-width: 100%;
        overflow-x: auto;
    }
    .inner-sidebar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 260px;
        height: 100%;
        z-index: 5;
        padding-top: 140px;
        transition: right .3s ease;
        box-shadow: -2px 0 12px rgba(0,0,0,.15);
        overflow-y: auto;
    }
    .inner-sidebar.open {
        right: 0;
    }
    .inner-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 4;
        display: none;
    }
    .inner-sidebar-overlay.open {
        display: block;
    }
    .secondary-nav-inner ul li a { padding: 6px 6px; font-size: 11px; }
    .secondary-nav-inner .nav-more-trigger { display: inline-block; }
    .secondary-nav-right { display: none; }
    #contentcontainer .facitem img { float: left; margin: 0 12px 0 0; }
    .facitem { width: 100%; margin: 8px 0; text-align: left; }
    .facitem h1, .facitem p { margin-left: 124px; }
}

@media (max-width: 480px) {
    .facitem h1, .facitem p { margin-left: 0; }
}

@media (max-width: 1200px) {
    .grid-container { grid-template-columns: repeat(3, 1fr); }
    .grid-container-3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    main.has-hero-carousel { padding-top: 120px; }
    #hero-carousel { position: relative; height: 40vh; }
    .heroSwiper { height: 40vh; }
    .grid-container { grid-template-columns: repeat(2, 1fr); }
    .grid-container-3col { grid-template-columns: 1fr; }
    .card-notice { max-height: 450px; }
    .ae-swiper .author { padding: 20px; }
    .ae-swiper .author blockquote { gap: 14px; }
    #a-mission-defined-by-possibility { margin-top: 0; }
}

@media (max-width: 480px) {
    .grid-container { grid-template-columns: 1fr; }
    .grid-container article:first-child,
    .grid-container article:last-child { grid-column: auto; }
    .secondary-nav-inner ul li a { padding: 4px 4px; font-size: 10px; }
    .ae-swiper .author { padding: 16px; }
    .ae-swiper .author blockquote { flex-direction: column; align-items: center; text-align: center; }
    section.panel > a:only-child,
    section.panel > p:only-child > a,
    section.panel > div:only-child > a,
    #more-about-nitt a,
    [data-type="call-to-action"] a {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    #contentcontainer a[style*="background"],
    #contentcontainer a[style*="padding"]:not([style*="padding:0"]),
    #contentcontainer .btn-wrap a,
    #contentcontainer .read-more,
    #contentcontainer .more-link {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}
