/* --- Global Theme & Reset Rules --- */
:root {
    --primary: #0284c7;        /* Clean Trusting Medical Blue */
    --primary-rgb: 2, 132, 199; /* Added for transparent hover states */
    --primary-dark: #0369a1;
    --secondary: #e11d48;      /* Precise Red Cross Accent */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Typography Helpers --- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
    color: #0f172a;
}

.text-center { text-align: center; }
.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
section {
    padding: 80px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}
.btn-secondary {
    background-color: var(--secondary);
    color: white;
}
.btn-secondary:hover {
    opacity: 0.9;
}
.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-light);
}
.btn-block {
    width: 100%;
}

/* --- Consolidated Fixed & Sticky Header Engine --- */
.site-header {
    position: fixed; /* Securely locks it over the viewport from the start */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1); /* Transparent overlay style over hero */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Switches to a clean, readable background as you scroll down */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
}

/* Text color transitions */
.site-header .logo, 
.site-header .nav-links a {
    color: #ffffff; /* Crisp white over dark hero image background overlay */
    transition: color 0.3s ease;
}

/* Dynamic Text Color Shift on Scroll */
.site-header.scrolled .logo, 
.site-header.scrolled .nav-links a {
    color: var(--text-main);
}

.site-header.scrolled .logo span {
    color: var(--primary);
}

/* 1. Target the logo image when the header is in its default, transparent state */
.site-header .logo img {
    filter: brightness(0) invert(1); /* Forces the dark logo to render as crisp white */
    transition: filter 0.3s ease;    /* Smooth transition matching your scroll effect */
}

/* 2. Turn off the filter once the header gets its scrolled class */
.site-header.scrolled .logo img,
.site-header.sticky .logo img { 
    filter: none; /* Returns the logo to its natural dark blue color over the white background */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1020;
}
.logo i {
    color: var(--secondary);
}
.logo span {
    color: var(--primary);
}
.main-nav {
    display: flex;
    align-items: center;
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1020;
}

/* --- Multipage Navigation & Dropdown Styling --- */

/* Main Nav Layout Reset */
.nav-links ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

/* Base list item positioning */
.nav-links li {
    position: relative;
}

/* Dropdown Icon transition */
.dropdown-icon {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

/* The Dropdown Menu (Hidden by Default) */
.dropdown-menu {
    position: absolute;
    top: 175%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1010;
    display: flex;
    flex-direction: column !important; /* Stack vertically */
    gap: 0 !important;
}

/* Arrow pointer above the menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
}

/* Dropdown Menu Links */
.dropdown-menu li a {
    color: var(--text-main) !important; /* Forces dark readable text on white dropdown card */
    padding: 10px 20px;
    display: block;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(var(--primary-rgb), 0.08); /* Light tint on hover */
    color: var(--primary) !important;
}

/* Desktop Hover Interaction */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
    }
}

/* --- Mobile Specific Dropdown Adjustments --- */
@media (max-width: 991px) {
    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-links li {
        width: 100%;
    }

    /* Override Desktop absolute positions on Mobile */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        background-color: rgba(0, 0, 0, 0.03) !important; /* Subtle backdrop */
        border-radius: 0 !important;
        padding: 0 !important;
        max-height: 0; /* Animated height collapse */
        overflow: hidden;
        opacity: 1 !important;
        visibility: visible !important;
        transition: max-height 0.35s ease;
        display: block !important;
    }

    .dropdown-menu::before {
        display: none !important;
    }

    /* Active expanded state for Mobile */
    .dropdown.active .dropdown-menu {
        max-height: 300px; /* High enough to contain all links */
        padding: 8px 0 !important;
    }

    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .dropdown-menu li a {
        padding-left: 30px !important; /* Indent under parent item */
    }
    /* Hide by default on mobile */
    .nav-links .dropdown-menu {
        display: none;
    }
    
    /* Show when the parent list item has the active class toggled via JS */
    .nav-links .dropdown.active > .dropdown-menu {
        display: block;
    }
    /* Style refinement for the new Overview links */
    .nav-links .dropdown-menu li a.overview-link {
        font-weight: 600;
        color: #4c1d95; /* Matches your brand corporate theme color */
        border-bottom: 1px dashed #e2e8f0;
        padding-bottom: 10px;
        margin-bottom: 5px;
    }
    
    .nav-links .dropdown-menu li a.overview-link:hover {
        color: #fbbf24; /* Changes to amber on hover/press */
    }     
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block !important; /* Ensures the hamburger stays visible on mobile */
        color: var(--text-main);
    }
    
    /* When the header is at the top (white text mode over hero image) */
    .site-header:not(.scrolled) .mobile-nav-toggle {
        color: #ffffff !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
        z-index: 1000;
        gap: 0px; /* Uniform layout handling handled by inside ul elements */
    }

    .nav-links.show {
        display: flex !important; /* Opens the wrapper via JS smoothly */
    }

    .site-header .nav-links a {
        color: var(--text-main) !important; /* Ensure mobile side menu text stays visible */
    }
}

/* --- Full Background Hero Engine --- */
.hero-section {
    position: relative;
    min-height: 100vh; /* Takes full window viewport height */
    display: flex;
    align-items: center;
    /* Immersive medical facility stock asset placement */
    background-image: url('images/bg-home-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax scroll feel */
    padding: 120px 0 80px 0;
}

/* Semi-transparent dark mask layer to maintain text accessibility over busy graphics */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2; /* Forces text to layer cleanly on top of the overlay mask */
}

