.img-3d-wrapper {
    perspective: 900px;
    width: 100%;
}

/* Shared styles */
.img1-3d, .img2-3d {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 0.375rem;
}

/* Only the difference */
.img1-3d { transform: rotate3d(0, 1, 0, 40deg); }
.img2-3d { transform: rotate3d(0, 1, 0, -40deg); }

.img1-3d:hover, .img2-3d:hover {
    transform: rotate3d(0, 1, 0, 0deg);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .img1-3d, .img2-3d {
        transform: none;
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    }
}

/* Custom enhancements for attractiveness */
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.custom-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.facility-card i {
    transition: transform 0.3s ease;
}

.facility-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.badge-custom {
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 500;
}

.explore-card {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.explore-card:hover {
    border-color: var(--secondary-color);
    background: #f8fafc;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    border-color: var(--secondary-color);
}

.btn-lg {
    padding: 12px 30px;
    font-weight: 600;
}


/* Homepage modern full-width system */
.home-modern {
    --home-shell: clamp(14px, 3.6vw, 56px);
    background:
        radial-gradient(1200px 500px at 0% -5%, rgba(37, 99, 235, 0.12), transparent 70%),
        radial-gradient(900px 500px at 100% 0%, rgba(30, 58, 138, 0.14), transparent 72%),
        linear-gradient(180deg, #f8fbff 0%, #f6f9ff 46%, #f7fbff 100%);
    overflow-x: clip;
}

.home-modern .container,
.home-modern .container-fluid {
    max-width: none !important;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--home-shell);
    padding-right: var(--home-shell);
}

#heroCaptionContent .d-flex {
    flex-wrap: wrap;
}

#heroCaptionContent .btn {
    width: auto;
}

.home-modern .section {
    position: relative;
}

.home-hero-section {
    position: relative;
    background: #eef4f8;
    padding-bottom: clamp(1.5rem, 4vw, 3.5rem);
}

.home-modern .home-hero-section .container {
    width: min(94%, 1460px) !important;
}

.home-hero-section .hero-carousel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #102a4c;
}

.home-hero-section .carousel-inner {
    overflow: hidden;
}

.home-hero-section .hero-carousel .carousel-item {
    min-height: clamp(700px, 78vh, 880px);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateZ(0);
}

.home-hero-section .hero-carousel .carousel-item::before {
    background:
        linear-gradient(90deg, rgba(7, 18, 38, 0.88) 0%, rgba(13, 36, 70, 0.72) 42%, rgba(13, 36, 70, 0.22) 72%),
        linear-gradient(180deg, rgba(7, 18, 38, 0.06), rgba(7, 18, 38, 0.48));
    z-index: 1;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    /* Pin hero content to bottom of the banner */
    align-items: flex-end;
    padding: clamp(1.75rem, 3vw, 3rem) 0 clamp(1.75rem, 3.5vw, 4rem);
    pointer-events: none;
}

