/* ========================================
   Dr. Mesaroș Bogdan-Paul - Medic Primar Medicină de Familie
   Professional Medical Website Styles
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors - Medical Blue */
    --primary-color: #1a5f7a;
    --primary-dark: #134b61;
    --primary-light: #2d7a99;
    --primary-lighter: #e8f4f8;
    
    /* Secondary Colors - Warm Teal */
    --secondary-color: #57a773;
    --secondary-dark: #468c5f;
    --secondary-light: #7bc49b;
    
    /* Accent Colors */
    --accent-color: #f9a825;
    --accent-light: #ffc107;
    
    /* Neutral Colors */
    --text-dark: #1a1a2e;
    --text-body: #4a4a68;
    --text-light: #6b6b8d;
    --text-muted: #9999b3;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #1a1a2e;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(26, 95, 122, 0.1);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-padding: 20px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Safe Area Insets for notched devices */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

/* ========== Reset & Base Styles ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Prevent font scaling in landscape on iOS */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body.menu-open .top-bar {
    z-index: 999;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

/* Fallbacks for browsers without clamp() support */
h1 { font-size: 2.5rem; font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: 2rem; font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========== Section Styles ========== */
.section {
    padding: var(--section-padding) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    margin-bottom: 20px;
    position: relative;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========== Buttons ========== */
.btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    /* Ensure minimum touch target size */
    min-height: 48px;
    /* Remove default button styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Prevent text selection on double-tap */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Fix for Safari flexbox gap */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.btn i {
    font-size: 0.9em;
    margin-right: 10px; /* Fallback for gap */
}

/* Gap support check - reset margin when gap is supported */
@supports (gap: 10px) {
    .btn i {
        margin-right: 0;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: var(--primary-lighter);
    color: var(--primary-dark);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-outline-white:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* ========== Top Bar ========== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f3d4f 100%);
    padding: 8px 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    will-change: transform;
}

.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Top Bar Quick Info (left side) */
.top-bar-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
}

.top-bar-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar-info-item i {
    font-size: 0.75rem;
    color: var(--secondary-light);
}

.top-bar-info-item a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.top-bar-info-item a:hover {
    color: var(--bg-white);
}

/* Top Bar Action Buttons */
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.top-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.top-bar-btn i {
    font-size: 0.8rem;
}

/* Contact Button */
.top-bar-contact {
    background: rgba(255, 255, 255, 0.12);
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.top-bar-contact:hover {
    background: var(--bg-white);
    color: var(--primary-dark);
    border-color: var(--bg-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Emergency 112 Button */
.top-bar-emergency {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: var(--bg-white);
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
    animation: emergencyPulse 3s ease-in-out infinite;
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.top-bar-emergency i {
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes emergencyPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35); }
    50% { box-shadow: 0 2px 16px rgba(220, 38, 38, 0.55); }
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-8deg); }
    20% { transform: rotate(8deg); }
    30% { transform: rotate(-5deg); }
    40% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
}

/* Top Bar Separator */
.top-bar-separator {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Top Bar Responsive */
@media (max-width: 992px) {
    .top-bar {
        padding: 6px 0;
    }

    .top-bar-info-item.info-schedule,
    .top-bar-info-item.info-location {
        display: none;
    }

    .top-bar-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 5px 0;
    }

    .top-bar-info {
        font-size: 0.75rem;
    }

    .top-bar-btn span {
        display: none;
    }

    .top-bar-emergency .emergency-label-text {
        display: inline;
    }

    .top-bar-btn {
        padding: 8px;
        border-radius: var(--radius-full);
        width: 34px;
        height: 34px;
        justify-content: center;
    }

    .top-bar-emergency {
        width: auto;
        height: auto;
        padding: 6px 12px;
        border-radius: var(--radius-xl);
        font-size: 0.75rem;
        gap: 5px;
    }

    .top-bar-btn i {
        font-size: 0.85rem;
        margin: 0;
    }

    .top-bar-actions {
        gap: 8px;
    }

    .header {
        top: 44px;
    }
}

/* ========== Header & Navigation ========== */
.header {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color var(--transition-normal), padding var(--transition-normal), box-shadow var(--transition-normal);
    padding: 12px 0;
}

.header.top-bar-hidden {
    top: 0;
}

.header.scrolled {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bg-white);
    transition: var(--transition-normal);
    flex-shrink: 0;
    line-height: 1;
}

.header.scrolled .logo {
    color: var(--primary-color);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--bg-white);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    opacity: 0.8;
    letter-spacing: 0.3px;
    line-height: 1;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    top: 14px;
}

.nav-link {
    padding: 6px 16px;
    color: var(--bg-white);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-color);
    background-color: var(--primary-lighter);
}

.btn-nav {
    background-color: var(--secondary-color);
    color: var(--bg-white) !important;
    margin-left: 10px;
}

.btn-nav:hover {
    background-color: var(--secondary-dark);
    color: var(--bg-white) !important;
}

.header.scrolled .btn-nav {
    background-color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    z-index: 1003;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--bg-white);
    transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6), 
                opacity 0.3s ease,
                background-color 0.3s ease;
    border-radius: 3px;
    transform-origin: center;
}

.header.scrolled .mobile-menu-btn span {
    background-color: var(--primary-color);
}

.mobile-menu-btn.active span {
    background-color: var(--primary-color);
}

/* Hide burger button X when menu is open - close button inside menu is used instead */
.mobile-menu-btn.active {
    opacity: 0;
    pointer-events: none;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== Desktop Mega Menu ========== */
.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 600px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px;
    z-index: 1000;
    pointer-events: none;
}

/* Bridge gap between nav-link and dropdown for smooth hover */
.nav-item.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.mega-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--bg-white);
}

.nav-item.has-dropdown:hover .mega-dropdown,
.nav-item.has-dropdown.active .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: auto;
}

.nav-item.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Ensure dropdown stays open when hovering over it */
.nav-item.has-dropdown:hover::after {
    display: block;
}

.mega-dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-column h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-lighter);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-column h4 i {
    font-size: 1rem;
}

