/* Modern Animations Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.8);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 3D Transform Styles */
.perspective-container {
    perspective: 1000px;
}

.team-member-3d {
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-member-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

/* Loading Animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reset dan Base Styles */

/* Informasi Kesehatan Section */
.health-info {
    padding: 80px 0;
    background: var(--light-gray);
}

.health-info-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
}

.health-info-item {
    background: var(--new-background-color);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1; /* Flex item to take equal space */
    transition: var(--transition);
}

.health-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.health-info-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.health-info-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.video-responsive {
    max-width: 100%;
    height: auto;
}

.health-info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.health-info-item p {
    color: #666;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #216163; /* Deep teal */
    --secondary-color: #2B7583; /* Medium blue-green */
    --accent-color: #0ff6e3; /* Light turquoise */
    --background-color: #EFFFFF; /* Very light cyan */
    --new-background-color: #ffffff; /* New background color */
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--background-color);
    background-attachment: fixed;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--new-background-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color); /* Ubah warna teks menjadi warna teks */
    font-weight: 500; /* Tebalkan font */
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--new-background-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--new-background-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide.prev {
    transform: none;
}

.carousel-slide.next {
    transform: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.carousel-prev,
.carousel-next {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--new-background-color);
    transform: scale(1.2);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--new-background-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--new-background-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    cursor: pointer;
}

