/********** Template CSS **********/
/* Modernized Design System for GIM Hepatology */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Inter:wght@300;400;600&display=swap');

:root {
    /* New Palette: Medical Teal & Deep Navy */
    --primary: #0F766E;
    /* Deep Teal */
    --primary-light: #14b8a6;
    /* Brighter Teal for accents */
    --secondary: #334155;
    /* Slate */
    --accent: #F43F5E;
    /* Rose (Use sparingly) */

    --light: #F8FAFC;
    /* Very light slate gray background */
    --dark: #1E293B;
    /* Dark slate */
    --white: #ffffff;

    /* Spacing & Borders */
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--secondary);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    /* Pill shape */
    padding: 12px 30px;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 50px;
    height: 50px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    border-radius: 50%;
    /* Perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    border-radius: 50%;
    z-index: 99;
    box-shadow: var(--shadow-lg);
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Outfit', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 25px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary);
    outline: none;
    transition: .3s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 3px;
        bottom: 15px;
        left: 50%;
        background: var(--primary);
        transition: .3s;
        border-radius: 2px;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 992px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

/* --- Hero Section --- */
.hero-header {
    background: linear-gradient(to right, var(--dark), var(--primary));
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 3rem;
}

/* --- Service Icon --- */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    font-size: 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    fill: white;
}

.service-icon i {
    color: white;
}

/* --- Service Item (Card) --- */
.service-item {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    overflow: hidden;
}

.service-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: rgba(15, 118, 110, 0.2);
    /* faint teal border */
}

/* Make icons stand out */
.service-item .d-flex.justify-content-center.mb-4 {
    /* This targets the container of the svg/icon */
    background: var(--light);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* --- Carousels (Prices, Team, Testimonial) --- */
/* Common carousel nav styles */
.owl-nav .owl-prev,
.owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 50%;
    font-size: 18px;
    transition: .3s;
    box-shadow: var(--shadow-sm);
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
    background: var(--dark);
    transform: scale(1.1);
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Team Section overrides if needed */
.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 23px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

/* Testimonial Dots */
.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    transition: .3s;
}

.testimonial-carousel .owl-dot.active {
    width: 14px;
    height: 14px;
    background: var(--primary);
    transform: scale(1.2);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* --- Footer --- */
.bg-dark {
    background-color: var(--dark) !important;
}

.text-primary {
    color: var(--primary-light) !important;
    /* Lighter for dark background contrast */
}

/* --- Utility / Misc --- */
.mb-lg-0 {
    margin-bottom: 0 !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-name: fadeInUp;
}

/* --- About Section & Parallax --- */
.about-start {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.bg-parallax {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url(../img/liver-stethoscope.png);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}