.mega-column ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mega-column ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-body);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mega-column ul li a i {
    width: 20px;
    color: var(--primary-light);
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.mega-column ul li a:hover {
    background-color: var(--primary-lighter);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-column ul li a:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Featured Card in Mega Menu */
.mega-featured {
    display: flex;
    align-items: stretch;
}

.mega-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.mega-card i {
    font-size: 2.5rem;
    color: var(--secondary-light);
}

.mega-card h5 {
    font-family: var(--font-primary);
    color: var(--bg-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.mega-card p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 0;
}

.mega-card .btn-small {
    padding: 10px 20px;
    font-size: 0.85rem;
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    margin-top: 10px;
    transition: all 0.3s ease;
}

.mega-card .btn-small:hover {
    background: var(--secondary-light);
    color: var(--primary-dark);
    transform: scale(1.05);
}

/* ========== Redesigned Mega Menus — Servicii vs Informații ========== */

/* Both menus get wider for descriptions */
.mega-servicii,
.mega-informatii {
    min-width: 720px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Colored header banner at top of dropdown */
.mega-dropdown-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mega-dropdown-header > i {
    font-size: 1.5rem;
    opacity: 0.85;
}

.mega-dropdown-header > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-dropdown-header > div strong {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mega-dropdown-header > div span {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Informații header — teal/green accent for distinction */
.mega-dropdown-header-info {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

/* Content area gets padding since parent has none */
.mega-servicii .mega-dropdown-content,
.mega-informatii .mega-dropdown-content {
    padding: 24px 30px 24px;
}

/* Arrow/triangle inherits from dropdown type */
.mega-servicii::before {
    border-bottom-color: var(--primary-color);
}

.mega-informatii::before {
    border-bottom-color: #0d9488;
}

/* Item descriptions layout */
.mega-column ul li a div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.mega-column ul li a div strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.mega-column ul li a div span {
    font-size: 0.76rem;
    color: var(--text-light);
    line-height: 1.3;
    transition: color 0.2s ease;
}

.mega-column ul li a:hover div strong {
    color: var(--primary-color);
}

/* Informații column hover — teal accent */
.mega-informatii .mega-column ul li a:hover {
    background-color: #f0fdfa;
}

.mega-informatii .mega-column ul li a:hover div strong {
    color: #0d9488;
}

.mega-informatii .mega-column ul li a:hover i {
    color: #0d9488;
}

/* Informații column header color */
.mega-informatii .mega-column h4 {
    color: #0d9488;
    border-bottom-color: #ccfbf1;
}

.mega-informatii .mega-column ul li a i {
    color: #5eead4;
}

/* "View all" link at bottom of a column */
.mega-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mega-view-all:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.mega-view-all i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.mega-view-all:hover i {
    transform: translateX(3px);
}

/* Informații "view all" — teal accent */
.mega-informatii .mega-view-all {
    background: #f0fdfa;
    color: #0d9488;
}

.mega-informatii .mega-view-all:hover {
    background: #0d9488;
    color: var(--bg-white);
}

/* Featured card — Informații variant (teal gradient) */
.mega-card-info {
    background: linear-gradient(135deg, #0d9488, #0f766e) !important;
}

.mega-card-info i {
    color: #99f6e4 !important;
}

.mega-card-info .btn-small:hover {
    background: #99f6e4 !important;
    color: #0f766e !important;
}

/* Navigation CTA Button */
.nav-cta .btn-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta .btn-nav i {
    font-size: 0.85rem;
}

/* Hide mobile-only elements on desktop */
.nav-menu-header {
    display: none;
}

.nav-close-btn {
    display: none;
}

.nav-menu-footer {
    display: none;
}

/* Active link indicator for desktop */
@media (min-width: 993px) {
    .nav-link {
        position: relative;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--secondary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: calc(100% - 36px);
    }
    
    .header.scrolled .nav-link::after {
        background: var(--primary-color);
    }
    
    .btn-nav::after {
        display: none;
    }
    
    /* Mega menu positioning for edge cases */
    .nav-item.has-dropdown:last-of-type .mega-dropdown {
        left: auto;
        right: 0;
        transform: translateY(10px);
    }
    
    .nav-item.has-dropdown:last-of-type:hover .mega-dropdown,
    .nav-item.has-dropdown:last-of-type.active .mega-dropdown {
        transform: translateY(-10px);
    }
    
    .nav-item.has-dropdown:last-of-type .mega-dropdown::before {
        left: auto;
        right: 30px;
        transform: none;
    }
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-dark);
    padding-top: 120px;
    padding-bottom: 100px;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider .swiper-wrapper {
    align-items: stretch;
}

.hero-slider .swiper-slide {
    display: flex;
    align-items: center;
    position: relative;
    min-height: calc(100vh - 180px);
    overflow: hidden;
}





/* Hero Navigation Arrows */
.hero-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.hero-arrow {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.2rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hero-arrow:active {
    transform: scale(0.95);
}

/* Hero Slider Navigation Container */
.hero-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 10;
}

.hero-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Slide Counter */
.hero-slide-counter {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: var(--font-heading);
    color: var(--bg-white);
}

.current-slide {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff, var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.slide-separator {
    font-size: 1.2rem;
    opacity: 0.5;
    margin: 0 3px;
}

.total-slides {
    font-size: 1rem;
    opacity: 0.6;
    font-weight: 500;
}

/* Progress Bar */
.hero-progress-bar {
    flex: 1;
    max-width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-light), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Numbered Pagination */
.hero-pagination {
    position: relative !important;
    bottom: auto !important;
    display: flex;
    gap: 12px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.hero-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(87, 167, 115, 0.4);
}

/* Mobile Hero Navigation */
@media (max-width: 768px) {
    .hero-nav-arrows {
        padding: 0 15px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .hero-slider-nav {
        position: absolute;
        bottom: 25px;
        left: 0;
        right: 0;
        padding: 0 20px;
    }
    
    .hero-nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        flex-wrap: nowrap;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 10px 20px;
        border-radius: 50px;
        display: inline-flex;
        width: auto;
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hero-slide-counter {
        order: 1;
    }
    
    .current-slide {
        font-size: 1.3rem;
    }
    
    .total-slides {
        font-size: 0.75rem;
    }
    
    .slide-separator {
        font-size: 0.85rem;
    }
    
    .hero-progress-bar {
        display: none;
    }
    
    .hero-pagination {
        order: 2;
        gap: 8px;
    }
    
    .hero-pagination .swiper-pagination-bullet {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .hero-slider .swiper-slide {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-nav-arrows {
        display: none;
    }
    
    .hero-slider-nav {
        bottom: 20px;
        padding: 0 15px;
    }
    
    .hero-nav-container {
        gap: 10px;
        padding: 8px 16px;
    }
    
    .hero-slide-counter {
        order: 1;
    }
    
    .current-slide {
        font-size: 1.1rem;
    }
    
    .slide-separator {
        font-size: 0.75rem;
    }
    
    .total-slides {
        font-size: 0.7rem;
    }
    
    .hero-pagination {
        order: 2;
        gap: 6px;
    }
    
    .hero-pagination .swiper-pagination-bullet {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-width: 1.5px;
    }
    
    .hero-slider .swiper-slide {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* Hero Particles Animation */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    width: 15px;
    height: 15px;
}

.particle:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: -3s;
    width: 8px;
    height: 8px;
}

.particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: -6s;
    width: 12px;
    height: 12px;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: -9s;
    width: 6px;
    height: 6px;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: -12s;
    width: 10px;
    height: 10px;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(100px, 0) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translate(50px, 50px) rotate(270deg);
        opacity: 0.6;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 95, 122, 0.3) 0%, rgba(19, 75, 97, 0.6) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    color: var(--bg-white);
    padding-top: 40px; /* Space from header on desktop */
    padding-bottom: 100px; /* Space for slider navigation on desktop */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: var(--secondary-light);
}

.hero-title {
    color: var(--bg-white);
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--secondary-light);
    margin-bottom: 25px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 35px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero-feature i {
    color: var(--secondary-light);
    font-size: 1.2rem;
}

/* Hero Google Trust Badge */
.hero-trust-badge {
    margin-top: 25px;
    margin-bottom: 0;
    display: inline-block;
    position: relative;
    z-index: 5;
}

.trust-badge-link {
    display: inline-flex;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.trust-badge-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.trust-badge-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-badge-google {
    display: flex;
    align-items: center;
    gap: 8px;
}

.google-g-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.trust-badge-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-white);
    letter-spacing: 0.3px;
}

.trust-badge-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
}

.trust-badge-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badge-stars {
    display: flex;
    gap: 2px;
}

.trust-badge-stars i {
    color: #fbbc04;
    font-size: 0.85rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.trust-badge-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-white);
}

.trust-badge-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-badge-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.trust-badge-arrow {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.trust-badge-link:hover .trust-badge-arrow {
    color: var(--bg-white);
    transform: translateX(2px);
}

/* Trust Badge Tablet */
@media (max-width: 900px) {
    .trust-badge-content {
        gap: 10px;
    }
    
    .trust-badge-link {
        padding: 10px 14px;
    }
    
    .trust-badge-reviews {
        display: none;
    }
}

/* Trust Badge Mobile */
@media (max-width: 768px) {
    .hero-trust-badge {
        margin-top: 5px;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
    }
    
    .trust-badge-link {
        padding: 10px 16px;
    }
    
    .trust-badge-content {
        gap: 10px;
    }
    
    .trust-badge-label {
        font-size: 0.85rem;
    }
    
    .trust-badge-score {
        font-size: 0.95rem;
    }
    
    .google-g-icon {
        width: 20px;
        height: 20px;
    }
    
    .trust-badge-stars i {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-trust-badge {
        margin-top: 5px;
        margin-bottom: 0;
    }
    
    .trust-badge-link {
        padding: 8px 14px;
        display: inline-flex;
        width: auto;
    }
    
    .trust-badge-content {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .trust-badge-divider {
        display: none;
    }
    
    .trust-badge-google {
        order: 1;
    }
    
    .trust-badge-rating {
        order: 2;
    }
    
    .google-g-icon {
        width: 18px;
        height: 18px;
    }
    
    .trust-badge-label {
        font-size: 0.8rem;
    }
    
    .trust-badge-score {
        font-size: 0.85rem;
    }
    
    .trust-badge-stars i {
        font-size: 0.7rem;
    }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* ========== Quick Info Section ========== */
.quick-info {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .quick-info {
        margin-top: 0;
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .quick-info {
        padding: 30px 0;
    }
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .info-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .info-card {
        padding: 18px 20px;
        gap: 14px;
        border-radius: 16px;
        background: var(--bg-white);
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .info-card:hover {
        transform: none;
    }
    
    .info-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.2rem;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(5, 83, 119, 0.1) 100%);
    }
    
    .info-content h3 {
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: -0.01em;
    }
    
    .info-content p {
        font-size: 0.85rem;
        opacity: 0.8;
        line-height: 1.4;
    }
    
    .info-card.highlight {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        border: none;
        box-shadow: 0 4px 20px rgba(5, 83, 119, 0.3);
    }
    
    .info-card.highlight .info-icon {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 480px) {
    .info-cards {
        gap: 10px;
    }
    
    .info-card {
        padding: 16px 18px;
        gap: 12px;
        border-radius: 14px;
    }
    
    .info-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .info-content h3 {
        font-size: 0.9rem;
    }
    
    .info-content p {
        font-size: 0.8rem;
    }
}

.info-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.info-card.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
}

.info-card.highlight h3,
.info-card.highlight p {
    color: var(--bg-white);
}

.info-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: var(--primary-lighter);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-card.highlight .info-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
}

.info-content h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 3px;
}

.info-card.highlight .info-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* ========== Statistics Section ========== */
.statistics {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    color: var(--bg-white);
    padding: 20px;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-card:last-child::after {
    display: none;
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    display: inline;
    background: linear-gradient(135deg, #fff 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-light);
    display: inline;
    margin-left: -5px;
}

.stat-label {
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: 500;
}

/* ========== About Preview Section ========== */
.about-preview {
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 95, 122, 0.22) 0%, rgba(19, 75, 97, 0.45) 100%);
    pointer-events: none;
}

/* Doctor Image Styling */
.doctor-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
}

/* About Image Decorations */
.about-image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.decoration-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary-lighter);
    border-radius: 50%;
    top: -30px;
    left: -30px;
    opacity: 0.6;
}

.decoration-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: 20px;
    right: -50px;
    background-image: radial-gradient(var(--secondary-color) 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.4;
}

.image-placeholder {
    /* Fallback for browsers without aspect-ratio support */
    position: relative;
    padding-bottom: 125%; /* 4:5 ratio fallback */
    height: 0;
    background: linear-gradient(135deg, var(--primary-lighter), var(--bg-light));
    color: var(--primary-color);
}

/* Modern browsers with aspect-ratio support */
@supports (aspect-ratio: 4/5) {
    .image-placeholder {
        aspect-ratio: 4/5;
        padding-bottom: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
}

/* Fallback positioning for content */
.image-placeholder > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@supports (aspect-ratio: 4/5) {
    .image-placeholder > * {
        position: static;
        transform: none;
    }
}

.image-placeholder i {
    font-size: 5rem;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.7;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--bg-white);
    padding: 25px 35px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(87, 167, 115, 0.3);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 15px 40px rgba(87, 167, 115, 0.4);
    }
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    padding-right: 40px;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-body);
}

.about-text.highlight-text {
    background-color: var(--primary-lighter);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    position: relative;
}

.about-text.highlight-text i {
    color: var(--primary-color);
    margin-right: 10px;
    opacity: 0.5;
}

.about-list {
    margin: 25px 0 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1rem;
}

.about-list li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* ========== Services Section ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 95, 122, 0.15);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--bg-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.service-link:hover {
    color: var(--secondary-color);
    gap: 12px;
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

/* Service Cards with Images */
.services-with-images .service-card.has-image {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.service-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
    z-index: 0;
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 95, 122, 0.85) 0%, rgba(19, 75, 97, 0.95) 100%);
}

.services-with-images .service-card.has-image:hover .service-card-image {
    opacity: 1;
    transform: scale(1.05);
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: color 0.3s ease;
}

.services-with-images .service-card.has-image:hover .service-card-content {
    color: var(--bg-white);
}

.services-with-images .service-card.has-image:hover .service-card-content h3 {
    color: var(--bg-white);
}

.services-with-images .service-card.has-image:hover .service-card-content p {
    color: rgba(255, 255, 255, 0.9);
}

.services-with-images .service-card.has-image:hover .service-link {
    color: var(--secondary-light);
}

.services-with-images .service-card.has-image:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile adjustments for service cards with images */
@media (max-width: 768px) {
    .services-with-images .service-card.has-image {
        min-height: 320px;
    }
    
    .service-card-content {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .services-with-images .service-card.has-image {
        min-height: auto;
    }
    
    .service-card-image {
        opacity: 1;
    }
    
    .service-card-content {
        color: var(--bg-white);
    }
    
    .services-with-images .service-card.has-image .service-card-content h3 {
        color: var(--bg-white);
    }
    
    .services-with-images .service-card.has-image .service-card-content p {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .services-with-images .service-card.has-image .service-link {
        color: var(--secondary-light);
    }
    
    .services-with-images .service-card.has-image .service-icon {
        background: rgba(255, 255, 255, 0.2);
        color: var(--bg-white);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* ========== CAS Info Section ========== */
.cas-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.cas-content .section-title {
    text-align: left;
}

.cas-benefits {
    margin: 30px 0;
}

.cas-benefit {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    font-size: 1.05rem;
}

.cas-benefit i {
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.cas-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.cas-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.cas-card-header i {
    font-size: 1.5rem;
}

.cas-card-body {
    padding: 30px;
}

.cas-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cas-card-body p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.cas-card-body strong {
    color: var(--text-dark);
}

.cas-card-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.status.active {
    color: var(--secondary-color);
}

.status i {
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== Why Choose Us Section ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    position: relative;
}

.why-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
}

.why-card:hover::before {
    width: 60%;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
    transition: transform 0.4s ease;
}

.why-card:hover .why-number {
    transform: scale(1.1);
}

.why-card h3 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.why-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== Testimonials Section ========== */

/* Google Reviews Badge */
.google-reviews-badge {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.google-badge-link {
    display: inline-block;
    text-decoration: none;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 15px 25px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.google-badge-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.google-badge-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.google-logo {
    height: 24px;
    width: auto;
}

.google-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.google-stars {
    display: flex;
    gap: 3px;
}

.google-stars i {
    color: #fbbc04;
    font-size: 1rem;
}

.google-rating-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.google-link-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.google-badge-link:hover .google-link-icon {
    color: var(--primary-color);
}

/* Testimonials CTA */
.testimonials-cta {
    text-align: center;
    margin-top: 50px;
}

.google-reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.google-reviews-btn i.fa-google {
    font-size: 1.1rem;
}

.google-reviews-btn i.fa-external-link-alt {
    font-size: 0.85rem;
}

/* ========== Image Gallery Section ========== */
.image-gallery {
    background: var(--bg-white);
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 95, 122, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 25px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: var(--bg-white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
}

.gallery-content span {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}

/* Gallery Layout Variations */
.gallery-item.gallery-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.gallery-wide {
    grid-column: span 2;
}

.gallery-item.gallery-tall {
    grid-row: span 2;
}

/* Gallery Responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 220px);
        gap: 15px;
    }
    
    .gallery-item.gallery-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item.gallery-wide {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .gallery-item.gallery-large,
    .gallery-item.gallery-wide {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 50%, rgba(26, 95, 122, 0.85) 100%);
    }
    
    .gallery-content {
        transform: translateY(0);
    }
    
    .gallery-content i {
        font-size: 1.5rem;
    }
    
    .gallery-content span {
        font-size: 1rem;
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-card);
    border-color: transparent;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.testimonial-google-icon {
    color: #4285f4;
    font-size: 1.3rem;
    opacity: 0.8;
}

.testimonial-stars {
    margin-bottom: 0;
}

.testimonial-stars i {
    color: var(--accent-color);
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-body);
    margin-bottom: 25px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-lighter);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-type {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== CTA Section ========== */
.cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 80px 0;
    overflow: hidden;
}

.cta-image-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?w=1920&q=60') center/cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    color: var(--bg-white);
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========== Insurance Verification & New Patient Journey Section ========== */
.insurance-verify {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.insurance-verify::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 95, 122, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.insurance-verify::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(87, 167, 115, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Patient Journey Steps */
.patient-journey {
    position: relative;
    margin-bottom: 60px;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.journey-timeline {
    display: none;
}

.journey-step {
    position: relative;
    text-align: center;
}

.step-connector {
    display: none;
}

/* Step Number */
.step-number-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: stepPulse 2.5s infinite;
}

@keyframes stepPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

.step-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 0.6rem;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(87, 167, 115, 0.4);
}

/* Step Card */
.step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.step-card:hover::before,
.journey-step:hover .step-card::before {
    transform: scaleX(1);
}

.step-card:hover,
.journey-step:hover .step-card {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(26, 95, 122, 0.12);
    transform: translateY(-4px);
}

.journey-step:hover .step-number {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.step-icon-wrap {
    width: 50px;
    height: 50px;
    background: var(--primary-lighter);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0 auto 16px;
    transition: all 0.4s ease;
}

.step-icon-success {
    background: linear-gradient(135deg, rgba(87, 167, 115, 0.15), rgba(87, 167, 115, 0.08));
    color: var(--secondary-color);
}

.journey-step:hover .step-icon-wrap {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    transform: scale(1.05);
}

.journey-step:hover .step-icon-success {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.step-card h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.step-link:hover {
    color: var(--primary-dark);
    gap: 10px;
}

.step-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.step-link:hover i {
    transform: translateX(3px);
}

/* Horizontal connector lines between steps (desktop) */
.journey-steps::before,
.journey-steps::after {
    display: none;
}

@media (min-width: 993px) {
    .journey-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 28px;
        right: -15px;
        width: calc(100% - 56px);
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--primary-lighter));
        z-index: 1;
        right: -16px;
    }
}

/* Insurance Verification CTA Card */
.verify-cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d4a5e 100%);
    border-radius: var(--radius-xl);
    padding: 50px;
    overflow: hidden;
    z-index: 1;
}

.verify-cta-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(87, 167, 115, 0.25) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.verify-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.verify-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
}

.verify-cta-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.verify-cta-text {
    flex: 1;
}

.verify-cta-text h3 {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 8px;
}

.verify-cta-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.verify-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.verify-btn {
    white-space: nowrap;
    background: var(--bg-white) !important;
    color: var(--primary-color) !important;
    border-color: var(--bg-white) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.verify-btn:hover {
    background: var(--primary-lighter) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
}

.verify-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
}

.verify-note i {
    font-size: 0.7rem;
}

/* Journey Responsive */
@media (max-width: 992px) {
    .journey-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .journey-step:not(:last-child)::after {
        display: none;
    }
    
    .verify-cta-card {
        padding: 35px;
    }
    
    .verify-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .verify-cta-actions {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .journey-steps {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 440px;
        margin: 0 auto;
    }
    
    .journey-step {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        text-align: left;
    }
    
    .step-number-wrapper {
        margin: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
    }
    
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-icon-wrap {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 0 12px 0;
    }
    
    .step-card h3 {
        font-size: 1rem;
    }
    
    .step-card p {
        font-size: 0.88rem;
    }
    
    .verify-cta-card {
        padding: 28px 22px;
        border-radius: var(--radius-lg);
    }
    
    .verify-cta-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1.6rem;
    }
    
    .verify-cta-text h3 {
        font-size: 1.15rem;
    }
    
    .verify-cta-text p {
        font-size: 0.9rem;
    }

    .step-card:hover,
    .journey-step:hover .step-card {
        transform: none;
    }
}

@media (max-width: 480px) {
    .journey-steps {
        max-width: 100%;
    }
    
    .step-number-wrapper {
        width: 42px;
        height: 42px;
    }
    
    .step-number {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .step-card {
        padding: 16px;
    }
    
    .verify-cta-card {
        padding: 22px 18px;
    }
    
    .verify-cta-text h3 {
        font-size: 1.05rem;
    }
    
    .verify-note {
        font-size: 0.72rem;
        white-space: normal;
        text-align: center;
    }
}

/* ========== Vaccination Calendar Section ========== */
.vaccination-calendar {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.vaccination-calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(26, 95, 122, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(87, 167, 115, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.vaccine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.vaccine-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.vaccine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(26, 95, 122, 0.12);
    border-color: transparent;
}

.vaccine-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.vaccine-accent-adult {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

.vaccine-age-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
    font-size: 0.85rem;
}

.vaccine-age-badge i {
    width: 36px;
    height: 36px;
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.vaccine-card:hover .vaccine-age-badge i {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    transform: scale(1.05);
}

.vaccine-badge-adult i {
    background: rgba(87, 167, 115, 0.12);
    color: var(--secondary-color);
}

.vaccine-card-adult:hover .vaccine-badge-adult i {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--bg-white);
}

.vaccine-age-badge span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.vaccine-card-body {
    padding: 4px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vaccine-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.vaccine-card:hover .vaccine-item {
    background: var(--primary-lighter);
}

.vaccine-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-top: 6px;
}

.vaccine-card-adult .vaccine-dot {
    background: var(--secondary-color);
}

.vaccine-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.vaccine-info span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Vaccine Info Banner */
.vaccine-info-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(87, 167, 115, 0.08) 100%);
    border: 1px solid rgba(26, 95, 122, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.vaccine-banner-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.1rem;
}

.vaccine-banner-text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
}

.vaccine-banner-text a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vaccine-banner-text a:hover {
    color: var(--primary-dark);
}

/* Vaccine CTA */
.vaccine-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Vaccine Calendar Responsive */
@media (max-width: 1100px) {
    .vaccine-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vaccine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .vaccine-card:hover {
        transform: none;
    }
    
    .vaccine-age-badge {
        padding: 14px 16px 10px;
    }
    
    .vaccine-age-badge i {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .vaccine-age-badge span {
        font-size: 0.92rem;
    }
    
    .vaccine-card-body {
        padding: 4px 16px 16px;
    }
    
    .vaccine-item {
        padding: 8px 10px;
    }
    
    .vaccine-info strong {
        font-size: 0.82rem;
    }
    
    .vaccine-info span {
        font-size: 0.78rem;
    }
    
    .vaccine-info-banner {
        padding: 18px 20px;
        gap: 14px;
    }
    
    .vaccine-banner-text p {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .vaccine-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .vaccine-info-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px;
    }
    
    .vaccine-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .vaccine-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== Patient Types Section ========== */
.patient-types {
    background: var(--bg-light);
    overflow: hidden;
}

.patient-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.patient-type-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.patient-type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.patient-type-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.patient-type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.patient-type-card:hover .patient-type-image img {
    transform: scale(1.1);
}

.patient-type-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 95, 122, 0.4) 100%);
    transition: opacity 0.3s ease;
}

.patient-type-card:hover .patient-type-overlay {
    opacity: 0.7;
}

.patient-type-content {
    padding: 30px;
    position: relative;
}

.patient-type-icon {
    position: absolute;
    top: -30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.3);
    transition: all 0.3s ease;
}

.patient-type-card:hover .patient-type-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

.patient-type-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    margin-top: 15px;
}

.patient-type-content > p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.patient-type-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.patient-type-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-light);
}

.patient-type-list li:last-child {
    border-bottom: none;
}

.patient-type-list li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Patient Types Responsive */
@media (max-width: 992px) {
    .patient-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .patient-type-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .patient-types-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .patient-type-card:last-child {
        grid-column: span 1;
        max-width: none;
    }
    
    .patient-type-image {
        height: auto;
        aspect-ratio: 16 / 10;
    }
    
    .patient-type-image img {
        object-fit: contain;
        object-position: center;
        background: var(--bg-light);
    }
    
    .patient-type-content {
        padding: 25px 20px;
    }
    
    .patient-type-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        top: -25px;
        left: 20px;
    }
    
    .patient-type-content h3 {
        font-size: 1.3rem;
    }
}

