/* ============================================================
   CDPH Custom Overrides
   Central Department of Public Health – Tribhuvan University
   ============================================================ */

/* ── LOGO ── */
.logo {
    margin-top: 10px !important;
}

.logo img {
    max-height: 100px;
    width: auto;
}

/* ── TOP BAR ── */
.top-bar {
    background: #1a3c5e;
    min-height: 56px;
    padding: 9px 0;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(12, 36, 59, 0.22);
}

.top-bar .row {
    min-height: 38px;
}

.top-bar .top-left a,
.top-bar .top-left span {
    color: #fff;
    margin-right: 18px;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar .top-left a:hover {
    color: #fff;
}

.top-bar .top-left i {
    margin-right: 7px;
    color: #8ed3f5;
    font-size: 15px;
}

.top-bar .top-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.top-bar .top-right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    color: #1a3c5e;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #fff;
    padding: 7px 12px;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.top-bar .top-right a:hover,
.top-bar .top-right a:focus-visible {
    background: #4da8da;
    border-color: #4da8da;
    color: #fff;
    transform: translateY(-1px);
}

@media (min-width: 992px) {
    .header {
        top: 56px;
    }
}

@media (max-width: 991px) {
    .top-bar {
        padding: 10px 0;
    }

    .top-bar .top-left,
    .top-bar .top-right {
        text-align: center;
    }

    .top-bar .top-right {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 9px;
    }
}

/* ── HEADER ── */
.header-inner {
    padding: 2px 0;
    position: relative;
}

/* Prevent accidental wrapping */
.menu-bar {
    display: flex;
    align-items: center;
}

/* ── DESKTOP ONLY: nav layout ── */
@media (min-width: 992px) {
    .header .navbar {
        float: right;
        padding-right: 0;
    }

    .navbar-collapse {
        display: block;
        padding: 0 !important;
    }

    /* Force single line nav */
    .nav.menu.navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        white-space: nowrap !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav.menu.navbar-nav>li {
        display: block !important;
        float: left !important;
        margin: 0 !important;
    }

    .nav.menu.navbar-nav>li>a {
        font-size: 14px !important;
        padding: 15px 5px !important;
        letter-spacing: -0.2px;
        white-space: nowrap !important;
        display: block !important;
    }

    .nav.menu.navbar-nav>li>a i {
        margin-right: 3px !important;
        font-size: 11px !important;
    }
}

/* Wider nav column on desktop */
@media (min-width: 992px) {
    .col-lg-3.col-md-3 {
        max-width: 15%;
        flex: 0 0 15%;
    }

    .col-lg-9.col-md-9 {
        max-width: 85%;
        flex: 0 0 85%;
    }
}

/* Hide SlickNav on wider screens if it appears */
@media (min-width: 992px) {
    .slicknav_menu {
        display: none !important;
    }
}

/* Mobile menu SlickNav positioning */
.mobile-menu {
    display: none;
}

@media (max-width: 767px) {
    /* Logo and hamburger on same row */
    .header .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }

    .header .row > .col-lg-3 {
        flex: 0 0 auto;
        width: auto;
    }

    .header .row > .col-lg-9 {
        flex: 1;
        width: auto;
        max-width: none;
    }

    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
    }

    /* Hide the desktop nav and search on mobile */
    .header .navbar,
    .header .search-area {
        display: none !important;
    }

    /* Make the right column flex so mobile-menu fills it */
    .header .menu-bar {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }

    /* SlickNav button styling */
    .slicknav_btn {
        margin: 0 !important;
        float: none !important;
    }

    /* SlickNav dropdown panel: full width below header */
    .slicknav_nav {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;
        background: #1a3c5e !important;
        padding: 10px 0 !important;
    }
}

/* ── DROPDOWN ── */
.header .nav li .dropdown {
    width: auto !important;
    min-width: 250px !important;
}

.nav.menu.navbar-nav li ul.dropdown li a {
    font-size: 12px !important;
    padding: 8px 20px !important;
    white-space: nowrap !important;
    display: block !important;
}

/* ── SEARCH AREA ── */
.search-area {
    flex-shrink: 0;
}

/* ── HOD MESSAGE ── */
.hod-message {
    padding: 60px 0;
    background: #fff;
}

