* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0A1C3A;
    --navy-light: #1E3A6F;
    --navy-soft: #2C4A7A;
    --gold: #fa373e;
    --gold-light: #ad080ec2;
    --gray-bg: #F4F7FC;
    --text-light: #ffffff;
    --text-muted: #5A6E8A;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Typography improvements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navy utilities */
.bg-navy {
    background-color: var(--navy) !important;
}

.text-navy {
    color: var(--navy) !important;
}

.btn-navy {
    background-color: var(--navy);
    color: white;
    border-radius: 50px;
    padding: 10px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-navy:hover {
    background-color: var(--navy-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10, 28, 58, 0.2);
    color: white;
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline-navy:hover {
    background-color: var(--navy);
    color: white;
}

/* Topbar */
.topbar {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.topbar a {
    text-decoration: none;
    transition: 0.2s;
}

/* Navbar - modern */
.navbar {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(0px);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--gold) 0%, #FFB347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    font-weight: 600;
    margin: 0 10px;
    color: var(--navy);
    transition: 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gold);
    transition: 0.3s;
    border-radius: 10px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.offcanvas-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.offcanvas-body{
    overflow-y: visible !important;
    background-color: white !important;
}

@media (max-width: 500px) {
    .offcanvas-body{
        overflow-y: visible !important;
        background-color: white !important;
        height: 225vh;
    }
    .navbar-nav {
        padding: 20px 0px 200px;
    }
    .nav-item {
        background: #8080802a;
        padding: 5px 0;
        margin-bottom: 10px;
    }
    .nav-link {
        text-align: center;
    }
    .nav-link:hover {
        text-align: center;
        background: #fa373e;
        color: white !important;
    }
}

/* Hero Section - FULLY RESPONSIVE */
#heroCarousel .carousel-item {
    height: 85vh;
    min-height: 520px;
    background-size: cover;
    background-position: center center;
    position: relative;
}

@media (max-width: 992px) {
    #heroCarousel .carousel-item {
        height: 65vh;
        min-height: 450px;
        background-position: 70% center;
    }
}

@media (max-width: 768px) {
    #heroCarousel .carousel-item {
        height: 55vh;
        min-height: 400px;
        background-position: 65% center;
    }
}

@media (max-width: 576px) {
    #heroCarousel .carousel-item {
        height: auto;
        min-height: 180px;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }
}

#heroCarousel .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(10, 28, 58, 0.75) 0%, rgba(0, 0, 0, 0.45) 100%); */
}

.carousel-caption {
    bottom: 28%;
    z-index: 2;
    text-align: left;
    animation: fadeUp 0.7s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }

    .carousel-caption {
        bottom: 25%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.9rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(10, 28, 58, 0.7);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* DETAILS SECTION - NEW DESIGN: icon+heading inside card, arrow bottom half inside/outside, content below card */
.details-section {
    margin-top: -60px;
    position: relative;
    z-index: 15;
    background: linear-gradient(1deg, #193362, #193362, #193362, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
}

@media (max-width: 500px) {
    .details-section {
        /* background: linear-gradient(1deg, #193362, #193362, #193362, rgb(25 51 98), rgb(25 51 98 / 0%)); */
        background-color: #15355E;
        margin-top: 25px !important;
    }
    .exp-card{
        bottom: 25px !important;
        left: 100px !important;
    }
    .main-img{
        left: 30px !important;
    }

    .py-4 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .slider-track img {
        height: 100px !important;
    }
}

.detail-card-new {
    background: white;
    border-radius: 28px;
    padding: 2rem 1rem 1.2rem;
    text-align: center;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.detail-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 45px -12px rgba(10, 28, 58, 0.2);
}

.detail-icon {
    width: 75px;
    height: 75px;
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    margin: 15px auto 15px auto;
    font-size: 32px;
    border: 5px solid white;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
}

.detail-card-new h5 {
    font-weight: 800;
    margin-top: 8px;
    color: var(--navy);
    font-size: 1.25rem;
}

.detail-arrow-link {
    position: absolute;
    bottom: -20px;
    left: 50%;
    border: 3px solid #0a1c3a63;
    transform: translateX(-50%);
    background: var(--gold);
    width: 44px;
    height: 44px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 1.2rem;
    transition: 0.3s;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.detail-arrow-link:hover {
    background: var(--navy);
    color: white;
    transform: translateX(-50%) scale(1.08);
}

.card-content-below {
    margin-top: 28px;
    text-align: center;
    padding: 0 10px;
}

.card-content-below p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .details-section {
        margin-top: -30px;
    }

    .detail-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
        margin-top: -58px;
    }

    .detail-arrow-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* About stacked images */
.img-stack {
    position: relative;
    min-height: 380px;
}

.main-img {
    width: 55%;
    border-radius: 32px;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    box-shadow: 25px 25px 35px rgba(0, 0, 0, 0.08);
}

.back-img {
    width: 65%;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;
    border-radius: 32px;
    opacity: 1;
    border: 4px solid rgb(255, 255, 255);
}

.exp-card {
    position: absolute;
    bottom: -25px;
    left: 300px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    z-index: 4;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .img-stack {
        min-height: 280px;
    }

    .exp-card {
        padding: 0.4rem 1.2rem;
    }
}

/* News & events bottom-to-top */
.news-card,
.events-card {
    border-radius: 28px;
    overflow: hidden;
    height: 340px;
}

.marquee-up {
    display: flex;
    flex-direction: column;
    animation: scrollUp 7s linear infinite;
}

.marquee-up li {
    list-style: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.95rem;
}

.events-card .marquee-up li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes scrollUp {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-50%);
    }
}