/* ========== Credentials Section ========== */
.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-white);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.credential-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.credential-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary-lighter), #e8f8f0);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.credential-item:hover .credential-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    transform: rotate(5deg);
}

.credential-content h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.credential-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 992px) {
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .credentials-grid {
        grid-template-columns: 1fr;
    }
    
    .credential-item {
        padding: 20px;
    }
}

/* ========== Footer ========== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background-color: var(--primary-color);
}

.footer h4 {
    color: var(--bg-white);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-list li i {
    color: var(--secondary-light);
    font-size: 1rem;
    margin-top: 3px;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-list a:hover {
    color: var(--secondary-light);
}

.footer-bottom {
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--bg-white);
}

/* ========== Back to Top Button ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
}

/* ========== Page Header (for inner pages) ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 220px 0 100px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    color: var(--bg-white);
    margin-bottom: 15px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.breadcrumb a,
.breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.breadcrumb a:hover {
    color: var(--bg-white);
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label .required {
    color: #e53935;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    /* Cross-browser compatibility */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Minimum touch target size */
    min-height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

/* Fix for IE/Edge dropdown arrow */
select.form-control::-ms-expand {
    display: none;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ========== Cards ========== */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-card);
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.card-body {
    padding: 30px;
}

.card-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

/* ========== Alerts ========== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-info {
    background-color: var(--primary-lighter);
    color: var(--primary-dark);
    border: 1px solid rgba(26, 95, 122, 0.2);
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.alert-warning {
    background-color: #fff8e1;
    color: #f57c00;
    border: 1px solid rgba(245, 124, 0, 0.2);
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.2);
}

/* ========== Tables ========== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--primary-lighter);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: var(--bg-light);
}

/* ========== Accordion ========== */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    transition: var(--transition-normal);
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-header.active {
    background-color: var(--primary-lighter);
    color: var(--primary-dark);
}

