/*
 * School theme (original cyan colour scheme) - only applied on pages that set $body_class = 'dps-theme'
 * (currently: index.php and gallery.php). Design only, no behaviour changes.
 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body.dps-theme {
    --primary: #06BBCC;
    --primary-dark: #0596a4;
    --primary-deep: #181d38;
    --light: #F0FBFC;
    --dark: #181d38;
    font-family: 'Roboto', 'Heebo', sans-serif;
    color: #3d4a42;
    background: #fff;
}

body.dps-theme h1,
body.dps-theme h2,
body.dps-theme h3,
body.dps-theme h4,
body.dps-theme h5,
body.dps-theme h6 {
    font-family: 'Roboto', 'Nunito', sans-serif;
}

/* ---------- colour overrides ---------- */
body.dps-theme .text-primary { color: var(--primary) !important; }
body.dps-theme .bg-primary { background-color: var(--primary) !important; }

body.dps-theme .btn.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    border-radius: 4px;
    letter-spacing: .3px;
}
body.dps-theme .btn.btn-primary:hover,
body.dps-theme .btn.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
body.dps-theme .btn.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
body.dps-theme .btn.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

/* ---------- navbar ---------- */
body.dps-theme .header__nav__bar {
    border-bottom: 3px solid var(--primary);
}
body.dps-theme .navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .4px;
    position: relative;
}
body.dps-theme .navbar-light .navbar-nav .nav-link:hover,
body.dps-theme .navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}
@media (min-width: 992px) {
    body.dps-theme .navbar-light .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 14px;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: width .3s;
    }
    body.dps-theme .navbar-light .navbar-nav .nav-link:hover::after,
    body.dps-theme .navbar-light .navbar-nav .nav-link.active::after {
        width: 100%;
    }
}
body.dps-theme .nav__login__button {
    border-radius: 30px 0 0 30px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}
body.dps-theme .top__navbar a:visited { color: var(--dark); }
body.dps-theme .top__navbar a.active:visited { color: var(--primary); }

/* ---------- section helpers ---------- */
body.dps-theme .dps-section { padding: 60px 0; }
body.dps-theme .dps-section.dps-soft { background: var(--light); }

