:root {
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --color-bg: #F9F9F7;
    --color-text: #333333;
    --color-accent: #5BA3C0;
    --color-header-bg: #FFFFFF;
    --color-header-border: #E0E0E0;
    --color-footer-bg: #34495E; 
    --color-footer-text: #ECF0F1;
    --color-logo: #2c3e50; 
    --color-section-bg: #FFFFFF;
    --color-section-shadow: rgba(0,0,0,0.05);
    --color-heading: #2c3e50; 
}

/* General Body Styles */
body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* Header and Navigation */
header {
    background-color: var(--color-header-bg);
    padding: 1em 0;
    border-bottom: 1px solid var(--color-header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2em;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.header-contact {
    margin-right: auto;
    padding-left: 1em;
}

.header-contact a,
.footer-contact a {
    color: var(--color-text);
    text-decoration: none;
    margin: 0 0.5em;
}

.header-contact a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

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

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

nav ul li a {
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--color-accent);
    opacity: 0.8;
}

/* Main Content Area */
main {
    padding: 2em 0;
}

section {
    margin-bottom: 2.5em;
    padding: 1.5em 2em;
    background-color: var(--color-section-bg);
}

/* Headings */
h1, h2, h3 {
    color: var(--color-heading);
    font-weight: 400;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2em;
    margin-bottom: 0.75em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

/* Paragraphs and Links */
p {
    margin-bottom: 1em;
}

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

a:hover {
    text-decoration: underline;
}

/* Hero Section specific styles (index.html) */
#hero {
    text-align: center;
    padding: 3em 1.5em;
}

.full-width-hero {
    /* background-color: var(--color-accent); */ /* Replaced by background image */
    background-image: url('images/vet med 1.png'); /* Corrected filename with space before .png */
    background-size: cover;
    background-position: center center;
    position: relative; /* For the overlay and blur */
    color: var(--color-header-bg); 
    padding: 6em 1.5em; /* Adjusted padding for better visual with bg image */
    text-align: center;
    margin-bottom: 2.5em; 
    overflow: hidden; /* To contain the blurred pseudo-element if it extends */
}

/* Add an overlay to soften the image behind the text */
.full-width-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Dark semi-transparent overlay */
    z-index: 1; /* Ensure overlay is behind content but above background image */
}

/* Pseudo-element for the blur effect on the background image itself */
/* This is an alternative or addition to the overlay. If using both, the overlay will be on top of the blurred image. */
.full-width-hero::after {
    content: '';
    position: absolute;
    top: -10px; /* Extend slightly to avoid edge artifacts from blur */
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: inherit; /* Inherit the background image from the parent */
    background-size: cover;
    background-position: center center;
    filter: blur(3px); /* Adjust blur radius as needed */
    z-index: 0; /* Behind the overlay and content */
}

.hero-content {
    position: relative; /* Ensure content is above the overlay and blurred background */
    z-index: 2;
}

/* More specific rule for the hero headline */
section#hero.full-width-hero div.hero-content h1 {
    color: var(--color-header-bg); /* Should be pure white #FFFFFF */
    font-size: 3em;
    margin-bottom: 0.5em;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-header-bg);
    color: var(--color-accent);
    padding: 0.8em 1.8em;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--color-header-bg);
}

.cta-button:hover {
    background-color: var(--color-bg);
    color: var(--color-accent);
    text-decoration: none;
    border: 2px solid var(--color-accent);
}

/* Content Section Styling */
.content-section {
    /* Uses default section styling defined earlier */
    /* margin-bottom: 2.5em; padding: 1.5em; background-color: var(--color-section-bg); ... */
}

/* Remove or repurpose old .supporting-image styles if they are not used elsewhere */
/* .supporting-image {
    width: 100%;
    max-width: 500px; 
    height: auto;
    margin: 1.5em auto; 
    display: block;
} */

/* Image Slider Styles */
.image-slider-container {
    max-width: 700px; /* Constrain the frame width */
    height: 450px;  /* Constrain the frame height, adjust as needed */
    margin: 2em auto; /* Center the slider */
    overflow: hidden;   /* Crucial to hide parts of images outside the frame */
    position: relative; /* Optional: For potential future controls */
    background-color: #eee; /* Placeholder bg if images are slow to load */
}

.image-slider {
    display: flex;
    width: 500%; /* 5 images (4 unique + 1 duplicate) * 100% */
    height: 100%;
    animation: scrollImages 20s linear infinite; /* Adjust 20s duration as needed */
}

