@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #004d99;
    --secondary: #00a3cc;
    --accent: #ff6a00;
    --danger: #dc3545;
    --light-bg: #f8fbff;
    --dark: #0a1d37;
    --glass: rgba(255, 255, 255, 0.9);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Header & Nav */
.top-bar {
    background: var(--dark);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; }
.top-bar a:hover { color: #fff; }

.navbar {
    background: var(--glass);
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
    padding: 15px 0;
}

.navbar.sticky-top {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 55px;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--dark) !important;
    padding: 10px 18px !important;
    position: relative;
    transition: 0.3s;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.navbar .nav-link:hover::after, .navbar .nav-link.active::after {
    width: 25px;
}

.dropdown-toggle::after {
    display: none !important;
}

/* Hero Section */
.hero-wrap {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider, .hero-slider .carousel-inner, .hero-slider .carousel-item {
    height: 100%;
}

.hero-slider .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(10, 29, 55, 0.8) 0%, rgba(10, 29, 55, 0.2) 100%);
}

.hero-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 5;
    color: #fff;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Floating Appointment Form in Hero */
.hero-form-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    color: var(--dark);
}

/* Section Common */
.section-padding {
    padding: 85px 0;
}

.page-banner {
    padding: 40px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h6 {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
}

/* Stats */
.stats-section {
    background: var(--primary);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0;
}

.stat-item p {
    color: rgba(255,255,255,0.8);
    margin-top: -5px;
    font-weight: 500;
}

/* Services V2 */
.service-card-v2 {
    background: #fff;
    padding: 45px 35px;
    border-radius: 24px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #edf2f7;
    height: 100%;
}

.service-card-v2:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0,77,153,0.1);
}

.service-icon {
    width: 90px;
    height: 90px;
    line-height: 90px;
    background: var(--light-bg);
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 40px;
    color: var(--primary);
    transition: 0.4s;
}

.service-card-v2:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

/* Why Choose Us */
.feature-item {
    display: flex;
    margin-bottom: 25px;
}

