/* Global Variables */
:root {
    --primary-green: #249F6E;
    /* User specified Green */
    --dark-green: #1e875d;
    /* Slightly darker for hover */
    --light-green: #eafaf1;
    /* Background tint - keeping light */
    --accent-color: #f1c40f;
    /* Gold/Yellow for highlights */
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
#main-header {
    background: var(--white);
    padding: 5px 0;
    /* Reduced padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    /* Ensure anchor wraps image */
}

.logo img {
    max-height: 110px;
    /* Increased logo size further */
    width: auto;
    transition: max-height 0.3s ease;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-green);
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--light-green);
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--dark-green);
    color: var(--white);
}

/* Sticky Header Animation */
#main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.4s ease forwards;
    padding: 5px 0;
}

#main-header.sticky .logo img {
    max-height: 70px;
    /* Shrink logo slightly on sticky */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('assets/banner.png') no-repeat center center/cover;
    padding: 80px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 159, 110, 0.85);
    /* #249F6E in RGB */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-content {
    flex: 1;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 .highlight {
    color: var(--primary-green);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
}

/* Hero Form */
.hero-form-wrapper {
    flex: 0 0 400px;
    max-width: 100%;
}

.consultation-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-top: 5px solid var(--primary-green);
}

.consultation-form h3 {
    text-align: center;
    color: var(--dark-green);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.form-group textarea {
    resize: vertical;
    height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--dark-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: #219150;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

/* Responsive - Mobile First Approach Checks */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        /* Form on top for mobile/tablet if needed, but per request "form on top" implies specific mobile layout */
        text-align: center;
        padding-top: 20px;
    }

    .hero-content {
        margin-top: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-form-wrapper {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        padding-top: 60px;
        /* Space for sticky header */
    }

    .hero-section {
        padding: 40px 0 60px;
        min-height: auto;
        background-position: center left;
        /* Adjust BG for mobile */
    }

    .hero-content {
        margin-top: 20px;
        color: var(--white);
        /* Ensure contrast on mobile if overlay covers all */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .header-contact span {
        display: none;
        /* Icon only on very small screens? or keep it? Let's keep for now but if too tight, hide text */
    }

    .logo a {
        font-size: 1.2rem;
    }

    /* Make header sticky */
    #main-header {
        position: sticky;
        top: 0;
    }
}

/* General Section Styles */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-green);
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title .subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.highlight {
    color: var(--primary-green);
}

.highlight-dark {
    color: var(--dark-green);
}

.text-center {
    text-align: center;
}

/* Grid & Layout Utilities */
.row {
    display: flex;
    align-items: center;
    /* Vertical center */
    gap: 40px;
}

.col-image,
.col-text {
    flex: 1;
}

.rounded-img {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
    height: 400px;
    /* Fixed height for consistency */
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* About Monjaro Specifics */
.check-list {
    margin: 25px 0;
}

.check-list li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list li i {
    color: var(--primary-green);
}

.btn-link {
    color: var(--dark-green);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-link:hover {
    gap: 12px;
    color: #219150;
}

/* Specialties Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.specialty-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specialty-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 15px 30px rgba(46, 204, 113, 0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--dark-green);
    transition: var(--transition);
}

.specialty-card:hover .icon-box {
    background: var(--dark-green);
    color: var(--white);
}

.specialty-card h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.specialty-card p {
    font-size: 0.95rem;
    color: #666;
}

/* About Hospital Stats */
.stat-grid {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    font-weight: 700;
}

.stat-item span {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}

/* Responsive Content Sections */
@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .row {
        flex-direction: column;
    }

    .reverse-mobile {
        flex-direction: column-reverse;
    }

    /* Specific overrides */
    .about-monjaro .row {
        flex-direction: column;
    }

    .about-hospital .row {
        flex-direction: column;
    }

    .stat-grid {
        justify-content: space-between;
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .rounded-img {
        height: auto;
        max-height: 300px;
    }
}

/* Doctor Slider Styles */
.doctors-section {
    position: relative;
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.slider-track-container {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.slider-slide {
    min-width: 100%;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.doctor-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 350px;
    max-width: 100%;
    text-align: center;
    transition: var(--transition);
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doc-img {
    height: 250px;
    overflow: hidden;
}

.doc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doc-img img {
    transform: scale(1.05);
}

.doc-info {
    padding: 25px;
}

.doc-info h3 {
    color: var(--dark-green);
    margin-bottom: 5px;
}

.doc-info span {
    display: block;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doc-info p {
    font-size: 0.95rem;
    color: #666;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--dark-green);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover {
    background: var(--primary-green);
    color: var(--white);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.slider-nav button {
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.slider-nav button.current-slide {
    background: var(--primary-green);
    transform: scale(1.2);
}

/* Video Section (Grid on Desktop, Scroll on Mobile) */
.video-grid-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-wrapper {
    width: 100%;
    background: #000;
}

.video-card h4 {
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .video-grid-slider {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid on Tablet */
    }
}

@media (max-width: 768px) {
    .slider-track-container {
        height: auto;
        /* Allow auto height on mobile if needs change */
        min-height: 450px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Make video section slidable on mobile */
    .video-grid-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 20px;
        gap: 20px;
        grid-template-columns: none;
        /* Reset grid */
    }

    .video-card {
        min-width: 85%;
        /* Show part of next card */
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    /* Hide scrollbar */
    .video-grid-slider::-webkit-scrollbar {
        height: 6px;
    }

    .video-grid-slider::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }
}

/* Main Footer Styles */
.main-footer {
    background: #1a252f;
    color: var(--white);
    padding: 60px 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-img {
    max-height: 50px;

}

.footer-logo p {
    color: #bdc3c7;
    max-width: 300px;
}

.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-contact ul li {
    margin-bottom: 15px;
    color: #bdc3c7;
    display: flex;
    gap: 10px;
}

.footer-contact ul li i {
    color: var(--primary-green);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 20px 0;
    background: #151e26;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* responsive wrap */
    gap: 10px;
}

.footer-bottom a {
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-green);
}

@media (max-width: 768px) {
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    /* Hidden by default (Desktop) */
}

.sticky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.sticky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
    border-right: 1px solid #eee;
    transition: background 0.3s;
}

.sticky-item:last-child {
    border-right: none;
}

.sticky-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-green);
}

.sticky-item:active {
    background: #f0f0f0;
}

.sticky-item.appointment {
    background: var(--primary-green);
    color: var(--white);
}

.sticky-item.appointment i {
    color: var(--white);
}

/* Desktop Floating Buttons */
.desktop-floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-float {
    background: #25D366;
}

.appointment-float {
    background: var(--dark-green);
}

/* Footer Responsive Logic */
@media (max-width: 768px) {
    .main-footer {
        padding-bottom: 70px;
        /* Add padding so sticky footer doesn't cover content */
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .mobile-sticky-footer {
        display: block;
    }

    .desktop-floating-buttons {
        display: none;
    }
}