:root {
    --primary-red: #c62828;
    --hover-red: #a50000;
    --soft-gray: #f8f9fa;
    --text-main: #2c2c2c;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    color: var(--text-main);
}

/* Header & Nav */
/* Header & Nav */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* Reduced padding for better mobile fit */
    flex-wrap: wrap; 
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 22px;
    color: #4a148c; /* Keeping logo purple as per brand */
}

nav a {
    text-decoration: none;
    color: #666;
    margin: 0 15px;
    font-size: 14px;
}

.btn-top {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

.toggle-pill {
    background: #e7bebe; /* Light background for toggle */
    display: flex;
    border-radius: 50px;
    padding: 4px;
    width: 320px;
}

.toggle-item {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
}

.toggle-item.active {
    background: var(--primary-red); /* Dark blue/purple toggle active */
    color: white;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden; /* Important for the 50% tint */
}

/* 50% Bottom Gradient Effect */


/* Card Specifics */
.card-hero {
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

.card-hero h1 { font-size: 42px; line-height: 1.1; margin-bottom: 20px; }

.img-hero {
    position: absolute;
    bottom: 0;
    right: 50px;
    width: 280px;
    top:280px;
    z-index: 2;
}

.btn-red {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-mri {
    padding: 30px;
    height: 250px;
}

.img-mri {
    position: absolute;
   
    right: 10px;
    
}

/* Slider Card */
.card-slider {
    padding: 30px;
    height: 150px;
}

.slider-content { position: relative; height: 100px; }

.slide {
    position: absolute;
    opacity: 0;
    transition: 0.5s;
    transform: translateY(10px);
}

.slide.active { opacity: 1; transform: translateY(0); }

.dots { display: flex; gap: 8px; margin-top: 10px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }

.dot.active { background: var(--primary-red); width: 20px; border-radius: 5px; }

/* Phone Animation */
.phone-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.phone-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    position: relative;
    z-index: 10;
    animation: growShrink 2s infinite ease-in-out;
}

.ring-ani {
    position: absolute;
    top: 0; left: 0; width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--primary-red);
    opacity: 0.5;
    animation: ripple 2s infinite ease-out;
}

.ring-ani:nth-child(2) { animation-delay: 0.5s; }

@keyframes growShrink {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(3); opacity: 0; }
}


/* start services */
 
:root {
    --primary-purple: #c62828;
    --text-white: #ffffff;
    --border-radius: 20px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 40px 0;
}

.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: var(--primary-purple);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns as per image */
    gap: 25px;
}

.service-card {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.02);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* The dark tint from the image */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.service-card:hover .overlay {
    background: rgba(0, 0, 0, 0.65);
}

.overlay h3 {
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* end services */

/* Base styles for the section */
.pet-healthcare-section {
    display: flex;
    gap: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 20px auto;
}

/* The Large Red Card */
.hero-card {
    background-color: #ffebee; /* Very light red/pink background */
    border-radius: 15px;
    flex: 2;
    position: relative;
    padding: 40px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid #ffcdd2;
}

.hero-card h1 {
    font-size: 2.5rem;
    color: #b71c1c; /* Deep Primary Red */
    max-width: 300px;
    margin: 0;
    line-height: 1.2;
}

.pet-image {
    position: absolute;
    bottom: 0;
    right: 20px;
    height: 90%;
    z-index: 1;
}

/* Right Column Layout */
.info-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1.5;
}