.home-hero-overlay .container {
    pointer-events: auto;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.home-hero-grid {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.home-hero-copy {
    width: min(760px, 100%);
    color: #ffffff;
    margin: 0 auto;
    text-align: center;
    padding: 0 0 clamp(0.5rem, 1.1vw, 1.1rem);
    opacity: 1 !important;
    transform: none !important;
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #d9f99d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.home-hero-copy h1 {
    max-width: 640px;
    margin: 0 0 0.85rem;
    color: #ffffff;
    font-size: clamp(2.05rem, 4.1vw, 4.3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.home-hero-copy p {
    max-width: 650px;
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
    margin-bottom: 1.15rem;
}

.home-hero-actions .btn {
    border-radius: 999px;
    min-height: 44px !important;
    /* Override Bootstrap .btn-lg so banner layout isn't affected */
    padding: 0.55rem 1.1rem !important;
    font-size: 0.98rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-hero-secondary {
    color: #102a4c;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.16);
}

.home-hero-call {
    display: inline-grid;
    grid-template-columns: 42px auto;
    align-items: center;
    column-gap: 0.75rem;
    min-height: 48px;
    padding: 0.35rem 0.85rem 0.35rem 0.42rem;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(15, 118, 110, 0.9);
    border: 1px solid rgba(94, 234, 212, 0.42);
    box-shadow: 0 18px 36px rgba(13, 148, 136, 0.2);
}

.home-hero-call:hover {
    color: #ffffff;
    background: rgba(13, 148, 136, 0.98);
}

.home-hero-call i {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    background: #ffffff;
}

.home-hero-call span,
.home-hero-call strong {
    display: block;
    line-height: 1.15;
}

.home-hero-call span {
    font-size: 0.66rem;
    opacity: 0.86;
}

.home-hero-call strong {
    font-size: 0.82rem;
}

.home-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    width: min(560px, 100%);
}

.home-hero-stats div {
    min-width: 0;
    padding: 0.9rem 0.9rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.home-hero-stats strong {
    display: block;
    color: #fcd34d;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.home-hero-stats span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 600;
}

.home-hero-care-panel {
    display: none;
}

.home-hero-panel-image {
    position: relative;
    min-height: 210px;
    overflow: hidden;
}

.home-hero-panel-image img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    display: block;
}

.home-hero-panel-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(4, 14, 28, 0.78));
}

.home-hero-panel-image span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    display: inline-flex;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.76rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.home-hero-panel-body {
    padding: 1.2rem;
}

.home-hero-panel-body h2 {
    margin: 0 0 0.9rem;
    color: #ffffff;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: 0;
}

.home-hero-panel-list {
    display: grid;
    gap: 0.65rem;
}

.home-hero-panel-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 0.78rem;
    padding: 0.75rem;
    border-radius: 16px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-hero-panel-list a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.home-hero-panel-list i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #103b4a;
    background: #d9f99d;
}

.home-hero-panel-list strong,
.home-hero-panel-list small {
    display: block;
}

.home-hero-panel-list strong {
    font-size: 0.92rem;
    line-height: 1.2;
}

.home-hero-panel-list small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    line-height: 1.35;
}

.home-hero-section .carousel-indicators {
    left: auto;
    right: clamp(1.5rem, 4vw, 5rem);
    bottom: clamp(1.3rem, 2.6vw, 2.4rem);
    justify-content: flex-end;
    width: auto;
    margin: 0;
}

.home-hero-section .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    opacity: 0.55;
}

.home-hero-section .carousel-indicators .active {
    opacity: 1;
}

.home-hero-section .carousel-control-prev,
.home-hero-section .carousel-control-next {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
}

.home-quick-actions {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: clamp(1.4rem, 3vw, 2.75rem);
}

.home-quick-action {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    min-height: 96px;
    padding: 1rem;
    color: #182235;
    text-decoration: none;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-quick-action:hover {
    color: #102a4c;
    transform: translateY(-5px);
    border-color: rgba(14, 165, 183, 0.45);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.home-quick-action i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0ea5b7);
    box-shadow: 0 14px 26px rgba(14, 165, 183, 0.2);
}

.home-quick-action strong,
.home-quick-action small {
    display: block;
}

.home-quick-action strong {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    line-height: 1.2;
}

.home-quick-action small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.home-care-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.1rem;
}

.home-care-highlight {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    min-width: 0;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.home-care-highlight i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #083344;
    background: linear-gradient(135deg, #d9f99d, #99f6e4);
}

.home-care-highlight strong,
.home-care-highlight span {
    display: block;
}

.home-care-highlight strong {
    margin-bottom: 0.25rem;
    color: #132238;
    font-size: 0.96rem;
    line-height: 1.25;
}

.home-care-highlight span {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.home-wide-image-section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 0;
    background: #eef4f8;
}

.home-wide-image-section .container {
    width: min(94%, 1460px) !important;
}

.home-wide-image {
    position: relative;
    min-height: clamp(320px, 44vw, 620px);
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    isolation: isolate;
}

.home-wide-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: -2;
}

.home-wide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 17, 34, 0.02) 35%, rgba(6, 17, 34, 0.78) 100%),
        linear-gradient(90deg, rgba(6, 17, 34, 0.58), rgba(6, 17, 34, 0.08));
}

