:root {
    --svdc-home-crimson: #780109;
    --svdc-home-crimson-bright: #ae1f23;
    --svdc-home-navy: #003049;
    --svdc-home-cream: #fffdef;
}

body:has(main#main > .hero) {
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    background: #fff;
}

#main > .hero.home-hero-has-image {
    display: grid;
    min-height: 480px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(38px, 6vw, 82px) clamp(24px, 7vw, 100px);
    background:
        radial-gradient(ellipse at 87% 12%, rgb(174 31 35 / 12%), transparent 30%),
        linear-gradient(115deg, #fffdef, #fff 72%);
}

.home-hero-has-image .hero-content {
    max-width: 720px;
}

.home-hero-has-image .hero-mark {
    display: none;
}

.home-hero-has-image .eyebrow {
    color: var(--svdc-home-crimson);
}

.home-hero-has-image .hero h1,
.home-hero-has-image h1 {
    color: var(--svdc-home-navy);
    font-weight: 800;
    letter-spacing: -.045em;
}

.home-hero-has-image .hero-actions .button--primary {
    background: var(--svdc-home-crimson);
}

.home-hero-has-image .hero-actions .button--primary:hover {
    background: var(--svdc-home-crimson-bright);
}

.homepage-hero-image {
    position: relative;
    width: min(100%, var(--home-image-width, 680px));
    height: min(100%, var(--home-image-height, 430px));
    min-height: 280px;
    justify-self: end;
    overflow: hidden;
    margin: 0;
    border: 7px solid #fff;
    border-radius: 24px 24px 70px 24px;
    background: #f4ece8;
    box-shadow: 0 28px 65px rgb(40 34 35 / 18%);
}

.homepage-hero-image::after {
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(transparent, rgb(38 19 22 / 16%));
    content: "";
    pointer-events: none;
}

.homepage-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-section {
    max-width: 1280px;
}

.welcome-section .eyebrow--dark {
    color: var(--svdc-home-crimson);
}

.welcome-section h2 {
    color: var(--svdc-home-navy);
    font-weight: 800;
    letter-spacing: -.035em;
}

.quick-links {
    max-width: 1280px;
    gap: 16px;
    padding-bottom: 76px;
}

.quick-card {
    min-height: 116px;
    border-color: #eee3df;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgb(74 33 33 / 4%);
}

.quick-card:hover,
.quick-card:focus-visible {
    border-color: rgb(120 1 9 / 35%);
    box-shadow: 0 16px 34px rgb(74 33 33 / 10%);
}

.quick-card-icon {
    color: var(--svdc-home-crimson);
    background: #f8eeeb;
}

.quick-card strong {
    color: var(--svdc-home-navy);
    font-weight: 750;
}

.quick-card-arrow {
    color: var(--svdc-home-crimson);
}

@media (max-width: 760px) {
    #main > .hero.home-hero-has-image {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 38px 22px 34px;
    }

    .home-hero-has-image .hero-content {
        max-width: none;
    }

    .homepage-hero-image {
        width: min(100%, var(--home-image-width, 680px));
        height: min(58vw, var(--home-image-height, 430px));
        min-height: 210px;
        justify-self: stretch;
        border-radius: 18px 18px 52px 18px;
    }

    .quick-links {
        padding-right: 18px;
        padding-left: 18px;
    }
}


/* ============================================================
   Single SVDC Hero Section (Responsive Web & Mobile)
   ============================================================ */
.svdc-single-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.svdc-single-hero .n-ftu-hero {
    min-height: 520px;
    width: 100%;
    box-sizing: border-box;
}

/* Web View (Desktop >= 992px): Use uploaded banner svdc-080659db.webp, show portrait on left */
@media (min-width: 992px) {
    .svdc-single-hero .n-ftu-hero {
        background-image: url('/uploads/2026/10/svdc-080659db.webp') !important;
        background-position: center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        min-height: 540px !important;
        position: relative !important;
    }
    .svdc-single-hero .n-ftu-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.42) 40%, rgba(255, 255, 255, 0.92) 65%, rgba(255, 255, 255, 0.98) 100%);
        pointer-events: none;
        display: block !important;
        z-index: 0;
    }
    .svdc-single-hero .container {
        position: relative;
        z-index: 1;
    }
    .svdc-single-hero .n-ftu-hero-visual {
        display: flex !important;
        visibility: visible !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        position: relative !important;
        min-height: 540px !important;
        height: 100% !important;
    }
    .svdc-single-hero .n-ftu-hero-girl {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        max-height: 530px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: bottom left !important;
        z-index: 2 !important;
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18)) !important;
    }
    .svdc-single-hero .n-ftu-mobile-girl {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Mobile View (< 992px): Use svdc-080659db.webp background, show mobile girl */
@media (max-width: 991px) {
    .svdc-single-hero .n-ftu-hero {
        min-height: auto !important;
        padding-bottom: 24px !important;
        background-image: url('/uploads/2026/10/svdc-080659db.webp') !important;
        background-position: center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
    .svdc-single-hero .n-ftu-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.88) !important;
        pointer-events: none;
        display: block !important;
        z-index: 0;
    }
    .svdc-single-hero .container {
        position: relative;
        z-index: 1;
    }
    .svdc-single-hero .n-ftu-hero-girl,
    .svdc-single-hero .n-ftu-hero-visual {
        display: none !important;
    }
    .svdc-single-hero .n-ftu-mobile-girl {
        display: block !important;
        visibility: visible !important;
        margin: 18px auto 0 !important;
        width: min(310px, 86vw) !important;
        position: relative !important;
        z-index: 1 !important;
    }
}


/* ============================================================
   SVDC Life at Dental College Gallery Dynamic Transitions
   ============================================================ */
