/* Main CSS for KK Hospital Website */

:root {
    --primary-green: #0d8259; /* Deeper green for wellness */
    --primary-red: #b91c36; /* Richer red for care */
    --light-green: #e8f5f0;
    --light-red: #fae6e9;
    --dark-text: #222222;
    --light-text: #ffffff;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-red);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--primary-green);
    color: var(--light-text);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 6px 15px rgba(13, 130, 89, 0.4);
}

.btn:hover {
    background-color: var(--primary-red);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: var(--light-text);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 7px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 120px;
    margin-right: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Removed logo-text and address styles */

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--primary-green);
    background: linear-gradient(rgba(13, 130, 89, 0.8), rgba(13, 130, 89, 0.9));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--light-text);
    padding: 30px 0;
    position: relative;
    margin-top: 100px;
    overflow: hidden;
    min-height: 500px;
}

.hero-split {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(13, 130, 89, 0.2);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Media query for responsive design */
@media (max-width: 900px) {
    .hero {
        margin-top: 120px;
        min-height: calc(100vh - 120px);
        padding: 40px 0;
    }
    
    .hero-split {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
    
    .hero-content {
        text-align: center;
        padding: 30px 20px;
        max-width: 600px;
        width: 100%;
    }
    
    .hero-image {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 100px;
        min-height: calc(100vh - 100px);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
}
.hero-content h1 {
    font-size: 4rem; /* Increased from 3.5rem */
    margin-bottom: 1rem;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 2rem; /* Increased from 1.8rem */
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    font-style: italic;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--light-green);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--light-text);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

.license-info {
    text-align: center;
    padding: 20px;
    background-color: var(--light-red);
    border-radius: 8px;
    font-style: italic;
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--light-green);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
    justify-items: center;
    align-items: stretch;
}

.team-member {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(13, 130, 89, 0.10), 0 1.5px 6px rgba(185, 28, 54, 0.07);
    padding: 36px 24px 28px 24px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1.5px solid var(--border-color);
    position: relative;
    min-width: 260px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 36px rgba(13, 130, 89, 0.16), 0 2px 12px rgba(185, 28, 54, 0.12);
}

.member-image {
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-green);
    box-shadow: 0 4px 16px rgba(13, 130, 89, 0.10);
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s;
}

.team-member:hover .member-image img {
    transform: scale(1.07) rotate(-2deg);
}

.team-member h3 {
    margin-bottom: 6px;
    color: var(--primary-green);
    font-size: 1.25rem;
    font-weight: 700;
}

.member-title {
    font-size: 1.05rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 8px;
}

.member-desc {
    font-size: 0.98rem;
    color: #444;
    margin-bottom: 0;
    font-style: italic;
}

.team-member p {
    padding: 0 20px 20px;
    color: var(--primary-red);
    font-weight: 500;
}

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

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
    min-width: 30px;
}

.cta {
    margin-top: 30px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-green);
    color: var(--light-text);
    padding: 20px 0;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: url('testimonial-bg.svg');
    background-size: cover;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-text);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    position: relative;
    border-top: 4px solid var(--primary-green);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-red);
    opacity: 0.5;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author h4 {
    color: var(--primary-green);
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--primary-red);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--light-green);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--light-text);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-left: 4px solid var(--primary-green);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    background-color: var(--primary-red);
    color: var(--light-text);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background-color: var(--light-text);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background-color: var(--light-text);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-green), var(--light-red));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.blog-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.blog-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-link {
    color: var(--primary-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.blog-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

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

.blog-cta {
    text-align: center;
}

/* Enhanced Contact Section */
.contact-item {
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-right: 20px;
    min-width: 30px;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2);
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title, .hero-content, .about-content, .service-card, .team-member, 
.testimonial-card, .faq-item, .blog-card, .contact-item {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 60px 0;
    }

    .hero-split {
        padding: 20px;
    }

    .hero-image {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slider, .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}