/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette: Deep Emerald, Soft Coral, Amber */
    --primary-color: #06623B; /* Deep Emerald - Trust & Professionalism */
    --primary-dark: #044a2c;
    --primary-light: #e6f2ed;
    --secondary-color: #E63946; /* Soft Coral - Urgent but friendly */
    --secondary-dark: #c92a37;
    --accent-color: #F4D35E; /* Amber - Optimism */
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --light-bg: #F7FAF9; /* Cool mint-tinted gray */
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif; /* Modern, clean font */
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--light-bg);
    overflow-x: hidden;
    font-size: 16px; /* Improved readability */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
}

a {
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: none;
    outline: none;
}

/* CUSTOM PRELOADER - Green Background */
/* Preloader Removed - Using CSS Animation instead */

/* ANIMATIONS */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-info {
    animation: fadeSlideUp 0.8s ease-out forwards;
}

/* Header & Top Bar */
/* Header & Top Bar */
/* Header & Top Bar */
/* Header & Top Bar */
header {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 1002;
}

header p, 
header .text-align-right span,
header .text-align-right i {
    color: var(--text-color) !important;
    font-weight: 500;
}

header p {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

header .text-align-right span {
    margin-left: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

header .text-align-right i {
    color: var(--primary-color) !important; /* Accentuate icons */
    font-size: 16px;
}

/* Navbar */
.navbar-default {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Glassmorphism */
    border: none;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
    padding: 10px 0;
    min-height: 80px;
    border-radius: 0;
    transition: var(--transition);
}

.navbar-default.sticky {
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}

.navbar-default .container {
    width: 95%;
    max-width: 1280px; 
}

.navbar-header {
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    height: 70px; 
    padding: 0;
    margin-left: 0;
}

.logo-container {
    background: transparent;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    padding: 0;
    box-shadow: none;
}

.logo-container img {
    max-height: 100%;
}

.brand-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.navbar-collapse {
    padding-right: 0;
}

.navbar-default .navbar-nav {
    float: right;
    margin: 0;
}

.navbar-default .navbar-nav > li > a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: capitalize; /* More legible than uppercase */
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin: 0 4px;
}

/* Desktop Alignment */
@media (min-width: 768px) {
    .navbar-default .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-header {
        float: none;
    }

    .navbar-collapse {
        float: none !important;
        padding-right: 0;
        box-shadow: none; /* Reset shadow from mobile if any */
    }

    .navbar-default .navbar-nav {
        display: flex;
        align-items: center;
        float: none; /* Remove float */
        margin: 0;
        height: 70px;
    }
    
    .navbar-default .navbar-nav > li > a {
        display: block;
        line-height: 24px; /* Reset line-height */
    }
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a {
    color: var(--primary-color);
    background-color: var(--primary-light) !important;
    border-bottom: none; /* Removed harsh border */
    transform: translateY(-1px);
}

.appointment-btn {
    margin-left: 15px;
}

.appointment-btn a {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 28px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    margin-top: 0 !important;
    line-height: normal !important; 
    text-transform: capitalize;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.appointment-btn a:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
#home {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.owl-carousel .item {
    height: 650px; /* SLightly taller */
    background-size: cover;
    background-position: center;
    position: relative;
}

.owl-carousel .item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern Gradient: Deep Emerald to transparent black */
    background: linear-gradient(90deg, rgba(6, 98, 59, 0.9) 0%, rgba(6, 98, 59, 0.6) 50%, rgba(0,0,0,0.1) 100%); 
}

.owl-carousel .caption {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    text-align: left;
    color: var(--white);
    z-index: 2;
}

.owl-carousel h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.owl-carousel h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.section-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: capitalize;
    border: none;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
    font-size: 16px;
}

.section-btn:hover {
    background: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 57, 70, 0.4);
}

.btn-gray {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    box-shadow: none;
    backdrop-filter: blur(5px);
}