.image-slider img {
    width: 20%; /* 100% / 5 images */
    height: 100%;
    object-fit: cover; /* Ensures images fill the frame, cropping if necessary */
}

@keyframes scrollImages {
    0% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(0%); /* Pause on first image */
    }
    20% {
        transform: translateX(-20%); /* Scroll to second image (1 * 20%) */
    }
    35% {
        transform: translateX(-20%); /* Pause on second image */
    }
    40% {
        transform: translateX(-40%); /* Scroll to third image (2 * 20%) */
    }
    55% {
        transform: translateX(-40%); /* Pause on third image */
    }
    60% {
        transform: translateX(-60%); /* Scroll to fourth image (3 * 20%) */
    }
    75% {
        transform: translateX(-60%); /* Pause on fourth image */
    }
    80% {
        transform: translateX(-80%); /* Scroll to the duplicate of the first image (4 * 20%) */
    }
    100% {
        transform: translateX(-80%); /* Hold on the duplicate (effectively a pause before loop) */
    }
}

/* Ensure there's no conflict from old generic image rules if any */
#intro-section img {
    /* If there were generic styles like max-width:100% on all images in a section, */
    /* they might conflict. The .image-slider img rule should be specific enough. */
}

.numbered-highlights {
    margin-top: 1.5em;
    padding-left: 0; /* Reset padding if ol/ul used directly */
}

.numbered-highlights h3 {
    margin-bottom: 0.75em;
    font-size: 1.3em;
}

.numbered-highlights ol {
    list-style-type: decimal;
    padding-left: 20px; /* Indent list */
    margin:0;
}

.numbered-highlights ol li {
    margin-bottom: 0.8em;
    line-height: 1.7;
}

.numbered-highlights ol li strong {
    font-weight: 500;
    color: var(--color-heading);
}

#hero h1 {
    color: var(--color-heading);
}

/* Partner Page Specific Styles */
.partner-category {
    margin-bottom: 40px; /* Add space between partner categories */
}

.partner-profile {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 4%; 
    flex-wrap: wrap; 
}

.partner-individual-bio {
    flex: 1 1 48%; /* Grow, shrink, basis for ~half width */
    min-width: 280px; /* Minimum width before wrapping */
    margin-bottom: 20px; /* Spacing when items wrap to new line */
    /* Text content will default to left-aligned */
}

/* Ensure h3 within partner bio has no top margin for alignment */
.partner-individual-bio h3 {
    margin-top: 0;
    /* Font size, color, weight, and margin-bottom are inherited from general h3 styles */
}

.partner-organization {
    flex: 1 1 48%; /* Grow, shrink, basis for ~half width */
    min-width: 280px; /* Minimum width before wrapping */
    display: flex; /* For internal content alignment */
    flex-direction: column;
    align-items: center; /* Centers h4, logo, p, badge within this block */
    margin-bottom: 20px; /* Spacing when items wrap to new line */
}

.partner-organization h4 {
    font-size: 1.5em;            /* Match h3 */
    color: var(--color-heading); /* Match h3 */
    font-weight: 400;            /* Match h3 */
    text-align: center;          /* Keep existing alignment */
    margin-top: 0;               /* Align with h3 */
    margin-bottom: 0.5em;        /* Consistent with h3 */
}

/* Contact Page Specific Styles */
#contact-details p {
    line-height: 1.8;
}

#contact-details strong {
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 2em 2em;
    text-align: center;
}

.footer-contact {
    margin-bottom: 1em;
}

