:root {
    --primary: #800060;
    --secondary: #5a0043;
    --accent: #fdf4fa;
    /* Lighter version of primary for backgrounds */
    --text-dark: #000000;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fcfcfc;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Top Bar (New Addition for Medical Sites) --- */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 8px 5%;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info span {
    margin-right: 20px;
}

.top-info i {
    margin-right: 5px;
    color: #ffcaea;
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 0.8;
}

/* --- Main Header --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* Modern Glass Effect */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    height: 80px;
}

/* Logo Styling */
.logo {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: 40px;
    height: 40px;
}
.logo i {
    font-size: 32px;
}
.logo:hover {
    color: var(--secondary);
}
/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

/* Animated Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Appointment Button */
.btn-appoint {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(128, 0, 96, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-appoint:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 96, 0.4);
    color: var(--white) !important;
}

/* Remove underline animation from appointment button */
.btn-appoint::after {
    display: none !important;
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* --- Responsive Design --- */
@media (max-width: 968px) {
    .top-bar {
        display: none;
    }

    /* Hide top bar on mobile to save space */

    .navbar {
        padding: 15px 20px;
        position: relative;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-dark);
        margin: 5px 0;
        transition: 0.3s ease;
        border-radius: 2px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: max-height 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        max-height: 100vh;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 18px 20px;
        width: 100%;
        color: var(--text-dark);
        font-weight: 500;
    }

    .nav-links a:hover {
        background: var(--accent);
        color: var(--primary);
    }

    .nav-links a::after {
        display: none;
    }

    .btn-appoint {
        margin: 20px;
        justify-content: center;
        color: var(--white) !important;
    }
     .btn-appoint:hover {
        margin: 20px;
        justify-content: center;
        color: var(--white) !important;
    }
}

/* --- Hero Slider Styling --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    /* Taller for better impact */
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
}

/* Make the active slide visible */
.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slow Zoom Effect (Ken Burns) */
.slide.active {
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        background-size: 100%;
    }

    100% {
        background-size: 110%;
    }
}

/* Dark Overlay to make text readable */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

/* --- Content Box with Glassmorphism --- */
.slide-content {
    position: relative;
    z-index: 2;
    /* background: rgba(128, 0, 96, 0.85);  */
    /* backdrop-filter: blur(8px);  */
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    max-width: 700px;
    width: 90%;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);

    /* Animation for text popping up */
    transform: translateY(30px);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.sub-title {
    display: block;
    color: #f3e5f5;
    /* Accent color */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Responsive font size */
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* CTA Button */
.hero-btn {
    display: inline-block;
    background: #fff;
    color: #800060;
    /* Primary */
    padding: 12px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #5a0043;
    /* Secondary */
    color: #fff;
    transform: scale(1.05);
}

/* --- Navigation Arrows --- */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(128, 0, 96, 0.9);
}

/* --- Navigation Dots --- */
.dots-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slide-content {
        padding: 30px 20px;
    }

    .hero-slider {
        height: 70vh;
    }
}

/* Sections General */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto;
}

/* About & Why Choose Us */
.about-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 5%;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary);
    text-align: center;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 60px 5%;
}

.service-box {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    background: var(--accent);
}

/* IVF Process */
.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 150px;
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #eee;
    position: relative;
}

.step span {
    display: block;
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 auto 10px;
    line-height: 30px;
    font-weight: bold;
}

/* Gallery Section */
#gallery {
    padding: 60px 5%;
    background-color: var(--white);
    overflow: hidden; /* Prevents outer page scrollbar */
}

.section-title h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Horizontal Scroller Container */
.gallery-scroller {
    display: flex;
    overflow-x: auto; /* Enables horizontal scroll */
    overflow-y: hidden;
    gap: 20px;
    padding: 20px; /* Padding inside the scroll area */
    
    /* Smooth Snapping Physics */
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    
    /* Hide scrollbar for clean look (optional) */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary) #eee;
}

/* Custom Scrollbar for Webkit (Chrome/Safari) */
.gallery-scroller::-webkit-scrollbar {
    height: 8px;
}
.gallery-scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.gallery-scroller::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Individual Card */
.gallery-card {
    /* Fixed size for every card */
    flex: 0 0 300px; /* Don't grow, don't shrink, base width 300px */
    height: 400px;   /* Fixed height */
    
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    
    /* Align for snapping */
    scroll-snap-align: center;
}

