/* CSS Variables */
:root {
    --primary-color: #1d6b92;
    --primary-dark: #165c7e;
    --primary-light: #2587b8;
    --grey-light: #f5f5f5;
    --grey: #666666;
    --white: #ffffff;
    --header-height: 56px; /* Reduced from 80px */
    --mobile-header-height: 42px; /* Reduced from 60px */
}

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

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px; /* Increased to account for header + CTA strip */
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ensures anchor links account for fixed header */
}

/* Announcement Banner */
.announcement-banner {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 0;
    position: relative;
    z-index: 1001;
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.announcement-content a {
    color: var(--white);
    text-decoration: underline;
    font-weight: bold;
}

.announcement-content i {
    animation: bounce 1s infinite;
}

.close-banner {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.close-banner:hover {
    opacity: 1;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px; /* Reduced fixed height */
    padding: 0 1rem; /* Minimal horizontal padding */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-img {
    height: 25px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem; /* Reduced gap between nav items */
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Navigation Links */
.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--grey-light);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    top: calc(var(--header-height) - 10px); /* Adjust dropdown positioning for smaller header */
    left: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--grey) !important;
    padding: 0.8rem 1rem;
    display: block;
}

.dropdown-content a:hover {
    background: var(--grey-light);
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--grey);
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease 0.2s;
    max-width: 800px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s;
    color: var(--primary-color);
    font-weight: 500;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--white);
}

.cta-button.secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(29, 107, 146, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--grey-light);
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--grey);
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--white);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.service-card {
    background: var(--grey-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

/* Quick Services Section */
.quick-services {
    padding: 5rem 0;
    background: var(--white);
}

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

.service-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(29, 107, 146, 0.2);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.service-item p {
    color: var(--grey);
    font-size: 0.9rem;
}

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

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
    aspect-ratio: 4/3;
}

@media (min-width: 992px) {
    .about-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .video-container {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .about-container {
        padding: 2rem 1rem;
    }

    .about-image {
        max-width: 100%;
        margin-top: 2rem;
    }

    .video-container {
        max-width: 100%;
    }
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #f5f5f5;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--grey-light);
}

.testimonials h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.testimonial-slider {
    overflow: hidden;
    position: relative;
    height: 300px;
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--grey);
    margin-bottom: 2rem;
}

.testimonial-author h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.rating {
    color: #ffd700;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    transform: scale(1.2);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grey-light);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: var(--primary-color);
}

/* Footer Styles */
.footer {
    background: var(--primary-color) !important;  /* Override any existing gradients */
    padding: 4rem 0 1rem;
    color: #fff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links i {
    color: var(--primary-color);
    width: 20px;
}

/* Blog Links in Footer */
.blog-links li {
    margin-bottom: 1rem;
}

.blog-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.blog-links i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-left: 1.5rem;
}

.view-all-posts {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.view-all-posts i {
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.view-all-posts:hover {
    color: #fff;
}

.view-all-posts:hover i {
    transform: translateX(3px);
}

/* Portal Link Styles */
.footer-links a[target="_blank"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-links a[target="_blank"]:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.portal-info {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.social-links i {
    color: #fff;
    font-size: 1.2rem;
}

.map-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.map-container h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.map-container iframe {
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--primary-color);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 0 1rem;
    }

    .map-container iframe {
        height: 200px;
    }
}

/* Puducherry Services Section */
.puducherry-services {
    padding: 5rem 0;
    background: var(--white);
}

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

.section-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--grey);
    margin-bottom: 2rem;
    max-width: 800px;
}

.doctors-grid {
    margin: 4rem 0;
}

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

.doctor-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.services-offered {
    margin: 4rem 0;
}

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

.service-box {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .doctor-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-boxes {
        grid-template-columns: 1fr;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
    width: auto;
    padding: 0 20px;
    text-decoration: none;
}

.whatsapp-text {
    display: none;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 500;
}

.floating-whatsapp:hover .whatsapp-text {
    display: inline-block;
}

@media (max-width: 768px) {
    .floating-whatsapp {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

/* Call to Action Styles */
.cta-call {
    background: #25D366;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-call:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-call i {
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .cta-call {
        margin-top: 1rem;
        justify-content: center;
        background: transparent;
        border: 2px solid #25D366;
    }
    
    .cta-call:hover {
        background: #25D366;
    }
}

/* General Responsive Text */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    body {
        padding-top: 80px; /* Increased to account for header + CTA strip */
    }

    .nav-container {
        height: 35px; /* Even smaller on mobile */
        padding: 0 0.5rem; /* Minimal padding on mobile */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.2rem; /* Reduced from 1.5rem */
    }

    .nav-links {
        position: fixed;
        top: 80px; /* Increased to account for CTA strip height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        background: var(--primary-color);
        padding: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 998; /* Below CTA strip */
    }

    .nav-links.active {
        left: 0;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 1rem 0;
    }

    .logo-img {
        height: 20px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }

    .cta-container {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }

    main {
        padding-top: 80px; /* Increased to account for header + CTA strip */
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.8rem;
    }

    .cta-container {
        gap: 0.5rem;
    }

    .cta-buttons {
        display: flex;
        gap: 0.5rem;
    }

    .cta-call-button,
    .cta-book-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

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

    .cta-number {
        font-size: 1rem;
    }
}

/* Call to Action Strip */
.cta-strip {
    background: var(--white);
    position: fixed;
    top: 45px; /* Match header height */
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.cta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cta-text {
    display: flex;
    flex-direction: column;
}

.cta-label {
    font-size: 0.8rem;
    color: var(--grey);
}

.cta-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-call-button,
.cta-book-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-call-button {
    background: #25D366;
    color: var(--white);
}

.cta-book-button {
    background: var(--primary-color);
    color: var(--white);
}

.cta-call-button:hover,
.cta-book-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Adjust main content padding */
main {
    padding-top: 80px; /* Increased to account for header + CTA strip */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 1rem;
    }

    .cta-buttons {
        width: 100%;
    }

    .cta-call-button,
    .cta-book-button {
        flex: 1;
        justify-content: center;
    }

    main {
        padding-top: 90px; /* Adjust for stacked CTA strip */
    }
}