/* 
    University College - Professional Website Theme 
    Primary Color: Deep Oxford Blue (#002147)
    Accent Color: Gold/Amber (#F2A900)
*/

:root {
    --primary-color: #002147;
    --primary-color-rgb: 0, 33, 71;
    --primary-soft: rgba(0, 33, 71, 0.05);
    --primary-hover: #00152e;

    --accent-color: #F2A900;
    --accent-hover: #d99700;

    --text-main: #333333;
    --text-muted: #6c757d;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utilities */
.font-serif {
    font-family: var(--font-serif);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.tracking-wider {
    letter-spacing: 2px;
}

.fs-7 {
    font-size: 0.85rem;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.max-w-700 {
    max-width: 700px;
}

/* Custom Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.bg-primary-soft {
    background-color: var(--primary-soft) !important;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-main);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-main);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Spacing */
.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Transitions */
.transition {
    transition: all 0.3s ease-in-out;
}

.transition-transform {
    transition: transform 0.4s ease-in-out;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    font-size: 0.85rem;
}

.small-link:hover {
    color: var(--accent-color) !important;
}

/* Navbar */
.navbar-nav .nav-link {
    color: #495057;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.apply-btn {
    transition: all 0.3s;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 33, 71, 0.2) !important;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
}

.carousel-image-wrapper {
    height: 85vh;
    min-height: 600px;
    position: relative;
}

.carousel-image-wrapper img {
    height: 100%;
}

.hero-slider-section .overlay {
    background: linear-gradient(to right, rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.5));
    z-index: 1;
}

.hero-slider-section .carousel-caption {
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 10%;
    padding-bottom: 80px;
}

.hero-slider-section .swiper-slide-active .animate-up {
    animation: fadeInUp 0.8s forwards;
}

.hero-slider-section .swiper-slide:not(.swiper-slide-active) .animate-up {
    opacity: 0;
    animation: none;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stat-item {
    padding: 1.5rem;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #dee2e6;
}

@media (max-width: 767px) {
    .stat-item:nth-child(2)::after {
        display: none;
    }

    .stat-item:not(:last-child)::after {
        top: auto;
        bottom: 0;
        right: 20%;
        width: 60%;
        height: 1px;
    }
}

/* About Section */
.experience-badge {
    bottom: -20px;
    right: -20px;
    border: 5px solid white;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.group-hover:hover .transition-transform {
    transform: translateX(5px);
}

/* Programs Section */
.program-card {
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.program-card:hover img {
    transform: scale(1.05);
}

.program-link {
    transition: color 0.3s ease;
}

.program-card:hover .program-link {
    color: var(--accent-hover) !important;
}

/* CTA Section */
.cta-section {
    background: url('https://images.unsplash.com/photo-1525921473407-73d9c79f3db7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.cta-overlay {
    background-color: rgba(0, 33, 71, 0.85);
    top: 0;
    left: 0;
}

/* Footer */
.pt-7 {
    padding-top: 6rem;
}

.footer-links a i {
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

.text-hover-white:hover {
    color: white !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white;
    box-shadow: none;
}

.social-icon {
    width: 36px;
    height: 36px;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-color) !important;
    color: var(--text-main) !important;
    transform: translateY(-3px);
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

/* Multi-level Dropdown */
.dropdown-menu li {
    position: relative;
}

.dropdown-menu .dropdown-submenu>.dropdown-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-menu .dropdown-submenu-left>.dropdown-menu {
    right: 100%;
    left: auto;
}

.dropdown-menu .dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-item:hover {
    background-color: var(--primary-soft);
    color: var(--primary-color);
}

.navbar-nav .nav-link.dropdown-toggle::after {
    content: "\25B8";
    /* Right arrow for main nav as requested */
    border: none !important;
    vertical-align: middle;
    font-size: 1em;
    margin-left: 5px;
}

/* Custom Navbar Dropdown Styling */
@media (min-width: 1200px) {
    .navbar-nav .nav-link {
        white-space: nowrap;
    }

    .navbar .dropdown-menu {
        padding: 0;
        border-radius: 4px;
        border: 1px solid #ddd;
        min-width: 220px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    }

    .navbar .dropdown-item {
        padding: 12px 20px;
        border-bottom: 1px solid #eaeaea;
        color: #555;
        text-transform: uppercase;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar .dropdown-submenu>.dropdown-toggle::after {
        content: "\25B8";
        border: none !important;
        margin-left: auto;
        font-size: 1.2em;
        vertical-align: middle;
    }



}

/* Notice Board / News Ticker */
.notice-board {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.notice-content {
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    display: inline-block;
}

.notice-content:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translate3d(100%, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Principal Message Section */
.message-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
}

.message-image {
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Recruiters Carousel */
.recruiter-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    max-height: 60px;
}

.recruiter-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Campus Life Slider */
.campus-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.campus-slider-track {
    display: flex;
    width: 200%;
    /* 10 images total, half is visible (100%) */
    animation: scrollCampus 25s linear infinite;
}

.campus-slider-track:hover {
    animation-play-state: paused;
}

.campus-slider-track img {
    width: 10%;
    /* 10% of track (200% viewport) = 20% of viewport (5 images on screen) */
    height: 320px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.85);
}

.campus-slider-track img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    z-index: 10;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

@keyframes scrollCampus {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Shift 5 images exactly */
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {

    /* Multi-level Dropdown for Mobile */
    .dropdown-menu .dropdown-submenu>.dropdown-menu {
        position: static;
        display: none;
        padding-left: 1rem;
        margin-top: 0;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }

    .dropdown-menu .dropdown-submenu:hover>.dropdown-menu,
    .dropdown-menu .dropdown-submenu:focus>.dropdown-menu,
    .dropdown-submenu.show>.dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
        background-color: var(--light-bg);
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }

    .navbar-collapse {
        padding-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {

    /* Campus Life Slider for Mobile - Show 2 images instead of 5 */
    .campus-slider-track {
        width: 500%;
        /* 10 images / 2 visible at once = 500% viewport */
        animation: scrollCampusMobile 20s linear infinite;
    }

    .campus-slider-track img {
        width: 10%;
        /* 1/10th of track = 50% of viewport */
        height: 250px;
    }

    @keyframes scrollCampusMobile {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

    /* Hero Slider Adjustments */
    .carousel-image-wrapper {
        height: 60vh;
    }

    .hero-slider-section .carousel-caption {
        padding-top: 20%;
    }

    .display-3 {
        font-size: 2.2rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Top Bar Mobile Adjustments */
    .top-bar {
        display: block !important;
        text-align: center;
        font-size: 0.75rem;
    }

    .top-bar .col-md-5,
    .top-bar .col-md-4,
    .top-bar .col-md-3 {
        text-align: center !important;
        margin-bottom: 5px;
    }

    .social-links-top {
        justify-content: center;
        display: flex;
    }
}

/* Utilities */
.drop-shadow {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.max-w-700 {
    max-width: 700px;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .navbar-nav {
        align-items: flex-start !important;
    }

    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #eee;
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Clean Mobile Dropdowns */
    .navbar-nav .dropdown-menu {
        border: none !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding-left: 1.5rem !important;
        margin-left: 0 !important;
        border-left: 2px solid var(--accent-color) !important;
        border-radius: 0;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .navbar-nav .dropdown-submenu>.dropdown-menu {
        border-left: 2px solid #ccc !important;
    }

    .navbar-nav .dropdown-item {
        padding: 10px 0 !important;
        font-size: 1rem !important;
        border-bottom: 1px dashed #f0f0f0 !important;
        text-transform: none !important;
        color: var(--text-main) !important;
        background-color: transparent !important;
        font-weight: 500;
        white-space: normal;
    }

    .navbar-nav .dropdown-item:last-child {
        border-bottom: none !important;
    }

    .navbar-nav .dropdown-submenu>.dropdown-toggle::after {
        margin-left: 10px;
        float: right;
        margin-top: 8px;
        border-top: .3em solid;
        border-right: .3em solid transparent;
        border-bottom: 0;
        border-left: .3em solid transparent;
        border-color: currentColor transparent transparent transparent !important;
    }

    .navbar-nav .nav-link.dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-nav .nav-link.dropdown-toggle::after {
        content: "";
        border-top: .3em solid;
        border-right: .3em solid transparent;
        border-bottom: 0;
        border-left: .3em solid transparent;
        margin-left: 10px;
    }

    .navbar-nav .btn {
        width: 100%;
        margin-top: 1.5rem;
    }
}


/* Sticky Social Bar */
.sticky-social-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.sticky-social-bar .social-btn {
    width: 45px;
    height: 45px;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 14px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 50px 0 0 50px;
    margin-right: -5px;
    /* Overlap right edge slightly */
    overflow: hidden;
    position: relative;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-social-bar .social-btn i {
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sticky-social-bar .social-text {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Animation Effects */
.sticky-social-bar .social-btn:hover {
    width: 140px;
    /* Expand to pill shape */
    padding-left: 20px;
    margin-right: 0;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2);
}

.sticky-social-bar .social-btn:hover .social-text {
    opacity: 1;
    width: auto;
    margin-left: 12px;
}

.sticky-social-bar .social-btn:hover i {
    transform: scale(1.1);
}

/* Brand Colors on Hover */
.sticky-social-bar .facebook:hover {
    background-color: #1877F2;
}

.sticky-social-bar .instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sticky-social-bar .youtube:hover {
    background-color: #FF0000;
}

.sticky-social-bar .twitter:hover {
    background-color: #000000;
    border: 1px solid #333;
}

.sticky-social-bar .whatsapp:hover {
    background-color: #25D366;
}

.sticky-social-bar .location:hover {
    background-color: var(--accent-color);
}

/* Marquee Slider CSS */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 30px 0;
    background-color: #fff;
}

.marquee-container::before,
.marquee-container::after {
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    content: "";
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 25s linear infinite;
    gap: 80px;
    align-items: center;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content img {
    height: 45px;
    object-fit: contain;
    filter: grayscale(0%) opacity(0.9);
    transition: all 0.4s ease;
    cursor: pointer;
}

.marquee-content img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 40px));
    }
}

@media (max-width: 768px) {
    .marquee-content img {
        height: 35px;
    }

    .marquee-content {
        gap: 50px;
        animation: marquee 20s linear infinite;
    }
}



/* Color Matching Fixes */
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.nav-pills .nav-link {
    color: var(--primary-color) !important;
}

.nav-pills .nav-link:hover {
    background-color: var(--primary-soft) !important;
}

/* Date Badge Refinement */
.bg-accent {
    background-color: var(--accent-color) !important;
}


/* Dynamic Image Hover Animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .15) !important;
}

/* Ensure images do not overflow when scaled */
.hover-lift .position-relative,
.hover-lift .overflow-hidden {
    overflow: hidden;
}

.hover-lift .card-img-top,
.hover-lift .hover-zoom {
    transition: transform 0.5s ease-in-out;
}

.hover-lift:hover .card-img-top,
.hover-lift:hover .hover-zoom {
    transform: scale(1.08);
}


/* Global Bootstrap Color Overrides */
.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.page-link {
    color: var(--primary-color);
}

.page-link:hover {
    color: var(--primary-hover);
    background-color: var(--primary-soft);
}

.form-control:focus,
.form-select:focus,
.btn-check:focus+.btn,
.btn:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem var(--primary-soft);
}

/* Ensure all primary text/bg uses brand colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Custom badges */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Dropdown active item removed */
.dropdown-item.active,
.dropdown-item:active {
    background-color: transparent !important;
    color: inherit !important;
}

/* List group active */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}


/* Swiper Customizations */
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

.swiper-button-next-custom,
.swiper-button-prev-custom {
    transition: all 0.3s ease;
}

.swiper-button-next-custom:hover,
.swiper-button-prev-custom:hover {
    background-color: var(--primary-hover);
    color: #fff;
}



/* Global Floating Admission Button */
.floating-apply-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.floating-apply-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.pulse-icon {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .floating-apply-btn {
        display: none !important;
    }
}


/* Mobile Responsiveness Fixes */
@media (max-width: 768px) {

    /* .sticky-social-bar {
        display: none !important;
    } */
    .carousel-image-wrapper {
        height: 100svh;
        /* Use svh to account for mobile browser UI */
        min-height: 500px;
        /* Lower min-height to prevent pushing content off screen */
    }

    .hero-slider-section .carousel-caption {
        padding-top: 0 !important;
        justify-content: center !important;
        display: flex;
        flex-direction: column;
    }

    .hero-slider-section h1.display-3 {
        font-size: 1.8rem !important;
        /* Make title much smaller on mobile */
        margin-bottom: 1rem !important;
    }

    .hero-slider-section p.lead {
        font-size: 0.9rem;
        margin-bottom: 1.5rem !important;
        line-height: 1.4;
    }

    /* Scale down the large buttons */
    .hero-slider-section .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
        width: 100%;
        /* Make buttons full width */
        margin-bottom: 0.5rem;
    }

    /* Ensure the button container stacks cleanly */
    .hero-slider-section .d-flex.gap-3 {
        gap: 0.5rem !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Hide slider arrows on mobile (rely on swipe) */
    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        display: none !important;
    }
}


/* Swiper Hero Styles */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Swiper Navigation Arrows */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: var(--accent-color);
    background: rgba(0, 33, 71, 0.5);
    /* Semi-transparent primary */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 1.5rem;
    font-weight: bold;
}
/* Mobile Hero Slider Fixes */
@media (max-width: 767px) {
    .hero-slider-section .display-3 {
        font-size: 2.5rem;
    }
    .hero-slider-section .carousel-caption {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    .hero-slider-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }
    .hero-slider-section .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}