/* The Image/Video inside */
.gallery-media {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills the card perfectly */
    transition: var(--transition);
}

/* Hover Effect */
.gallery-card:hover .gallery-media {
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gallery-card {
        flex: 0 0 250px; /* Slightly smaller cards on mobile */
        height: 300px;
    }
}

/* FAQ Section */
#faq {
    padding: 60px 5%;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(128, 0, 96, 0.08);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(128, 0, 96, 0.15);
}

.accordion {
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    padding: 20px 25px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.accordion:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.accordion-title {
    flex: 1;
}

.accordion i {
    margin-left: 15px;
    transition: var(--transition);
    color: var(--primary);
    font-size: 14px;
}

.faq-item.active .accordion {
    background-color: var(--primary);
    color: var(--white);
}

.faq-item.active .accordion i {
    transform: rotate(180deg);
    color: var(--white);
}

.panel {
    padding: 0 25px;
    background-color: var(--white);
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .panel {
    display: block;
    max-height: 500px;
    padding: 20px 25px;
}

.panel p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
}

.panel p strong {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .accordion {
        padding: 16px 18px;
        font-size: 15px;
    }

    .accordion i {
        font-size: 12px;
    }

    .panel {
        padding: 0 18px;
    }

    .faq-item.active .panel {
        padding: 16px 18px;
    }

    .panel p {
        font-size: 14px;
    }
}

/* Contact */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

/* About Us Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 5%;
}

.about-image {
    flex: 0 0 40%;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(128, 0, 96, 0.2);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
}

.about-content {
    flex: 0 0 60%;
}

.about-content h3 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 5px;
}

.doctor-title {
    font-size: 16px;
    color: var(--accent);
    background: var(--primary);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
}

.about-content h4 {
    font-size: 18px;
    color: var(--primary);
}

.about-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 30px;
        padding: 30px 5%;
    }

    .about-image {
        flex: 0 0 100%;
    }

    .about-content {
        flex: 0 0 100%;
    }

    .about-content h3 {
        font-size: 24px;
    }
}

/* Footer */
footer {
    background: #222;
    color: white;
    padding: 40px 5%;
}

.footer-content p {
    margin-bottom: 10px;
}

/* Admin */
.admin-container {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.admin-table th {
    background: var(--primary);
    color: white;
}

/* Enhanced Contact Section */
#contact {
    padding: 60px 5%;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: space-between;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(128, 0, 96, 0.1);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
    text-align: center;
}

.info-card:hover {
    box-shadow: 0 10px 30px rgba(128, 0, 96, 0.15);
    transform: translateX(5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--white);
}

.info-card h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-card p {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.info-card a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Contact Form Styling */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(128, 0, 96, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-form-wrapper h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-form {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(128, 0, 96, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(128, 0, 96, 0.3);
    margin-top: 15px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(128, 0, 96, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success/Error Messages */
.contact-form-wrapper p[style*="color:green"],
.contact-form-wrapper p[style*="color:red"] {
    padding: 15px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-form-wrapper p[style*="color:green"] {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.contact-form-wrapper p[style*="color:red"] {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .info-card {
        text-align: left;
        display: flex;
        gap: 20px;
    }

    .info-card .card-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .info-card h4,
    .info-card p {
        text-align: left;
    }

    .submit-btn {
        flex-direction: column;
    }
}

/* Section Title Styling */
#contact .section-title {
    margin-bottom: 50px;
}

#contact .section-title h2 {
    font-size: 2.8rem;
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    padding: 60px 5%;
    margin-top: 40px;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p {
    line-height: 1.8;
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* About Footer Section */
.footer-about {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-about i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}


.footer-links a::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Contact Info Footer */
.footer-contact a {
    color: #b0b0b0;
}

.footer-contact a i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact a:hover {
    color: var(--primary);
}

/* Social Links */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(128, 0, 96, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-bottom: 0;
}

.footer-socials a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    padding-left: 0;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links-bottom a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    display: inline;
}

.footer-links-bottom a:hover {
    color: var(--primary);
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 40px 5%;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-bottom {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-cards {
        justify-content: flex-start;
    }
}

/* IVF Process Section */
#ivf-process {
    padding: 60px 5%;
}

.ivf-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.process-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(128, 0, 96, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.process-card:hover {
    box-shadow: 0 12px 40px rgba(128, 0, 96, 0.2);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.process-number {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(128, 0, 96, 0.3);
}

.process-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(128, 0, 96, 0.1), rgba(90, 0, 67, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: var(--primary);
}

.process-card h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.process-card p {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.process-details {
    list-style: none;
    padding: 0;
}

.process-details li {
    color: var(--text-light);
    font-size: 13px;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.process-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

/* IVF Timeline */
.ivf-timeline {
    background: linear-gradient(135deg, var(--accent) 0%, rgba(253, 244, 250, 0.5) 100%);
    padding: 50px 40px;
    border-radius: 15px;
    margin: 60px auto;
    max-width: 1200px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.timeline-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 15px rgba(128, 0, 96, 0.08);
    transition: var(--transition);
}

.timeline-item:hover {
    box-shadow: 0 8px 25px rgba(128, 0, 96, 0.15);
    transform: translateY(-5px);
}

.timeline-date {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.timeline-content strong {
    color: var(--primary);
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Success Factors */
.success-factors {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.factor-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(128, 0, 96, 0.08);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}

.factor-card:hover {
    box-shadow: 0 10px 30px rgba(128, 0, 96, 0.15);
    transform: translateY(-5px);
}

.factor-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.factor-card h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.factor-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive IVF Process */
@media (max-width: 768px) {
    #ivf-process {
        padding: 40px 5%;
    }

    .ivf-process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .process-card {
        padding: 30px 20px 30px 30px;
    }

    .process-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .timeline-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ivf-timeline {
        padding: 30px 20px;
        margin: 40px auto;
    }

    .factors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .factor-card {
        padding: 25px 20px;
    }

    .factor-card i {
        font-size: 35px;
    }
}

/* --- Services Section Styling (New) --- */
.user_info_menu {
    margin-bottom: 30px;
}

.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    list-style: none;
}

.nav-item {
    margin-right: 0;
}

.nav-item a {
    display: block;
    padding: 12px 25px;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-weight: 500;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: block;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mar-top-30 {
    margin-top: 30px;
}

/* Trending Place Item - Service Card */
.trending-place-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.trending-place-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(128, 0, 96, 0.15);
}

.trending-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.trending-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trending-place-item:hover .trending-img img {
    transform: scale(1.05);
}

.trending-img a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.trending-title-box {
    padding: 20px 15px;
    text-align: center;
}

.trending-title-box h4 {
    margin: 0 0 15px 0;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.4;
}

.trending-title-box h4 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.trending-title-box h4 a:hover {
    color: var(--secondary);
}

.trending-title-box .btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn.v3 {
    background: var(--primary);
    color: var(--white);
}

.btn.v3:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-dialog {
    background-color: var(--white);
    margin: auto;
    border-radius: 12px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content {
    padding: 0;
    border: none;
    border-radius: 12px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent);
}

.modal-title {
    color: var(--primary);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.modal-header .close {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header .close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 30px;
    color: var(--text-dark);
    line-height: 1.6;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.modal-body h4 {
    color: var(--primary);
    margin: 20px 0 15px 0;
    font-size: 18px;
}

.modal-body p {
    margin: 12px 0;
    color: var(--text-dark);
}

.modal-body ul,
.modal-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-body li {
    margin: 8px 0;
    color: var(--text-dark);
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    background: #f9f9f9;
}

.modal-footer .btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .trending-img {
        height: 150px;
    }

    .modal-dialog {
        width: 98%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 20px;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

    .nav-item a {
        padding: 10px 15px;
        font-size: 14px;
    }
}
.portfolio-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, var(--accent));
    font-family: 'Poppins', sans-serif;
}

/* Section Title Styling */
.section-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary);
    margin: 0 auto 50px auto;
    border-radius: 2px;
}

/* Card Styling */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px 20px;
    height: 100%; /* Ensures equal height in row */
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(128, 0, 96, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary);
}

/* Icon Circle Styling */
.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover .icon-wrapper {
    background-color: var(--primary);
    transform: scale(1.1);
}

/* The Letter inside the circle */
.letter-icon {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    font-style: normal;
    font-family: serif; /* Gives a more medical/traditional look for the letter */
    transition: var(--transition);
}

.service-card:hover .letter-icon {
    color: var(--white);
}

/* The Step Number (Bubble on the rim) */
.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Text Styling */
.service-title {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    transition: var(--transition);
}

.service-card:hover .service-title {
    color: var(--primary);
}

/* Responsive spacing fix for Bootstrap 4/5 rows */
.row.g-4 {
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}
.row.g-4 > [class*="col-"] {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}


 :root {
        --chp-primary: #800060;
        --chp-secondary: #5a0043;
        --chp-accent: #fdf4fa;
        --chp-white: #ffffff;
        --chp-gray: #f8f9fa;
        --chp-text: #333333;
        --chp-radius: 16px;
    }

    .contact-home-page-section {
        padding: 80px 20px;
        background: linear-gradient(to bottom, #ffffff, var(--chp-accent));
        position: relative;
        overflow: hidden;
    }

    .contact-home-page-container {
        max-width: 1100px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }

    /* Section Heading */
    .contact-home-page-heading-wrapper {
        text-align: center;
        margin-bottom: 50px;
    }

    .contact-home-page-subtitle {
        color: var(--chp-secondary);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
        display: block;
        margin-bottom: 10px;
    }

    .contact-home-page-title {
        font-size: 2.5rem;
        color: var(--chp-primary);
        font-weight: 800;
        line-height: 1.2;
    }

    /* Split Layout */
    .contact-home-page-grid {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        border-radius: var(--chp-radius);
        overflow: hidden;
    }

    /* Left Side: Contact Info (Dark Purple) */
    .contact-home-page-info-col {
        background: var(--chp-primary);
        color: var(--chp-white);
        padding: 50px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Decoration Circles */
    .contact-home-page-circle {
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
    }
    .contact-home-page-c1 { width: 150px; height: 150px; top: -30px; left: -30px; }
    .contact-home-page-c2 { width: 100px; height: 100px; bottom: 20px; right: 20px; }

    .contact-home-page-info-header h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .contact-home-page-info-header p {
        opacity: 0.9;
        line-height: 1.6;
    }

    .contact-home-page-details {
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .contact-home-page-detail-item {
        display: flex;
        align-items: flex-start;
        gap: 15px;
    }

    .contact-home-page-icon {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
        transition: 0.3s;
    }

    .contact-home-page-detail-item:hover .contact-home-page-icon {
        background: var(--chp-white);
        color: var(--chp-primary);
    }

    .contact-home-page-text h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .contact-home-page-text p, .contact-home-page-text a {
        font-size: 0.9rem;
        opacity: 0.9;
        color: var(--chp-white);
        text-decoration: none;
        line-height: 1.4;
    }

    /* Right Side: Form (White) */
    .contact-home-page-form-col {
        background: var(--chp-white);
        padding: 50px;
    }

    .contact-home-page-form-title {
        color: var(--chp-text);
        font-size: 1.5rem;
        margin-bottom: 30px;
        font-weight: 700;
    }

    .contact-home-page-input-group {
        margin-bottom: 20px;
    }

    .contact-home-page-label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: #666;
        margin-bottom: 8px;
    }

    .contact-home-page-input, .contact-home-page-textarea {
        width: 100%;
        padding: 14px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #fdfdfd;
        font-family: inherit;
        transition: 0.3s;
    }

    .contact-home-page-input:focus, .contact-home-page-textarea:focus {
        outline: none;
        border-color: var(--chp-primary);
        box-shadow: 0 0 0 3px rgba(128, 0, 96, 0.05);
        background: #fff;
    }

    .contact-home-page-btn {
        width: 100%;
        padding: 15px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .contact-home-page-btn:hover {
        background: var(--chp-secondary);
        transform: translateY(-2px);
    }

    .contact-home-page-alert {
        background: #d1e7dd;
        color: #0f5132;
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 15px;
        font-size: 0.9rem;
    }

    /* Scroll Animation */
    .contact-home-page-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }
    .contact-home-page-reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Responsive */
    @media (max-width: 900px) {
        .contact-home-page-grid { grid-template-columns: 1fr; }
        .contact-home-page-info-col, .contact-home-page-form-col { padding: 40px 25px; }
        .contact-home-page-c1, .contact-home-page-c2 { display: none; }
        .contact-home-page-title { font-size: 2rem; }
    }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .service-card {
        padding: 20px 15px;
    }
    .icon-wrapper {
        width: 60px;
        height: 60px;
    }
    .letter-icon {
        font-size: 24px;
    }
    .service-title {
        font-size: 0.95rem;
    }
}