.hod-message .hod-content {
    padding-left: 30px;
}

.hod-message .hod-content h3 {
    color: #1a3c5e;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.hod-message .hod-content h3::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 3px;
    width: 50px;
    background: #4da8da;
}

.hod-message .hod-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hod-message .hod-image img {
    width: 100%;
}

.hod-message .hod-info {
    margin-top: 15px;
    text-align: center;
}

.hod-message .hod-info h4 {
    color: #1a3c5e;
    font-weight: 700;
    margin-bottom: 2px;
}

.hod-message .hod-info p {
    color: #4da8da;
    font-size: 14px;
    font-weight: 500;
}

/* ── BREADCRUMB ── */
.breadcrumbs h2 {
    font-size: 24px;
}

/* ── FOOTER – remove Eduland reference from colors ── */
.footer-bottom .copyright p {
    font-size: 13px;
}

/* ── RESPONSIVE: collapse label on mobile ── */
@media (max-width: 991px) {
    .nav.menu.navbar-nav {
        flex-wrap: wrap !important;
    }

    .nav.menu.navbar-nav>li>a {
        padding: 12px 10px !important;
        font-size: 13px !important;
    }
    .notice-marquee{
        position: relative;
        top: 3%;
    }
}

/* ── FOOTER WIDGETS ── */
.footer .single-widget .office-hours {
    margin-top: 20px;
    color: #fff;
}

.footer .single-widget .office-hours h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #4da8da;
}

.footer .single-widget .office-hours p {
    font-size: 13px;
    margin-bottom: 5px;
}

.footer .single-widget .social {
    margin-top: 20px;
}

/* ── CBEL PAGE ── */
.cbel-content .section-title h2 {
    font-size: 30px !important;
    border-bottom: 2px solid #2331b1;
    padding-bottom: 15px;
    display: inline-block;
}

.cbel-body-text .content-block h2 {
    color: #2331b1 !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

.cbel-body-text .content-block p {
    font-size: 16px;
    line-height: 1.8;
}

.cbel-body-text .content-block .list {
    margin-left: 20px;
    font-size: 16px;
    line-height: 2;
}

.cbel-body-text .content-block .list i {
    color: #2331b1;
    margin-right: 10px;
}

.cbel-body-text .coordinator-info {
    padding: 25px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-left: 5px solid #2331b1 !important;
    margin-top: 30px;
}

.cbel-body-text .coordinator-info p {
    font-size: 18px !important;
    color: #333 !important;
    font-weight: 500 !important;
}

/* ── SECTION HELPERS ── */
.bg-light-blue {
    background: #f4f7fb !important;
}

.img-fluid-round {
    width: 100% !important;
    border-radius: 6px !important;
}

.img-fluid-full {
    width: 100% !important;
}
/* Flex container: clean layout, no box shadow or rounded corners */
.cbel-inline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    /* background: #f4f7fb; subtle background */
    padding: 0; /* remove extra padding for boxy look */
}

/* Image styling */
.cbel-inline-image {
    flex: 0 0 350px; /* adjust size as needed */
}

.cbel-inline-image img {
    width: 100%;
    border-radius: 6px;
      opacity: 1;              /* start invisible */
    /* transform: translateY(20px);
    transition: all 0.8s ease-out; */
}

/* Text container */
.cbel-inline-text {
    flex: 1;
}

/* Heading */
.cbel-inline-text h2 {
    color: #1a3c5e !important;
    font-weight: 700;
    font-size: 28px;
    margin-top: 0; /* aligns with top of image */
    margin-bottom: 15px;
}

/* Paragraph */
.cbel-inline-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* Modern list styling */
.modern-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.modern-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.modern-list li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: #1a3c5e;
    font-size: 18px;
}
/* Practicum modern section */

.practicum-section{
    background:#f7f9fc;
    padding:40px;
    border-radius:10px;
}

/* Layout */
.practicum-row{
    display:flex;
    flex-wrap:wrap;
    gap:40px;
    align-items:center;
}

/* Image */
.practicum-image{
    flex:0 0 380px;
}

.practicum-image img{
    width:100%;
    border-radius:10px;
    box-shadow:0 8px 25px rgba(0,0,0,0.1);
    transition:transform .4s ease;
}

