@media (min-width: 992px) {
    .subpage-sidebar {
        position: sticky;
        top: var(--sticky-sidebar-top);
        align-self: flex-start;
    }
}

@media (min-width: 1200px) {
    .mnav, .mnav-overlay { display: none !important; }
    .brand-bar { background: #fff; }
    .brand-logo-link { position: absolute; left: 0; background: transparent; padding: 0; border-radius: 0; }
    .brand-logo { height: 70px; }
    .ft-logo { height: 90px; }
    .site-footer { padding-top: 5rem; }
    .site-header { position: static; }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .top-bar {
        font-size: 0.78rem;
    }
    .org-menu > li > a {
        font-size: 0.78rem;
        padding: 2px 5px;
    }
    .main-nav-link {
        font-size: 0.8rem;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }
    .main-nav-link .fa-angle-down {
        font-size: 0.65rem;
    }
    .btn-apply {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem !important;
    }
    .nav-search-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    .nav-search-btn i {
        font-size: 0.85rem !important;
    }
    .nav-item:last-child .dropdown-custom,
    .nav-item:nth-last-child(2) .dropdown-custom {
        left: auto;
        right: 0;
    }
}

@media (max-width: 991.98px) {
    .subpage-stats__wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .subpage-stat:nth-child(2) {
        border-right: 0;
    }
    .subpage-stat:nth-child(-n+2) {
        border-bottom: var(--bs-border-width) solid rgba(0, 51, 197, .1);
    }
    .science-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .science-bento__item--big {
        grid-column: span 2;
    }
    .coop-flow::before {
        display: none;
    }
    .student-link-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .student-service-grid {
        grid-template-columns: 1fr;
    }
    .student-service-grid a,
    .student-service-grid a:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 767.98px) {
    .site-footer {
        padding-top: 2rem;
    }
    .science-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    .science-cta__actions {
        width: 100%;
        flex-direction: column;
    }
    .science-cta__actions .coop-btn {
        width: 100%;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .coop-flow .row > div {
        width: 100%;
    }
    .coop-flow .row > div:last-child {
        margin-right: auto;
        margin-left: auto;
    }
    .coop-statband__grid {
        --bs-gutter-x: .75rem;
        --bs-gutter-y: .75rem;
    }
    .coop-statband__grid > div {
        width: 100%;
    }
    .coop-stat {
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: .5rem;
        padding: .75rem 1rem;
        border-radius: .75rem;
        text-align: left;
    }
    .coop-stat i {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: .625rem;
        font-size: 1.125rem;
    }
    .coop-statband strong {
        font-size: 1.75rem;
    }
    .coop-statband small {
        margin-top: .25rem;
        font-size: .625rem;
        line-height: 1.25;
    }
    .document-search-card .p-3 {
        padding: 1rem !important;
    }
    .document-card-head,
    .document-result-head {
        padding: .5rem 1rem;
    }
    .document-table {
        min-width: 0;
    }
    .document-table thead th,
    .document-table tbody td {
        padding: .5rem;
    }
    .document-stt {
        width: 3rem;
    }
    .document-action-col {
        display: none;
    }
    .document-meta {
        flex-direction: column;
        gap: .25rem;
    }
    .page-slide,
    .page-slide__item {
        min-height: 20rem;
    }
    .page-slide__swiper,
    .page-slide__swiper .swiper-wrapper,
    .page-slide__item {
        height: 20rem;
    }
    .page-slide__media-link,
    .page-slide__media {
        height: 20rem;
    }
    .page-slide__content {
        bottom: 0;
        padding-bottom: 3rem;
    }
    .page-slide--empty {
        padding-bottom: 3rem;
    }
    .page-slide__watermark {
        right: -1.5rem;
        bottom: -2.25rem;
    }
    .subpage-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .subpage-section--pt-0 {
        padding-top: 0;
    }
    .subpage-stats__wrap {
        grid-template-columns: 1fr;
        gap: 1rem;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
    .subpage-stat,
    .subpage-stat:nth-child(2) {
        background: var(--white);
        border: var(--bs-border-width) solid rgba(0, 51, 197, .1);
        border-radius: 1rem;
        box-shadow: 0 1.125rem 3.125rem rgba(0, 51, 197, .08);
    }
    .subpage-stat:last-child {
        border: var(--bs-border-width) solid rgba(0, 51, 197, .1);
    }
    .subpage-feature {
        min-height: 18rem;
    }
    .science-bento {
        grid-template-columns: 1fr;
    }
    .science-bento__item,
    .science-bento__item--big {
        grid-column: span 1;
        grid-row: span 1;
    }
    .coop-cta {
        padding: 2.25rem 1.5rem;
    }
    .crumbbar .container {
        align-items: flex-start;
    }
    .student-tabs {
        gap: .375rem;
    }
    .student-tabs .nav-link {
        padding: .4375rem .75rem;
        font-size: .75rem;
    }
    .student-page .student-news-list {
        padding: .375rem .875rem;
    }
    .student-page .staff-news-item {
        align-items: flex-start;
    }
    .student-news-thumb {
        width: 4.25rem;
        height: 3.125rem;
    }
    .student-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .student-story-section,
    .student-handbook-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .news-detail-main h1 {
        font-size: 1.5rem;
    }
    .news-detail-meta {
        gap: .625rem;
        flex-direction: column;
    }
    .news-list-item {
        flex-direction: column;
    }
    .news-list-thumb {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .media-page .media-thumb--small,
    .media-list-page .media-thumb--small {
        width: 6.5rem;
        min-width: 6.5rem;
    }
}

/* =========================================================
   Responsive styles for News & Events Hub Page (.news-sukien-page)
   ========================================================= */
/* Tablet / iPad Portrait (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .news-sukien-page .side-news-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
        height: auto;
    }
    .news-sukien-page .side-news-card {
        height: 100%;
        padding: 0.75rem 1rem !important;
    }
    .news-sukien-page .side-news-thumb {
        width: 90px !important;
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
    .news-sukien-page .side-news-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        height: auto;
    }
    .news-sukien-page .side-news-card {
        padding: 0.625rem 0.875rem !important;
    }
    .news-sukien-page .side-news-thumb {
        width: 85px !important;
    }
    .news-sukien-page .news-featured-card .card-body {
        padding: 1rem !important;
    }
}

/* Desktop & iPad Landscape (>= 992px) */
@media (min-width: 992px) {
    .news-sukien-page .side-news-list {
        display: flex;
        flex-direction: column;
        height: 100%;
        gap: 0.65rem;
    }
    .news-sukien-page .side-news-card {
        flex: 1 1 0;
        min-height: 0;
        display: flex;
        align-items: center;
        padding: 0.5rem 0.875rem !important;
    }
    .news-sukien-page .side-news-thumb {
        width: 95px !important;
    }
}
@media (min-width: 1400px) {
    .news-sukien-page .side-news-card {
        padding: 0.625rem 1rem !important;
    }
    .news-sukien-page .side-news-thumb {
        width: 105px !important;
    }
}
