html,
body {
    overflow-x: hidden !important;
    width: 100%;
}

/* Header & Branding Bar Improvements */
header {
    width: 100%;
    z-index: 999;
    background: #fff;
}

.branding-bar {
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .header-logo img {
        width: 220px !important;
        /* Smaller logo on mobile */
    }

    .branding-bar {
        padding: 15px 0;
    }
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu-overlay.active {
    /* Handled by GSAP autoAlpha */
}

.mobile-menu-content {
    text-align: center;
}

.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-nav a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #03056c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-nav a:hover {
    color: #d1234e;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #03056c;
    cursor: pointer;
    z-index: 10001;
}

/* Hamburger Icon Animation */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10002;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #03056c;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
    transform-origin: center;
}

@media (max-width: 1199.98px) {
    .menu-toggle {
        display: flex;
    }
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Prevent scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.mobile-menu-socials {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-socials a {
    font-size: 1.5rem;
    color: #03056c;
    transition: color 0.3s ease;
}

.mobile-menu-socials a:hover {
    color: #d1234e;
}

/* Hero Slider Optimization */
.hero-slider .swiper-slide {
    position: relative;
    overflow: hidden;
    background-color: #03056c;
    /* Fallback color */
    display: flex;
    align-items: center;
    min-height: 800px;
    /* Adjust based on your theme's default slider height */
}

.hero-slider .hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    filter: brightness(0.7);
    /* Maintain text readability */
}

.hero-slider .container-1700 {
    position: relative;
    z-index: 1;
    /* Keep content above image */
}

@media (max-width: 991.98px) {
    .hero-slider .swiper-slide {
        min-height: 600px;
    }
}

/* Reposition decorative line for centered sub-titles (e.g., Staff Page) */
.text-center .ts-sub-title {
    padding-left: 0 !important;
}

.text-center .ts-sub-title::before {
    left: 50% !important;
    top: -15px !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
}

/* Inner Hero Title Optimization */
.breadcumb-title {
    font-family: 'Playfair Display', serif !important;
    font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
    color: #03056c !important;
    margin-bottom: 15px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    display: block !important;
}

.breadcumb-content {
    max-width: 580px !important;
    /* Force wrap and keep clear of slanted image */
    position: relative !important;
    z-index: 5 !important;
    flex: 0 0 auto !important;
    /* Prevent flex-grow if in a flex container */
}

@media (max-width: 1199.98px) {
    .breadcumb-content {
        max-width: 480px !important;
    }
}

@media (max-width: 991.98px) {
    .breadcumb-content {
        max-width: 100%;
        text-align: left;
    }

    .breadcumb-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
}

.breadcumb-menu {
    margin-top: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.text-primary {
    color: #d2254d !important;
}