.feature-icon {
    min-width: 60px;
    height: 60px;
    background: var(--light-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab-button {
    width: 65px;
    height: 65px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: 0.3s;
}

.fab-button:hover {
    background: var(--primary);
    transform: scale(1.1);
    color: #fff;
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    .fab-button {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* Mobile Nav Redesign */
@media (max-width: 991px) {
    .hero-title { font-size: 3rem; }
    .hero-wrap { height: auto; padding: 100px 0; }
    .hero-form-card { margin-top: 40px; }
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        border-radius: 20px;
        margin-top: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }
}

/* Premium Marquee Redesign */
.marquee-wrapper {
    background: #fff;
    font-size: 14px;
}

.marquee-badge {
    background: linear-gradient(135deg, var(--danger) 0%, #aa0000 100%);
    color: #fff;
    clip-path: polygon(0 0, 93% 0, 100% 100%, 0% 100%);
    letter-spacing: 1px;
    white-space: nowrap;
    z-index: 10;
    font-size: 13px;
    text-transform: uppercase;
}

.pulse-icon i {
    animation: flashPulse 1.5s infinite;
}

@keyframes flashPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.marquee-text {
    line-height: normal;
}
.marquee-text span {
    font-size: 15px;
}

/* Premium Footer */
.footer {
    background-color: var(--dark);
    position: relative;
    border-top: 5px solid var(--primary);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 8px;
    margin-right: 10px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none !important;
    transition: 0.3s;
    display: inline-block;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '\f105'; /* FontAwesome right arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.copyright-bar {
    background-color: #061421; /* Darker than default dark for contrast */
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Legacy Section Styles */
.legacy-title-area {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

.legacy-title-area h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

.legacy-title-area p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.legacy-box {
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(0, 163, 204, 0.8) 100%), url('https://images.unsplash.com/photo-1586773860418-d37222d8fce3?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    border-radius: 12px;
    padding: 60px 40px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.legacy-box h2 {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.3;
}

.legacy-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
}

.legacy-feature-icon {
    min-width: 55px;
    height: 55px;
    font-size: 26px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    background: rgba(0, 163, 204, 0.1);
    border-radius: 10px;
    transition: 0.3s;
}

.legacy-feature:hover .legacy-feature-icon {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.1);
}

.legacy-feature h6 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.legacy-feature p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Testimonial Section */
.testimonial-card {
    border-radius: 16px;
    overflow: hidden;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: transparent;
}

.testi-body {
    background-color: #eaf0f9;
    padding: 35px 30px;
    min-height: 220px;
    border-radius: 16px 16px 0 0;
}

.testi-footer {
    background-color: #fdedeb;
    padding: 20px 30px;
    border-radius: 0 0 16px 16px;
}

.owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-dots .owl-dot {
    outline: none;
}

.owl-dots .owl-dot.active span, .owl-dots .owl-dot:hover span {
    background: var(--dark) !important;
}

.owl-dots .owl-dot span {
    background: #ccc !important;
    width: 25px !important;
    height: 6px !important;
    border-radius: 4px !important;
    margin: 5px !important;
    display: inline-block;
    transition: 0.3s;
}

/* Custom Scrollbar for Standard Vertical Dropdown */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary); 
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeUp 0.3s forwards;
    }
}

@media (max-width: 991px) {
    .offcanvas.offcanvas-start {
        background-color: #ffffff !important;
    }
    .offcanvas-body {
        padding: 0;
        background-color: #ffffff !important;
    }
    .offcanvas-body .navbar-nav {
        padding: 0;
    }
    .offcanvas-body .nav-item {
        margin: 0;
        border-bottom: 1px solid #ebebeb;
    }
    .offcanvas-body .nav-link {
        padding: 15px 25px !important;
        font-weight: 600;
        color: var(--dark) !important;
        border-radius: 0;
        display: flex;
        align-items: center;
    }
    .offcanvas-body .nav-link::after {
        display: none !important;
    }
    .offcanvas-body .nav-link:hover, .offcanvas-body .nav-link.active {
        background-color: #f4f8fe;
        color: var(--primary) !important;
    }
    .offcanvas-body .dropdown-menu {
        border: none;
        background-color: #f8fafc;
        margin: 0;
        padding: 0;
        width: 100% !important;
        box-shadow: none !important;
        border-radius: 0;
    }
    .offcanvas-body .dropdown-menu.custom-scroll {
        max-height: none !important;
        overflow: visible !important;
    }
    .offcanvas-body .dropdown-header {
        padding: 15px 25px 5px 25px !important;
        font-size: 13px;
        margin: 0;
        width: 100%;
        background-color: #f0f4f9;
        display: block;
    }
    .offcanvas-body .dropdown-item {
        padding: 12px 25px 12px 25px !important;
        font-size: 14.5px;
        color: #444;
        white-space: normal;
        width: 100%;
        border-bottom: 1px solid #f1f4f8;
        display: block;
    }
    .offcanvas-body .dropdown-item:hover {
        background-color: #ebf0f7;
        color: var(--primary);
    }
}

/* Department Slider & Box Structure */
.dept-box {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s ease;
    border: 1px solid #f0f0f0;
    margin-bottom: 10px;
    height: 100%;
}

.dept-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.dept-img {
    height: 220px;
    overflow: hidden;
}

.dept-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.dept-box:hover .dept-img img {
    transform: scale(1.1);
}

.dept-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 29, 55, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.dept-overlay .btn {
    transform: translateY(20px);
    transition: 0.4s;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
}

.dept-box:hover .dept-overlay {
    opacity: 1;
}

.dept-box:hover .dept-overlay .btn {
    transform: translateY(0);
}

.dept-content {
    padding: 25px;
}

.dept-content h5 {
    color: var(--dark);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.arrow-link i {
    transition: 0.3s;
}

.arrow-link:hover i {
    transform: translateX(5px);
}

.dept-nav-arrows .btn {
    transition: 0.3s;
}

.dept-nav-arrows .btn:hover {
    transform: scale(1.1);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Hero Grid Styles */
.hero-grid-section {
    padding: 30px 0;
    background: #f8fbff;
}
.hero-container {
    background: var(--primary);
    padding: 20px;
    border-radius: 20px;
}
.hero-slider-wrap {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}
.hero-slider-wrap img {
    height: 367px; /* Reduced by 20% from 459px */
    object-fit: cover;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 100%;
}
.feature-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.feature-card .card-img {
    flex-grow: 1;
    overflow: hidden;
    height: 200px; /* Fallback base height */
}
.feature-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-card .card-body {
    padding: 15px 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card .card-body h6 {
    margin: 0;
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}
@media (max-width: 991px) {
    .feature-grid {
        margin-top: 20px;
    }
    .hero-slider-wrap img {
        height: 210px; /* Reduced to match mobile proportions */
    }
}