.gallery-item.animate-slideInRight {
    animation: slideInRight 0.8s ease forwards;
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 80%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 8px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(33, 97, 99, 0.9), rgba(43, 117, 131, 0.9));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-caption {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    padding: 20px;
    /* Ensure content is centered horizontally and vertically */
    text-align: center;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox img {
    max-width: 70vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
    transform: scale(0.9);
    margin: 0 auto; /* Center horizontally */
    display: block;
}

.gallery-lightbox.active img {
    transform: scale(1);
}

/* Lightbox navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(33, 97, 99, 0.7);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background 0.3s ease;
    z-index: 1100;
}

.lightbox-nav:hover {
    background: rgba(33, 97, 99, 0.9);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Lightbox thumbnails container */
.lightbox-thumbnails {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    max-width: 90vw;
    padding-bottom: 10px;
}

/* Lightbox thumbnail images */
.lightbox-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

.lightbox-thumbnail:hover {
    opacity: 1;
}

.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Animasi bergantian untuk item galeri */
.gallery-item:nth-child(odd) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(even) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(3n) {
    animation-delay: 0.6s;
}

.gallery-item:nth-child(4n) {
    animation-delay: 0.8s;
}

/* Mitra Kami Section */
.partners {
    padding: 80px 0;
    background: var(--new-background-color);
}

.partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.partner-item {
    flex: 0 1 300px;
    background: var(--new-background-color);
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.partner-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partner-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.partner-item p {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--new-background-color);
    border-radius: 20px;
    margin: 20px;
    box-shadow: var(--shadow);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 80%; /* Adjusted width for smaller image */
    height: auto; /* Maintain aspect ratio */
    max-height: 300px; /* Set a maximum height */
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: translateY(-5px);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.contact-info.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-item:nth-child(1).animate {
    transition-delay: 0.2s;
}

.contact-item:nth-child(2).animate {
    transition-delay: 0.4s;
}

.contact-item:nth-child(3).animate {
    transition-delay: 0.6s;
}

.contact-item:nth-child(4).animate {
    transition-delay: 0.8s;
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    min-width: 30px;
    margin-top: 5px;
    transition: var(--transition);
}

.contact-item:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-item:hover h3 {
    color: var(--secondary-color);
}

.contact-item p {
    color: #555;
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    animation: slideInRight 1s ease-out;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.contact-form input:nth-child(1) {
    animation-delay: 0.3s;
}

.contact-form input:nth-child(2) {
    animation-delay: 0.5s;
}

.contact-form textarea {
    animation-delay: 0.7s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(119, 168, 168, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.9s;
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form button:hover::before {
    width: 300px;
    height: 300px;
}

.contact-form button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(33, 97, 99, 0.3);
}

/* Footer Section */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0 30px;
    color: var(--white);
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin-right: 70px;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    color: #777;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Team Structure Styles - Modern Design */
.team-structure {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.team-structure::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    z-index: 0;
}

.team-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 4rem;
}

.team-hero .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.team-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.team-category {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.category-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.category-title i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.team-member.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member.modern-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.team-member.modern-card:hover::before {
    transform: scaleX(1);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    position: relative;
    transition: var(--transition);
}

.team-member.modern-card:hover .member-photo {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(33, 97, 99, 0.8), rgba(43, 117, 131, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-member.modern-card:hover .photo-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 35px;
    height: 35px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.member-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.member-role {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.member-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.member-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.member-meta span {
    background: rgba(33, 97, 99, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-meta i {
    color: var(--secondary-color);
}

.btn-view-profile {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-view-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 97, 99, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Responsive Design for Team Section */
@media (max-width: 768px) {
    .team-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .member-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .team-hero .section-title {
        font-size: 2rem;
    }
    
    .team-hero .section-subtitle {
        font-size: 1rem;
    }
    
    .team-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}
.dropdown-content {
    display: none; /* Hide by default */
    position: absolute; /* Position it below the button */
    background-color: var(--white);
    min-width: 160px; /* Set a minimum width */
    box-shadow: var(--shadow);
    z-index: 1; /* Ensure it appears above other content */
}

.dropdown:hover .dropdown-content {
    display: block; /* Show on hover */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px; /* Add padding */
    text-decoration: none;
    display: block; /* Make links block elements */
}

.dropdown-content a:hover {
    background-color: var(--light-gray); /* Change background on hover */
}

/* Social Links Styles */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.5rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Accreditation Section */
.accreditation {
    padding: 80px 0;
    background: var(--white);
}

.accreditation-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.certificate-image {
    width: 400px; /* Adjusted width for accreditation image */
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.accreditation-description {
    flex: 1;
}

.accreditation-description p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.accreditation-description strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}
/* Awards Section */
.awards {
    padding: 80px 0;
    background: var(--light-gray);
}

.awards-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.awards-marquee::-webkit-scrollbar {
    height: 8px;
}

.awards-marquee::-webkit-scrollbar-track {
    background: transparent;
}

.awards-marquee::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.awards-grid {
    display: inline-flex;
    gap: 2rem;
    white-space: nowrap; /* Prevent wrapping */
    will-change: transform; /* Optimize for animation */
}

.awards-marquee:hover .awards-grid {
    animation-play-state: paused;
}

@keyframes slideLeftLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.award-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 200px; /* Ensure consistent width */
    flex-shrink: 0; /* Prevent items from shrinking */
}

.award-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.award-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

/* Team Structure Carousel Section */
.team-structure-carousel {
    padding: 60px 0;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.team-structure-carousel .section-title {
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.team-structure-carousel .section-subtitle {
    color: #cbd5e1;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.team-card {
    background: #f9fbff;
    border-radius: 20px;
    box-shadow: none;
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 220px;
    height: 220px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
    filter: none;
    transition: filter 0.3s ease;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: none;
}

.team-card:hover .member-photo img {
    transform: scale(1.05);
    filter: none;
}

.photo-overlay {
    display: none;
}

.member-name {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0b3c5d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    order: 0;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.member-name.normal {
    font-weight: 400;
    color: #6b7280;
    font-family: 'Poppins', sans-serif;
}

.verified-badge {
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    order: 0;
    margin-top: 0;
    margin-bottom: 1rem;
}

.skill-tag {
    background-color: #bfdbfe;
    color: #1e40af;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    user-select: none;
    transition: background-color 0.3s ease;
}

.skill-tag.dark {
    background-color: #2563eb;
    color: white;
}

.skill-tag:hover {
    background-color: #2563eb;
    color: white;
}



.carousel-pagination {
    text-align: center;
    margin-top: 1rem;
}

.pagination-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #a3c4f3;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: #1e90ff;
}

/* Responsive */
@media (max-width: 768px) {
    .team-card {
        flex: 0 0 220px;
    }
}

@media (max-width: 480px) {
    .team-card {
        flex: 0 0 180px;
    }
}

/* Facility Detail Page Styles */
.facility-detail {
    padding: 80px 0;
    background: var(--new-background-color);
}

.facility-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.facility-image {
    flex: 1;
    text-align: center;
}

.facility-description {
    flex: 1;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.facility-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Service Link Styles */
.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.service-link:hover {
    transform: translateY(-5px);
}

/* Responsive for Facility Detail */
@media (max-width: 768px) {
    .facility-content {
        flex-direction: column;
        gap: 1rem;
    }

    .facility-description {
        padding: 1.5rem;
    }
}

/* Comprehensive Responsive Design for All Pages */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Medium Desktops (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 1000px;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .about-content {
        gap: 3rem;
    }

    .contact-content {
        gap: 3rem;
    }
}

/* Small Desktops and Tablets (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 750px;
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-section {
        margin-right: 0;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .accreditation-content {
        flex-direction: column;
        gap: 2rem;
    }

    .certificate-image {
        width: 100%;
        max-width: 400px;
    }

    .facility-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Small Tablets (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-item i {
        min-width: auto;
        margin-top: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2rem;
    }

    .accreditation-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .certificate-image {
        width: 100%;
        max-width: 300px;
    }

    .facility-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .facility-description {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .member-info h4 {
        font-size: 1.2rem;
    }

    .member-role {
        font-size: 0.9rem;
    }

    .member-desc {
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .carousel-wrapper {
        padding: 0 10px;
    }

    .team-card {
        flex: 0 0 250px;
    }
}

/* Phones (480px to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 8px;
    }

    .nav-container {
        padding: 0 8px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary, .btn-secondary {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.2rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        width: 100%;
        max-height: 250px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-image img {
        width: 100%;
        max-height: 250px;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-item h3 {
        font-size: 1.1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .contact-form button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.3rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .accreditation-content {
        flex-direction: column;
        gap: 1rem;
    }

    .certificate-image {
        width: 100%;
        max-width: 250px;
    }

    .facility-content {
        flex-direction: column;
        gap: 1rem;
    }

    .facility-description {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .member-photo {
        width: 80px;
        height: 80px;
    }

    .member-info h4 {
        font-size: 1.1rem;
    }

    .member-role {
        font-size: 0.85rem;
    }

    .member-desc {
        font-size: 0.85rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 0.5rem;
    }

    .carousel-wrapper {
        padding: 0 8px;
    }

    .team-card {
        flex: 0 0 200px;
    }

    .member-name {
        font-size: 1.2rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .health-info-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .health-info-item {
        padding: 1rem;
    }

    .health-info-item h3 {
        font-size: 1.1rem;
    }

    .health-info-item p {
        font-size: 0.9rem;
    }

    .timeline-container {
        padding-left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .timeline-image {
        max-width: 100%;
    }

    .timeline-flex-row {
        flex-direction: column;
    }

    .timeline-flex-row .timeline-image {
        width: 100%;
        margin-right: 0;
    }

    .timeline-flex-row .timeline-content {
        width: 100%;
    }
}

/* Very Small Phones (below 480px) */
@media (max-width: 479px) {
    .container {
        padding: 0 5px;
    }

    .nav-container {
        padding: 0 5px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-primary, .btn-secondary {
        padding: 6px 15px;
        font-size: 0.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .service-card {
        padding: 1rem;
    }

    .service-card h3 {
        font-size: 1rem;
    }

    .service-card p {
        font-size: 0.8rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        width: 100%;
        max-height: 200px;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-item {
        padding: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.6rem;
    }

    .about-image img {
        width: 100%;
        max-height: 200px;
    }

    .contact-item {
        padding: 0.8rem;
    }

    .contact-item h3 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .contact-form button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer-section ul li {
        margin-bottom: 0.3rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .accreditation-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    .certificate-image {
        width: 100%;
        max-width: 200px;
    }

    .facility-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    .facility-description {
        padding: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .member-photo {
        width: 70px;
        height: 70px;
    }

    .member-info h4 {
        font-size: 1rem;
    }

    .member-role {
        font-size: 0.8rem;
    }

    .member-desc {
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 0.8rem;
        margin: 0.3rem;
    }

    .carousel-wrapper {
        padding: 0 5px;
    }

    .team-card {
        flex: 0 0 160px;
    }

    .member-name {
        font-size: 1rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .health-info-grid {
        flex-direction: column;
        gap: 0.8rem;
    }

    .health-info-item {
        padding: 0.8rem;
    }

    .health-info-item h3 {
        font-size: 1rem;
    }

    .health-info-item p {
        font-size: 0.85rem;
    }

    .timeline-container {
        padding-left: 15px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .timeline-image {
        max-width: 100%;
    }

    .timeline-flex-row {
        flex-direction: column;
    }

    .timeline-flex-row .timeline-image {
        width: 100%;
        margin-right: 0;
    }

    .timeline-flex-row .timeline-content {
        width: 100%;
    }

    .timeline-content h3 {
        font-size: 1.5rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .award-item {
        min-width: 150px;
        padding: 1rem;
    }

    .award-item img {
        max-height: 150px;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--new-background-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        font-size: 1.2rem;
        margin: 1rem 0;
        padding: 0.5rem 1rem;
        width: 80%;
        text-align: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover {
        background: var(--primary-color);
        color: var(--white);
        transform: scale(1.05);
    }

    .hamburger {
        display: flex;
        z-index: 1000;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hamburger span {
        transition: all 0.3s ease;
    }
}

/* Touch-friendly elements for mobile */
@media (max-width: 768px) {
    .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }

    .service-link, .gallery-item, .partner-item {
        min-height: 44px;
    }

    .carousel-prev, .carousel-next {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .lightbox-nav {
        width: 60px;
        height: 60px;
        font-size: 3.5rem;
    }

    .social-links a {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .pagination-dot {
        width: 16px;
        height: 16px;
        margin: 0 8px;
    }

    .indicator {
        width: 16px;
        height: 16px;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding: 80px 0 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .services {
        padding: 40px 0;
    }

    .gallery {
        padding: 40px 0;
    }

    .contact {
        padding: 40px 0;
    }

    .about {
        padding: 40px 0;
    }

    .team-structure {
        padding: 40px 0;
    }

    .accreditation {
        padding: 40px 0;
    }

    .facility-detail {
        padding: 40px 0;
    }
}

/* High-resolution displays */
@media (min-width: 1200px) and (-webkit-min-device-pixel-ratio: 2),
       (min-width: 1200px) and (min-resolution: 192dpi) {
    .hero-content h1 {
        text-shadow: 8px 8px 12px rgba(0, 0, 0, 0.8);
    }

    .hero-content p {
        text-shadow: 6px 6px 10px rgba(0, 0, 0, 0.8);
    }

    .service-card, .gallery-item, .partner-item {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .service-card:hover, .gallery-item:hover, .partner-item:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
}

/* Print styles */
@media print {
    .header, .footer, .hero-carousel, .carousel-controls, .lightbox-nav, .modal-overlay {
        display: none !important;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
        background: none;
    }

    .hero-content h1 {
        color: var(--primary-color);
        text-shadow: none;
        font-size: 2rem;
    }

    .hero-content p {
        color: var(--text-color);
        text-shadow: none;
        font-size: 1rem;
    }

    .btn-primary, .btn-secondary {
        display: none;
    }

    .service-card, .gallery-item, .partner-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .contact-form {
        display: none;
    }

    .contact-info {
        display: block;
    }

    .contact-item {
        break-inside: avoid;
        border: 1px solid #ddd;
        padding: 10px;
        margin-bottom: 10px;
    }
}
}