.practicum-image img:hover{
    transform:scale(1.05);
}

/* Content */
.practicum-content{
    flex:1;
}

.practicum-content h2{
    color:#1a3c5e;
    font-size:30px;
    font-weight:700;
    margin-bottom:20px;
}

.practicum-content p{
    font-size:16px;
    line-height:1.8;
    color:#444;
    margin-bottom:15px;
}

/* Coordinator highlight box */

.practicum-highlight{
    margin-top:25px;
    padding:15px 20px;
    background:#ffffff;
    border-left:5px solid #1a3c5e;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    display:flex;
    align-items:center;
    gap:10px;
    font-size:16px;
}

.practicum-highlight i{
    color:#1a3c5e;
    font-size:20px;
}

/* ── MOTION SYSTEM ── */
:root {
    --cdph-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --cdph-motion-fast: 220ms;
    --cdph-motion-medium: 650ms;
    --cdph-motion-slow: 1200ms;
}

@keyframes cdph-fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cdph-slide-down {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cdph-soft-zoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1);
    }
}

@keyframes cdph-glow-pulse {
    0%,
    100% {
        box-shadow: 0 10px 24px rgba(26, 60, 94, 0.18);
    }

    50% {
        box-shadow: 0 14px 34px rgba(77, 168, 218, 0.32);
    }
}

.top-bar,
.header {
    animation: cdph-slide-down var(--cdph-motion-medium) var(--cdph-ease-out) both;
}

.header {
    animation-delay: 120ms;
}

.home-slider .single-slider,
.breadcrumbs {
    overflow: hidden;
}

.home-slider .slider-image,
.breadcrumbs.overlay::before {
    animation: cdph-soft-zoom 1800ms var(--cdph-ease-out) both;
    transform-origin: center;
}

.slider-content,
.breadcrumbs .bread-list,
.breadcrumbs h2,
.section-title,
.about-cdph .about-img,
.about-cdph .about-content,
.hod-message .hod-image,
.hod-message .hod-content,
.cbel-inline-image,
.cbel-inline-text,
.practicum-image,
.practicum-content {
    animation: cdph-fade-up var(--cdph-motion-medium) var(--cdph-ease-out) both;
}

.section-title {
    animation-delay: 120ms;
}

.single-feature,
.single-course,
.single-event,
.news-item,
.event-item,
.newsletter-card,
.single-widget,
.client-slider .single-slider {
    animation: cdph-fade-up var(--cdph-motion-medium) var(--cdph-ease-out) both;
    transition:
        transform var(--cdph-motion-fast) ease,
        box-shadow var(--cdph-motion-fast) ease,
        border-color var(--cdph-motion-fast) ease;
}

.single-feature:nth-child(2),
.single-course:nth-child(2),
.single-event:nth-child(2),
.news-item:nth-child(2),
.event-item:nth-child(2),
.newsletter-card:nth-child(2),
.single-widget:nth-child(2) {
    animation-delay: 90ms;
}

.single-feature:nth-child(3),
.single-course:nth-child(3),
.single-event:nth-child(3),
.news-item:nth-child(3),
.event-item:nth-child(3),
.newsletter-card:nth-child(3),
.single-widget:nth-child(3) {
    animation-delay: 180ms;
}

.single-feature:nth-child(4),
.single-course:nth-child(4),
.single-event:nth-child(4),
.news-item:nth-child(4),
.event-item:nth-child(4),
.newsletter-card:nth-child(4),
.single-widget:nth-child(4) {
    animation-delay: 270ms;
}

.single-feature:hover,
.single-course:hover,
.single-event:hover,
.newsletter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(26, 60, 94, 0.16);
}

.single-course .course-head,
.single-event .event-img,
.about-cdph .about-img,
.hod-message .hod-image,
.cbel-inline-image,
.practicum-image {
    overflow: hidden;
}

.single-course img,
.single-event img,
.about-cdph .about-img img,
.hod-message .hod-image img,
.cbel-inline-image img,
.practicum-image img {
    transition:
        transform var(--cdph-motion-slow) var(--cdph-ease-out),
        filter var(--cdph-motion-fast) ease;
}