/* Added to make footer contact links white */
footer .footer-contact a {
    color: #FFFFFF; /* White color for better visibility */
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1em;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-nav ul li {
    margin: 0 10px;
}

.footer-nav ul li a {
    text-decoration: none;
    color: var(--color-footer-text);
    font-weight: 400;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.footer-nav ul li a:hover {
    color: var(--color-accent);
    opacity: 1;
    text-decoration: underline;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive adjustments (basic) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        height: 45px;
        max-width: 220px;
    }

    .header-contact {
        margin: 0.5em 0; /* Adds vertical space */
        padding-left: 0;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    nav ul li {
        margin: 0.5em 0;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.75em;
    }
}

/* Trust Bar Styling */
#trust-bar {
    padding-top: 1em;
    padding-bottom: 1em;
    background-color: var(--color-section-bg); /* Changed from --color-bg to make it white */
}

#trust-bar h3 {
    margin-bottom: 1em;
    font-size: 1.4em;
    font-weight: 500;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

/* Styles for actual image logos in index.html trust bar and partners.html partner sections */
.partner-logos img,
img.partner-logo {
    display: block; /* Allows margin auto for horizontal centering */
    max-height: 60px; /* Increased from 50px */
    max-width: 280px; /* Increased from 200px */
    object-fit: contain; /* Ensures the image scales correctly within the bounds */
    margin: 1em auto; /* Adds some vertical spacing and centers horizontally */
    flex-shrink: 0; /* Prevent logos from shrinking too much if space is tight in flex container */
}

/* Styles for text-based placeholders for logos */
.partner-logos span, /* Placeholder in index.html trust bar */
.logo-placeholder {   /* Placeholder on partners.html */
    display: flex; /* For centering text inside */
    align-items: center;
    justify-content: center;
    height: 50px;
    min-width: 100px; /* Give it some base width */
    max-width: 150px;
    font-style: italic;
    color: var(--color-text-muted, #777);
    background-color: var(--color-bg-alt, #f0f0f0); /* Use a variable or a light grey */
    padding: 5px 10px;
    border: 1px dashed var(--color-accent, #5BA3C0);
    border-radius: 4px;
    margin: 1em auto; /* Consistent vertical spacing and horizontal centering */
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
    text-align: center;
}

/* Pain Points Cards Styling */
#pain-points h2 {
    text-align: center;
    margin-bottom: 1.5em;
}
#pain-points > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

.pain-points-cards {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background-color: var(--color-section-bg);
    padding: 1.5em;
    flex-basis: 300px;
    flex-grow: 1;
    max-width: calc(33.333% - 20px);
    min-width: 280px;
    transition: transform 0.3s ease;
}

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

.card h3 {
    font-size: 1.3em;
    color: var(--color-accent);
    margin-top: 0;
    margin-bottom: 0.75em;
}

.card p {
    font-size: 0.95em;
    line-height: 1.7;
}

/* CTA Banner specific styling (if different from hero) */
#cta-banner h2 {
    color: var(--color-header-bg);
    font-size: 2.2em; /* Slightly smaller than main hero H1 */
}

/* Services Page Tab-like Content Styling */
.tabs-container {
    /* Container for all service tab content blocks */
}

.service-tab-content {
    background-color: var(--color-section-bg);
    padding: 1.5em 2em;
    margin-bottom: 1.5em;
}

.service-tab-content h2 {
    color: var(--color-accent);
    margin-top: 0;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.4em;
    margin-bottom: 1em;
}

.partner-badge {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start; /* Or center if preferred: justify-content: center; text-align: center; */
}

.partner-badge img { /* If images are ever re-introduced here directly */
    max-height: 40px; /* Slightly smaller for secondary badges if needed */
    object-fit: contain;
}

/* Process Page Timeline Styling */
#process-timeline h2 {
    text-align: center;
    margin-bottom: 1.5em;
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative; /* For pseudo-element line */
}

/* Draw a line for the timeline - optional visual enhancement */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Adjust based on step-number size and padding */
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-accent);
    opacity: 0.3;
    border-radius: 2px;
}

.timeline-step {
    margin-bottom: 2em;
    position: relative;
    padding-left: 50px; /* Space for the step number and line */
    display: flex; /* Align number and content */
    align-items: flex-start;
}

.timeline-step-number {
    background-color: var(--color-accent);
    color: var(--color-header-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0; /* Align with top of content */
    z-index: 1; /* Above the timeline line */
}

.timeline-step-content {
    background-color: var(--color-section-bg);
    padding: 1.5em 2em;
    margin-left: 10px;
    flex: 1;
}

.timeline-step-content h3 {
    margin-top: 0;
    color: var(--color-accent);
    font-size: 1.4em;
}

.timeline-step-content p {
    margin-bottom: 0;
}

/* Contact Page Form & Map Styling */
#contact-form-section h2,
#service-area-map h2 {
    text-align: center;
    margin-bottom: 1em;
}

#contact-form-section > p {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

#contact-form .form-group {
    margin-bottom: 1.5em;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: var(--color-text);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    width: 100%;
    padding: 0.8em;
    border-bottom: 2px solid var(--color-header-border);
    font-family: var(--font-body);
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form button.cta-button {
    /* Uses existing .cta-button styles */
    /* Add any specific overrides if needed */
    width: auto; /* Or 100% for full-width button */
    cursor: pointer;
}

.map-placeholder {
    /* Styles for img are inline, this is for any container needs */
    margin-top: 1em;
}

/* For the map image placeholder, remove inline border from HTML if it exists, or target here */
.map-placeholder img {
    /* border:1px solid #ccc; */ /* Referenced from inline style, ensure removed or overridden */
    border: none; /* Explicitly remove border */
} 