:root {
    --primary-color: #652752;
    /* GEM Cancer Centre Plum */
    --primary-light: #f4ecf2;
    --primary-dark: #4a1c3d;
    --secondary-color: #2c2c2c;
    /* Charcoal Dark */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}


html,
body {
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.pt-50 {
    padding-top: 50px;
}

.pb-50 {
    padding-bottom: 50px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

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

.text-white {
    color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}

.max-w-700 {
    max-width: 700px;
}

.mx-auto {
    margin-right: auto;
    margin-left: auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.8s ease-in-out;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark), #e85d75, var(--primary-color));
    background-size: 300% auto;
    color: var(--white);
    font-size: 16px;
    padding: 15px 30px;
    transition: var(--transition);
    border: none;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(101, 39, 82, 0.4);
}

.btn-purple {
    background: linear-gradient(45deg, #8c2e68, #e84a84, #8c2e68);
    background-size: 300% auto;
    color: var(--white);
    font-size: 16px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-purple:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(140, 46, 104, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), #555, var(--secondary-color));
    background-size: 300% auto;
    color: var(--white);
}

.btn-secondary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    background-size: 300% auto;
}

.btn-outline:hover {
    background: linear-gradient(45deg, var(--primary-color), #e84a84, var(--primary-color));
    background-size: 300% auto;
    background-position: right center;
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(101, 39, 82, 0.2);
}

.btn-light {
    background: linear-gradient(45deg, var(--white), #f0f0f0, var(--white));
    background-size: 300% auto;
    color: var(--primary-color);
}

.btn-light:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
    font-size: 28px;
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

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

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

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    margin-top: 0;
    /* Header occupies space naturally with 'sticky' positioning */
    height: auto;
    aspect-ratio: 1750 / 600;
    overflow: hidden;
    background: #fdfcfd;
}

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

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

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

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures banner fills space without distortion */
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.slider-overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.hero-spacer {
    flex: 1;
}

.hero-form-side-float {
    flex: 0 0 400px;
    /* Wider for better form layout */
}

.hero-form-container {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(101, 39, 82, 0.2);
    border: none;
}

.form-title {
    font-size: 22px;
    color: #652752;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group.phone-group {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.form-group.phone-group .phone-prefix {
    padding: 14px 12px 14px 18px;
    background: #f9f9f9;
    color: #666;
    border-right: 1px solid #ddd;
    font-weight: 600;
}

.form-group.phone-group input {
    border: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group.phone-group:focus-within {
    border-color: #e84a84;
    box-shadow: 0 0 0 3px rgba(232, 74, 132, 0.1);
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(101, 39, 82, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #652752;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-slider-section {
        margin-top: 0;
        height: auto;
        min-height: auto;
        aspect-ratio: auto;
        overflow: visible;
    }

    .slider-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.12;
        position: relative;
    }

    .mobile-banner {
        display: block !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Combined with aspect-ratio, this ensures the full image shows correctly */
    }

    .desktop-banner {
        display: none !important;
    }

    .slider-overlay-container {
        position: relative;
        left: 0;
        transform: none;
        padding: 40px 15px;
        background: #fdfcfd;
    }

    .hero-layout {
        flex-direction: column;
    }

    .hero-spacer {
        display: none;
    }

    .hero-form-side-float {
        width: 100%;
        max-width: 500px;
        margin-top: 0;
        /* Reset for relative layout */
        position: relative;
        z-index: 20;
    }

    .hero-form-container {
        padding: 30px 20px;
        border-radius: 15px;
        border: 1px solid #eee;
    }

    .slider-dots {
        bottom: 15px;
    }

    .form-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Tag Cloud 2 Column Fix */
    .tags-cloud {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 5px;
    }

    .search-tag {
        padding: 10px 8px !important;
        font-size: 13px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        min-height: 44px;
        /* Touch friendly height */
    }
}

/* About Section */
.sub-heading {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: float 6s ease-in-out infinite;
}

.image-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.experience-badge .num {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    opacity: 0.9;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 18px;
}

.about-points {
    margin: 30px 0;
}

.about-points li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
}

.about-points li i {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

/* Services */
.services-section h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 236, 242, 0.8), rgba(44, 44, 44, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 22px;
}

.service-card p {
    color: var(--text-light);
}

/* CTA */
.cta-section {
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--primary-dark), var(--secondary-color));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about .logo {
    color: #fff;
}

.footer-about p {
    color: #aaa;
    max-width: 300px;
}

.footer h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #aaa;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #aaa;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    background: #111;
    padding: 25px 0;
    color: #999;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* Animations */
.animate-slide-up,
.animate-fade-in,
.animate-slide-left,
.animate-slide-right {
    opacity: 0;
    will-change: transform, opacity;
}

.animate-slide-up {
    transform: translateY(40px);
}

.animate-fade-in {
    transform: scale(0.95);
}

.animate-slide-left {
    transform: translateX(40px);
}

.animate-slide-right {
    transform: translateX(-40px);
}

/* Intersection Observer Classes */
.visible {
    opacity: 1;
    transform: translate(0) scale(1) !important;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive text formatting for image badge wrapper hack */
.image-wrapper .experience-badge {
    bottom: 20px;
    right: 20px;
}

/* Media Queries */
@media (max-width: 991px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }

    .hero-image-side {
        flex: 0 0 auto;
        margin-bottom: 40px;
    }

    .doctor-circle-wrapper {
        margin: 0 auto;
        max-width: 280px;
    }

    .hero-content-side {
        padding: 0;
        margin-bottom: 40px;
    }

    .hero-subtext {
        margin: 0 auto 30px;
    }

    .hero-features-minimal {
        justify-content: center;
    }

    .hero-form-side {
        width: 100%;
        max-width: 500px;
        flex: 0 0 auto;
    }

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

    .about-container {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo {
        justify-content: flex-start;
        width: auto;
    }

    .logo img {
        width: 150px;
    }

    .mobile-call-btn {
        display: flex !important;
        width: auto;
        height: 40px;
        padding: 0 15px;
        background: var(--primary-color);
        color: white !important;
        border-radius: 0;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 5px 15px rgba(101, 39, 82, 0.3);
    }

    /* Slightly larger for mobile visibility */
    .nav-links,
    .header-action {
        display: none;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .hero-content h1 {
        font-size: 36px;
    }

    .hidden-mobile {
        display: none !important;
    }

    .hidden-desktop {
        display: flex !important;
    }

    body {
        padding-bottom: 70px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Visibility Control */
.hidden-desktop {
    display: none;
    border-radius: 10px;
}

/* Sticky WhatsApp Desktop */
.sticky-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.sticky-whatsapp:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #6a1f4d, #8c2e68);
    justify-content: space-around;
    padding: 12px 0 10px;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
}

.footer-cta-item {
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.footer-cta-item i {
    font-size: 20px;
}

/* Update BG Light Gradient */
.bg-light-gradient {
    background: linear-gradient(135deg, #fef0f2 0%, #ffffff 100%);
}

/* Most Common Searches Section */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, rgb(232, 74, 132), rgb(101, 39, 82));
    ;
    margin: 0 auto 30px;
    border-radius: 2px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.search-tag {
    background: var(--white);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.search-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(232, 74, 132), rgb(101, 39, 82));
    ;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-tag:hover {
    color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(155, 81, 224, 0.3);
    border-color: transparent;
}

.search-tag:hover::before {
    opacity: 1;
}

/* Testimonials / Video Section */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.video-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 11px;
    position: relative;
    z-index: 2;
    background: var(--white);
}

.video-info h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.video-info p {
    color: var(--text-light);
    font-size: 15px;
}