:root {
    --primary-color: #0047AB; /* Royal Blue from Logo */
    --secondary-color: #E31E24; /* Medical Red from Logo */
    --accent-color: #2E7D32; /* Forest Green from Logo */
    --mint-bg: #f8f9fa;
    --text-main: #212529;
    --text-grey: #6c757d;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3 {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-box {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 8px;
}

.mobile-nav-toggle {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-grey);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.slide-content {
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    margin: 0 20px;
}

.slider-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-slide { left: 0; }
.next-slide { right: 0; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white);
    width: 25px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    .slide-content h1 {
        font-size: 2.5rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
    .slider-nav button {
        padding: 10px 15px;
        margin: 0 10px;
    }
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
}

.footer-section p, .footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-block !important;
    background: rgba(255,255,255,0.1);
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(rgba(0, 71, 171, 0.5), rgba(0, 71, 171, 0.5)), url('../img/image-1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.about-hero h1 {
    color: var(--white) !important;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.about-hero p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

.about-section {
    padding: 40px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-grid-swapped .about-text {
    order: 2;
}

.about-grid-swapped .about-image {
    order: 1;
}

.about-image img {
    max-width: 400px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid rgba(0, 71, 171, 0.2);
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Contact Page Styles */
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        display: none;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .contact-info {
        text-align: left;
        margin-bottom: 30px;
    }
}

/* Mobile Responsiveness */
/* Appointment Form Styles */
.appointment-form input:focus, 
.appointment-form select:focus, 
.appointment-form textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.1);
}

.appointment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 71, 171, 0.2);
}

.info-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
}

.info-card ul li {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.info-card ul li i {
    color: var(--accent-color);
    margin-top: 5px;
}

.step-list {
    counter-reset: step-counter;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.step-text h4 {
    margin-bottom: 5px;
    color: var(--text-main);
}

.step-text p {
    font-size: 0.95rem;
    color: var(--text-grey);
}

@media (max-width: 600px) {
    .appointment-form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background-color: var(--white);
    text-align: center;
    overflow: hidden;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.partner-item {
    flex: 0 0 auto;
    width: 200px;
    margin: 0 30px;
    text-align: center;
}

.partner-logo {
    max-width: 150px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: none; /* Remove greyscale */
    opacity: 1;
}

.partner-item p {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-main);
}

.partner-logo:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-260px * 7)); /* (width + margin) * original number of items */
    }
}

@media (max-width: 768px) {
    .partner-item {
        width: 150px;
        margin: 0 20px;
    }
    
    .partner-logo {
        max-width: 120px;
        height: 60px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-190px * 7)); /* adjusted for mobile width */
        }
    }

    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
    }

    .mobile-nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px 0;
        transition: 0.3s;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    nav.active {
        display: block;
    }

    .nav-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    .site-name {
        display: none;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 40px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }
}