.n-life-gallery {
    transition: opacity 0.22s ease;
}

.n-life-gallery.is-updating {
    opacity: 0.35;
}

.n-life-gallery article {
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.n-life-gallery article:hover {
    transform: translateY(-4px);
}

.n-life-gallery article img {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* ============================================================
   SVDC Footer Announcement Bar & Bottom Bar Styling
   ============================================================ */
.svdc-footer-announcement-bar {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #021a36 0%, #002b5b 30%, #003b73 50%, #002b5b 70%, #021a36 100%);
    border-top: 2px solid #00b4d8;
    border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    overflow: hidden;
    padding: 10px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    z-index: 5;
}

.svdc-f-ticker-track {
    display: flex;
    width: max-content;
    animation: svdc-ticker-scroll 32s linear infinite;
    will-change: transform;
}

.svdc-footer-announcement-bar:hover .svdc-f-ticker-track {
    animation-play-state: paused;
}

.svdc-f-ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 20px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #f8fafc;
}

.svdc-f-ticker-badge {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    margin-right: 12px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.svdc-f-ticker-text {
    color: #e2e8f0;
}

.svdc-f-ticker-link {
    display: inline-block;
    color: #00e5ff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.svdc-f-ticker-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

.svdc-f-ticker-separator {
    color: #00e5ff;
    font-size: 13px;
}

@keyframes svdc-ticker-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.svdc-bottom-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   SVDC Custom Placements Showcase (Top 5-Slide Dots + Bottom 8 A4 Arrow Slider + Lightbox)
   ============================================================ */
.n-placement-wrap:has(.n-placement-gallery) {
    align-items: stretch;
}

.n-placement-wrap:has(.n-placement-gallery) .n-placement-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.n-placement-students.n-placement-gallery {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Top slider (5 images + dots + touch swipe + click/tap to view) */
.n-placement-top-slider {
    position: relative;
    width: 100%;
    outline: none;
}

.n-placement-top-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.8;
    overflow: hidden;
    border-radius: 18px;
    background: #f1f5f9;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.13);
    touch-action: pan-y;
}

.n-placement-top-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.n-placement-top-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    user-select: none;
    overflow: hidden;
}

.n-placement-top-slide .n-placement-photo {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 35% !important;
    display: block;
    transition: transform 0.35s ease;
    pointer-events: none;
}

.n-placement-top-slide:hover .n-placement-photo {
    transform: scale(1.02);
}

.n-placement-top-dots {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.n-placement-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #1e3a8a;
    opacity: 0.45;
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.n-placement-dot:hover {
    opacity: 0.85;
}

.n-placement-dot.is-active {
    width: 24px;
    background: #d6002f;
    opacity: 1;
}

/* Bottom A4 portrait slider (8 images + prev/next arrows + touch swipe + click/tap to view) */
.n-placement-bottom-slider {
    width: 100%;
    outline: none;
}

.n-placement-bottom-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2px 0 8px;
    touch-action: pan-y;
}

.n-placement-bottom-track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.n-placement-a4-card {
    position: relative;
    flex: 0 0 calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
    aspect-ratio: 210 / 297;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    cursor: zoom-in;
    user-select: none;
}

.n-placement-photo-a4 {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
    pointer-events: none;
}

.n-placement-a4-card:hover .n-placement-photo-a4 {
    transform: scale(1.025);
}

.n-placement-zoom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(0, 48, 73, 0.72);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    opacity: 0.82;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    pointer-events: none;
}

.n-placement-top-slide:hover .n-placement-zoom-badge,
.n-placement-a4-card:hover .n-placement-zoom-badge {
    opacity: 1;
    transform: scale(1.08);
    background: #004a94;
}

.n-placement-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding: 0 2px;
}

.n-placement-bottom-counter {
    font-size: 0.8rem;
    font-weight: 800;
    color: #004a94;
    letter-spacing: 0.06em;
}

.n-placement-bottom-arrows {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.n-placement-arrow-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid #004a94;
    background: #004a94;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(1, 61, 120, 0.24);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.n-placement-arrow-btn:hover,
.n-placement-arrow-btn:focus-visible {
    background: #ffffff;
    color: #004a94;
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(1, 61, 120, 0.28);
}

/* Lightbox modal for touch & click full image view */
.svdc-placement-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(9, 17, 34, 0.92);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.svdc-placement-lightbox.is-open {
    display: flex;
}

.svdc-lb-dialog {
    position: relative;
    max-width: min(92vw, 960px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.svdc-lb-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 80vh;
    touch-action: pan-y;
}

.svdc-lb-img {
    max-width: 88vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.svdc-lb-caption {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    max-width: 90%;
}

.svdc-lb-close,
.svdc-lb-prev,
.svdc-lb-next {
    position: fixed;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 100000;
}

.svdc-lb-close:hover,
.svdc-lb-prev:hover,
.svdc-lb-next:hover {
    background: #004a94;
    transform: scale(1.06);
}

.svdc-lb-close {
    top: 18px;
    right: 18px;
}

.svdc-lb-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.svdc-lb-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.svdc-lb-prev:hover {
    transform: translateY(-50%) scale(1.06);
}

.svdc-lb-next:hover {
    transform: translateY(-50%) scale(1.06);
}

@media (max-width: 575px) {
    .n-placement-top-viewport {
        border-radius: 14px;
        aspect-ratio: 16 / 9.5;
    }

    .n-placement-bottom-track {
        gap: 10px;
    }

    .n-placement-a4-card {
        flex: 0 0 calc((100% - 10px) / 2);
        width: calc((100% - 10px) / 2);
        border-radius: 11px;
    }

    .n-placement-arrow-btn {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .svdc-lb-prev,
    .svdc-lb-next {
        width: 38px;
        height: 38px;
    }
}