.single-course:hover img,
.single-event:hover img,
.about-cdph .about-img:hover img,
.hod-message .hod-image:hover img,
.cbel-inline-image:hover img,
.practicum-image:hover img {
    filter: saturate(1.08);
    transform: scale(1.06);
}

.header .nav li a,
.view-all-link,
.link-grid li a,
.footer a {
    transition:
        color var(--cdph-motion-fast) ease,
        transform var(--cdph-motion-fast) ease;
}

.header .nav li:hover > a,
.view-all-link:hover,
.link-grid li a:hover,
.footer a:hover {
    transform: translateY(-2px);
}

.btn,
.button .btn,
.slider-content .btn {
    transition:
        transform var(--cdph-motion-fast) ease,
        box-shadow var(--cdph-motion-fast) ease,
        background-color var(--cdph-motion-fast) ease;
}

.btn:hover,
.button .btn:hover,
.slider-content .btn:hover {
    animation: cdph-glow-pulse 1400ms ease-in-out infinite;
    transform: translateY(-3px);
}

.news-item .news-date,
.event-item .event-date-badge,
.modern-list li i,
.practicum-highlight i {
    transition:
        transform var(--cdph-motion-fast) ease,
        background-color var(--cdph-motion-fast) ease,
        color var(--cdph-motion-fast) ease;
}

.news-item:hover .news-date,
.event-item:hover .event-date-badge,
.modern-list li:hover i,
.practicum-highlight:hover i {
    transform: scale(1.08) rotate(-2deg);
}

.academic{
    margin-top: 20px;
}

/* ── NEWS POPUP ── */
.news-popup-modal .modal-dialog {
    max-width: 760px;
}

.news-popup-modal .modal-content {
    border: 1px solid #aeb5bd;
    border-radius: 3px;
    box-shadow: 0 24px 70px rgba(10, 28, 48, 0.32);
    overflow: hidden;
}

.news-popup-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #d7dce1;
    display: flex;
    min-height: 62px;
    padding: 13px 58px 13px 18px;
    position: relative;
}

.news-popup-header h2 {
    color: #2f343a;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.news-popup-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #777;
    display: flex;
    font-size: 22px;
    height: 42px;
    justify-content: center;
    opacity: 1;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 10px;
    transition: color 0.2s, transform 0.2s;
    width: 42px;
    z-index: 3;
    cursor: pointer;
}

.news-popup-close:hover,
.news-popup-close:focus-visible {
    color: #cf1307;
    transform: scale(1.08);
}

/* Slides */
.news-popup-slide {
    display: none;
}
.news-popup-slide.active {
    display: block;
}

.news-popup-document {
    background: #eef1f4;
    height: min(72vh, 680px);
    min-height: 430px;
    padding: 10px;
}