.btn-gray:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-blue {
    background: var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 10px 20px rgba(244, 211, 94, 0.4);
}

.btn-blue:hover {
    background: #e5c345;
    color: var(--text-color);
}

/* Section Common */
section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 70px;
    text-align: center;
}

.section-title h2 {
    font-size: 42px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    color: var(--primary-color);
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Services */
#services {
    background-color: var(--light-bg);
}

.service-thumb {
    background: var(--white);
    padding: 50px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    border: none;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.service-thumb:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-thumb::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-thumb:hover::after {
    transform: scaleX(1);
}

.service-icon i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition);
}

.service-thumb:hover .service-icon i {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* About Section */
#about {
    background-color: var(--white);
}

#company-about {
    background-color: var(--light-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306623b' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding-top: 150px;
    padding-bottom: 150px;
    position: relative;
    text-align: center;
}

.about-info h2 {
    color: var(--primary-color);
}

.profile img {
    border: none;
    padding: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.profile figcaption h3 {
    color: var(--primary-color);
    margin-top: 20px;
}

.profile figcaption p {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Doctor / Team Cards */
.team-thumb {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 30px;
    text-align: center;
    border: none;
}

.team-thumb:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-thumb img {
    height: 300px;
    width: 100%;
    object-fit: cover; /* Cleaner crop */
    background: var(--light-bg);
    padding-top: 0;
}

.team-info {
    padding: 25px;
    background: var(--white);
}

.team-info h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.team-info p.text-primary {
    color: var(--secondary-color) !important;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Schedule & Search */
#news {
    background-color: var(--light-bg);
}

#carikeyword .input-group .form-control {
    border: 1px solid #e0e0e0;
    height: 55px;
    border-radius: 50px 0 0 50px;
    padding-left: 30px;
    box-shadow: var(--shadow-sm);
    font-size: 15px;
}

#carikeyword .input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 98, 59, 0.1);
}

#carikeyword .input-group .btn {
    background: var(--primary-color);
    color: var(--white);
    border-radius: 0 50px 50px 0;
    padding: 0 35px;
    height: 55px;
    transition: var(--transition);
}

#carikeyword .input-group .btn:hover {
    background: var(--primary-dark);
}

/* Appointment Section */
#appointment {
    padding-top: 100px;
    padding-bottom: 100px;
    background: var(--white);
    color: var(--text-color) !important;
}

#appointment h2, #appointment h3, #appointment p, #appointment label {
    color: var(--text-color) !important;
}

#appointment-area {
    background: var(--white);
    color: var(--text-color) !important;
}

#appointment-area h2, #appointment-area p {
    color: var(--text-color) !important;
}

#appointment-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl, 0 20px 40px rgba(0,0,0,0.1)); /* Stronger shadow instead of glass on white */
    border: 1px solid #eee;
}

#appointment-form h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

#appointment-form p.mb-4 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-control {
    background: #f8f9fa;
    border: 1px solid #eee;
    height: 50px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.form-control:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 98, 59, 0.1); 
}

button#cf-submit {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 12px 0;
    transition: var(--transition);
}

button#cf-submit:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 98, 59, 0.2);
}

/* Footer */
footer {
    background-color: #111;
    color: #999;
    padding: 80px 0 0;
    position: relative;
}

.footer-thumb h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
}

.footer-thumb h4::after {
    background: var(--secondary-color);
    width: 40px;
    height: 3px;
    border-radius: 2px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 4px;
}

.social-icon li a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 16px;
}

.social-icon li a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.angle-up-btn a {
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    display: inline-block;
}