.hero-content {
    max-width: 700px; /* Centers text focus elegantly */
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    color: #cbd5e1; /* Subtle slate white tint */
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Secondary Button option contrast adaptation for white/dark dynamic backgrounds */
.btn-outline-white {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
}
.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--text-main);
}

/* --- Mobile Responsiveness Patch --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image-wrapper img {
    border-radius: 12px;
}
.about-content p {
    color: #000000;
    margin-bottom: 2rem;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 4px;
}
.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Product Gallery/Tabs --- */
.products-section {
    background-color: var(--bg-light);
}
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.tab-btn {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn:hover, .tab-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- Look for this section around the middle of your CSS file --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* CHANGED: Dynamic 4-column layout layout basis */
    gap: 30px;
}

/* --- Look for the Responsive Adjustments Media Queries at the bottom of your file --- */
@media (max-width: 1200px) {
    /* New breakpoint: drops beautifully to 3 columns on smaller desktop monitors/large tablets */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Drops smoothly to 2 columns on tablets */
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    /* Drops to a clean single column list on mobile screens */
    .product-grid, .features-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}
.product-img-holder {
    height: 220px;
    background-color: #f1f5f9;
    overflow: hidden;
}
.product-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 24px;
}
.prod-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.05em;
}
.product-info h3 {
    margin: 8px 0 12px 0;
    font-size: 1.25rem;
}
.product-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Features Layout --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.feature-card {
    padding: 40px 32px;
    background-color: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(2, 132, 199, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-size: 1.75rem;
    margin-bottom: 24px;
}
.feature-card h3 {
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Latest News & Updates Section --- */
.news-section {
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Elegant 3-column layout basis */
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
    border-color: rgba(2, 132, 199, 0.25);
}

.news-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.news-meta i {
    margin-right: 6px;
    color: var(--primary);
}

.news-content h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #0f172a;
    transition: var(--transition);
}

.news-card:hover .news-content h3 {
    color: var(--primary);
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
}

.read-more-btn {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

.read-more-btn:hover i {
    transform: translateX(6px);
}

/* --- News Mobile Adjustments --- */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* Drops nicely to 2 columns on small laptop screens */
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr; /* Drops to a clean single column list on tablets & mobile screens */
    }
    .news-img-wrapper {
        height: 200px;
    }
}
/* --- Footer --- */
.site-footer {
    background-color: #0f172a; /* Deep charcoal/blue background */
    color: #94a3b8;
    padding: 70px 0 0 0; /* padding on top, bottom handled by footer-bottom */
    border-top: 4px solid var(--primary);
}

.footer-container-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}

.footer-widget h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

/* Subtle line indicator under titles */
.footer-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-logo {
    margin-bottom: 16px;
}
.footer-logo span {
    color: #f8fafc; /* Make logo pop in the dark footer context */
}

.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px; /* Slight push effect on hover */
}

/* --- Fix Footer Logo Visibility on Dark Background --- */
.footer-widget .logo img,
.footer-logo img {
    filter: brightness(0) invert(1); /* Permanently turns the dark blue logo white */
}

/* Newsletter Minimal Input Box */
.footer-newsletter-form {
    display: flex;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #334155;
}

.footer-newsletter-form input {
    background-color: #1e293b;
    border: none;
    padding: 10px 14px;
    color: white;
    width: 100%;
    outline: none;
    font-size: 0.85rem;
}

.footer-newsletter-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter-form button:hover {
    background-color: var(--primary-dark);
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #020617;
    border-top: 1px solid #1e293b;
    padding: 24px 0;
    font-size: 0.85rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 20px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #94a3b8;
}

/* --- Responsive Adjustments for 4-Column Footer --- */
@media (max-width: 992px) {
    .footer-container-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-container-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .footer-bottom-links a {
        margin: 0 10px;
    }
}

/* --- Responsive Adjustments (Mobile/Tablets) --- */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid, .features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Scroll To Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    z-index: 999;
    
    /* Hidden by default states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

/* Class toggled via JS when scroll limits pass threshold */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile Adjustments so it doesn't block critical screen space */
@media (max-width: 576px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--bg-white);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 side-by-side columns */
    gap: 30px;
    margin-top: 50px;
}

/* Restrict padding slightly to keep cards looking balanced in the tighter 3-column space */
.testimonial-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.3);
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(2, 132, 199, 0.15); /* Soft primary tint quotation mark */
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.partner-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.partner-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.partner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-info h4 {
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 2px;
}

.partner-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.rating-stars {
    color: #f59e0b; /* Professional warm amber yellow star rating */
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

/* --- Testimonials Mobile Responsiveness Patch --- */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr); /* Drops to 2 columns on small laptops/tablets */
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* Drops to clean single column on mobile */
    }
}

/* --- Contact Page Map Section --- */
.contact-map-section {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.contact-map-section iframe {
    vertical-align: bottom; /* Prevents a small white gap under the iframe */
    filter: grayscale(10%) contrast(95%); /* Matches premium corporate aesthetic */
    transition: filter 0.3s ease;
}

.contact-map-section iframe:hover {
    filter: none; /* Restores full map vibrant colors on hover */
}

@media (max-width: 768px) {
    .contact-map-section iframe {
        height: 350px; /* Reduces map height elegantly on mobile viewports */
    }
}

.subpage-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 100%), 
                url('images/bg-home-hero.jpg');
    background-size: cover;
    background-position: bottom center;
    background-attachment: fixed; /* Parallax effect */
    padding: 160px 0 80px 0; /* Clears fixed top header spacing */
    color: #ffffff;
    text-align: center;
    position: relative;
}