.news-popup-document img {
    background: #fff;
    border: 1px solid #34383c;
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.news-popup-body {
    background: #fff;
    height: 100%;
    overflow: auto;
    padding: 26px 30px;
}

@media (max-width: 575px) {
    .news-popup-modal .modal-dialog {
        margin: 16px;
    }
    .news-popup-header {
        min-height: 56px;
        padding: 11px 52px 11px 14px;
    }
    .news-popup-header h2 {
        font-size: 15px;
    }
    .news-popup-document {
        height: 70vh;
        min-height: 360px;
        padding: 6px;
    }
}

/* ── SITE GALLERY ── */
.site-gallery-section {
    background: #f4f7fb;
    padding: 40px 0;

}

.site-gallery-section .section-title {
    margin-bottom: 34px;
}

.site-gallery-section .section-title p {
    color: #5f6f82;
    font-size: 16px;
    line-height: 1.7;
    margin: 10px auto 0;
    max-width: 680px;
    text-align: center;
}

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

.gallery-album-card,
.gallery-photo-card {
    background: #fff;
    border: 1px solid rgba(26, 60, 94, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(26, 60, 94, 0.08);
    overflow: hidden;
}

.gallery-album-card a,
.gallery-photo-card a {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.gallery-album-card {
    transition:
        border-color var(--cdph-motion-fast) ease,
        box-shadow var(--cdph-motion-fast) ease,
        transform var(--cdph-motion-fast) ease;
}

.gallery-album-card:hover,
.gallery-album-card:focus-within {
    border-color: rgba(77, 168, 218, 0.55);
    box-shadow: 0 20px 45px rgba(26, 60, 94, 0.16);
    transform: translateY(-6px);
}

.gallery-album-image {
    aspect-ratio: 16 / 11;
    background: #dfe9f2;
    overflow: hidden;
    position: relative;
}

.gallery-album-image img,
.gallery-photo-card img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition:
        filter var(--cdph-motion-fast) ease,
        transform var(--cdph-motion-medium) var(--cdph-ease-out);
    width: 100%;
}

.gallery-album-card:hover img,
.gallery-album-card:focus-within img,
.gallery-photo-card:hover img,
.gallery-photo-card:focus-within img {
    filter: saturate(1.08);
    transform: scale(1.06);
}

.gallery-album-image::after,
.gallery-photo-card a::after {
    background: linear-gradient(180deg, rgba(26, 60, 94, 0) 35%, rgba(26, 60, 94, 0.78) 100%);
    content: "";
    inset: 0;
    opacity: 0.9;
    position: absolute;
    transition: opacity var(--cdph-motion-fast) ease;
}

.gallery-album-card:hover .gallery-album-image::after,
.gallery-album-card:focus-within .gallery-album-image::after,
.gallery-photo-card:hover a::after,
.gallery-photo-card:focus-within a::after {
    opacity: 1;
}

.gallery-photo-count {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 4px;
    bottom: 14px;
    color: #1a3c5e;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
    left: 14px;
    line-height: 1;
    padding: 9px 11px;
    position: absolute;
    z-index: 2;
}

.gallery-photo-count i {
    color: #cf1307;
}

.gallery-album-meta {
    padding: 20px 20px 22px;
}

.gallery-album-meta h3 {
    color: #1a3c5e;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
}

.gallery-view-link,
.gallery-back-link {
    align-items: center;
    color: #cf1307;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
}

.gallery-view-link i,
.gallery-back-link i {
    transition: transform var(--cdph-motion-fast) ease;
}

.gallery-album-card:hover .gallery-view-link i,
.gallery-album-card:focus-within .gallery-view-link i {
    transform: translateX(4px);
}

.gallery-detail-head {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.gallery-eyebrow {
    color: #cf1307;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gallery-detail-head h2 {
    color: #1a3c5e;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px;
}

.gallery-detail-head p {
    color: #5f6f82;
    font-size: 15px;
    margin: 0;
}

.gallery-back-link {
    background: #fff;
    border: 1px solid rgba(26, 60, 94, 0.12);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(26, 60, 94, 0.08);
    flex-shrink: 0;
    padding: 12px 16px;
    transition:
        border-color var(--cdph-motion-fast) ease,
        box-shadow var(--cdph-motion-fast) ease,
        transform var(--cdph-motion-fast) ease;
}

.gallery-back-link:hover,
.gallery-back-link:focus {
    border-color: rgba(207, 19, 7, 0.32);
    color: #cf1307;
    box-shadow: 0 14px 28px rgba(26, 60, 94, 0.12);
    transform: translateY(-3px);
}

.gallery-back-link:hover i,
.gallery-back-link:focus i {
    transform: translateX(-4px);
}

.gallery-photo-grid {
    column-count: 3;
    column-gap: 22px;
}

.gallery-photo-card {
    break-inside: avoid;
    margin-bottom: 22px;
}

.gallery-photo-card a {
    aspect-ratio: 4 / 3;
    background: #dfe9f2;
    position: relative;
}

.gallery-photo-card:nth-child(4n + 2) a {
    aspect-ratio: 3 / 4;
}

.gallery-photo-card:nth-child(5n) a {
    aspect-ratio: 16 / 10;
}

.gallery-zoom-icon {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: #1a3c5e;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -42%) scale(0.92);
    transition:
        opacity var(--cdph-motion-fast) ease,
        transform var(--cdph-motion-fast) ease;
    width: 46px;
    z-index: 2;
}

.gallery-photo-card:hover .gallery-zoom-icon,
.gallery-photo-card:focus-within .gallery-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-empty-state {
    background: #fff;
    border: 1px solid rgba(26, 60, 94, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(26, 60, 94, 0.08);
    margin: 0 auto;
    max-width: 560px;
    padding: 44px 30px;
    text-align: center;
}

.gallery-empty-state i {
    align-items: center;
    background: #e7f4ff;
    border-radius: 50%;
    color: #1a3c5e;
    display: inline-flex;
    font-size: 30px;
    height: 72px;
    justify-content: center;
    margin-bottom: 18px;
    width: 72px;
}

.gallery-empty-state h3 {
    color: #1a3c5e;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.gallery-empty-state p {
    color: #5f6f82;
    margin: 0;
}

@media (max-width: 991px) {
    .gallery-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-photo-grid {
        column-count: 2;
    }

    .gallery-detail-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .site-gallery-section {
        padding: 50px 0;
    }

    .gallery-album-grid,
    .gallery-photo-grid {
        display: grid;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .gallery-photo-card {
        margin-bottom: 0;
    }

    .gallery-detail-head h2 {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }
}

/* ── SITE-WIDE RESPONSIVE LAYOUT ── */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

main {
    min-width: 0;
}

main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

main input,
main select,
main textarea {
    max-width: 100%;
}

.section {
    padding-block: clamp(42px, 5vw, 80px);
}

.section-title h2 {
    font-size: clamp(27px, 2.25vw, 38px);
    line-height: 1.2;
}

.breadcrumbs h2 {
    overflow-wrap: anywhere;
}

/* Stable fixed-header offset for laptops and desktop monitors. */
@media (min-width: 992px) {
    .top-bar {
        height: 56px;
    }

    .header {
        top: 56px !important;
    }

    .header-inner {
        min-height: 82px;
    }

    .logo {
        margin-top: 4px !important;
    }

    .logo img {
        height: 72px;
        max-height: 72px;
        max-width: 100%;
        object-fit: contain;
    }

    .notice-marquee {
        margin-top: 138px;
        top: 0 !important;
    }

    .home-slider {
        margin-top: 0;
    }
}

/* 15-inch laptop range: keep navigation compact and content balanced. */
@media (min-width: 992px) and (max-width: 1439px) {
    .header .nav.menu.navbar-nav > li > a {
        font-size: 12px !important;
        padding-inline: 4px !important;
    }

    .header .search-area {
        display: none;
    }

    .home-slider,
    .home-slider .single-slider {
        height: clamp(500px, 48vw, 600px);
    }

    .home-slider .slider-content {
        margin-top: clamp(210px, 21vw, 280px);
    }
}

/* Large 21–24-inch desktop screens. */
@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }

    .home-slider,
    .home-slider .single-slider {
        height: min(680px, 67vh);
    }

    .home-slider .slider-content {
        margin-top: clamp(250px, 29vh, 330px);
    }

    .home-slider .slider-title {
        font-size: 31px;
    }
}

/* Tablet and phone navigation. */
@media (max-width: 991px) {
    .top-bar {
        margin-top: 0;
        min-height: 0;
        position: relative;
    }

    .header {
        box-shadow: 0 3px 14px rgba(10, 28, 48, 0.16);
        position: sticky !important;
        top: 0 !important;
        z-index: 1030;
    }

    .header .navbar,
    .header .search-area {
        display: none !important;
    }

    .header .row {
        flex-wrap: nowrap;
    }

    .header .row > .col-lg-9 {
        flex: 1 1 auto;
        max-width: none;
        width: auto;
    }

    .mobile-menu,
    .slicknav_menu {
        display: flex !important;
    }

    .mobile-menu {
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }

    .slicknav_menu {
        align-items: center;
        background: transparent;
        justify-content: flex-end;
        padding: 0;
        width: 100%;
    }

    .slicknav_nav {
        background: #1a3c5e !important;
        left: 0;
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        padding: 10px 0 !important;
        position: fixed;
        right: 0;
        top: 62px;
        width: 100%;
        z-index: 9999;
    }

    .notice-marquee {
        margin-top: 0;
        top: 0 !important;
    }

    .home-slider {
        margin-top: 0;
    }

    .home-slider .slider-content {
        max-width: min(620px, 90vw);
    }

    .footer-officer-panel {
        gap: 28px !important;
    }
}

/* iPhone Pro Max and other modern phones. */
@media (max-width: 575px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .top-bar {
        margin-top: 0;
        padding: 8px 0;
    }

    .top-bar .row {
        display: block;
        min-height: 0;
    }

    .top-bar .top-left {
        display: flex;
        flex-wrap: wrap;
        font-size: 12px;
        gap: 5px 8px;
        justify-content: center;
        line-height: 1.35;
    }

    .top-bar .top-left a,
    .top-bar .top-left span {
        margin-right: 4px;
    }

    .top-bar .top-right {
        gap: 6px;
        margin-top: 8px;
    }

    .top-bar .top-right a {
        flex: 1 1 auto;
        font-size: 11px;
        min-height: 32px;
        padding: 5px 7px;
    }

    .header .header-inner {
        padding: 7px 0;
    }

    .header .logo img,
    .logo img {
        height: 42px;
        max-height: 42px;
        width: auto;
    }

    .slicknav_nav {
        top: 56px;
    }

    .notice-marquee-label {
        max-width: 104px;
        padding: 9px 10px;
        white-space: normal;
    }

    .home-slider,
    .home-slider .single-slider {
        height: min(520px, 62vh);
        min-height: 430px;
    }

    .home-slider .slider-content {
        margin-top: clamp(135px, 22vh, 190px);
        max-width: calc(100vw - 36px);
    }

    .home-slider .slider-title {
        font-size: clamp(22px, 6.2vw, 28px);
        padding: 12px 15px;
    }

    .home-slider .slider-text {
        font-size: 13px;
        padding: 11px 15px;
    }

    .home-slider .button {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
    }

    .home-slider .button .btn {
        margin: 0;
        padding: 10px 15px;
    }

    .section {
        padding-block: 42px;
    }

    .section-title {
        margin-bottom: 28px;
        padding: 0 !important;
    }

    .row > [class*="col-"] {
        min-width: 0;
    }

    .btn {
        white-space: normal;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    .pagination li a,
    .pagination .page-link {
        padding: 8px 12px;
    }

    .footer-officer-profile {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .footer-officer-panel {
        overflow-wrap: anywhere;
        padding: 16px !important;
    }

    .footer .single-widget {
        overflow-wrap: anywhere;
    }

    .news-popup-modal .modal-dialog {
        margin: 10px;
    }

    .news-popup-document {
        height: min(68vh, 620px);
        min-height: 320px;
    }
}

/* ── SCROLL REVEAL + LAZY IMAGE FEEL ── */
.cdph-reveal {
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(0.98);
    transition:
        opacity 760ms var(--cdph-ease-out),
        transform 760ms var(--cdph-ease-out),
        filter 760ms var(--cdph-ease-out);
    transition-delay: var(--cdph-stagger, 0ms);
    will-change: opacity, transform, filter;
}

.cdph-reveal.cdph-reveal-left {
    transform: translate3d(-42px, 0, 0) scale(0.98);
}

.cdph-reveal.cdph-reveal-right {
    transform: translate3d(42px, 0, 0) scale(0.98);
}

.cdph-reveal.cdph-reveal-zoom {
    transform: translate3d(0, 28px, 0) scale(0.94);
}

.cdph-reveal.is-visible {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 0) scale(1);
}

.cdph-lazy-image {
    opacity: 0;
    filter: blur(14px) saturate(0.9);
    transform: scale(1.035);
    transition:
        opacity 900ms var(--cdph-ease-out),
        filter 900ms var(--cdph-ease-out),
        transform 900ms var(--cdph-ease-out);
}

.cdph-lazy-image.is-loaded {
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: scale(1);
}

.cdph-reveal.is-visible .news-date,
.cdph-reveal.is-visible .event-date-badge,
.cdph-reveal.is-visible .icon i,
.cdph-reveal.is-visible .newsletter-icon {
    animation: cdph-glow-pulse 1800ms ease-in-out 1;
}

@media (prefers-reduced-motion: reduce) {
    .cdph-reveal,
    .cdph-reveal.cdph-reveal-left,
    .cdph-reveal.cdph-reveal-right,
    .cdph-reveal.cdph-reveal-zoom,
    .cdph-lazy-image {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}