.marquee-container:hover .marquee-up {
    animation-play-state: paused;
}

/* Counts rounded */
.counts-section {
    background: linear-gradient(120deg, #0A1C3A 0%, #15355E 100%);
    border-radius: 40px;
    /* margin: 20px 0; */
}

.counter-box h3 {
    font-size: 2.8rem;
    font-weight: 800;
}

/* Gallery */
.gallery-item {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--navy), transparent);
    color: white;
    padding: 25px;
    transition: 0.4s ease;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-item img {
        height: 220px;
    }
}

/* Recruiter slider */
.recruit-slider {
    overflow: hidden;
    white-space: nowrap;
    background: white;
    padding: 15px 0;
}

.slider-track {
    display: inline-block;
    animation: scrollLeft 22s linear infinite;
}

.slider-track img {
    height: 115px;
    margin: 0 42px;
    filter: grayscale(30%);
    opacity: 1;
    transition: 0.3s;
}

.slider-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-48%);
    }
}

@media (max-width: 768px) {
    .slider-track img {
        margin: 0 20px;
        height: 40px;
    }
}


/* =========================
   FACILITY SLIDER
========================= */

.facility-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.facility-slider {
    overflow: hidden;
    width: 100%;
}

.facility-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
}

.facility-card {
    min-width: calc(100% / 3 - 17px);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.facility-card:hover {
    transform: translateY(-8px);
}

.facility-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-info {
    padding: 20px;
    text-align: center;
}

.facility-info h5 {
    margin: 0;
    font-weight: 700;
    color: #0b1c39;
}

/* Buttons */

.facility-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: #0b1c39;
    color: #fff;
    border-radius: 50%;
    position: absolute;
    z-index: 10;
    transition: 0.3s;
}

.facility-btn:hover {
    background: #f5b400;
    color: #000;
}

.prevBtn {
    left: -20px;
}

.nextBtn {
    right: -20px;
}

/* Tablet */

@media(max-width:992px) {
    .facility-card {
        min-width: calc(100% / 2 - 15px);
    }
}

/* Mobile */

@media(max-width:576px) {

    .facility-card {
        min-width: 100%;
    }

    .prevBtn {
        left: 5px;
    }

    .nextBtn {
        right: 5px;
    }
}

/* Footer */
footer a {
    text-decoration: none;
    color: #ccc;
    transition: 0.2s;
}

footer a:hover {
    color: var(--gold);
}

.social-icons a {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
}

/* Responsive fine-tune */
@media (max-width: 576px) {
    .counter-box h3 {
        font-size: 1.8rem;
    }

    .counts-section {
        border-radius: 20px;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }
}