/* Smaller Top Card (Deep Red) */
.badge-card {
    background-color: #d32f2f; /* Solid Primary Red */
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.badge-card h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Description Card (Light Red/Blue Tint) */
.description-card {
    background-color: #fdf2f2; /* Softest red */
    padding: 30px;
    border-radius: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
    border: 1px solid #f8d7da;
    height: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pet-healthcare-section {
        flex-direction: column;
    }
    .hero-card {
        height: 400px;
    }
    .pet-image {
        height: 60%;
    }
}


/* Centering the wrapper without using body */
.slider-wrapper {
    position:relative;
    
    left: 50%;
    transform: translate( -50%); /* This pulls it to the exact center */
    width: 90%;
    max-width: 800px;
    font-family: 'Arial', sans-serif;
}

.slider-heading {
    text-align: center;
    color: var(--primary-red);
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.testimonial-window {
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.testimonial-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    display: flex;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.photo-container {
    flex: 0 0 150px;
    margin-right: 30px;
}

.reviewer-photo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.content-right {
    flex: 1;
}

.review-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.owner-name {
    display: block;
    font-weight: bold;
    color: var(--dark-grey);
}

.designation {
    color: var(--primary-red);
    font-size: 0.85rem;
}

/* Rectangle Curve Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 25px;
    height: 6px;
    background: #ddd;
    border-radius: 10px; /* Rectangle curve */
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary-red);
    width: 45px;
}


.experts-wrapper {
    position: absolute;
   
    left: 50%;
    transform: translate( -50%);
    width: 95%;
    max-width: 1100px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

.section-title {
    color: var(--text-blue);
    font-size: 2.5rem;
    margin-bottom: 80px; /* Space for the floating photos */
}

.experts-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.expert-card {
    background: #fff;
    width: 300px;
    padding: 80px 20px 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-10px);
}

.photo-wrapper {
    position: absolute;
    top: -60px; /* Pulls photo above the card */
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-name {
    font-size: 1.4rem;
    color: #222;
    margin: 10px 0;
}

.expert-designation {
    color: var(--primary-red); /* Your primary red color */
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.expert-experience {
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}



@media (max-width: 600px) {
    .header-container { justify-content: center; text-align: center; }
    nav { order: 3; width: 100%; }
    .btn-top { width: 100%; }
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

.toggle-pill {
    background: #e7bebe;
    display: flex;
    border-radius: 50px;
    padding: 4px;
    width: 100%;
    max-width: 320px; /* Limit size but allow shrinking */
}

/* Main Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Card Adjustments */
.card-hero {
    position: relative;
    padding: 40px;
    min-height: 400px;
}

.img-hero {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 200px; /* Reduced default size */
    z-index: 2;
}

/* Tablet & Mobile Grid Logic */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr; /* Stack columns */
    }
    
    .card-hero {
        padding: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .img-hero {
        position: relative; /* Stop floating on mobile */
        top: 0;
        right: 0;
        margin-top: 20px;
        width: 80%;
        max-width: 250px;
    }
    
    .card-hero h1 {
        font-size: 32px;
    }
    .card-text h2{
        font-size: 1.5rem;
    }
    .dots{
        display: none;
    }
    .img-mri{
        width:22%;
        z-index: 1;
    }
    .content {
        z-index: 5;
    }
}

/* Services Section (Already mostly responsive, but refined) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Testimonial/Slider Fixes */
.slider-wrapper {
    position: relative;
    margin: 40px auto;
    width: 95%;
    max-width: 800px;
    transform: none; /* Removed translate for better mobile stability */
    left: 0;
}

.testimonial-card {
    flex-direction: row;
}

@media (max-width: 650px) {
    .testimonial-card {
        flex-direction: column; /* Stack photo on top of text */
        text-align: center;
        padding: 20px;
    }
    .photo-container {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Experts Section Fixes */
.experts-wrapper {
    position: relative; /* Changed from absolute to flow with page */
    width: 95%;
    margin: 100px auto 50px;
    transform: none;
    left: 0;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 80px 20px; /* Vertical gap accounts for the floating photo */
    justify-items: center;
}

.expert-card {
    width: 100%;
    max-width: 320px;
}
/* Responsive adjustments for Services Grid */

/* Tablets and small screens (below 992px) */
@media (max-width: 992px) {
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; /* Slightly smaller gap to save space */
    }
}

/* Mobile screens (below 600px) */
@media (max-width: 600px) {
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); /* Forces 2 columns even on small phones */
        gap: 10px; 
    }

    .service-card {
        height: 150px; /* Reducing height so two cards fit better on screen */
    }

    .overlay h3 {
        font-size: 0.9rem; /* Smaller text to prevent overflow in narrow columns */
    }
}