body.dps-theme .dps-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 14px;
}
body.dps-theme .dps-title span { color: var(--primary); }
body.dps-theme .dps-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
}
body.dps-theme .text-center .dps-title::after,
body.dps-theme .dps-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}
body.dps-theme .dps-eyebrow {
    display: block;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

body.dps-theme .dps-card {
    background: #fff;
    border: 1px solid #dcedf0;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(6, 187, 204, .08);
}

/* ---------- home: banner ---------- */
body.dps-theme .dps-banner { background: #fff; }
body.dps-theme .dps-banner .banner__image { width: 100%; }
body.dps-theme .header-carousel .owl-nav .owl-prev:hover,
body.dps-theme .header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ---------- home: strengths ---------- */
body.dps-theme .service-item {
    background: #fff;
    border: 1px solid #dcedf0;
    border-left: 5px solid var(--primary);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(6, 187, 204, .07);
}
body.dps-theme .service-item:hover {
    margin-top: 0;
    background: var(--primary);
    transform: translateY(-4px);
}
body.dps-theme .service-item h5 { color: var(--dark); font-weight: 700; }
body.dps-theme .service-item p { margin-bottom: 1rem; }

/* ---------- home: notice ---------- */
body.dps-theme .dps-notice-box {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dcedf0;
}
body.dps-theme .dps-notice-head {
    background: linear-gradient(90deg, var(--primary-deep), var(--primary));
    color: #fff;
    padding: 14px 20px;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}
body.dps-theme .ticker-container {
    background-color: #fff;
    height: 420px;
}
body.dps-theme .ticker-container ul li {
    border-bottom: 1px dashed #d3eef1;
}
body.dps-theme .ticker-container ul li span {
    display: inline-block;
    background: var(--light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 4px;
}
body.dps-theme .ticker-container ul li a { color: var(--dark); text-decoration: none; display: block; }
body.dps-theme .ticker-container ul li a:hover { color: var(--primary); }

/* ---------- home: society band ---------- */
body.dps-theme .dps-band {
    background:
        linear-gradient(135deg, rgba(24, 29, 56, .96), rgba(6, 187, 204, .92)),
        url(../img/b22.png) center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 70px 0;
}
body.dps-theme .dps-band h2 { color: #fff; font-weight: 700; letter-spacing: .5px; }
body.dps-theme .dps-band h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    margin: 14px auto 0;
}
body.dps-theme .dps-band p { color: #e6fafc; max-width: 860px; margin: 20px auto; font-size: 17px; }
body.dps-theme .dps-band .btn.btn-primary {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
    font-weight: 700;
}
body.dps-theme .dps-band .btn.btn-primary:hover { background: var(--light); }

/* ---------- home: growth / about ---------- */
body.dps-theme .dps-media img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(6, 187, 204, .18);
    width: 100%;
}
body.dps-theme .dps-growth h2,
body.dps-theme .dps-about h2 {
    color: var(--dark);
    font-weight: 700;
}
body.dps-theme .dps-growth h2 { font-size: 24px; margin-top: 10px; }
body.dps-theme .dps-growth h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: -4px;
}
body.dps-theme .read__button { border-radius: 4px; }

/* ---------- page banner (gallery) ---------- */
body.dps-theme .dps-page-banner {
    background:
        linear-gradient(rgba(24, 29, 56, .78), rgba(24, 29, 56, .78)),
        url(../img/b22.png) center/cover no-repeat;
    padding: 70px 0;
    text-align: center;
}
body.dps-theme .dps-page-banner h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    margin: 0;
}
body.dps-theme .dps-page-banner .dps-crumb { color: #d3eef1; margin-top: 8px; font-size: 15px; }
body.dps-theme .dps-page-banner .dps-crumb a { color: #fff; text-decoration: none; }

/* ---------- gallery grid ---------- */
body.dps-theme .dps-gallery-wrap { padding: 60px 0; }
body.dps-theme .dps-gal-item {
    display: block;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    text-decoration: none;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
}
body.dps-theme .dps-gal-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(6, 187, 204, .28);
}
body.dps-theme .dps-gal-img { overflow: hidden; height: 220px; background: #f2f2f2; }
body.dps-theme .dps-gal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
body.dps-theme .dps-gal-item:hover .dps-gal-img img { transform: scale(1.08); }
body.dps-theme .dps-gal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 10px 14px;
    background: var(--primary);
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    transition: background .3s;
}
body.dps-theme .dps-gal-item:hover .dps-gal-title { background: var(--primary-dark); }

/* ---------- enquiry modal (home) ---------- */
body.dps-theme .modal-header { background-color: var(--primary) !important; color: #fff; }
body.dps-theme .modal-header .modal-title { color: #fff; }
body.dps-theme .modal-body h4 { color: var(--primary) !important; }

/* ---------- admission + results flyer popup ---------- */
.arp-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 17, 38, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.arp-overlay.is-open { display: flex; }
.arp-box {
    position: relative;
    width: min(620px, 94vw);
    max-height: 94vh;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 12px;
    animation: arp-enter .28s ease-out both;
}
@keyframes arp-enter {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.arp-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    background: rgba(12, 20, 38, .72);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0,0,0,.25);
    transition: background .2s, transform .2s;
}
.arp-close:hover { background: #c0392b; transform: rotate(90deg); }
.arp-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f4f8;
}
.arp-slides {
    width: 100%;
    max-height: calc(94vh - 82px);
    overflow-y: auto;
}
.arp-slide {
    display: none;
    width: 100%;
    height: auto;
}
.arp-slide.is-active { display: block; }
.arp-slide > img {
    display: block;
    width: 100%;
    max-height: calc(94vh - 250px);
    object-fit: contain;
    margin: 0 auto;
}
.arp-copy {
    padding: 20px 24px 22px;
    color: #27334b;
    text-align: left;
}
.arp-copy h2 {
    margin: 0 0 8px;
    color: #17213c;
    font-size: clamp(20px, 3vw, 27px);
}
.arp-copy p { margin: 0; white-space: normal; }
.arp-copy .arp-summary { font-size: 16px; font-weight: 600; }
.arp-copy .arp-details { margin-top: 9px; color: #596579; font-size: 14px; line-height: 1.65; }
.arp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #17213c;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
    transition: background .2s, color .2s, transform .2s;
}
.arp-prev { left: 14px; }
.arp-next { right: 14px; }
.arp-nav:hover { background: var(--primary, #06BBCC); color: #fff; transform: translateY(-50%) scale(1.06); }
.arp-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 14px 0 2px;
    background: #fff;
}
.arp-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: #c8d0dc;
    cursor: pointer;
    padding: 0;
    transition: width .2s, background .2s;
}
.arp-dot.is-active { width: 26px; border-radius: 9px; background: var(--primary, #06BBCC); }
.arp-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 12px 14px;
    background: #fff;
}
.arp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
}
.arp-btn-primary {
    background: var(--primary, #06BBCC);
    color: #fff;
}
.arp-btn-primary:hover { filter: brightness(.95); color: #fff; }
.arp-btn-ghost {
    background: #fff;
    color: #1a2340;
    border-color: #c9d2e0;
}
.arp-btn-ghost:hover { border-color: var(--primary, #06BBCC); color: var(--primary, #06BBCC); }
@media (max-width: 575px) {
    .arp-overlay { padding: 12px; }
    .arp-box { width: 100%; max-height: 92vh; padding: 8px; border-radius: 15px; }
    .arp-stage { border-radius: 9px; }
    .arp-slides { max-height: calc(92vh - 64px); }
    .arp-slide > img { max-height: calc(92vh - 210px); }
    .arp-copy { padding: 14px 12px 16px; }
    .arp-copy .arp-summary { font-size: 14px; }
    .arp-copy .arp-details { font-size: 13px; }
    .arp-close { top: 14px; right: 14px; width: 36px; height: 36px; font-size: 23px; }
    .arp-nav { width: 34px; height: 34px; font-size: 26px; }
    .arp-prev { left: 8px; }
    .arp-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .arp-box { animation: none; }
    .arp-close, .arp-nav, .arp-dot { transition: none; }
}

/* ---------- footer ---------- */
body.dps-theme .footer.bg-dark {
    background: linear-gradient(160deg, var(--primary-deep), #232a4d) !important;
}
body.dps-theme .footer h4 {
    position: relative;
    padding-bottom: 10px;
}
body.dps-theme .footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #6fe3ee;
}
body.dps-theme .footer .btn.btn-link:hover { color: #6fe3ee; }
body.dps-theme .footer .btn.btn-social:hover { color: var(--primary); background: #fff; }
body.dps-theme .back-to-top { background: var(--primary); border-color: var(--primary); }

/* ---------- responsive ---------- */
@media (max-width: 767px) {
    body.dps-theme .dps-title { font-size: 26px; }
    body.dps-theme .dps-page-banner { padding: 45px 0; }
    body.dps-theme .dps-page-banner h1 { font-size: 32px; }
    body.dps-theme .dps-gal-img { height: 200px; }
    body.dps-theme .dps-section { padding: 40px 0; }
}

/* =====================================================================
   Home page layout (reference style)
   ===================================================================== */

/* top bar */
body.dps-theme .dps-topbar {
    background: var(--primary-deep);
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}
body.dps-theme .dps-topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 18px;
}
body.dps-theme .dps-topbar a:hover { color: #6fe3ee; }

/* banner + overlapping feature cards */
body.dps-theme .dps-banner { margin-bottom: 0; }
body.dps-theme .dps-feature-wrap { position: relative; z-index: 5; margin-top: 40px; margin-bottom: 20px; }
body.dps-theme .dps-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    height: 100%;
    padding: 26px 24px;
    color: #fff;
}
body.dps-theme .dps-feature i { font-size: 38px; margin-top: 4px; }
body.dps-theme .dps-feature h5 { color: #fff; font-weight: 700; margin-bottom: 8px; }
body.dps-theme .dps-feature p {
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    margin: 0;
    word-break: break-word;
}
body.dps-theme .dps-f-green { background: #06BBCC; }
body.dps-theme .dps-f-orange { background: #0596a4; }
body.dps-theme .dps-f-blue { background: #181d38; }
body.dps-theme .dps-feature-row {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
    margin-left: calc(-0.5 * var(--bs-gutter-x));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    row-gap: 16px;
}
body.dps-theme .dps-feature-row > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}
body.dps-theme .dps-feature {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(24, 29, 56, .12);
}

/* about */
body.dps-theme .dps-about { padding-top: 70px; }
body.dps-theme .dps-about .dps-media img { width: 100%; }

/* achievement stats */
body.dps-theme .dps-stat {
    background: #fff;
    border-radius: 8px;
    padding: 34px 24px;
    height: 100%;
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 6px 24px rgba(6, 187, 204, .1);
}
body.dps-theme .dps-stat h3 {
    font-size: 54px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
body.dps-theme .dps-stat h6 {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 12px;
}
body.dps-theme .dps-stat p { margin: 0; font-size: 15px; }

/* growth + notice split */
body.dps-theme .dps-growth-box { background: #fff; }
body.dps-theme .dps-growth-inner { padding: 70px 8% 70px 12%; }
body.dps-theme .dps-growth-inner h4 { color: var(--dark); font-weight: 700; }
body.dps-theme .dps-notice-panel {
    background:
        linear-gradient(160deg, rgba(24, 29, 56, .96), rgba(6, 187, 204, .93)),
        url(../img/b22.png) center/cover no-repeat;
    color: #fff;
}
body.dps-theme .dps-notice-inner { padding: 70px 10% 70px 8%; }
body.dps-theme .dps-notice-panel .dps-title { color: #fff; }
body.dps-theme .dps-notice-panel .dps-title::after { background: #fff; }
body.dps-theme .dps-notice-panel .dps-eyebrow { color: #c9f4f8; }
body.dps-theme .dps-notice-panel .dps-notice-box { background: #fff; border: 0; }
@media (max-width: 991px) {
    body.dps-theme .dps-growth-inner,
    body.dps-theme .dps-notice-inner { padding: 50px 24px; }
    body.dps-theme .dps-feature-wrap { margin-top: 24px; }
}

/* home photo gallery tiles are a bit shorter */
body.dps-theme .dps-section .dps-gal-img { height: 240px; }

/* reels */
body.dps-theme .dps-reel {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(24, 29, 56, .25);
    border: 3px solid #fff;
}
body.dps-theme .dps-reel iframe,
body.dps-theme .dps-reel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    background: #000;
}
body.dps-theme .dps-reel-link {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    background: radial-gradient(circle at 25% 20%, #feda75, #fa7e1e 28%, #d62976 55%, #962fbf 78%, #4f5bd5);
}
body.dps-theme .dps-reel-link:hover { color: #fff; filter: brightness(1.08); }
body.dps-theme .dps-reel-link i { font-size: 56px; }
body.dps-theme .dps-reel-link span { font-weight: 700; }
body.dps-theme .dps-reel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: linear-gradient(160deg, var(--primary-deep), var(--primary));
}
body.dps-theme .dps-reel-empty i { font-size: 54px; opacity: .9; }
body.dps-theme .dps-reel-empty span { font-size: 14px; letter-spacing: .5px; }

/* banner slider arrows: left / right edges instead of stacked in the middle */
body.dps-theme .header-carousel .owl-nav {
    position: static;
    transform: none;
    display: block;
    margin: 0;
}
body.dps-theme .header-carousel .owl-nav .owl-prev,
body.dps-theme .header-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    margin: -24px 0 0 0;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(24, 29, 56, .55);
    color: #fff;
    font-size: 22px;
    z-index: 3;
    transition: background .3s;
}
body.dps-theme .header-carousel .owl-nav .owl-prev { left: 20px; }
body.dps-theme .header-carousel .owl-nav .owl-next { right: 20px; }
body.dps-theme .header-carousel .owl-nav .owl-prev:hover,
body.dps-theme .header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
}
@media (max-width: 767px) {
    body.dps-theme .header-carousel .owl-nav .owl-prev,
    body.dps-theme .header-carousel .owl-nav .owl-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
        font-size: 16px;
    }
    body.dps-theme .header-carousel .owl-nav .owl-prev { left: 8px; }
    body.dps-theme .header-carousel .owl-nav .owl-next { right: 8px; }
}

/* ---------- mobile responsive fixes ---------- */
@media (max-width: 991.98px) {
    body.dps-theme .dps-topbar .container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    body.dps-theme .dps-topbar {
        font-size: 12px;
        line-height: 1.5;
    }
    body.dps-theme .dps-topbar .me-4 {
        margin-right: 12px !important;
        display: inline-block;
        margin-bottom: 2px;
    }
    body.dps-theme .dps-topbar a {
        margin-left: 0;
        margin-right: 14px;
        display: inline-block;
    }
    body.dps-theme .header__nav__bar {
        height: auto;
        min-height: 70px;
    }
    body.dps-theme .main__logo {
        height: 56px;
    }
    body.dps-theme .navbar-collapse.show {
        top: 100%;
        background: #fff;
        z-index: 1050;
        box-shadow: 0 10px 24px rgba(0,0,0,.12);
    }
}

@media (max-width: 768px) {
    /* show full banner image instead of cropping */
    body.dps-theme .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 0 !important;
        height: auto !important;
    }
    body.dps-theme .header-carousel .owl-carousel-item img,
    body.dps-theme .dps-banner .banner__image {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block;
    }
    body.dps-theme .owl-carousel .owl-stage-outer {
        overflow: hidden !important;
    }
    body.dps-theme .dps-feature {
        padding: 18px 16px;
        gap: 12px;
    }
    body.dps-theme .dps-feature i { font-size: 28px; }
    body.dps-theme .dps-feature h5 { font-size: 16px; }
    body.dps-theme .dps-feature p {
        font-size: 13px;
    }
    body.dps-theme .dps-feature-wrap {
        margin-top: 16px;
        padding-left: 12px;
        padding-right: 12px;
    }
    body.dps-theme .dps-stat h3 { font-size: 40px; }
    body.dps-theme .dps-growth-inner,
    body.dps-theme .dps-notice-inner { padding: 36px 18px; }
    body.dps-theme .dps-band { padding: 48px 16px; }
    body.dps-theme .dps-band p { font-size: 15px; }
    body.dps-theme .dps-reel-empty i { font-size: 42px; }
    body.dps-theme .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
    body.dps-theme .footer .footer__logo { width: 55%; }
}

@media (max-width: 480px) {
    body.dps-theme .dps-topbar span {
        display: block;
        margin-bottom: 2px;
    }
    body.dps-theme .dps-topbar .me-4 { margin-right: 0 !important; }
}

body.dps-theme { overflow-x: hidden; }
body.dps-theme .dps-banner,
body.dps-theme .header-carousel { overflow: hidden; }

/* tighter mobile polish */
@media (max-width: 768px) {
    body.dps-theme .header-carousel .owl-stage-outer {
        overflow: hidden !important;
    }
    body.dps-theme .header-carousel .owl-item {
        overflow: hidden;
    }
    body.dps-theme .dps-feature > div:last-child {
        min-width: 0;
        flex: 1 1 auto;
    }
    body.dps-theme .dps-feature p {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
        word-break: break-word;
    }
    body.dps-theme .dps-feature-wrap.container {
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }
    body.dps-theme .dps-feature-row {
        margin-left: 0;
        margin-right: 0;
    }
    body.dps-theme .dps-feature-row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
    /* hero: fill width, keep full image visible */
    body.dps-theme .header-carousel .owl-carousel-item img {
        background: #111;
    }
}

/* Override global style1.css img { height:100%; object-fit:cover } which breaks the layout */
body.dps-theme img {
    height: auto;
    max-width: 100%;
    object-fit: initial;
}
body.dps-theme .dps-gal-img img,
body.dps-theme .dps-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.dps-theme .main__logo,
body.dps-theme .footer__logo {
    width: auto;
    max-height: 90px;
    height: auto;
    object-fit: contain;
}
body.dps-theme .footer__logo { max-height: none; width: 40%; }

@media (max-width: 768px) {
    html, body.dps-theme {
        overflow-x: hidden !important;
        max-width: 100vw;
    }
    body.dps-theme .container,
    body.dps-theme .container-fluid {
        max-width: 100%;
    }
    body.dps-theme .dps-banner,
    body.dps-theme .header-carousel,
    body.dps-theme .owl-carousel,
    body.dps-theme .owl-stage-outer {
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    body.dps-theme .header-carousel .owl-carousel-item img,
    body.dps-theme .dps-banner .banner__image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        position: static !important;
    }
    body.dps-theme .dps-feature {
        flex-direction: column;
        align-items: flex-start;
    }
    body.dps-theme .dps-feature i { margin-bottom: 4px; }
    body.dps-theme .dps-feature > div:last-child {
        width: 100%;
        min-width: 0;
    }
    body.dps-theme .navbar .navbar-brand {
        max-width: calc(100% - 60px);
    }
    body.dps-theme .main__logo {
        height: 52px;
        max-width: 100%;
    }
}

/* force banner height to follow the image on all breakpoints */
body.dps-theme .home__slider,
body.dps-theme .header-carousel .owl-stage-outer,
body.dps-theme .header-carousel .owl-stage,
body.dps-theme .header-carousel .owl-item,
body.dps-theme .header-carousel .owl-carousel-item {
    height: auto !important;
    min-height: 0 !important;
}
body.dps-theme .header-carousel .owl-carousel-item img,
body.dps-theme .dps-banner .banner__image {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

body.dps-theme .dps-banner,
body.dps-theme .header-carousel,
body.dps-theme .owl-carousel,
body.dps-theme .owl-stage-outer {
    overflow: hidden !important;
}
@media (max-width: 768px) {
    body.dps-theme .dps-feature { padding: 20px 18px !important; }
    body.dps-theme .dps-feature-wrap { padding-left: 0 !important; padding-right: 0 !important; }
    body.dps-theme .dps-topbar { font-size: 12px; }
}

@media (max-width: 991.98px) {
    body.dps-theme .dps-feature-row {
        display: flex;
        flex-direction: column;
        gap: 12px !important;
    }
    body.dps-theme .dps-feature-wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    body.dps-theme .dps-feature {
        border-radius: 8px !important;
        box-shadow: 0 6px 18px rgba(24, 29, 56, .12) !important;
    }
}

/* desktop/tablet card gaps - always on */
body.dps-theme .dps-feature-wrap .dps-feature-row {
    --bs-gutter-x: 20px !important;
    --bs-gutter-y: 20px !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
}
body.dps-theme .dps-feature-wrap .dps-feature-row > [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 0;
}
body.dps-theme .dps-feature-wrap .dps-feature {
    border-radius: 10px !important;
    box-shadow: 0 8px 20px rgba(24, 29, 56, .14) !important;
}