.accordion-icon {
    transition: var(--transition-normal);
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body {
    padding: 25px;
    background-color: var(--bg-light);
}

/* ========== Responsive Design ========== */
@media (max-width: 1200px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    
    .header {
        top: 42px;
    }
    
    /* ========== Enhanced Mobile Navigation ========== */
    .nav-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        visibility: visible;
    }
    
    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 30px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 1002;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile Menu Header */
    .nav-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        margin-bottom: 10px;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .nav-menu-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--bg-white);
    }
    
    .nav-menu-logo .logo-icon {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .nav-menu-logo span:last-child {
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 1.1rem;
    }
    
    .nav-close-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        border-radius: var(--radius-sm);
        color: var(--bg-white);
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .nav-close-btn:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg);
    }
    
    /* Mobile menu item animations */
    .nav-menu > .nav-item {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-menu > .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-menu.active > .nav-item {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active > .nav-item:nth-child(2) { transition-delay: 0.1s; }
    .nav-menu.active > .nav-item:nth-child(3) { transition-delay: 0.15s; }
    .nav-menu.active > .nav-item:nth-child(4) { transition-delay: 0.2s; }
    .nav-menu.active > .nav-item:nth-child(5) { transition-delay: 0.25s; }
    .nav-menu.active > .nav-item:nth-child(6) { transition-delay: 0.3s; }
    .nav-menu.active > .nav-item:nth-child(7) { transition-delay: 0.35s; }
    .nav-menu.active > .nav-item:nth-child(8) { transition-delay: 0.4s; }
    
    /* Mobile menu header always visible */
    .nav-menu > .nav-menu-header {
        opacity: 1 !important;
        transform: none !important;
        border-bottom: none;
    }
    
    .nav-link {
        color: var(--text-dark);
        width: 100%;
        padding: 18px 25px;
        font-size: 1rem;
        font-weight: 500;
        justify-content: space-between;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
        background-color: var(--primary-lighter);
    }
    
    .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .nav-item.has-dropdown.dropdown-open .dropdown-icon {
        transform: rotate(180deg);
    }
    
    /* Mobile Mega Dropdown */
    .mega-dropdown {
        position: static;
        transform: none !important;
        min-width: 100%;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--bg-light);
        pointer-events: auto;
        top: auto;
        left: auto;
    }
    
    .mega-dropdown::before {
        display: none;
    }
    
    /* Remove the hover bridge on mobile */
    .nav-item.has-dropdown::after {
        display: none;
    }
    
    .nav-item.has-dropdown.dropdown-open .mega-dropdown {
        max-height: 800px;
    }
    
    .mega-dropdown-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    
    .mega-column {
        padding: 0 15px;
    }
    
    .mega-column h4 {
        display: flex;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-light);
        margin: 12px 10px 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--border-light);
    }
    
    /* Informații h4 teal on mobile */
    .mega-informatii .mega-column h4 {
        color: #0d9488;
        border-bottom-color: #ccfbf1;
    }

    /* Mobile mega dropdown header banner */
    .mega-dropdown-header {
        display: flex;
        padding: 14px 20px;
        border-radius: 0;
        gap: 12px;
        font-size: 0.9rem;
    }
    
    .mega-dropdown-header > i {
        font-size: 1.2rem;
    }
    
    .mega-dropdown-header > div strong {
        font-size: 0.9rem;
    }
    
    .mega-dropdown-header > div span {
        font-size: 0.75rem;
    }
    
    /* Mega menu no padding on mobile */
    .mega-servicii .mega-dropdown-content,
    .mega-informatii .mega-dropdown-content {
        padding: 8px 0;
    }
    
    /* Arrow hidden on mobile already — but ensure no side effects */
    .mega-servicii::before,
    .mega-informatii::before {
        display: none;
    }
    
    /* Item descriptions on mobile */
    .mega-column ul li a div strong {
        font-size: 0.9rem;
    }
    
    .mega-column ul li a div span {
        font-size: 0.73rem;
        display: block;
    }
    
    .mega-column ul li a {
        padding: 12px 25px;
        font-size: 0.95rem;
        align-items: flex-start;
    }
    
    .mega-column ul li a i {
        margin-top: 2px;
    }

    .mega-column ul li a:hover {
        transform: none;
        padding-left: 30px;
    }
    
    /* "View all" link on mobile */
    .mega-view-all {
        margin: 8px 15px 12px;
        padding: 10px 14px;
        font-size: 0.82rem;
        border-radius: var(--radius-sm);
    }

    /* Remove underline effect on mobile */
    .nav-link::after {
        display: none !important;
    }
    
    /* Active link indicator for mobile */
    .nav-link.active {
        border-left: 4px solid var(--primary-color);
        padding-left: 21px;
    }
    
    /* Show featured card on mobile for both menus */
    .mega-featured {
        display: flex;
        padding: 10px 15px 6px;
    }
    
    .mega-card {
        padding: 18px;
        border-radius: var(--radius-sm);
    }
    
    .mega-card i {
        font-size: 1.8rem;
    }
    
    .mega-card h5 {
        font-size: 0.95rem;
    }
    
    .mega-card p {
        font-size: 0.8rem;
    }
    
    .mega-card .btn-small {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* Width reset on mobile */
    .mega-servicii,
    .mega-informatii {
        min-width: 100%;
    }
    
    /* Mobile CTA Button */
    .nav-cta {
        padding: 20px 25px;
        margin-top: auto;
        border-top: 1px solid var(--border-color);
        background: var(--bg-white);
    }
    
    .nav-cta .btn-nav {
        margin: 0;
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        border-radius: var(--radius-md);
        font-size: 1rem;
    }
    
    /* Mobile Menu Footer */
    .nav-menu-footer {
        display: block;
        padding: 25px;
        background: var(--bg-light);
        border-top: 1px solid var(--border-color);
        margin-top: auto;
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: 0.45s;
    }
    
    .nav-menu.active .nav-menu-footer {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu-contact {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .nav-contact-link {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-body);
        font-size: 0.95rem;
        transition: color 0.3s ease;
    }
    
    .nav-contact-link i {
        width: 20px;
        color: var(--primary-color);
    }
    
    .nav-contact-link:hover {
        color: var(--primary-color);
    }
    
    .nav-menu-schedule {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-light);
        font-size: 0.9rem;
        margin: 0;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu-schedule i {
        width: 20px;
        color: var(--secondary-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-image-decoration {
        display: none;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .experience-badge {
        right: 0;
        bottom: -20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cas-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-card::after {
        display: none;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        padding-top: 0;
        padding-bottom: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .hero-feature {
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
    }
    
    .hero-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-bottom: 20px;
        display: inline-flex;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-pagination {
        justify-content: center;
    }
    
    .hero-wave {
        height: 50px;
    }
    
    .hero-wave svg {
        height: 50px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .google-badge-link {
        padding: 12px 18px;
    }
    
    .google-badge-content {
        gap: 10px;
    }
    
    .google-logo {
        height: 20px;
    }
    
    .google-reviews-btn {
        font-size: 0.9rem;
        padding: 14px 20px;
    }
    
    /* Footer mobile adjustments */
    .footer {
        padding-top: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .footer-about {
        align-items: center;
        padding-bottom: 32px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .footer-about p {
        font-size: 0.9rem;
        line-height: 1.7;
        opacity: 0.7;
        max-width: 300px;
        margin: 0 auto 24px;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 16px;
    }
    
    .footer-logo .logo-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .footer-social {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-social a {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        font-size: 1.1rem;
    }
    
    .footer-social a:hover {
        background: var(--primary-color);
        transform: translateY(-2px);
    }
    
    /* Collapsible sections for mobile */
    .footer-links,
    .footer-services,
    .footer-contact {
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .footer h4 {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 16px;
        font-weight: 500;
    }
    
    .footer-links ul,
    .footer-services ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }
    
    .footer-links ul li,
    .footer-services ul li {
        margin-bottom: 0;
    }
    
    .footer-links a,
    .footer-services a {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.75);
        padding: 6px 12px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.05);
        display: inline-block;
        transition: all 0.2s ease;
    }
    
    .footer-links a:hover,
    .footer-services a:hover {
        background: rgba(255, 255, 255, 0.12);
        color: var(--bg-white);
        padding-left: 12px;
    }
    
    /* Contact list mobile */
    .contact-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .contact-list li {
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        padding: 14px 20px;
        border-radius: 12px;
        gap: 12px;
        margin-bottom: 0;
    }
    
    .contact-list li i {
        width: 20px;
        text-align: center;
        color: var(--secondary-light);
        font-size: 0.95rem;
    }
    
    .contact-list li span,
    .contact-list li a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        margin-top: 24px;
        padding: 24px 0;
        background: rgba(0, 0, 0, 0.2);
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        opacity: 0.6;
    }
    
    .footer-bottom-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .footer-bottom-links a {
        font-size: 0.75rem;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 20px;
        color: rgba(255, 255, 255, 0.5);
        transition: all 0.2s ease;
    }
    
    .footer-bottom-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Better touch targets for mobile */
    .btn {
        min-height: 48px;
        padding: 14px 28px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    .accordion-header {
        padding: 18px 20px;
        min-height: 56px;
    }
    
    .page-header {
        padding: 155px 0 60px;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Contact list mobile */
    .contact-list li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .experience-badge {
        right: 0;
        bottom: -20px;
        padding: 15px 20px;
    }
    
    .experience-badge .years {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 25px 18px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 48px;
        height: 48px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .logo-name {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.58rem;
    }
    
    .page-header {
        padding: 145px 0 50px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 85px 0 70px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-content {
        padding-top: 0;
        padding-bottom: 20px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.65rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }
    
    .hero-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-bottom: 16px;
        display: inline-flex;
    }
    
    .hero-badge i {
        font-size: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    .hero-buttons {
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .hero-feature {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .hero-feature i {
        font-size: 0.8rem;
    }
    
    .hero-features {
        gap: 8px;
    }
    
    .hero-wave {
        height: 35px;
    }
    
    .hero-wave svg {
        height: 35px;
    }
    
    .nav-menu {
        width: 100%;
        max-width: 100%;
        right: -100%;
        border-radius: 0;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 16px 20px;
    }
    
    .mega-column ul li a {
        padding: 12px 20px;
    }
    
    .nav-cta {
        padding: 15px 20px;
    }
    
    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 500px;
    }
    
    /* Card spacing */
    .info-card {
        padding: 25px 20px;
    }
    
    .why-card {
        padding: 25px 20px;
    }
}

/* ========== Utility Classes ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--bg-white); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }

/* ========== Accessibility & Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-particles,
    .particle {
        display: none !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* ========== Print Styles ========== */
@media print {
    .header,
    .mobile-menu-btn,
    .nav-overlay,
    .back-to-top,
    .hero-particles,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ========== High Contrast Mode Support ========== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0a4a5c;
        --text-body: #000;
        --border-color: #000;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .nav-link,
    .mega-column ul li a {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link:focus,
    .mega-column ul li a:hover,
    .mega-column ul li a:focus {
        border-color: currentColor;
    }
}

/* ========== iOS Safari Fixes ========== */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS momentum scrolling */
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix for iOS input zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
    
    /* Fix 100vh issue on iOS */
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* ========== Firefox-specific fixes ========== */
@-moz-document url-prefix() {
    /* Firefox scrollbar styling */
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-light) var(--bg-light);
    }
}

/* ========== Safe Area Support for Notched Devices ========== */
@supports (padding: env(safe-area-inset-bottom)) {
    .header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .nav-menu {
        padding-bottom: calc(30px + env(safe-area-inset-bottom));
    }
    
    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    footer {
        padding-bottom: calc(40px + env(safe-area-inset-bottom));
    }
}

/* ========== Webkit Scrollbar Styling ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ========== Selection Styling ========== */
::selection {
    background: var(--primary-color);
    color: var(--bg-white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ========== Cookie Consent Banner ========== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent.hiding {
    transform: translateY(100%);
}

.cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.cookie-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cookie-container {
    background: var(--bg-white);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-main {
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.cookie-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 24px rgba(26, 95, 122, 0.25);
}

.cookie-content {
    flex: 1;
}

.cookie-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-content h3 span {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    font-size: 0.7rem;
    font-family: var(--font-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-content p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.cookie-content p a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-content p a:hover {
    color: var(--primary-dark);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(26, 95, 122, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 95, 122, 0.4);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

.cookie-btn-settings {
    background: var(--bg-gray);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.cookie-btn-settings:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-light);
    padding: 14px 20px;
}

.cookie-btn-reject:hover {
    color: var(--text-dark);
    background: var(--bg-gray);
}

/* Cookie Settings Panel */
.cookie-settings {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.cookie-settings.open {
    max-height: 600px;
}

.cookie-settings-inner {
    padding: 28px 32px;
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cookie-settings-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-settings-header h4 i {
    color: var(--primary-color);
}

.cookie-categories {
    display: grid;
    gap: 16px;
}

.cookie-category {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px 24px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: var(--primary-lighter);
    box-shadow: 0 4px 16px rgba(26, 95, 122, 0.08);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.cookie-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cookie-category-icon.essential {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.cookie-category-icon.analytics {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.cookie-category-icon.marketing {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.cookie-category-text h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-text h5 .badge-required {
    font-size: 0.65rem;
    background: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
}

.cookie-category-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Custom Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border-color);
    border-radius: 28px;
    transition: all 0.3s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.8;
}

.cookie-toggle input:disabled + .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .cookie-main {
        flex-direction: column;
        padding: 24px;
    }
    
    .cookie-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.5rem;
        border-radius: 14px;
    }
    
    .cookie-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .cookie-btn-accept {
        flex: 1;
        justify-content: center;
    }
    
    .cookie-btn-settings {
        flex: 1;
        justify-content: center;
    }
    
    .cookie-btn-reject {
        width: 100%;
        justify-content: center;
        order: 3;
    }
}

@media (max-width: 768px) {
    .cookie-container {
        border-radius: 20px 20px 0 0;
    }
    
    .cookie-main {
        padding: 20px;
        gap: 16px;
    }
    
    .cookie-content h3 {
        font-size: 1.15rem;
        flex-wrap: wrap;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .cookie-settings-inner {
        padding: 20px;
    }
    
    .cookie-category {
        padding: 16px 18px;
    }
    
    .cookie-category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cookie-category-text h5 {
        font-size: 0.95rem;
    }
    
    .cookie-category-text p {
        font-size: 0.8rem;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
    
    .cookie-settings-actions .cookie-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-main {
        padding: 18px 16px;
    }
    
    .cookie-icon {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }
    
    .cookie-actions {
        gap: 10px;
    }
    
    .cookie-btn {
        padding: 11px 16px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
}

/* ========================================
   MODERN 2026 MOBILE ANIMATIONS
   Performance-optimized scroll animations
   ======================================== */

/* GPU-Accelerated Animation Keyframes */
@keyframes m-slideUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes m-slideDown {
    from { opacity: 0; transform: translate3d(0, -30px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes m-slideLeft {
    from { opacity: 0; transform: translate3d(50px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes m-slideRight {
    from { opacity: 0; transform: translate3d(-50px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes m-fadeScale {
    from { opacity: 0; transform: scale3d(0.9, 0.9, 1); }
    to { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes m-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes m-popIn {
    0% { opacity: 0; transform: scale3d(0.5, 0.5, 1); }
    70% { transform: scale3d(1.05, 1.05, 1); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes m-flipIn {
    from { opacity: 0; transform: perspective(400px) rotateY(-15deg) translate3d(-20px, 0, 0); }
    to { opacity: 1; transform: perspective(400px) rotateY(0) translate3d(0, 0, 0); }
}

@keyframes m-rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale3d(0.9, 0.9, 1); }
    to { opacity: 1; transform: rotate(0) scale3d(1, 1, 1); }
}

@keyframes m-blurIn {
    from { opacity: 0; filter: blur(10px); transform: scale3d(1.1, 1.1, 1); }
    to { opacity: 1; filter: blur(0); transform: scale3d(1, 1, 1); }
}

@keyframes m-bounceIn {
    0% { opacity: 0; transform: translate3d(0, 50px, 0) scale3d(0.9, 0.9, 1); }
    60% { transform: translate3d(0, -8px, 0) scale3d(1.02, 1.02, 1); }
    80% { transform: translate3d(0, 4px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale3d(1, 1, 1); }
}

@keyframes m-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

@keyframes m-pulse {
    0%, 100% { transform: scale3d(1, 1, 1); }
    50% { transform: scale3d(1.05, 1.05, 1); }
}

@keyframes m-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes m-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes m-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(26, 95, 122, 0.2); }
    50% { box-shadow: 0 0 30px rgba(26, 95, 122, 0.4); }
}

@keyframes m-ripple {
    to { width: 300px; height: 300px; opacity: 0; }
}

@keyframes m-iconPop {
    0% { transform: scale3d(1, 1, 1); }
    50% { transform: scale3d(1.2, 1.2, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

@keyframes m-numberCount {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes m-drawLine {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes m-checkMark {
    0% { stroke-dashoffset: 50; }
    100% { stroke-dashoffset: 0; }
}

/* ========================================
   MOBILE SCROLL ANIMATION SYSTEM
   Section-by-section reveal animations
   ======================================== */

@media (max-width: 768px) {
    /* Base smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile AOS replacement - custom animation system */
    [data-aos] {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    [data-aos].m-aos-visible {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }
    
    /* Different animation types based on data-aos value */
    [data-aos="fade-down"] {
        transform: translate3d(0, -30px, 0);
    }
    
    [data-aos="fade-left"] {
        transform: translate3d(30px, 0, 0);
    }
    
    [data-aos="fade-right"] {
        transform: translate3d(-30px, 0, 0);
    }
    
    [data-aos="zoom-in"] {
        transform: scale(0.9);
    }
    
    /* Touch feedback - no tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* ============ SCROLL REVEAL BASE CLASSES ============ */
    .m-reveal {
        opacity: 0;
        transform: translate3d(0, 0, 0);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
    }
    
    .m-reveal.m-visible {
        opacity: 1;
    }
    
    /* Animation variants */
    .m-reveal.m-up {
        transform: translate3d(0, 50px, 0);
    }
    .m-reveal.m-up.m-visible {
        transform: translate3d(0, 0, 0);
    }
    
    .m-reveal.m-down {
        transform: translate3d(0, -40px, 0);
    }
    .m-reveal.m-down.m-visible {
        transform: translate3d(0, 0, 0);
    }
    
    .m-reveal.m-left {
        transform: translate3d(60px, 0, 0);
    }
    .m-reveal.m-left.m-visible {
        transform: translate3d(0, 0, 0);
    }
    
    .m-reveal.m-right {
        transform: translate3d(-60px, 0, 0);
    }
    .m-reveal.m-right.m-visible {
        transform: translate3d(0, 0, 0);
    }
    
    .m-reveal.m-scale {
        transform: scale3d(0.85, 0.85, 1);
    }
    .m-reveal.m-scale.m-visible {
        transform: scale3d(1, 1, 1);
    }
    
    .m-reveal.m-flip {
        transform: perspective(1000px) rotateY(-15deg) translate3d(-30px, 0, 0);
    }
    .m-reveal.m-flip.m-visible {
        transform: perspective(1000px) rotateY(0) translate3d(0, 0, 0);
    }
    
    .m-reveal.m-blur {
        filter: blur(8px);
        transform: scale3d(1.05, 1.05, 1);
    }
    .m-reveal.m-blur.m-visible {
        filter: blur(0);
        transform: scale3d(1, 1, 1);
    }
    
    .m-reveal.m-pop {
        transform: scale3d(0.5, 0.5, 1);
    }
    .m-reveal.m-pop.m-visible {
        animation: m-popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    /* Stagger delays for children */
    .m-stagger > .m-reveal:nth-child(1) { transition-delay: 0s; }
    .m-stagger > .m-reveal:nth-child(2) { transition-delay: 0.08s; }
    .m-stagger > .m-reveal:nth-child(3) { transition-delay: 0.16s; }
    .m-stagger > .m-reveal:nth-child(4) { transition-delay: 0.24s; }
    .m-stagger > .m-reveal:nth-child(5) { transition-delay: 0.32s; }
    .m-stagger > .m-reveal:nth-child(6) { transition-delay: 0.40s; }
    
    /* ============ HERO SECTION ============ */
    .hero {
        overflow: hidden;
    }
    
    .hero-content {
        opacity: 0;
        animation: m-slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    }
    
    .hero-badge {
        opacity: 0;
        animation: m-fadeScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
    }
    
    .hero-badge.m-animate-float {
        animation: m-fadeScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards,
                   m-float 4s ease-in-out 1s infinite;
    }
    
    .hero-title {
        opacity: 0;
        animation: m-slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    }
    
    .hero-subtitle {
        opacity: 0;
        animation: m-slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    }
    
    .hero-description {
        opacity: 0;
        animation: m-slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
    }
    
    .hero-buttons {
        opacity: 0;
        animation: m-slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
    }
    
    .hero-features {
        opacity: 0;
        animation: m-slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
    }
    
    .hero-trust-badge {
        opacity: 0;
        animation: m-slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
    }
    
    /* Hero shimmer effect */
    .trust-badge-content {
        position: relative;
        overflow: hidden;
    }
    
    .trust-badge-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: m-shimmer 3s infinite 2s;
    }
    
    /* ============ QUICK INFO SECTION ============ */
    .quick-info .info-card {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
        transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .quick-info.m-section-visible .info-card {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .quick-info.m-section-visible .info-card:nth-child(1) { transition-delay: 0s; }
    .quick-info.m-section-visible .info-card:nth-child(2) { transition-delay: 0.1s; }
    .quick-info.m-section-visible .info-card:nth-child(3) { transition-delay: 0.2s; }
    .quick-info.m-section-visible .info-card:nth-child(4) { transition-delay: 0.3s; }
    
    .info-card .info-icon {
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .quick-info.m-section-visible .info-card .info-icon {
        animation: m-iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        animation-delay: inherit;
    }
    
    .info-card:active {
        transform: scale(0.97) !important;
    }
    
    /* ============ STATISTICS SECTION ============ */
    .statistics .stat-card {
        opacity: 0;
        transform: scale3d(0.8, 0.8, 1);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .statistics.m-section-visible .stat-card {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
    
    .statistics.m-section-visible .stat-card:nth-child(1) { transition-delay: 0s; }
    .statistics.m-section-visible .stat-card:nth-child(2) { transition-delay: 0.12s; }
    .statistics.m-section-visible .stat-card:nth-child(3) { transition-delay: 0.24s; }
    .statistics.m-section-visible .stat-card:nth-child(4) { transition-delay: 0.36s; }
    
    .stat-number {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        background-size: 200% 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .statistics.m-section-visible .stat-number {
        animation: m-gradient 3s ease infinite;
    }
    
    .stat-card:active {
        transform: translateY(-5px) scale(1.02) !important;
        box-shadow: 0 15px 30px rgba(26, 95, 122, 0.15);
    }
    
    /* ============ ABOUT SECTION ============ */
    .about-preview .about-image {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
        transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .about-preview.m-section-visible .about-image {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .about-preview .about-content {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
        transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
    }
    
    .about-preview.m-section-visible .about-content {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .experience-badge {
        opacity: 0;
        transform: scale3d(0, 0, 1) rotate(-180deg);
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
    }
    
    .about-preview.m-section-visible .experience-badge {
        opacity: 1;
        transform: scale3d(1, 1, 1) rotate(0);
    }
    
    .about-preview.m-section-visible .experience-badge.m-animate-float {
        animation: m-float 4s ease-in-out 1s infinite;
    }
    
    .about-list li {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
        transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .about-preview.m-section-visible .about-list li {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .about-preview.m-section-visible .about-list li:nth-child(1) { transition-delay: 0.5s; }
    .about-preview.m-section-visible .about-list li:nth-child(2) { transition-delay: 0.6s; }
    .about-preview.m-section-visible .about-list li:nth-child(3) { transition-delay: 0.7s; }
    .about-preview.m-section-visible .about-list li:nth-child(4) { transition-delay: 0.8s; }
    
    /* ============ SERVICES SECTION ============ */
    .services .section-header {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .services.m-section-visible .section-header {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .services .service-card {
        opacity: 0;
        transform: translate3d(0, 80px, 0) scale(0.92);
        transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .services.m-section-visible .service-card {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    
    /* Alternating entrance directions for visual interest */
    .services .service-card:nth-child(odd) {
        transform: translate3d(-40px, 60px, 0) scale(0.92) rotate(-2deg);
    }
    
    .services .service-card:nth-child(even) {
        transform: translate3d(40px, 60px, 0) scale(0.92) rotate(2deg);
    }
    
    .services.m-section-visible .service-card:nth-child(odd),
    .services.m-section-visible .service-card:nth-child(even) {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    
    /* Staggered timing with longer delays for dramatic effect */
    .services.m-section-visible .service-card:nth-child(1) { transition-delay: 0.05s; }
    .services.m-section-visible .service-card:nth-child(2) { transition-delay: 0.15s; }
    .services.m-section-visible .service-card:nth-child(3) { transition-delay: 0.25s; }
    .services.m-section-visible .service-card:nth-child(4) { transition-delay: 0.35s; }
    .services.m-section-visible .service-card:nth-child(5) { transition-delay: 0.45s; }
    .services.m-section-visible .service-card:nth-child(6) { transition-delay: 0.55s; }
    
    /* Icon entrance animation */
    .services .service-card .service-icon {
        opacity: 0;
        transform: scale(0.5) rotate(-20deg);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .services.m-section-visible .service-card .service-icon {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    
    /* Delayed icon animations */
    .services.m-section-visible .service-card:nth-child(1) .service-icon { transition-delay: 0.25s; }
    .services.m-section-visible .service-card:nth-child(2) .service-icon { transition-delay: 0.35s; }
    .services.m-section-visible .service-card:nth-child(3) .service-icon { transition-delay: 0.45s; }
    .services.m-section-visible .service-card:nth-child(4) .service-icon { transition-delay: 0.55s; }
    .services.m-section-visible .service-card:nth-child(5) .service-icon { transition-delay: 0.65s; }
    .services.m-section-visible .service-card:nth-child(6) .service-icon { transition-delay: 0.75s; }
    
    /* Card content slide-up */
    .services .service-card h3,
    .services .service-card p {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
        transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .services.m-section-visible .service-card h3,
    .services.m-section-visible .service-card p {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .services.m-section-visible .service-card:nth-child(1) h3 { transition-delay: 0.3s; }
    .services.m-section-visible .service-card:nth-child(1) p { transition-delay: 0.35s; }
    .services.m-section-visible .service-card:nth-child(2) h3 { transition-delay: 0.4s; }
    .services.m-section-visible .service-card:nth-child(2) p { transition-delay: 0.45s; }
    .services.m-section-visible .service-card:nth-child(3) h3 { transition-delay: 0.5s; }
    .services.m-section-visible .service-card:nth-child(3) p { transition-delay: 0.55s; }
    .services.m-section-visible .service-card:nth-child(4) h3 { transition-delay: 0.6s; }
    .services.m-section-visible .service-card:nth-child(4) p { transition-delay: 0.65s; }
    .services.m-section-visible .service-card:nth-child(5) h3 { transition-delay: 0.7s; }
    .services.m-section-visible .service-card:nth-child(5) p { transition-delay: 0.75s; }
    .services.m-section-visible .service-card:nth-child(6) h3 { transition-delay: 0.8s; }
    .services.m-section-visible .service-card:nth-child(6) p { transition-delay: 0.85s; }
    
    /* Service link reveal */
    .services .service-card .service-link {
        opacity: 0;
        transform: translate3d(-20px, 0, 0);
        transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .services.m-section-visible .service-card .service-link {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .services.m-section-visible .service-card:nth-child(1) .service-link { transition-delay: 0.4s; }
    .services.m-section-visible .service-card:nth-child(2) .service-link { transition-delay: 0.5s; }
    .services.m-section-visible .service-card:nth-child(3) .service-link { transition-delay: 0.6s; }
    .services.m-section-visible .service-card:nth-child(4) .service-link { transition-delay: 0.7s; }
    .services.m-section-visible .service-card:nth-child(5) .service-link { transition-delay: 0.8s; }
    .services.m-section-visible .service-card:nth-child(6) .service-link { transition-delay: 0.9s; }

    .service-card .service-icon {
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .service-card:active {
        transform: scale(0.97) !important;
        box-shadow: 0 20px 40px rgba(26, 95, 122, 0.15);
    }
    
    .service-card:active .service-icon {
        transform: scale(1.15) rotate(-5deg);
    }
    
    /* Service card image zoom on reveal */
    .services .service-card .service-card-image {
        transform: scale(1.15);
        transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .services.m-section-visible .service-card .service-card-image {
        transform: scale(1);
    }
    
    /* Services CTA button animation */
    .services .services-cta {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .services.m-section-visible .services-cta {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition-delay: 0.9s;
    }
    
    .services.m-section-visible .services-cta .btn {
        animation: m-pulse 2s ease-in-out 1.5s infinite;
    }
    
    @keyframes m-pulse {
        0%, 100% {
            box-shadow: 0 4px 15px rgba(5, 83, 119, 0.3);
        }
        50% {
            box-shadow: 0 4px 25px rgba(5, 83, 119, 0.5), 0 0 0 8px rgba(5, 83, 119, 0.1);
        }
    }

    /* ============ CAS INFO SECTION ============ */
    .cas-info .cas-content {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .cas-info.m-section-visible .cas-content {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .cas-info .cas-image {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
    }
    
    .cas-info.m-section-visible .cas-image {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .cas-benefit {
        opacity: 0;
        transform: translate3d(-20px, 0, 0);
        transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .cas-info.m-section-visible .cas-benefit {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .cas-info.m-section-visible .cas-benefit:nth-child(1) { transition-delay: 0.3s; }
    .cas-info.m-section-visible .cas-benefit:nth-child(2) { transition-delay: 0.38s; }
    .cas-info.m-section-visible .cas-benefit:nth-child(3) { transition-delay: 0.46s; }
    .cas-info.m-section-visible .cas-benefit:nth-child(4) { transition-delay: 0.54s; }
    .cas-info.m-section-visible .cas-benefit:nth-child(5) { transition-delay: 0.62s; }
    
    .cas-benefit:active {
        transform: translate3d(10px, 0, 0) !important;
        background: rgba(26, 95, 122, 0.05);
        padding-left: 15px;
        border-radius: 8px;
    }
    
    /* ============ WHY US SECTION ============ */
    .why-us .why-card {
        opacity: 0;
        transform: translate3d(0, 50px, 0) rotate(-2deg);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .why-us.m-section-visible .why-card {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(0);
    }
    
    .why-us.m-section-visible .why-card:nth-child(1) { transition-delay: 0.1s; }
    .why-us.m-section-visible .why-card:nth-child(2) { transition-delay: 0.2s; }
    .why-us.m-section-visible .why-card:nth-child(3) { transition-delay: 0.3s; }
    .why-us.m-section-visible .why-card:nth-child(4) { transition-delay: 0.4s; }
    
    .why-card .why-number {
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .why-card:active .why-number {
        transform: scale(1.2);
    }
    
    /* ============ TESTIMONIALS SECTION ============ */
    .testimonials .testimonial-card {
        opacity: 0;
        transform: perspective(1000px) rotateY(-10deg) translate3d(-30px, 0, 0);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .testimonials.m-section-visible .testimonial-card {
        opacity: 1;
        transform: perspective(1000px) rotateY(0) translate3d(0, 0, 0);
    }
    
    .testimonials.m-section-visible .testimonial-card:nth-child(1) { transition-delay: 0.1s; }
    .testimonials.m-section-visible .testimonial-card:nth-child(2) { transition-delay: 0.2s; }
    .testimonials.m-section-visible .testimonial-card:nth-child(3) { transition-delay: 0.3s; }
    
    .testimonial-stars i {
        opacity: 0;
        transform: scale(0);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .testimonials.m-section-visible .testimonial-stars i {
        opacity: 1;
        transform: scale(1);
    }
    
    .testimonials.m-section-visible .testimonial-stars i:nth-child(1) { transition-delay: 0.4s; }
    .testimonials.m-section-visible .testimonial-stars i:nth-child(2) { transition-delay: 0.45s; }
    .testimonials.m-section-visible .testimonial-stars i:nth-child(3) { transition-delay: 0.5s; }
    .testimonials.m-section-visible .testimonial-stars i:nth-child(4) { transition-delay: 0.55s; }
    .testimonials.m-section-visible .testimonial-stars i:nth-child(5) { transition-delay: 0.6s; }
    
    /* ============ CTA SECTION ============ */
    .cta .cta-content {
        opacity: 0;
        transform: scale3d(0.9, 0.9, 1);
        transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .cta.m-section-visible .cta-content {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
    
    .cta.m-section-visible .cta-content h2 {
        animation: m-slideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
    }
    
    .cta.m-section-visible .cta-buttons {
        animation: m-slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
    }
    
    /* ============ PATIENT TYPES SECTION ============ */
    .patient-types .patient-type-card {
        opacity: 0;
        transform: translate3d(0, 60px, 0);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .patient-types.m-section-visible .patient-type-card {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .patient-types.m-section-visible .patient-type-card:nth-child(1) { transition-delay: 0.1s; }
    .patient-types.m-section-visible .patient-type-card:nth-child(2) { transition-delay: 0.25s; }
    .patient-types.m-section-visible .patient-type-card:nth-child(3) { transition-delay: 0.4s; }
    
    .patient-type-icon {
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .patient-types.m-section-visible .patient-type-icon {
        animation: m-popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s backwards;
    }
    
    /* ============ CREDENTIALS SECTION ============ */
    .credentials .credential-item {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
        transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .credentials.m-section-visible .credential-item {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .credentials.m-section-visible .credential-item:nth-child(1) { transition-delay: 0s; }
    .credentials.m-section-visible .credential-item:nth-child(2) { transition-delay: 0.1s; }
    .credentials.m-section-visible .credential-item:nth-child(3) { transition-delay: 0.2s; }
    .credentials.m-section-visible .credential-item:nth-child(4) { transition-delay: 0.3s; }
    
    .credential-icon {
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .credentials.m-section-visible .credential-icon {
        animation: m-iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    /* ============ FOOTER ============ */
    .footer {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .footer.m-section-visible {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    /* ============ SECTION HEADERS ============ */
    .section-header {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
        transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .m-section-visible .section-header,
    .section-header.m-visible {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    
    .section-label {
        display: inline-block;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: m-gradient 3s linear infinite;
    }
    
    /* ============ BUTTON EFFECTS ============ */
    .btn {
        position: relative;
        overflow: hidden;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.3s ease;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    /* ============ FLOATING ELEMENTS ============ */
    .back-to-top {
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .back-to-top:active {
        transform: scale(0.9);
    }
    
    /* ============ SCROLL PROGRESS BAR ============ */
    .m-scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: rgba(26, 95, 122, 0.1);
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .m-scroll-progress.visible {
        opacity: 1;
    }
    
    .m-scroll-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        width: 0%;
        border-radius: 0 2px 2px 0;
        transition: width 0.05s linear;
    }
    
    /* ============ PARALLAX HERO ============ */
    .hero-content.m-parallax {
        transition: transform 0.1s linear, opacity 0.1s linear;
    }
    
    /* ============ TOUCH TILT EFFECT ============ */
    .m-tilt {
        transition: transform 0.2s ease-out;
        transform-style: preserve-3d;
    }
}

/* ============ REDUCED MOTION ============ */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }
    
    .m-reveal,
    .info-card,
    .stat-card,
    .service-card,
    .why-card,
    .testimonial-card,
    .patient-type-card,
    .credential-item,
    .cas-benefit,
    .about-list li {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============ PERFORMANCE OPTIMIZATIONS ============ */
@media (max-width: 768px) {
    /* GPU acceleration hints */
    .hero-content,
    .info-card,
    .stat-card,
    .service-card,
    .why-card,
    .testimonial-card,
    .patient-type-card,
    .credential-item {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
    
    /* Contain paint */
    .section,
    .hero {
        contain: layout style;
    }
}

/* ========================================
   Live Chat Widget Styles
   ======================================== */

/* Chat Widget Container */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    font-family: var(--font-primary);
}

/* Chat Toggle Button */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 95, 122, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10001;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(26, 95, 122, 0.5);
}

.chat-toggle-btn:active {
    transform: scale(0.95);
}

.chat-toggle-icon {
    color: #fff;
    font-size: 24px;
    transition: all 0.3s ease;
    position: absolute;
}

.chat-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.chat-toggle-btn.active .chat-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.chat-toggle-btn.active .chat-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Notification Badge */
.chat-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: var(--secondary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #fff;
}

.chat-notification-badge.visible {
    opacity: 1;
    transform: scale(1);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    height: 550px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
}

.chat-status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.chat-header-text {
    line-height: 1.3;
}

.chat-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.chat-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-action-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-light);
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.bot-message {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    background: #fff;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    border-bottom-left-radius: 4px;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.message-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body);
}

.message-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.message-text .chat-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.message-text .chat-link:hover {
    color: var(--primary-dark);
}

.message-text .list-bullet {
    color: var(--primary-color);
    font-weight: bold;
}

.message-time {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Typing Indicator */
.typing-indicator .message-content {
    padding: 16px 20px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Quick Replies */
.chat-quick-replies {
    padding: 0 16px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--bg-light);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-quick-replies.visible {
    opacity: 1;
    max-height: 120px;
    padding: 12px 16px;
}

.quick-reply-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quick-reply-btn:active {
    transform: scale(0.95);
}

/* Chat Input Area */
.chat-input-area {
    padding: 16px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--bg-light);
    border-radius: 24px;
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    max-height: 120px;
    padding: 8px 0;
    color: var(--text-body);
}

.chat-input:focus {
    outline: none;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn i {
    font-size: 16px;
    margin-left: 2px;
}

.chat-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chat-disclaimer i {
    font-size: 12px;
    color: var(--primary-color);
}

/* ========================================
   Chat Widget Mobile Styles
   ======================================== */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-toggle-btn {
        width: 56px;
        height: 56px;
    }

    .chat-toggle-icon {
        font-size: 22px;
    }

    .chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        transform: translateY(100%);
    }

    .chat-window.active {
        transform: translateY(0);
    }

    .chat-header {
        padding: 16px 20px;
        padding-top: calc(16px + var(--safe-area-inset-top));
        position: relative;
        z-index: 10;
    }

    .chat-header-actions {
        position: relative;
        z-index: 11;
    }

    .chat-input-area {
        position: relative;
        z-index: 5;
        padding: 12px 16px;
        padding-bottom: calc(12px + var(--safe-area-inset-bottom));
    }

    .chat-messages {
        padding: 16px;
    }

    .chat-message {
        max-width: 90%;
    }

    .chat-quick-replies {
        padding: 10px 16px;
    }

    .quick-reply-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .chat-widget {
        bottom: 12px;
        right: 12px;
    }

    .chat-toggle-btn {
        width: 52px;
        height: 52px;
    }

    .chat-toggle-icon {
        font-size: 20px;
    }

    .chat-header-info {
        gap: 10px;
    }

    .chat-avatar {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .chat-title {
        font-size: 15px;
    }

    .message-content {
        padding: 10px 14px;
    }

    .message-text {
        font-size: 13px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    .chat-window {
        width: 360px;
        height: 520px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .chat-widget {
        bottom: 30px;
        right: 30px;
    }

    .chat-toggle-btn {
        width: 64px;
        height: 64px;
    }

    .chat-toggle-icon {
        font-size: 26px;
    }

    .chat-window {
        width: 400px;
        height: 600px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .chat-window,
    .chat-toggle-btn,
    .chat-message,
    .chat-notification-badge {
        transition: opacity 0.2s ease;
        animation: none;
    }
    
    .typing-dots span {
        animation: none;
        opacity: 0.7;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* ========================================
   INNER PAGES MOBILE RESPONSIVE STYLES
   Programari, Informatii, Servicii, Despre
   ======================================== */

/* ===== PAGE HEADER MOBILE ===== */
@media (max-width: 768px) {
    .page-header {
        padding: 135px 0 50px;
    }
    
    .page-title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .breadcrumb {
        margin-top: 18px;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .breadcrumb a,
    .breadcrumb span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 115px 0 40px;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
}

/* ===== PROGRAMARI PAGE MOBILE ===== */
@media (max-width: 768px) {
    /* Methods Grid */
    .methods-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .method-card {
        padding: 25px 20px;
    }
    
    .method-card.featured {
        order: -1;
    }
    
    .method-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .method-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .method-card p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .method-card .btn {
        width: 100%;
        justify-content: center;
    }
    
    .method-note {
        font-size: 0.8rem;
        margin-top: 12px;
    }
    
    /* Schedule Section */
    .schedule-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .schedule-info h2 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .schedule-info > p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .schedule-table {
        margin: 0 -5px;
    }
    
    .schedule-row-header {
        padding: 12px 18px;
        font-size: 0.8rem;
    }
    
    .schedule-row-item {
        padding: 12px 18px;
    }
    
    .schedule-row-item .day {
        font-size: 0.9rem;
    }
    
    .schedule-row-item .hours {
        font-size: 0.85rem;
    }
    
    .schedule-notes {
        margin-top: 15px;
    }
    
    .note-item {
        padding: 8px 0;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    /* Schedule Tips */
    .schedule-tips {
        padding: 25px 20px;
    }
    
    .schedule-tips h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .tip-card {
        padding: 15px 0;
        gap: 12px;
    }
    
    .tip-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 0.85rem;
    }
    
    .tip-content h4 {
        font-size: 0.95rem;
    }
    
    .tip-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Form */
    .form-wrapper {
        margin: 0 -5px;
    }
    
    .appointment-form .card-body {
        padding: 25px 18px;
    }
    
    .appointment-form h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .form-hint {
        font-size: 0.8rem;
    }
    
    .checkbox-label {
        font-size: 0.85rem;
        line-height: 1.5;
        gap: 10px;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 1rem;
        width: 100%;
    }
    
    /* Emergency Section */
    .emergency-content {
        padding: 25px 20px;
    }
    
    .emergency-content h2 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .emergency-content > p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .emergency-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .emergency-action {
        gap: 12px;
    }
    
    .action-number,
    .action-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .action-text h4 {
        font-size: 1rem;
    }
    
    .action-text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .method-card {
        padding: 22px 18px;
    }
    
    .method-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .schedule-tips {
        padding: 20px 15px;
    }
    
    .appointment-form .card-body {
        padding: 20px 15px;
    }
    
    .emergency-content {
        padding: 20px 15px;
    }
}

/* ===== INFORMATII PACIENTI PAGE MOBILE ===== */
@media (max-width: 768px) {
    /* Quick Navigation Cards */
    .quick-nav {
        padding: 40px 0;
    }
    
    .nav-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-card {
        width: 100%;
        flex-direction: row;
        padding: 16px 20px;
        gap: 15px;
        align-items: center;
        justify-content: flex-start;
    }
    
    .nav-card i {
        font-size: 1.3rem;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-lighter);
        border-radius: var(--radius-sm);
        color: var(--primary-color);
    }
    
    .nav-card span {
        font-size: 0.95rem;
    }
    
    /* Info Section Grid */
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .info-content {
        order: 1;
    }
    
    .info-sidebar {
        order: 2;
        gap: 15px;
    }
    
    .info-content .lead {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Steps List */
    .steps-list {
        gap: 0;
    }
    
    .step-item {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        padding: 18px 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    .step-item:last-child {
        border-bottom: none;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .step-content h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .step-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
    }
    
    /* Sidebar Cards */
    .sidebar-card {
        padding: 20px;
    }
    
    .sidebar-card h4 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .sidebar-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Documents Grid */
    .documents-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .document-category {
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    
    .category-header {
        padding: 18px;
        gap: 12px;
    }
    
    .category-header i {
        font-size: 1.3rem;
    }
    
    .category-header h3 {
        font-size: 0.95rem;
    }
    
    .document-list {
        padding: 18px;
    }
    
    .document-list li {
        padding: 6px 0;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    /* CAS Info Grid */
    .cas-info-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .cas-badge {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        gap: 15px;
    }
    
    .cas-badge i {
        font-size: 2rem;
        min-width: 50px;
    }
    
    .cas-badge h3 {
        font-size: 1.1rem;
    }
    
    .cas-badge p {
        font-size: 0.9rem;
    }
    
    .cas-main .lead {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cas-main h4 {
        font-size: 1.05rem;
        margin: 25px 0 15px;
    }
    
    .services-decontate {
        gap: 10px;
    }
    
    .service-item {
        padding: 10px 12px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .beneficiari-list {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .beneficiari-list li {
        font-size: 0.9rem;
        gap: 10px;
    }
    
    /* CAS Sidebar Cards */
    .cas-sidebar {
        gap: 15px;
    }
    
    .cas-card {
        padding: 20px;
    }
    
    .cas-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .cas-card h4 {
        font-size: 0.95rem;
    }
    
    .cas-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    /* Rights Grid */
    .rights-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .rights-header {
        padding: 18px;
        gap: 12px;
    }
    
    .rights-header i {
        font-size: 1.3rem;
    }
    
    .rights-header h3 {
        font-size: 1.05rem;
    }
    
    .rights-list {
        padding: 18px;
    }
    
    .rights-list li {
        padding: 8px 0;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    /* GDPR Notice */
    .gdpr-notice {
        padding: 22px 18px;
    }
    
    .gdpr-notice h4 {
        font-size: 1rem;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .gdpr-notice p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .gdpr-notice .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* FAQ Section */
    .faq-container {
        margin: 0 -5px;
    }
    
    .accordion-header {
        padding: 16px 18px;
        font-size: 0.95rem;
        text-align: left;
    }
    
    .accordion-body {
        padding: 18px;
    }
    
    .accordion-body p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .faq-cta {
        margin-top: 30px;
    }
    
    .faq-cta p {
        font-size: 0.95rem;
    }
    
    .faq-cta .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .nav-card {
        padding: 14px 16px;
    }
    
    .step-item {
        padding: 15px 0;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 0.9rem;
    }
    
    .sidebar-card {
        padding: 16px;
    }
    
    .category-header {
        padding: 15px;
    }
    
    .document-list {
        padding: 15px;
    }
    
    .cas-badge {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .rights-header {
        padding: 15px;
    }
    
    .rights-list {
        padding: 15px;
    }
}

/* ===== SERVICII PAGE MOBILE ===== */
@media (max-width: 768px) {
    /* Service Detail Grid */
    .service-detail-grid,
    .service-detail-grid.reverse {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .service-detail-grid.reverse .service-detail-icon {
        order: 0;
    }
    
    .service-detail-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        position: static;
        margin: 0 auto;
    }
    
    .service-detail-content h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .service-detail-content .lead {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .service-detail-content h4 {
        font-size: 1.05rem;
        margin: 25px 0 15px;
    }
    
    /* Service List */
    .service-list {
        gap: 10px;
    }
    
    .service-list li {
        font-size: 0.9rem;
        gap: 10px;
        line-height: 1.5;
    }
    
    /* Service Types */
    .service-types {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .service-type {
        padding: 18px;
    }
    
    .service-type h5 {
        font-size: 0.95rem;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .service-type p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Specialties Grid */
    .specialties-grid {
        justify-content: center;
        gap: 8px;
    }
    
    .specialty-tag {
        padding: 8px 14px;
        font-size: 0.85rem;
        gap: 6px;
    }
    
    /* Conditions Grid */
    .conditions-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .condition-card {
        padding: 20px;
    }
    
    .condition-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .condition-card h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .condition-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Documents Grid on Services */
    .documents-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .document-item {
        padding: 16px;
        gap: 12px;
    }
    
    .document-item i {
        font-size: 1.3rem;
    }
    
    .document-item h5 {
        font-size: 0.95rem;
    }
    
    .document-item p {
        font-size: 0.85rem;
    }
    
    /* Services Intro Alert */
    .services-intro .alert {
        padding: 15px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .services-intro .alert i {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .service-detail-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .service-detail-content h2 {
        font-size: 1.25rem;
    }
    
    .service-type {
        padding: 15px;
    }
    
    .condition-card {
        padding: 16px;
    }
}

/* ===== DESPRE PAGE MOBILE ===== */
@media (max-width: 768px) {
    /* Profile Grid */
    .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .doctor-photo,
    .image-placeholder.large {
        border-radius: var(--radius-lg);
    }
    
    .profile-badge {
        right: -10px;
        bottom: -15px;
        padding: 18px 22px;
    }
    
    .badge-content i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .badge-content span {
        font-size: 0.9rem;
    }
    
    .badge-content .subtitle {
        font-size: 0.8rem;
    }
    
    /* Profile Content */
    .profile-content .section-label {
        text-align: center;
        display: block;
    }
    
    .profile-content h2 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .intro-text {
        font-size: 1rem;
        line-height: 1.7;
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Profile Details */
    .profile-details {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .detail-item {
        gap: 12px;
    }
    
    .detail-item i {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .detail-item h4 {
        font-size: 0.85rem;
    }
    
    .detail-item p {
        font-size: 0.9rem;
    }
    
    /* Story Section */
    .story-content {
        padding: 0;
    }
    
    .story-text p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 18px;
    }
    
    /* Doctor Quote */
    .doctor-quote {
        padding: 25px 20px;
        margin: 25px 0;
    }
    
    .doctor-quote i {
        font-size: 1.2rem;
        top: 15px;
        left: 15px;
    }
    
    .doctor-quote p {
        font-size: 1.05rem;
        padding-left: 20px;
        line-height: 1.7;
    }
    
    .doctor-quote cite {
        font-size: 0.9rem;
    }
    
    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .value-card {
        padding: 28px 22px;
    }
    
    .value-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .value-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .value-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* Expertise Grid */
    .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .expertise-card {
        padding: 20px;
        gap: 15px;
    }
    
    .expertise-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.1rem;
    }
    
    .expertise-content h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    
    .expertise-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Cabinet Grid */
    .cabinet-grid {
        grid-template-columns: 1fr !important;
        gap: 35px;
    }
    
    .cabinet-feature {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .cabinet-feature i {
        font-size: 1.3rem;
        min-width: 25px;
    }
    
    .cabinet-feature h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .cabinet-feature p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .cabinet-placeholder {
        aspect-ratio: 16/10;
        padding: 30px 20px;
    }
    
    .cabinet-placeholder i {
        font-size: 3rem;
    }
    
    .cabinet-placeholder span {
        font-size: 1rem;
    }
    
    .cabinet-placeholder p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-image {
        max-width: 260px;
    }
    
    .profile-badge {
        right: 0;
        bottom: -10px;
        padding: 14px 18px;
    }
    
    .badge-content i {
        font-size: 1.25rem;
    }
    
    .badge-content span {
        font-size: 0.85rem;
    }
    
    .profile-content h2 {
        font-size: 1.35rem;
    }
    
    .doctor-quote {
        padding: 20px 16px;
    }
    
    .doctor-quote p {
        font-size: 0.95rem;
        padding-left: 15px;
    }
    
    .value-card {
        padding: 22px 18px;
    }
    
    .expertise-card {
        padding: 16px;
    }
    
    .cabinet-feature {
        margin-bottom: 20px;
    }
}

/* ===== GLOBAL INNER PAGES MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    /* Section spacing reduction */
    .info-section.section,
    .service-detail.section {
        padding: 50px 0;
    }
    
    /* Alert boxes on mobile */
    .alert {
        padding: 14px 16px;
        gap: 12px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .alert i {
        font-size: 1.1rem;
        min-width: 20px;
    }
    
    .alert strong {
        display: block;
        margin-bottom: 4px;
    }
    
    /* Section headers */
    .section-header {
        margin-bottom: 35px;
    }
    
    .section-label {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        margin-bottom: 8px;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    /* Cards hover effects disabled on mobile */
    .method-card:hover,
    .value-card:hover,
    .expertise-card:hover,
    .service-type:hover,
    .sidebar-card:hover {
        transform: none;
    }
    
    /* Active state for touch */
    .method-card:active,
    .value-card:active,
    .expertise-card:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .info-section.section,
    .service-detail.section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 28px;
    }
    
    .section-title {
        font-size: 1.35rem;
    }
    
    .alert {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}