.home-wide-image-caption {
    position: absolute;
    left: clamp(1rem, 3vw, 2.2rem);
    right: clamp(1rem, 3vw, 2.2rem);
    bottom: clamp(1rem, 3vw, 2.2rem);
    max-width: 760px;
    color: #ffffff;
}

.home-wide-image-caption span {
    display: inline-flex;
    margin-bottom: 0.65rem;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(15, 118, 110, 0.86);
    border: 1px solid rgba(153, 246, 228, 0.34);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-wide-image-caption strong {
    display: block;
    font-size: clamp(1.55rem, 3vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.home-pathways-section {
    padding: clamp(3.5rem, 6vw, 6.5rem) 0;
    background:
        linear-gradient(180deg, #eef4f8 0%, #ffffff 100%);
}

.home-pathways-section .container {
    width: min(94%, 1460px) !important;
}

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.home-section-heading span {
    display: block;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-section-heading h2 {
    max-width: 850px;
    margin: 0;
    color: #132238;
    font-size: clamp(2rem, 3.8vw, 3.75rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.home-pathways-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.home-pathway-card {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.home-pathway-card:hover {
    color: #ffffff;
}

.home-pathway-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.45s ease;
}

.home-pathway-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(6, 17, 34, 0.02) 25%, rgba(6, 17, 34, 0.88) 100%),
        linear-gradient(90deg, rgba(6, 17, 34, 0.38), rgba(6, 17, 34, 0.04));
}

.home-pathway-card:hover img {
    transform: scale(1.06);
}

.home-pathway-card > div {
    padding: 1.45rem;
}

.home-pathway-kicker {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(15, 118, 110, 0.86);
    border: 1px solid rgba(153, 246, 228, 0.34);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-pathway-card h3 {
    margin: 0 0 0.65rem;
    color: #ffffff;
    font-size: clamp(1.28rem, 2vw, 1.75rem);
    line-height: 1.16;
    font-weight: 800;
}

.home-pathway-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    font-size: 0.94rem;
}

.home-split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.home-split-heading span {
    display: block;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.home-split-heading h2 {
    max-width: 760px;
    margin: 0;
    color: #132238;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    line-height: 1.07;
    font-weight: 800;
    letter-spacing: 0;
}

.home-split-heading p {
    max-width: 460px;
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

.home-centres-section {
    background:
        linear-gradient(180deg, #eff4fb 0%, #ffffff 100%);
}

.home-centres-section .container,
.home-enquiry-section .container,
.home-audience-section .container,
.home-journey-section .container {
    width: min(95%, 1500px) !important;
    max-width: none !important;
}

.home-centres-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-centre-card {
    min-height: 420px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-radius: 22px;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.15);
}

.home-centre-card:hover {
    color: #ffffff;
}

.home-centre-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.45s ease;
}

.home-centre-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(4, 12, 24, 0.05) 20%, rgba(4, 12, 24, 0.9) 100%);
}

.home-centre-card:hover img {
    transform: scale(1.06);
}

.home-centre-card div {
    padding: 1.35rem;
}

.home-centre-card h3 {
    margin: 0 0 0.55rem;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.18;
    font-weight: 800;
}

.home-centre-card p {
    margin: 0 0 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    font-size: 0.9rem;
}

.home-centre-card span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #d9f99d;
    font-weight: 800;
    font-size: 0.86rem;
}

.home-enquiry-section {
    background:
        radial-gradient(800px 420px at 10% 0%, rgba(14, 165, 183, 0.16), transparent 65%),
        #ffffff;
}

.home-enquiry-visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 65px rgba(15, 23, 42, 0.16);
}

.home-enquiry-visual img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.home-enquiry-visual-card {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(7, 27, 50, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.home-enquiry-visual-card i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #083344;
    background: #d9f99d;
    font-size: 1.25rem;
}

.home-enquiry-visual-card strong,
.home-enquiry-visual-card span {
    display: block;
}

.home-enquiry-visual-card strong {
    font-size: 1.05rem;
    margin-bottom: 0.18rem;
}

.home-enquiry-visual-card span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.86rem;
    line-height: 1.4;
}

.home-audience-section {
    background:
        linear-gradient(180deg, #f8fbff 0%, #edf6f8 100%);
}

.home-audience-section .custom-card {
    border-radius: 22px;
}

.home-audience-section .card-img-top {
    min-height: 290px;
}

.home-journey-section {
    background: #102a4c;
}

.home-journey-section .home-split-heading h2,
.home-journey-section .home-split-heading p {
    color: #ffffff;
}

.home-journey-section .home-split-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.home-journey-section .home-split-heading span {
    color: #d9f99d;
}

.home-journey-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-journey-card {
    min-height: 230px;
    padding: 1.4rem;
    border-radius: 20px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.18);
}

.home-journey-card i {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #083344;
    background: linear-gradient(135deg, #d9f99d, #67e8f9);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
}

.home-journey-card strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
}

.home-journey-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
    font-size: 0.92rem;
}

.home-modern .custom-card,
.home-modern .stat-card,
.home-modern .facility-card,
.home-modern .explore-card {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(150deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.10);
}

.home-modern .custom-card:hover,
.home-modern .stat-card:hover,
.home-modern .facility-card:hover,
.home-modern .explore-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(30, 64, 175, 0.18) !important;
}

