/* Shared finishing layer for public pages, after component and mobile styles. */
.dt-public-page {
    --site-ink: #102846;
    --site-muted: #5d6c80;
    --site-line: #dce2e9;
    --site-surface: #f5f6f8;
    --site-brass: #a47e29;
    --site-panel-radius: 8px;
    --site-control-radius: 6px;
}
.dt-public-page :is(.dt-about, .dt-career, .dt-contact, .dt-gallery) { background: var(--site-surface); color: var(--site-muted); font-size: 15px; }
.dt-public-page :is(.dt-about-banner, .career-banner, .dt-contact-banner, .dt-gallery-banner) { padding-block: 54px; border: 0; background: var(--site-ink); }
.dt-public-page :is(.dt-about-banner, .career-banner, .dt-contact-banner, .dt-gallery-banner)::after { background: linear-gradient(100deg, #102846, #10284680); }
.dt-public-page :is(.dt-about-banner, .career-banner, .dt-contact-banner, .dt-gallery-banner) .breadcrumbs-img { opacity: .13; filter: grayscale(1); }
.dt-public-page .main-content :is(.dt-about-banner, .career-banner, .dt-contact-banner, .dt-gallery-banner) .page-title { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.2; margin-bottom: 16px; }
.dt-public-page :is(.dt-about-banner, .career-banner, .dt-contact-banner, .dt-gallery-banner) ul { color: #c9d3e1; }
.dt-public-page :is(.dt-about-banner, .career-banner, .dt-contact-banner, .dt-gallery-banner) a { color: #e4c778; }

/* About: readable editorial columns and restrained image frames. */
.dt-public-page .dt-about-intro .img-part { padding: 8px; border: 1px solid var(--site-line); border-radius: 8px; box-shadow: none; }
.dt-public-page .dt-about-intro .desc, .dt-public-page .dt-about-story .desc { font-size: 15px; line-height: 1.85; color: var(--site-muted); }
.dt-public-page .dt-about-admissions .partition-bg-wrap > .container > .row { border-radius: 8px; box-shadow: none; }
.dt-public-page .dt-about-story .img-part { border-radius: 8px; }
.dt-public-page .dt-about-story .histort-part { gap: 0; padding: 0; border: 0; border-bottom: 1px solid var(--site-line); border-radius: 0; background: transparent; }
.dt-public-page .dt-about-story .histort-part .nav-link { padding: 14px 8px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none; font-size: 13px; }
.dt-public-page .dt-about-story .histort-part .nav-link.active { border-bottom-color: var(--site-ink); color: var(--site-ink); background: #fff; }
.dt-public-page .dt-about-story .histort-part .icon-part { color: #6c7f97; font-size: 16px; }
.dt-public-page .dt-about-story .tabs-content { border: 1px solid var(--site-line); border-radius: 8px; box-shadow: none; }
.dt-public-page .dt-about-faculty { background: #fff; border-top-color: var(--site-line); }
.dt-public-page .dt-about-faculty .team-item { border: 1px solid var(--site-line); border-radius: 8px; box-shadow: none; }
.dt-public-page .dt-about-faculty .team-item > img { background: #f0f2f5; }
.dt-public-page .dt-about-faculty .alert-info { padding: 22px; border: 1px solid var(--site-line); border-radius: 8px; background: #f5f6f8; color: var(--site-muted); }

/* Careers: the same hierarchy for listings, expanded details and application. */
.dt-public-page :is(.career-vacancy, .career-empty-state, .career-copy-box, .career-apply-card) { border: 1px solid var(--site-line); border-radius: 8px; box-shadow: none; }
.dt-public-page .career-job-meta > span { background: #f5f6f8; border-color: #e4e8ee; color: #53657c; font-size: 12px; }
.dt-public-page .career-empty-state { padding-block: 44px; }
.dt-public-page .career-empty-state > i { width: 52px; height: 52px; border: 1px solid var(--site-line); border-radius: 8px; background: #f5f6f8; color: #526a87; font-size: 22px; }
.dt-public-page .career-intro-list li { padding: 16px 0; border: 0; border-top: 1px solid var(--site-line); border-radius: 0; background: transparent; font-size: 14px; }
.dt-public-page .career-intro-list i { background: #f0f3f7; color: #526a87; }
.dt-public-page .career-form-head { background: #fff; border-bottom: 1px solid var(--site-line); }
.dt-public-page .dt-career .career-form-head .title { color: var(--site-ink); }
.dt-public-page .career-form-head p { color: var(--site-muted); }
.dt-public-page .career-resume-group .career-input-wrap { border: 1px solid var(--site-line); border-radius: 6px; background: #f8f9fb; }
.dt-public-page .career-file-input { height: auto; min-height: 58px; padding-block: 12px; }
.dt-public-page .career-file-input::file-selector-button { background: #fff; border-color: #d0d8e3; }

/* Contact details sit on the page grid rather than overlapping the banner. */
.dt-public-page .dt-contact .contact-address-section { margin-top: 0; padding-top: 34px; }
.dt-public-page .dt-contact .contact-info { min-height: 190px; padding: 26px; border: 1px solid var(--site-line); border-radius: 8px; box-shadow: none; }
.dt-public-page .dt-contact .contact-info .icon-part { width: 36px; height: 36px; border: 0; border-radius: 6px; background: #f0f3f7; color: #536a87; font-size: 17px; }
.dt-public-page .dt-contact-form { border-color: var(--site-line); border-radius: 8px; box-shadow: none; }
.dt-public-page .dt-contact-form .inner-part { border-bottom: 1px solid var(--site-line); background: #fff; }
.dt-public-page .dt-contact .dt-contact-form .inner-part .title { color: var(--site-ink); }
.dt-public-page .dt-contact-form .inner-part p { color: var(--site-muted); font-size: 14px; }
.dt-public-page .dt-contact .contact-map2 { border: 1px solid var(--site-line); border-radius: 8px; box-shadow: none; }
.dt-public-page .dt-contact-form label, body.dt-public-page :is(#enquiryModal, #testimonialModal) form label:not(.sr-only):not([for^="star"]) { display: block; margin-bottom: 8px; color: #30415e; font: 500 13px/1.6 "Rubik", Arial, sans-serif; }

/* Gallery uses the same quiet filters as batches, results and reviews. */
.dt-public-page .dt-gallery-toolbar { padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--site-line); border-radius: 0; background: transparent; box-shadow: none; }
.dt-public-page .dt-gallery .filter-category { gap: 6px; }
.dt-public-page .dt-gallery .album-filter-link { min-height: 44px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #63748b; font-size: 14px; box-shadow: none; }
.dt-public-page .dt-gallery .album-filter-link:hover { background: #e9edf3; color: var(--site-ink); }
.dt-public-page .dt-gallery .filter-category li.active .album-filter-link { border-bottom-color: var(--site-ink); background: transparent; color: var(--site-ink); font-weight: 500; box-shadow: none; }
.dt-public-page .dt-gallery-search { min-height: 46px; border-color: #d8dfe8; border-radius: 6px; background: #fff; }
.dt-public-page .dt-gallery-search input { font-size: 14px; }
.dt-public-page .dt-gallery #gallery-count { min-width: 30px; padding: 0; border: 0; background: transparent; color: #63748b; font-size: 14px; }
.dt-public-page :is(.dt-gallery-card, .dt-gallery-empty, .dt-gallery-search-empty) { border: 1px solid var(--site-line); border-radius: 8px; box-shadow: none; }
.dt-public-page .dt-gallery-card:hover { border-color: #aab9cd; box-shadow: 0 6px 20px #10284608; }
.dt-public-page .dt-gallery-grid { align-items: start; }
.dt-public-page .dt-gallery-album { padding: 0; border: 0; background: transparent; color: #6a798d; font-size: 12px; }
.dt-public-page .dt-gallery-album:last-child { margin-bottom: 0; }

/* Consistent form surfaces and buttons, including enquiry dialogs. */
.dt-public-page :is(.dt-contact-form .from-control, .career-input-wrap .from-control, .modal .form-control, .modal .from-control) { border-color: #d5dde7; border-radius: 6px; background: #f8f9fb; color: #293e5a; font-size: 14px; }
.dt-public-page :is(.dt-contact-form .from-control, .career-input-wrap .from-control, .modal .form-control, .modal .from-control):focus { border-color: #6c849e; background: #fff; box-shadow: 0 0 0 3px #254a7c12; }
.dt-public-page :is(.career-vacancy .career-apply-link, .career-submit-row .btn-send, .dt-contact-form .btn-send, #enquiryModal button[type=submit]) { border: 1px solid var(--site-ink); border-radius: 6px; background: var(--site-ink); color: #fff; font-weight: 500; }
.dt-public-page :is(.career-vacancy .career-apply-link, .career-submit-row .btn-send, .dt-contact-form .btn-send, #enquiryModal button[type=submit]):hover { border-color: #254969; background: #254969; color: #fff; }
body.dt-public-page :is(#enquiryModal, #testimonialModal) .modal-dialog { margin-block: 24px; }
body.dt-public-page :is(#enquiryModal, #testimonialModal) .modal-content { max-height: calc(100dvh - 48px); overflow: hidden; border: 1px solid #dce2e9; border-radius: 10px; box-shadow: 0 24px 70px #07152f40; }
body.dt-public-page :is(#enquiryModal, #testimonialModal) :is(.modal-header, .modal-header-custom) { align-items: center; flex-shrink: 0; padding: 22px 24px; border: 0; background: var(--site-ink); }
body.dt-public-page :is(#enquiryModal, #testimonialModal) .modal-title { color: #fff; font: 500 24px/1.35 Georgia, serif; letter-spacing: -.3px; }
body.dt-public-page :is(#enquiryModal, #testimonialModal) .modal-body { overflow-y: auto; overscroll-behavior: contain; }
body.dt-public-page :is(#enquiryModal, #testimonialModal) .form-control { border-color: #d5dde7; border-radius: 6px; background: #f8f9fb; color: #293e5a; }
body.dt-public-page :is(#enquiryModal, #testimonialModal) .form-control:focus { border-color: #6c849e; background: #fff; box-shadow: 0 0 0 3px #254a7c12; }
body.dt-public-page :is(#enquiryModal, #testimonialModal) .close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin: -8px -10px -8px 12px; padding: 0; border-radius: 6px; background: #ffffff0a; color: #fff; opacity: 1; text-shadow: none; }
body.dt-public-page :is(#enquiryModal, #testimonialModal) .close:hover { background: #ffffff18; }
.dt-public-page .modal-backdrop.show { opacity: .65; }

/* Home retains its blue hero, compact callback and dynamic carousels. */
.dt-public-page .dt-home { --home-radius-panel: 8px; }
.dt-public-page :is(.dt-home-programs, .dt-home-results, .dt-results-cta-wrap, .dt-home-full-enquiry, .dt-home-visit) { background: #f5f6f8; }
.dt-public-page .dt-home-testimonials { background: #fff; }
.dt-public-page .dt-home-testimonials .sec-title6 > .img-part { display: none; }
.dt-public-page .dt-home-programs .categories-item:hover { transform: none; box-shadow: 0 6px 20px #10284608; }
.dt-public-page .dt-home-programs .row:last-child > div:not(:nth-child(2)) .icon-part img { filter: grayscale(1); opacity: .8; }
.dt-public-page .dt-home-full-enquiry .shape-img { display: none; }
.dt-public-page .dt-home-enquiry-panel button[type=submit] { border-color: var(--site-ink); background: var(--site-ink); color: #fff; }
.dt-public-page .dt-home-enquiry-panel button[type=submit]:hover { background: #254969; border-color: #254969; }
.dt-public-page .dt-home-testimonials .dt-home-track { scrollbar-width: none; }
.dt-public-page .dt-home-testimonials .dt-home-track::-webkit-scrollbar { display: none; }
.dt-public-page .dt-review-full .dt-review-less { display: none; }
.dt-public-page .dt-review-full[open] .dt-review-more { display: none; }
.dt-public-page .dt-review-full[open] .dt-review-less { display: inline; }
.dt-public-page .dt-home .dt-review-card:has(.dt-review-full[open]) .dt-review-preview { display: none; }
.dt-public-page .dt-home .dt-home-enquiry-panel input:not([type=hidden]), .dt-public-page .dt-home-enquiry-panel :is(select, textarea) { background: #f8f9fb; }

/* Dialogs own the screen; floating actions return when they close. */
html.admission-popup-open :is(.quick-contact, .admission-popup-launcher, #scrollUp),
body.dt-public-page.modal-open :is(.quick-contact, .admission-popup-launcher, #scrollUp),
body.dt-public-page:has(.mfp-wrap) :is(.quick-contact, .admission-popup-launcher, #scrollUp) { visibility: hidden; pointer-events: none; }
.dt-public-page #scrollUp { width: 40px; height: 40px; padding: 0; border: 1px solid #d4dde8; border-radius: 6px; background: #fff; color: var(--site-ink); box-shadow: 0 3px 12px #1028460d; cursor: pointer; }
.dt-public-page #scrollUp i { width: 100%; height: 100%; line-height: 38px; border-radius: 6px; background: transparent; color: inherit; }
.dt-public-page #scrollUp:hover { background: #edf1f6; }
.dt-public-page #scrollUp:focus-visible { outline: 3px solid #b48d2e; outline-offset: 3px; }

@media (max-width: 991px) {
    .dt-public-page .dt-contact .contact-info { min-height: 0; }
}
@media (max-width: 767px) {
    .dt-public-page :is(.dt-about-banner, .career-banner, .dt-contact-banner, .dt-gallery-banner) { padding: 30px 18px; }
    .dt-public-page .main-content :is(.dt-about-banner, .career-banner, .dt-contact-banner, .dt-gallery-banner) .page-title { font-size: 32px; }
    .dt-public-page .dt-contact .contact-address-section { padding-top: 24px; }
    .dt-public-page .dt-contact .contact-info { padding: 22px; }
    .dt-public-page .dt-gallery-toolbar { padding: 0 0 22px; }
    .dt-public-page :is(.dt-contact-form .from-control, .career-input-wrap .from-control, .modal .form-control, .modal .from-control) { font-size: 16px; }
    body.dt-public-page :is(#enquiryModal, #testimonialModal) .modal-dialog { margin-block: 12px; }
    body.dt-public-page :is(#enquiryModal, #testimonialModal) .modal-content { max-height: calc(100dvh - 24px); }
    body.dt-public-page :is(#enquiryModal, #testimonialModal) :is(.modal-header, .modal-header-custom) { padding: 18px 20px; }
    body.dt-public-page :is(#enquiryModal, #testimonialModal) .modal-title { font-size: 22px; }
    .dt-public-page .career-file-input { min-height: 60px; padding-block: 12px; }
    /* Leave room for typing and validation when the mobile keyboard is open. */
    body.dt-public-page:has(form :is(input, select, textarea):focus) :is(.quick-contact, .admission-popup-launcher, #scrollUp) { visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
    .dt-public-page *, .dt-public-page *::before, .dt-public-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