.angle-up-btn a:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    /* Mobile Topbar - Scroll Away */
    header {
        position: relative; /* Changed from fixed to relative so it scrolls */
        top: auto;
        left: auto;
    }
    
    header .container {
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        background: #f8f9fa;
    }

    header .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    header .col-md-5, header .col-md-7 {
        width: 100%;
        text-align: center;
        padding: 5px;
    }
    
    header .text-align-right {
        display: none;
    }

    /* Fixed/Sticky Navbar */
    .navbar-default {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000 !important;
        background: rgba(255, 255, 255, 0.98); /* Less transparent on mobile */
        padding: 5px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Ensure container doesn't trap the absolute sidebar */
    .navbar-default .container {
        position: static; 
    }

    .navbar-default .navbar-brand {
        font-size: 16px;
        height: auto;
        line-height: 1.2;
        padding: 10px 15px;
    }
    
    .logo-container {
        width: 40px;
        height: 40px;
    }

    .brand-text br {
        display: none;
    }

    /* Adjust Body Padding */
    body {
        padding-top: 0 !important; /* Reset padding since header is not fixed */
    }

    /* Sidebar attached to sticky navbar */
    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        position: absolute; /* Moves with the sticky navbar */
        top: 100%; /* Attach to bottom of navbar */
        left: -320px; /* Start from LEFT (fully hidden) */
        width: 280px;
        height: 100vh; /* Full height */
        z-index: 900; 
        transition: left 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0); /* Anime left property */
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1); /* Shadow on right side */
        display: block !important; 
        opacity: 0; 
        visibility: hidden;
        border-right: 1px solid #eee; /* Border on right */
        border-top: 1px solid #eee;
        border-left: none;
    }
    
    /* Open State (Toggled by JS) */
    body.show-nav .navbar-collapse {
        left: 0; /* Slide in to 0 */
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-toggle {
        margin-top: 10px;
        border: none;
        background: transparent !important;
    }
    
    .navbar-toggle .icon-bar {
        background-color: var(--primary-color);
        height: 3px;
        width: 25px;
    }
    
    /* Sidebar Links */
    .navbar-collapse .nav li a {
        color: var(--text-color) !important;
        padding: 15px 0;
        border-bottom: 1px solid #f1f1f1;
        text-align: left;
        font-weight: 600;
    }
    
    .navbar-collapse .nav li a:hover {
        color: var(--primary-color) !important;
        padding-left: 10px;
        background: transparent;
    }

    .owl-carousel h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .owl-carousel h3 {
        font-size: 16px;
    }

    .appointment-btn {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
    }
}
/* Music Control Button */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    animation: pulse-music 2s infinite;
}

.music-btn:hover {
    background-color: var(--secondary-dark);
    transform: scale(1.1);
}

.music-btn.playing {
    background-color: var(--primary-color);
    animation: spin 3s linear infinite;
}

@keyframes pulse-music {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustment so it doesn't overlap Back to top if needed, or stack */
@media screen and (max-width: 768px) {
    .music-btn {
        bottom: 80px; /* Move up slightly on mobile if needed */
        right: 20px;
    }
}

/* About Section Styles */
.about-info .lead {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.about-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
}

.about-feature-list li {
    margin-bottom: 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    color: #444;
}

.about-feature-list li i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

/* Director Card */
.director-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 25px; /* Increased padding */
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Softer shadow */
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
}

.director-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.director-img-wrapper {
    flex-shrink: 0;
    margin-right: 25px;
    width: 90px;
    height: 90px;
}

.director-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #f8f9fa; /* Lighter border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.director-info blockquote {
    font-size: 14px;
    font-style: italic;
    border: none;
    margin: 0 0 15px 0;
    padding: 0;
    color: #666;
    background: transparent;
    line-height: 1.6;
}

.director-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.director-info p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Image Frame */
.about-img-frame {
    position: relative;
    padding: 15px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 1;
    margin-top: 20px;
}

.about-img-frame img {
    border-radius: var(--radius-md);
    width: 100%;
    height: auto;
    display: block;
}

.pattern-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--accent-color) 20%, transparent 20%);
    background-size: 10px 10px;
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .director-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .director-img-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .about-img-frame {
        margin-top: 40px; /* More space on mobile */
    }
}