.home-modern .section-title {
    letter-spacing: 0.01em;
}

.home-modern .section-title::after {
    width: 82px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.home-modern .hero-caption-bar {
    border-top: 1px solid rgba(255,255,255,0.22);
    background: linear-gradient(135deg, rgba(7, 27, 75, 0.92), rgba(20, 51, 124, 0.9));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.42);
}

.home-modern .img-3d-wrapper img {
    transform-style: preserve-3d;
}

.home-modern .gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.38));
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.home-modern .gallery-item:hover::after {
    opacity: 1;
}

.home-modern .badge {
    backdrop-filter: blur(4px);
}

@media (min-width: 1600px) {
    .home-modern {
        --home-shell: clamp(24px, 4vw, 86px);
    }
}

@media (max-width: 992px) {
    .home-modern {
        --home-shell: clamp(12px, 3vw, 24px);
    }

    .home-modern .custom-card:hover,
    .home-modern .stat-card:hover,
    .home-modern .facility-card:hover,
    .home-modern .explore-card:hover {
        transform: translateY(-4px);
    }
}

.home-ref-about {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background:
        linear-gradient(180deg, rgba(240, 247, 255, 0.72), rgba(255, 255, 255, 0.95));
}

.home-ref-about .container {
    width: min(95%, 1500px) !important;
    max-width: none !important;
}

.home-ref-about-card {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe8f6;
    box-shadow: 0 24px 60px rgba(15, 44, 95, 0.12);
}

.home-ref-about-image-wrap {
    height: 100%;
    min-height: 560px;
    position: relative;
}

.home-ref-about-image-wrap img {
    height: 100%;
    min-height: 560px;
    width: 100%;
    object-fit: cover;
}

.home-ref-about-image-wrap::after {
    background: linear-gradient(180deg, rgba(6, 22, 42, 0) 35%, rgba(6, 22, 42, 0.76) 100%);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.home-ref-about-image-badge {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    bottom: 1.4rem;
    box-shadow: 0 16px 38px rgba(15, 44, 95, 0.18);
    left: 1.4rem;
    max-width: min(330px, calc(100% - 2.8rem));
    padding: 1rem 1.1rem;
    position: absolute;
    z-index: 1;
}

.home-ref-about-image-badge span {
    color: #0f766e;
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.home-ref-about-image-badge strong {
    color: #0f2f6f;
    display: block;
    font-size: 1rem;
    line-height: 1.35;
}

.home-ref-about-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: clamp(1.5rem, 3.4vw, 3.6rem);
}

.home-ref-about-kicker {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.home-ref-about-content h2 {
    color: #0f2f6f;
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 0.9rem;
    max-width: 860px;
}

.home-ref-about-lead {
    color: #334155;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    font-weight: 600;
    line-height: 1.65;
    margin-bottom: 1.35rem;
    max-width: 780px;
}

.home-ref-about-facts {
    background: #f8fbff;
    border: 1px solid #dbe8f6;
    border-radius: 14px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.home-ref-about-facts div {
    padding: 1rem;
}

.home-ref-about-facts div + div {
    border-left: 1px solid #dbe8f6;
}

.home-ref-about-facts strong {
    color: #0f766e;
    display: block;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.home-ref-about-facts span {
    color: #64748b;
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-ref-about-copy {
    border-left: 3px solid #0f766e;
    padding-left: 1.15rem;
}

.home-ref-about-content h3 {
    color: #0f766e;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0.95rem 0 0.4rem;
}

.home-ref-about-content p {
    font-size: 0.95rem;
    line-height: 1.72;
    color: #5f6f84;
    margin-bottom: 1rem;
}

.home-ref-about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.45rem;
}

.home-ref-stat-pill {
    background: linear-gradient(135deg, #12b8d8, #1499d0);
    border-radius: 14px;
    text-align: center;
    padding: 0.75rem 0.5rem;
    box-shadow: 0 8px 18px rgba(20, 153, 208, 0.35);
    height: 100%;
}

.home-ref-stat-pill strong {
    display: block;
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.home-ref-stat-pill span {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 500;
}

.home-ref-btn {
    padding-inline: 2rem;
    border-radius: 999px;
    font-weight: 800;
}

.home-ref-mission {
    background: #ffffff;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.home-ref-mission .container {
    width: min(95%, 1500px) !important;
    max-width: none !important;
}

.home-ref-mission .row > [class*="col-"] {
    display: flex;
    min-width: 0;
}

.home-ref-mission-heading {
    padding: 1.8rem 0.75rem;
    min-height: 100%;
}

.home-ref-mission-heading h2 {
    color: #0ea5b7;
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.home-ref-mission-heading p {
    color: #374151;
    font-size: clamp(1.7rem, 2.7vw, 2.5rem);
    margin: 0;
    line-height: 1.35;
    font-weight: 500;
}

.home-ref-mission-card {
    border: 1px solid #eaecf0;
    border-radius: 16px;
    background: #ffffff;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
    width: 100%;
    height: 100%;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-ref-mission-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.home-ref-mission-title i {
    color: #111827;
    opacity: 0.85;
    font-size: 1.2rem;
}

.home-ref-mission-title h3 {
    color: #0ea5b7;
    font-size: 1.08rem;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.home-ref-mission-card p {
    margin: 0;
    color: #374151;
    line-height: 1.7;
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

.home-ref-departments {
    background: #eff4fb;
}

.home-ref-departments .row > [class*="col-"] {
    display: flex;
}

.home-ref-departments .row > [class*="col-"] > a {
    display: block;
    width: 100%;
}

.home-ref-department-card {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6eaf2;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: none;
    margin-inline: auto;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

.home-ref-department-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 1.4rem;
    background: #ffffff;
}

.home-ref-department-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f2f8f, #12b8d8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 14px 30px rgba(15, 47, 143, 0.22);
}

.home-ref-department-card h3 {
    font-size: 1rem;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0.85rem 0.6rem 0.9rem;
    line-height: 1.25;
    font-weight: 600;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #12b8d8, #1499d0);
    flex: 1 1 auto;
}

.home-ref-campus {
    background: #ffffff;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.home-ref-campus .section-title {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    margin-bottom: 1rem;
}

.home-ref-campus .section-subtitle {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.65;
}

.home-ref-campus-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e6eaf2;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-ref-campus-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.home-ref-campus-title {
    background: linear-gradient(135deg, #12b8d8, #1499d0);
    color: #ffffff;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 0.5rem;
    line-height: 1.2;
    margin-top: auto;
}

.home-ref-notices .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.home-ref-notices-image-card {
    flex: 1 1 auto;
    min-height: 420px;
}

.home-ref-notices .custom-card.bg-white.shadow-lg.border-0 {
    flex: 1 1 auto;
}

@media (min-width: 1200px) {
    .col-xl-2-4 {
        width: 20%;
    }
}

@media (max-width: 1199px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-care-panel {
        display: none;
    }

    .home-pathways-grid {
        grid-template-columns: 1fr;
    }

    .home-pathway-card {
        min-height: 360px;
    }

    .home-care-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-centres-grid,
    .home-journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-split-heading {
        display: block;
    }

    .home-split-heading p {
        margin-top: 0.9rem;
    }
}

@media (max-width: 991px) {
    .home-modern .container,
    .home-modern .container-fluid {
        width: 92%;
    }

    .home-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 1.25rem;
    }

    .home-hero-section .hero-carousel .carousel-item {
        min-height: 640px;
    }

    .home-hero-section .carousel-indicators {
        left: 0;
        right: 0;
        justify-content: center;
        bottom: 1rem;
    }

    .home-section-heading {
        display: block;
    }

    .home-section-heading span {
        margin-bottom: 0.55rem;
    }

    .home-centres-grid,
    .home-journey-grid {
        grid-template-columns: 1fr;
    }

    .home-centre-card {
        min-height: 340px;
    }

    .home-journey-card {
        min-height: 0;
    }

    .home-ref-about {
        padding-top: 1rem;
        padding-bottom: 2.5rem;
    }

    .home-ref-about-image-wrap,
    .home-ref-about-image-wrap img {
        min-height: 300px;
    }

    .home-ref-about-content {
        justify-content: flex-start;
    }

    .home-ref-about-content h2 {
        margin-bottom: 1rem;
    }

    .home-ref-campus {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .home-ref-campus-card img {
        height: 180px;
    }

    .home-ref-notices-image-card {
        min-height: 340px;
    }

    .home-ref-mission {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .home-ref-mission-card {
        min-height: 210px;
        padding: 1.45rem 1.2rem;
    }

    .home-ref-department-card {
        min-height: 0;
    }

    .home-ref-department-icon {
        width: 64px;
        height: 64px;
        font-size: 1.45rem;
    }

    .home-ref-department-card h3 {
        font-size: 0.95rem;
        min-height: 58px;
    }
}

@media (max-width: 767.98px) {
    .home-modern .container,
    .home-modern .container-fluid {
        width: 96%;
        padding-left: clamp(10px, 3vw, 16px);
        padding-right: clamp(10px, 3vw, 16px);
    }

    .home-hero-section {
        padding-bottom: 2rem;
    }

    .home-hero-section .hero-carousel .carousel-item {
        min-height: 630px;
        background-position: center bottom;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .home-hero-section .hero-carousel .carousel-item::before {
        background:
            linear-gradient(180deg, rgba(5, 17, 34, 0.82) 0%, rgba(5, 17, 34, 0.64) 47%, rgba(5, 17, 34, 0.24) 100%),
            linear-gradient(90deg, rgba(5, 17, 34, 0.74), rgba(5, 17, 34, 0.18));
    }

    .home-hero-section .carousel-control-prev,
    .home-hero-section .carousel-control-next {
        display: none;
    }

    .home-hero-overlay {
        position: static;
        inset: auto;
        display: block;
        padding: 0;
        margin-top: 1rem;
        pointer-events: auto;
    }

    .home-hero-overlay .container {
        height: auto;
        display: block;
        align-items: initial;
        justify-content: initial;
    }

    .home-hero-grid {
        width: 100%;
        display: block;
    }

    .home-hero-copy {
        width: min(420px, 100%);
        margin: 0 auto;
        margin-top: 0;
        padding: 1rem;
        text-align: center;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid #dce8f7;
        box-shadow: 0 10px 26px rgba(13, 44, 95, 0.1);
        backdrop-filter: none;
    }

    .home-hero-eyebrow {
        font-size: 0.68rem;
        padding: 0.48rem 0.7rem;
        margin-bottom: 0.75rem;
    }

    .home-hero-copy h1 {
        max-width: 350px;
        font-size: clamp(1.75rem, 8vw, 2.35rem);
        line-height: 1.04;
        margin-bottom: 0.7rem;
    }

    .home-hero-copy p {
        max-width: 350px;
        font-size: 0.84rem;
        line-height: 1.48;
        margin-bottom: 1rem;
    }

    .home-hero-actions {
        gap: 0.6rem;
        margin-bottom: 0.9rem;
    }

    .home-hero-actions .btn {
        min-height: 44px;
        padding: 0.65rem 1rem;
        font-size: 0.92rem;
    }

    .home-hero-call {
        min-height: 46px;
        grid-template-columns: 34px auto;
        padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    }

    .home-hero-call i {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .home-hero-call span {
        display: none;
    }

    .home-hero-call strong {
        font-size: 0.82rem;
    }

    .home-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        max-width: 350px;
    }

    .home-hero-stats div {
        padding: 0.65rem 0.55rem;
        border-radius: 13px;
        border: 0;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
    }

    .home-hero-stats strong {
        font-size: 1.14rem;
        color: #ffffff;
    }

    .home-hero-stats span {
        font-size: 0.68rem;
        color: rgba(255, 255, 255, 0.92);
    }

    .home-hero-stats div:nth-child(1) {
        background: linear-gradient(135deg, #ea580c, #f97316);
    }

    .home-hero-stats div:nth-child(2) {
        background: linear-gradient(135deg, #1d4ed8, #2563eb);
    }

    .home-hero-stats div:nth-child(3) {
        background: linear-gradient(135deg, #0f766e, #14b8a6);
    }

    .home-quick-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .home-care-highlights {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .home-quick-action {
        min-height: 76px;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 0.82rem;
        border-radius: 14px;
    }

    .home-quick-action i {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .home-ref-mission-heading {
        padding: 0.75rem 0;
    }

    .home-ref-mission-heading h2 {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
    }

    .home-ref-mission-heading p {
        font-size: clamp(1.2rem, 5.2vw, 1.6rem);
    }

    .home-ref-mission-card {
        min-height: 0;
        padding: 1.2rem 1rem;
    }

    .home-ref-mission-title h3 {
        font-size: 1rem;
    }

    .home-ref-mission-card p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .home-ref-department-card {
        min-height: 0;
    }

    .home-ref-department-icon-wrap {
        padding: 1.6rem 0.85rem 1.1rem;
    }

    .home-ref-department-card h3 {
        font-size: 0.88rem;
        min-height: 0;
        padding: 0.75rem 0.5rem;
        word-break: break-word;
    }

    .home-ref-campus-card img {
        height: 150px;
    }

    .section-title {
        font-size: clamp(1.55rem, 6.5vw, 2rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }
}

@media (min-width: 768px) {
    .home-hero-overlay {
        align-items: flex-end;
        padding-bottom: clamp(1.75rem, 3.5vw, 4rem);
    }

    .home-hero-overlay .container {
        height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .home-hero-grid {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .home-hero-copy {
        margin: 0 auto;
        text-align: center;
    }

    .home-hero-actions {
        justify-content: center;
    }

    .home-hero-stats {
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .home-modern .container,
    .home-modern .container-fluid {
        width: 100%;
    }

    .home-ref-about-card {
        border-radius: 16px;
    }

    .home-ref-about-image-wrap,
    .home-ref-about-image-wrap img {
        min-height: 240px;
    }

    .home-ref-about-content {
        padding: 1.15rem;
    }

    .home-ref-about-content h2 {
        font-size: 1.65rem;
    }

    .home-ref-about-content p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .home-ref-about-facts {
        grid-template-columns: 1fr;
    }

    .home-ref-about-facts div + div {
        border-left: 0;
        border-top: 1px solid #dbe8f6;
    }

    .home-ref-about-actions {
        display: grid;
    }

    .home-ref-department-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .home-ref-campus-title {
        font-size: 0.88rem;
        padding: 0.65rem 0.45rem;
    }

    .home-ref-notices-image-card {
        min-height: 250px;
    }

    #heroCaptionContent h1 {
        font-size: 1.25rem;
        line-height: 1.35;
        margin-bottom: 0.65rem;
    }

    #heroCaptionContent p {
        margin-bottom: 1rem;
    }

    #heroCaptionContent .btn {
        width: 100%;
    }
}
