﻿/* ============================================
   🏥 Banthi Hospital - Modern Premium Design
   Ultra-Modern Healthcare Website 2024
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables - Modern Color System
   ============================================ */
:root {
    /* Primary Gradient Blues */
    --primary-color: #0ea5e9;
    --primary-dark: #0369a1;
    --primary-light: #7dd3fc;
    --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);

    /* Accent Colors */
    --accent-teal: #14b8a6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    /* Modern Neutrals */
    --text-dark: #0f172a;
    --text-main: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Backgrounds */
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --bg-gradient: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);

    /* Shadows - Ultra Modern */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* Border & Radius */
    --border-color: rgba(226, 232, 240, 0.8);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Animation */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans Thai', 'Inter', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================
   Modern Header - Premium Glassmorphism 2024
   ============================================ */
header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.9) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 120px;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    border-bottom: none;
}

/* Animated Gradient Top Border */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            #0ea5e9, #14b8a6, #10b981, #f59e0b, #f43f5e,
            #0ea5e9, #14b8a6, #10b981);
    background-size: 200% 100%;
    animation: headerGradient 8s linear infinite;
}

@keyframes headerGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Subtle glow effect */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(14, 165, 233, 0.3) 20%,
            rgba(20, 184, 166, 0.3) 50%,
            rgba(14, 165, 233, 0.3) 80%,
            transparent 100%);
}

header.scrolled {
    height: 100px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

header.scrolled::before {
    height: 3px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo - Premium Design with Animated Glow */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 16px;
    border-radius: 16px;
    position: relative;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(20, 184, 166, 0.05));
    border: 1px solid rgba(14, 165, 233, 0.1);
    flex-shrink: 0;
}

/* Animated glow ring around logo */
.logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6, #10b981, #0ea5e9);
    background-size: 300% 300%;
    animation: logoRingGlow 4s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo:hover::before {
    opacity: 1;
}

/* Inner background on hover */
.logo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    z-index: -1;
}

@keyframes logoRingGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
}

/* Logo Image Container */
.logo-img-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(14, 165, 233, 0.2));
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

/* Pulsating ring around logo image */
.logo-img-container::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(14, 165, 233, 0.3);
    animation: logoPulse 2.5s ease-in-out infinite;
}

.logo-img-container::after {
    content: '';
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.2);
    animation: logoPulse 2.5s ease-in-out infinite 0.5s;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.logo:hover img {
    transform: scale(1.08) rotate(-5deg);
    filter: drop-shadow(0 8px 20px rgba(14, 165, 233, 0.35));
}

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

.logo-title {
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 40%, #14b8a6 70%, #10b981 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: logoGradient 4s ease infinite;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

@keyframes logoGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

/* Animated underline for subtitle */
.logo-subtitle::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #14b8a6);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.logo:hover .logo-subtitle::after {
    width: 100%;
}

/* Navigation - Enhanced */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 3px;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
    overflow: visible;
}

/* Invisible bridge to prevent hover gap between nav-link and dropdown */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    pointer-events: auto;
}

.nav-link {
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.78rem;
    padding: 12px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: transparent;
    white-space: nowrap;
    overflow: visible;
}

.nav-link:hover {
    color: var(--white);
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.nav-link:hover .nav-icon {
    background: transparent;
    -webkit-text-fill-color: var(--white);
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.nav-link.active {
    color: var(--white);
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.nav-link.active .nav-icon {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--white);
    background-clip: unset;
    color: var(--white);
}

.nav-link.active .nav-text,
.nav-link.active .nav-text small {
    color: var(--white);
}

.nav-link.active .dropdown-arrow {
    color: var(--white);
}

/* Nav Icon - Colorful Gradient */
.nav-icon {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    transition: all 0.3s ease;
    line-height: 1.2;
    padding: 2px;
}

/* Different icon colors per nav item */
.nav-item:nth-child(1) .nav-icon {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    -webkit-background-clip: text;
}

.nav-item:nth-child(2) .nav-icon {
    background: linear-gradient(135deg, #14b8a6, #10b981);
    -webkit-background-clip: text;
}

.nav-item:nth-child(3) .nav-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
}

.nav-item:nth-child(4) .nav-icon {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    -webkit-background-clip: text;
}

.nav-item:nth-child(5) .nav-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    -webkit-background-clip: text;
}

.nav-item:nth-child(6) .nav-icon {
    background: linear-gradient(135deg, #ec4899, #db2777);
    -webkit-background-clip: text;
}

/* Nav Text */
.nav-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.nav-text small {
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover .nav-text small {
    color: rgba(255, 255, 255, 0.8);
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 0.5rem;
    color: var(--text-muted);
    margin-top: 2px;
    transition: all 0.3s ease;
    -webkit-text-fill-color: var(--text-muted);
}

.nav-link:hover .dropdown-arrow {
    -webkit-text-fill-color: rgba(255, 255, 255, 0.8);
}

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

/* Dropdown Menu - Premium Glass 2024 */
.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    min-width: 300px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 10px 30px rgba(14, 165, 233, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    z-index: 100;
    overflow: visible;
}


/* Animated Gradient Border Effect */
.dropdown::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            #0ea5e9, #14b8a6, #10b981, #0ea5e9);
    background-size: 200% 100%;
    animation: dropdownGradient 3s linear infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes dropdownGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Scrollable Dropdown for long menus */
.dropdown.dropdown-scroll {
    max-height: 420px;
    overflow-y: auto;
    min-width: 320px;
}

.dropdown.dropdown-scroll::-webkit-scrollbar {
    width: 5px;
}

.dropdown.dropdown-scroll::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 10px;
    margin: 10px 0;
}

.dropdown.dropdown-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #14b8a6);
    border-radius: 10px;
}

.dropdown.dropdown-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0369a1, #0ea5e9);
}

/* Arrow Pointer */
.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-left: 1px solid rgba(226, 232, 240, 0.6);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown Items */
.dropdown li {
    opacity: 0;
    transform: translateX(-10px);
    animation: dropdownItemIn 0.3s ease forwards;
}

/* Staggered animation for each item */
.nav-item:hover .dropdown li:nth-child(1) {
    animation-delay: 0.05s;
}

.nav-item:hover .dropdown li:nth-child(2) {
    animation-delay: 0.08s;
}

.nav-item:hover .dropdown li:nth-child(3) {
    animation-delay: 0.11s;
}

.nav-item:hover .dropdown li:nth-child(4) {
    animation-delay: 0.14s;
}

.nav-item:hover .dropdown li:nth-child(5) {
    animation-delay: 0.17s;
}

.nav-item:hover .dropdown li:nth-child(6) {
    animation-delay: 0.20s;
}

.nav-item:hover .dropdown li:nth-child(7) {
    animation-delay: 0.23s;
}

.nav-item:hover .dropdown li:nth-child(8) {
    animation-delay: 0.26s;
}

.nav-item:hover .dropdown li:nth-child(9) {
    animation-delay: 0.29s;
}

.nav-item:hover .dropdown li:nth-child(10) {
    animation-delay: 0.32s;
}

.nav-item:hover .dropdown li:nth-child(n+11) {
    animation-delay: 0.35s;
}

@keyframes dropdownItemIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown .dropdown-divider-line {
    height: 1px;
    margin: 8px 10px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, .2), transparent);
    pointer-events: none;
}

/* Dropdown Link Styling */
.dropdown li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 0.88rem;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Hover background shine effect */
.dropdown li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.4s;
}

.dropdown li a:hover::before {
    left: 100%;
}

.dropdown li a[href*="service_detail.php?slug="] {
    --nav-service-accent: #0d8fd0;
    --nav-service-deep: #0369a1;
    --nav-service-soft: #e0f2fe;
}

.dropdown li a[href*="slug=general-care"] { --nav-service-accent: #0d8fd0; --nav-service-deep: #0369a1; --nav-service-soft: #e0f2fe; }
.dropdown li a[href*="slug=dental"] { --nav-service-accent: #0fafa8; --nav-service-deep: #0f766e; --nav-service-soft: #dffcf7; }
.dropdown li a[href*="slug=emergency"] { --nav-service-accent: #ef4444; --nav-service-deep: #b91c1c; --nav-service-soft: #fee2e2; }
.dropdown li a[href*="slug=child-clinic"] { --nav-service-accent: #df3cda; --nav-service-deep: #a21caf; --nav-service-soft: #fde7fb; }
.dropdown li a[href*="slug=pharmacy"] { --nav-service-accent: #f59e0b; --nav-service-deep: #c65f00; --nav-service-soft: #fff4df; }
.dropdown li a[href*="slug=physical-therapy"] { --nav-service-accent: #0fb7c6; --nav-service-deep: #087d8a; --nav-service-soft: #dbfbff; }
.dropdown li a[href*="slug=lab"] { --nav-service-accent: #6366f1; --nav-service-deep: #4338ca; --nav-service-soft: #e0e7ff; }
.dropdown li a[href*="slug=x-ray"] { --nav-service-accent: #0284c7; --nav-service-deep: #075985; --nav-service-soft: #dbeafe; }
.dropdown li a[href*="slug=labor"] { --nav-service-accent: #f43f5e; --nav-service-deep: #be123c; --nav-service-soft: #ffe4e6; }
.dropdown li a[href*="slug=ipd"] { --nav-service-accent: #10b981; --nav-service-deep: #047857; --nav-service-soft: #d1fae5; }
.dropdown li a[href*="slug=psychiatry"] { --nav-service-accent: #8b5cf6; --nav-service-deep: #6d28d9; --nav-service-soft: #ede9fe; }
.dropdown li a[href*="slug=addiction"] { --nav-service-accent: #65a30d; --nav-service-deep: #3f6212; --nav-service-soft: #ecfccb; }

.dropdown li a[href*="service_detail.php?slug="] i {
    background: color-mix(in srgb, var(--nav-service-accent) 14%, white) !important;
    color: var(--nav-service-deep) !important;
}

.dropdown li a[href*="service_detail.php?slug="]:hover {
    color: var(--nav-service-deep);
    background: linear-gradient(135deg, color-mix(in srgb, var(--nav-service-soft) 72%, white), #fff);
}

/* Icon Container - Colorful */
.dropdown li a i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(20, 184, 166, 0.12));
    border-radius: 10px;
    color: #0ea5e9;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Different icon colors for variety */
.dropdown li:nth-child(1) a i {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
    color: #0ea5e9;
}

.dropdown li:nth-child(2) a i {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05));
    color: #14b8a6;
}

.dropdown li:nth-child(3) a i {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
}

.dropdown li:nth-child(4) a i {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #f59e0b;
}

.dropdown li:nth-child(5) a i {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
    color: #f43f5e;
}

.dropdown li:nth-child(6) a i {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
}

.dropdown li:nth-child(7) a i {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
    color: #ec4899;
}

.dropdown li:nth-child(8) a i {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
}

.dropdown li:nth-child(n+9) a i {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
    color: #0ea5e9;
}

/* Link text */
.dropdown li a span {
    flex-grow: 1;
    line-height: 1.4;
}

/* Hover State */
.dropdown li a:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.25);
}

.dropdown li a:hover i {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

/* Header CTA - Premium Glowing Button with Animated Border */
.header-cta {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 50%, #0284c7 100%);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(14, 165, 233, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 1;
    flex-shrink: 0;
}

/* Animated gradient border ring - Hidden */
.header-cta::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 53px;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6, #10b981, #22d3ee, #0ea5e9);
    background-size: 300% 300%;
    animation: ctaRingGlow 3s ease infinite;
    z-index: -2;
    opacity: 0;
}

/* Inner solid background */
.header-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 50%, #0284c7 100%);
    z-index: -1;
    transition: all 0.3s ease;
}

@keyframes ctaRingGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Pulsating outer glow */
.header-cta-glow {
    position: absolute;
    inset: -6px;
    border-radius: 56px;
    background: transparent;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    animation: ctaPulseGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaPulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* Shine effect on hover */
.header-cta .cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: 0.6s;
    border-radius: 50px;
}

.header-cta:hover .cta-shine {
    left: 100%;
}

/* Phone icon with animation */
.header-cta i {
    font-size: 1rem;
    animation: ctaPhoneBounce 2s ease-in-out infinite;
}

@keyframes ctaPhoneBounce {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* CTA Text */
.header-cta span {
    position: relative;
    z-index: 1;
}

/* Hover Effects */
.header-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 12px 40px rgba(14, 165, 233, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.header-cta:hover::before {
    opacity: 1;
    animation-duration: 1.5s;
}

.header-cta:hover::after {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #14b8a6 100%);
}

.header-cta:hover i {
    animation: ctaPhoneRing 0.5s ease-in-out;
}

@keyframes ctaPhoneRing {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    40% {
        transform: rotate(15deg);
    }

    60% {
        transform: rotate(-10deg);
    }

    80% {
        transform: rotate(10deg);
    }
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: rgba(14, 165, 233, 0.05);
}

.hamburger:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
}

/* ============================================
   Hero Section - Dynamic & Modern (No Blue Gradient)
   ============================================ */
.hero {
    margin-top: 120px;
    position: relative;
    height: 650px;
    overflow: hidden;
    background: #0a1628;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    transform-origin: center;
    will-change: transform;
}

/* Floating Particles Effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 60% 40%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(3px 3px at 80% 60%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 70% 20%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(3px 3px at 30% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 90% 10%, rgba(255, 255, 255, 0.25), transparent);
    animation: particleFloat 20s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(-10px);
    }

    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.5s ease;
    transform: scale(1.05);
    transform-origin: center;
    animation: slowZoom 30s ease-in-out infinite alternate;
}

.hero-slider .slide::after {
    content: '';
    position: absolute;
    inset: 56% 0 0;
    background: linear-gradient(180deg, rgba(7, 18, 31, 0) 0%, rgba(7, 18, 31, 0.48) 100%);
    opacity: 1;
    pointer-events: none;
    transition: opacity .35s ease;
}

.hero-slider .slide.slide-no-shade::after {
    opacity: 0;
}

.hero-slider .slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 22, 40, 0.58) 0%, rgba(10, 22, 40, 0.34) 38%, rgba(10, 22, 40, 0.14) 72%, rgba(10, 22, 40, 0.04) 100%);
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero.hero-shade-off .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 22, 40, 0.2) 0%, rgba(10, 22, 40, 0.08) 56%, rgba(10, 22, 40, 0.02) 100%);
}

.hero.hero-text-disabled .hero-content,
.hero.hero-active-text-off .hero-content {
    display: none;
}

.hero-content {
    max-width: 650px;
    color: var(--white);
    padding-left: 24px;
    position: relative;
    z-index: 4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInLeft 1s ease-out 0.2s both;
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-badge::before {
    content: '✦';
    color: var(--accent-amber);
    animation: pulse 2s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 800;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-buttons .btn-primary {
    animation: glow 3s ease-in-out infinite;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-amber) 0%, #d97706 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.btn-white {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Section Styles - Enhanced with Animations
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatBg 15s ease-in-out infinite alternate;
}

.section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatBg 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatBg {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.section-bg {
    background: var(--bg-gradient);
}

/* ============================================
   Director Section - Clean Modern Design
   ============================================ */
.director-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes */
.director-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.director-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.director-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Director Image Side */
.director-image-side {
    flex-shrink: 0;
}

.director-photo-frame {
    position: relative;
    display: inline-block;
}

.director-photo {
    width: 280px;
    height: 280px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow:
        0 25px 60px rgba(14, 165, 233, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.director-photo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 35px 80px rgba(14, 165, 233, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.12);
}

.director-frame-decoration {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid transparent;
    border-radius: 28px;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6, #10b981) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}

/* Director Text Side */
.director-text-side {
    flex: 1;
}

.director-label {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.director-section .director-name {
    font-size: 2.2rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.director-position {
    font-size: 1.15rem;
    color: #0ea5e9;
    font-weight: 500;
    margin-bottom: 25px;
}

.director-message {
    position: relative;
    padding: 25px 30px 25px 50px;
    background: white;
    border-radius: 16px;
    border-left: 4px solid #14b8a6;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.director-message i {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #14b8a6;
    font-size: 1.2rem;
    opacity: 0.6;
}

.director-message p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
    margin: 0;
}

.director-vision-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(20, 184, 166, 0.08));
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    transition: all 0.3s ease;
}

.director-vision-box:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(20, 184, 166, 0.12));
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.director-vision-box>i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.director-vision-box strong {
    display: block;
    color: #0ea5e9;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.director-vision-box p {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .director-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .director-message {
        border-left: none;
        border-top: 4px solid #14b8a6;
        padding-left: 30px;
    }

    .director-message i {
        left: 50%;
        top: -12px;
        transform: translateX(-50%);
        background: white;
        padding: 5px;
        border-radius: 50%;
    }

    .director-vision-box {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .director-section {
        padding: 60px 0;
    }

    .director-photo {
        width: 220px;
        height: 220px;
    }

    .director-section .director-name {
        font-size: 1.6rem;
    }

    .director-message {
        padding: 20px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

/* Animated underline for section headers */
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-teal));
    border-radius: var(--radius-full);
    animation: expandLine 0.8s ease-out 0.3s both;
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 60px;
        opacity: 1;
    }
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    padding-top: 15px;
}

/* ============================================
   Director Card - Premium Design
   ============================================ */
.director-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 50px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 50px;
    align-items: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.director-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-gradient);
}

.director-img {
    width: 300px;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.director-card:hover .director-img {
    transform: scale(1.02);
}

.director-info h3 {
    font-size: 2.2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.director-info h4 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 28px;
    font-weight: 500;
}

.quote-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
    padding: 28px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-teal);
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 28px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   Feature Grid - Modern Cards with 3D Effects
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-item {
    background: var(--white);
    padding: 45px 35px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Colored aura/glow for each card - always visible */
.feature-item:nth-child(1) {
    box-shadow: 0 20px 50px -15px rgba(14, 165, 233, 0.35);
}

.feature-item:nth-child(2) {
    box-shadow: 0 20px 50px -15px rgba(20, 184, 166, 0.35);
}

.feature-item:nth-child(3) {
    box-shadow: 0 20px 50px -15px rgba(245, 158, 11, 0.35);
}

.feature-item:nth-child(4) {
    box-shadow: 0 20px 50px -15px rgba(168, 85, 247, 0.35);
}

.feature-item:nth-child(5) {
    box-shadow: 0 20px 50px -15px rgba(245, 158, 11, 0.35);
}

.feature-item:nth-child(6) {
    box-shadow: 0 20px 50px -15px rgba(20, 184, 166, 0.35);
}

/* Gradient overlay on hover */
.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(20, 184, 166, 0.03) 100%);
    opacity: 0;
    transition: var(--transition);
}

.feature-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-item:nth-child(1)::after {
    background: linear-gradient(90deg, #0ea5e9, #0369a1);
}

.feature-item:nth-child(2)::after {
    background: linear-gradient(90deg, #14b8a6, #0d9488);
}

.feature-item:nth-child(3)::after {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.feature-item:nth-child(4)::after {
    background: linear-gradient(90deg, #a855f7, #9333ea);
}

.feature-item:nth-child(5)::after {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.feature-item:nth-child(6)::after {
    background: linear-gradient(90deg, #14b8a6, #0d9488);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.feature-item:hover {
    transform: translateY(-15px) rotateX(3deg);
}

/* Enhanced aura on hover for each card */
.feature-item:nth-child(1):hover {
    box-shadow: 0 30px 60px -15px rgba(14, 165, 233, 0.5);
}

.feature-item:nth-child(2):hover {
    box-shadow: 0 30px 60px -15px rgba(20, 184, 166, 0.5);
}

.feature-item:nth-child(3):hover {
    box-shadow: 0 30px 60px -15px rgba(245, 158, 11, 0.5);
}

.feature-item:nth-child(4):hover {
    box-shadow: 0 30px 60px -15px rgba(168, 85, 247, 0.5);
}

.feature-item:nth-child(5):hover {
    box-shadow: 0 30px 60px -15px rgba(245, 158, 11, 0.5);
}

.feature-item:nth-child(6):hover {
    box-shadow: 0 30px 60px -15px rgba(20, 184, 166, 0.5);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 85px;
    height: 85px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 28px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--white);
    position: relative;
}

/* Colorful icon backgrounds per feature item */
.feature-item:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
}

.feature-item:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.35);
}

.feature-item:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.feature-item:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.35);
}

.feature-item:nth-child(5) .feature-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.feature-item:nth-child(6) .feature-icon {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.35);
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(8deg);
    filter: brightness(1.1);
}

.feature-item h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.feature-item:nth-child(1):hover h3 {
    color: #0369a1;
}

.feature-item:nth-child(2):hover h3 {
    color: #0d9488;
}

.feature-item:nth-child(3):hover h3 {
    color: #d97706;
}

.feature-item:nth-child(4):hover h3 {
    color: #9333ea;
}

.feature-item:nth-child(5):hover h3 {
    color: #d97706;
}

.feature-item:nth-child(6):hover h3 {
    color: #0d9488;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.feature-item.service-link-card {
    --card-accent: #0d8fd0;
    --card-deep: #0369a1;
    --card-soft: #e0f2fe;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    box-shadow: 0 22px 56px -18px color-mix(in srgb, var(--card-accent) 42%, transparent);
}

.feature-item.service-link-card:focus-visible {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--card-accent) 24%, transparent), 0 28px 64px -16px color-mix(in srgb, var(--card-accent) 42%, transparent);
}

.feature-item.service-link-card::before {
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--card-accent) 15%, transparent), transparent 46%),
        linear-gradient(135deg, color-mix(in srgb, var(--card-soft) 68%, white), #fff 66%);
}

.feature-item.service-link-card::after {
    background: linear-gradient(90deg, var(--card-accent), var(--card-deep));
}

.feature-item.service-link-card .feature-icon {
    background: linear-gradient(135deg, var(--card-accent), var(--card-deep));
    box-shadow: 0 14px 34px color-mix(in srgb, var(--card-accent) 38%, transparent);
}

.feature-item.service-link-card:hover {
    box-shadow: 0 34px 74px -18px color-mix(in srgb, var(--card-accent) 54%, transparent);
}

.feature-item.service-link-card:hover h3 {
    color: var(--card-deep);
}

.feature-item.service-link-card.service-card-blue { --card-accent: #0d8fd0; --card-deep: #0369a1; --card-soft: #e0f2fe; }
.feature-item.service-link-card.service-card-teal { --card-accent: #0fafa8; --card-deep: #0f766e; --card-soft: #dffcf7; }
.feature-item.service-link-card.service-card-red { --card-accent: #ef4444; --card-deep: #b91c1c; --card-soft: #fee2e2; }
.feature-item.service-link-card.service-card-pink { --card-accent: #df3cda; --card-deep: #a21caf; --card-soft: #fde7fb; }
.feature-item.service-link-card.service-card-orange { --card-accent: #f59e0b; --card-deep: #c65f00; --card-soft: #fff4df; }
.feature-item.service-link-card.service-card-aqua { --card-accent: #0fb7c6; --card-deep: #087d8a; --card-soft: #dbfbff; }
.feature-item.service-link-card.service-card-indigo { --card-accent: #6366f1; --card-deep: #4338ca; --card-soft: #e0e7ff; }
.feature-item.service-link-card.service-card-sky { --card-accent: #0284c7; --card-deep: #075985; --card-soft: #dbeafe; }
.feature-item.service-link-card.service-card-rose { --card-accent: #f43f5e; --card-deep: #be123c; --card-soft: #ffe4e6; }
.feature-item.service-link-card.service-card-emerald { --card-accent: #10b981; --card-deep: #047857; --card-soft: #d1fae5; }
.feature-item.service-link-card.service-card-violet { --card-accent: #8b5cf6; --card-deep: #6d28d9; --card-soft: #ede9fe; }
.feature-item.service-link-card.service-card-lime { --card-accent: #65a30d; --card-deep: #3f6212; --card-soft: #ecfccb; }

.service-card-grid .service-link-card {
    min-height: 100%;
}

.service-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--card-deep);
    font-weight: 850;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .28s ease, transform .28s ease, color .28s ease;
}

.service-link-card:hover .service-card-action,
.service-link-card:focus-visible .service-card-action {
    opacity: 1;
    transform: translateY(0);
}

.service-link-card .service-card-action i {
    transition: transform .28s ease;
}

.service-link-card:hover .service-card-action i,
.service-link-card:focus-visible .service-card-action i {
    transform: translateX(4px);
}

/* ============================================
   Service Detail Pages
   ============================================ */
.service-detail-page {
    --service-accent: #0d8fd0;
    --service-deep: #0369a1;
    --service-soft: #e0f2fe;
    --service-ink: #10233f;
    --service-muted: #64748b;
    --service-success: #10b981;
    --service-success-deep: #047857;
    --service-info: #0284c7;
    --service-info-deep: #075985;
    --service-warning: #f59e0b;
    --service-warning-deep: #b45309;
    --service-danger: #ef4444;
    --service-danger-deep: #b91c1c;
    --service-step: #6366f1;
    --service-step-deep: #4338ca;
    --service-contact: #0fafa8;
    --service-contact-deep: #0f766e;
    background: #f5fbfd;
}

.service-theme-teal {
    --service-accent: #0fafa8;
    --service-deep: #0f766e;
    --service-soft: #dffcf7;
}

.service-theme-amber {
    --service-accent: #fb8c00;
    --service-deep: #c65f00;
    --service-soft: #fff2d8;
}

.service-theme-pink {
    --service-accent: #df3cda;
    --service-deep: #a21caf;
    --service-soft: #fde7fb;
}

.service-theme-orange {
    --service-accent: #f59e0b;
    --service-deep: #c65f00;
    --service-soft: #fff4df;
}

.service-theme-aqua {
    --service-accent: #0fb7c6;
    --service-deep: #087d8a;
    --service-soft: #dbfbff;
}

.service-theme-red {
    --service-accent: #ef4444;
    --service-deep: #b91c1c;
    --service-soft: #fee2e2;
}

.service-theme-indigo {
    --service-accent: #6366f1;
    --service-deep: #4338ca;
    --service-soft: #e0e7ff;
}

.service-theme-sky {
    --service-accent: #0284c7;
    --service-deep: #075985;
    --service-soft: #dbeafe;
}

.service-theme-rose {
    --service-accent: #f43f5e;
    --service-deep: #be123c;
    --service-soft: #ffe4e6;
}

.service-theme-emerald {
    --service-accent: #10b981;
    --service-deep: #047857;
    --service-soft: #d1fae5;
}

.service-theme-violet {
    --service-accent: #8b5cf6;
    --service-deep: #6d28d9;
    --service-soft: #ede9fe;
}

.service-theme-lime {
    --service-accent: #65a30d;
    --service-deep: #3f6212;
    --service-soft: #ecfccb;
}

.service-detail-hero {
    position: relative;
    isolation: isolate;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 150px 0 86px;
    background:
        radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--service-accent) 20%, transparent), transparent 30%),
        radial-gradient(circle at 10% 82%, color-mix(in srgb, var(--service-deep) 18%, transparent), transparent 28%),
        linear-gradient(135deg, #eefbff 0%, #fbfeff 48%, var(--service-soft) 100%);
}

.service-unit-general-care .service-detail-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 165, 233, .24), transparent 30%),
        radial-gradient(circle at 88% 74%, rgba(3, 105, 161, .16), transparent 34%),
        linear-gradient(135deg, #edf8ff 0%, #ffffff 52%, #dff4ff 100%);
}

.service-unit-dental .service-detail-hero {
    background:
        radial-gradient(circle at 78% 14%, rgba(20, 184, 166, .27), transparent 31%),
        radial-gradient(circle at 16% 86%, rgba(15, 118, 110, .16), transparent 30%),
        linear-gradient(135deg, #effdfa 0%, #ffffff 48%, #dcfbf4 100%);
}

.service-unit-emergency .service-detail-hero {
    background:
        radial-gradient(circle at 16% 20%, rgba(239, 68, 68, .28), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(185, 28, 28, .18), transparent 34%),
        linear-gradient(135deg, #fff7ed 0%, #fff 48%, #fee2e2 100%);
}

.service-unit-child-clinic .service-detail-hero {
    background:
        radial-gradient(circle at 80% 18%, rgba(223, 60, 218, .25), transparent 31%),
        radial-gradient(circle at 10% 78%, rgba(244, 114, 182, .16), transparent 32%),
        linear-gradient(135deg, #fff1fb 0%, #fff 50%, #fde7fb 100%);
}

.service-unit-pharmacy .service-detail-hero {
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, .28), transparent 31%),
        radial-gradient(circle at 14% 82%, rgba(198, 95, 0, .13), transparent 30%),
        linear-gradient(135deg, #fff8ed 0%, #fff 52%, #fff4df 100%);
}

.service-unit-physical-therapy .service-detail-hero {
    background:
        radial-gradient(circle at 78% 14%, rgba(15, 183, 198, .25), transparent 32%),
        radial-gradient(circle at 14% 84%, rgba(8, 125, 138, .15), transparent 30%),
        linear-gradient(135deg, #edfdff 0%, #fff 50%, #dbfbff 100%);
}

.service-unit-lab .service-detail-hero {
    background:
        radial-gradient(circle at 17% 20%, rgba(99, 102, 241, .24), transparent 30%),
        radial-gradient(circle at 86% 78%, rgba(67, 56, 202, .18), transparent 34%),
        linear-gradient(135deg, #eef2ff 0%, #fff 50%, #e0e7ff 100%);
}

.service-unit-x-ray .service-detail-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(2, 132, 199, .25), transparent 31%),
        radial-gradient(circle at 12% 82%, rgba(7, 89, 133, .17), transparent 31%),
        linear-gradient(135deg, #eff8ff 0%, #fff 48%, #dbeafe 100%);
}

.service-unit-labor .service-detail-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(244, 63, 94, .23), transparent 30%),
        radial-gradient(circle at 88% 78%, rgba(190, 18, 60, .13), transparent 34%),
        linear-gradient(135deg, #fff1f2 0%, #fff 50%, #ffe4e6 100%);
}

.service-unit-ipd .service-detail-hero {
    background:
        radial-gradient(circle at 82% 16%, rgba(16, 185, 129, .25), transparent 32%),
        radial-gradient(circle at 14% 82%, rgba(4, 120, 87, .15), transparent 30%),
        linear-gradient(135deg, #ecfdf5 0%, #fff 50%, #d1fae5 100%);
}

.service-unit-psychiatry .service-detail-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(139, 92, 246, .25), transparent 30%),
        radial-gradient(circle at 84% 80%, rgba(109, 40, 217, .14), transparent 34%),
        linear-gradient(135deg, #f5f3ff 0%, #fff 50%, #ede9fe 100%);
}

.service-unit-addiction .service-detail-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(101, 163, 13, .24), transparent 32%),
        radial-gradient(circle at 12% 84%, rgba(63, 98, 18, .16), transparent 30%),
        linear-gradient(135deg, #f7fee7 0%, #fff 50%, #ecfccb 100%);
}

.service-detail-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--service-accent) 42%, transparent), transparent);
}

.service-detail-orb {
    position: absolute;
    border-radius: 999px;
    border: 24px solid color-mix(in srgb, var(--service-accent) 14%, transparent);
    pointer-events: none;
    z-index: 0;
    animation: serviceFloat 8s ease-in-out infinite;
}

.service-detail-orb.orb-one {
    width: 180px;
    height: 180px;
    top: 130px;
    left: 8%;
}

.service-detail-orb.orb-two {
    width: 320px;
    height: 320px;
    right: -120px;
    bottom: -110px;
    animation-delay: -3s;
}

.service-hero-mark {
    position: absolute;
    z-index: 0;
    right: clamp(10px, 8vw, 150px);
    top: clamp(120px, 16vw, 190px);
    width: clamp(220px, 32vw, 460px);
    height: clamp(220px, 32vw, 460px);
    display: grid;
    place-items: center;
    border-radius: 44px;
    color: color-mix(in srgb, var(--service-accent) 15%, transparent);
    font-size: clamp(8rem, 20vw, 18rem);
    rotate: -9deg;
    filter: drop-shadow(0 30px 70px color-mix(in srgb, var(--service-accent) 18%, transparent));
    animation: serviceFloat 9s ease-in-out infinite;
}

.service-unit-pharmacy .service-detail-orb {
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--service-accent) 82%, white) 0 48%, rgba(255, 255, 255, .88) 48% 52%, color-mix(in srgb, var(--service-accent) 28%, white) 52% 100%);
    box-shadow: 0 28px 55px rgba(245, 158, 11, .2);
    rotate: -18deg;
}

.service-unit-pharmacy .service-detail-orb.orb-one {
    width: 190px;
    height: 74px;
    top: 154px;
    left: 7%;
}

.service-unit-pharmacy .service-detail-orb.orb-two {
    width: 260px;
    height: 92px;
    right: 7%;
    bottom: 70px;
    rotate: 15deg;
}

.service-unit-pharmacy .service-hero-mark {
    color: rgba(245, 158, 11, .16);
    rotate: 8deg;
}

.service-unit-x-ray .service-detail-orb {
    border-radius: 28px;
    border: 3px solid rgba(2, 132, 199, .18);
    background:
        linear-gradient(90deg, transparent 48%, rgba(2, 132, 199, .18) 48% 52%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(2, 132, 199, .18) 48% 52%, transparent 52%);
    box-shadow: inset 0 0 0 12px rgba(255, 255, 255, .52), 0 24px 60px rgba(2, 132, 199, .14);
}

.service-unit-lab .service-detail-orb,
.service-unit-psychiatry .service-detail-orb {
    border-width: 0;
    background:
        radial-gradient(circle at 35% 32%, rgba(255, 255, 255, .72) 0 16%, transparent 17%),
        radial-gradient(circle at 66% 62%, rgba(255, 255, 255, .5) 0 10%, transparent 11%),
        color-mix(in srgb, var(--service-accent) 16%, transparent);
    box-shadow: 0 25px 70px color-mix(in srgb, var(--service-accent) 18%, transparent);
}

.service-unit-dental .service-detail-orb {
    border-radius: 38% 62% 54% 46% / 45% 38% 62% 55%;
    border-width: 18px;
    rotate: 10deg;
}

.service-unit-emergency .service-detail-orb {
    border-width: 0;
    border-radius: 34px;
    background:
        linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, .82) 40% 60%, transparent 60%),
        linear-gradient(0deg, transparent 40%, rgba(255, 255, 255, .82) 40% 60%, transparent 60%),
        linear-gradient(135deg, rgba(239, 68, 68, .38), rgba(185, 28, 28, .18));
    box-shadow: 0 24px 60px rgba(239, 68, 68, .2);
    rotate: -8deg;
}

.service-unit-labor .service-detail-orb {
    border-width: 0;
    border-radius: 44% 56% 50% 50% / 52% 44% 56% 48%;
    background:
        radial-gradient(circle at 38% 35%, rgba(255, 255, 255, .7) 0 18%, transparent 19%),
        linear-gradient(135deg, rgba(244, 63, 94, .22), rgba(251, 113, 133, .1));
    box-shadow: 0 24px 64px rgba(244, 63, 94, .16);
}

.service-unit-ipd .service-detail-orb {
    border-width: 0;
    border-radius: 24px;
    background:
        linear-gradient(0deg, rgba(255, 255, 255, .75) 0 14%, transparent 14%),
        linear-gradient(90deg, rgba(16, 185, 129, .22) 0 28%, rgba(255, 255, 255, .7) 28% 34%, rgba(16, 185, 129, .12) 34% 100%);
    box-shadow: 0 28px 60px rgba(16, 185, 129, .16);
}

.service-unit-addiction .service-detail-orb {
    border-width: 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .7) 0 12%, transparent 13%),
        conic-gradient(from 140deg, rgba(101, 163, 13, .28), rgba(15, 175, 168, .16), rgba(101, 163, 13, .28));
    box-shadow: 0 24px 60px rgba(101, 163, 13, .16);
}

@keyframes serviceFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -16px, 0); }
}

.service-detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: clamp(32px, 6vw, 82px);
    align-items: center;
}

.service-detail-back,
.service-detail-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.service-detail-back {
    margin-bottom: 22px;
    color: #416079;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(14, 116, 144, .12);
    padding: 9px 14px;
}

.service-detail-back:hover {
    color: var(--service-deep);
    transform: translateX(-3px);
}

.service-detail-eyebrow {
    padding: 10px 16px;
    color: var(--service-deep);
    background: rgba(255, 255, 255, .84);
    border: 1px solid color-mix(in srgb, var(--service-accent) 26%, transparent);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--service-accent) 12%, transparent);
    font-size: .78rem;
    letter-spacing: .08em;
}

.service-detail-copy h1 {
    margin: 20px 0 18px;
    color: var(--service-ink);
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.06em;
    font-weight: 950;
}

.service-detail-copy p {
    max-width: 760px;
    color: #496981;
    font-size: clamp(1.04rem, 1.8vw, 1.3rem);
    line-height: 1.9;
}

.service-detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.service-detail-actions .btn-primary,
.service-cta-card .btn-primary {
    background: linear-gradient(135deg, var(--service-contact), var(--service-contact-deep));
    border: 0;
    box-shadow: 0 18px 36px rgba(15, 175, 168, .28);
}

.service-detail-actions .btn-outline {
    border: 1px solid color-mix(in srgb, var(--service-warning) 38%, transparent);
    color: var(--service-warning-deep);
    background: linear-gradient(135deg, rgba(255, 255, 255, .86), color-mix(in srgb, var(--service-warning) 12%, white));
    box-shadow: 0 14px 30px rgba(245, 158, 11, .14);
}

.service-detail-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--service-accent) 20%, transparent);
    border-radius: 34px;
    padding: 28px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 28px 80px rgba(15, 35, 63, .12);
    backdrop-filter: blur(18px);
}

.service-detail-panel::before {
    content: '';
    position: absolute;
    inset: -30% -30% auto auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--service-accent) 13%, transparent);
}

.service-detail-icon {
    position: relative;
    width: 102px;
    height: 102px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
    font-size: 2.7rem;
    background: linear-gradient(135deg, var(--service-accent), var(--service-deep));
    box-shadow: 0 22px 44px color-mix(in srgb, var(--service-accent) 32%, transparent);
}

.service-fact {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, .22);
}

.service-fact span {
    color: var(--service-muted);
    font-size: .88rem;
    font-weight: 800;
}

.service-fact strong {
    color: var(--service-ink);
    font-size: 1.05rem;
    line-height: 1.55;
}

.service-detail-content {
    padding: 82px 0 44px;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.service-detail-main,
.service-detail-sidebar {
    display: grid;
    gap: 24px;
}

.service-story-card,
.service-side-card,
.service-alert-card {
    border: 1px solid rgba(14, 116, 144, .12);
    border-radius: 28px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 22px 54px rgba(15, 35, 63, .08);
}

.service-story-card {
    padding: clamp(26px, 4vw, 42px);
}

.service-section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--service-deep);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .1em;
}

.service-story-card h2,
.service-side-card h3,
.service-alert-card h3,
.service-cta-card h2 {
    color: var(--service-ink);
    font-weight: 950;
    letter-spacing: -.035em;
}

.service-story-card h2 {
    margin-bottom: 16px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.service-story-card p {
    color: #4f6479;
    line-height: 1.9;
    font-size: 1.03rem;
}

.service-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.service-check-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--service-success) 9%, white), #fff);
    border: 1px solid rgba(16, 185, 129, .13);
    color: #334155;
    font-weight: 760;
    line-height: 1.65;
}

.service-check-item i {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--service-success), var(--service-success-deep));
    box-shadow: 0 10px 20px rgba(16, 185, 129, .22);
    font-size: .8rem;
}

.service-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.service-step-list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 20px;
    background: #fff;
}

.service-step-list span {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--service-step), var(--service-step-deep));
    box-shadow: 0 12px 24px rgba(99, 102, 241, .24);
    font-weight: 950;
}

.service-step-list p {
    margin: 0;
}

.service-detail-sidebar {
    position: sticky;
    top: 112px;
}

.service-side-card,
.service-alert-card {
    padding: 24px;
}

.service-side-card h3,
.service-alert-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.service-side-card h3 i,
.service-alert-card h3 i {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    flex: 0 0 38px;
}

.service-detail-sidebar > .service-side-card:first-child {
    border-color: rgba(2, 132, 199, .18);
    background: linear-gradient(135deg, #fff, rgba(224, 242, 254, .56));
}

.service-detail-sidebar > .service-side-card:first-child h3 i {
    color: var(--service-info-deep);
    background: rgba(14, 165, 233, .13);
}

.service-side-card ul {
    margin: 0;
    padding-left: 20px;
    color: #4f6479;
    line-height: 1.85;
}

.service-alert-card {
    border-color: rgba(239, 68, 68, .2);
    background:
        radial-gradient(circle at 100% 0%, rgba(239, 68, 68, .08), transparent 28%),
        linear-gradient(135deg, #fff, #fff7ed);
}

.service-alert-card h3 i {
    color: var(--service-danger-deep);
    background: rgba(239, 68, 68, .12);
}

.service-alert-card p {
    margin: 0;
    color: #4f6479;
    line-height: 1.8;
}

.service-related-card {
    display: grid;
    gap: 10px;
}

.service-related-card h3 i {
    color: var(--service-step-deep);
    background: rgba(99, 102, 241, .12);
}

.service-related-card a {
    --related-accent: #0d8fd0;
    --related-deep: #0369a1;
    --related-soft: #e0f2fe;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    color: #334155;
    text-decoration: none;
    font-weight: 850;
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--related-soft) 56%, white));
    border: 1px solid color-mix(in srgb, var(--related-accent) 13%, transparent);
    transition: transform .24s ease, background .24s ease, color .24s ease, box-shadow .24s ease;
}

.service-related-card a:hover {
    transform: translateX(4px);
    color: var(--related-deep);
    box-shadow: 0 12px 26px color-mix(in srgb, var(--related-accent) 16%, transparent);
}

.service-related-card a i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    color: var(--related-deep);
    background: color-mix(in srgb, var(--related-accent) 14%, white);
    flex: 0 0 34px;
}

.service-related-card a.related-theme-blue { --related-accent: #0d8fd0; --related-deep: #0369a1; --related-soft: #e0f2fe; }
.service-related-card a.related-theme-teal { --related-accent: #0fafa8; --related-deep: #0f766e; --related-soft: #dffcf7; }
.service-related-card a.related-theme-red { --related-accent: #ef4444; --related-deep: #b91c1c; --related-soft: #fee2e2; }
.service-related-card a.related-theme-pink { --related-accent: #df3cda; --related-deep: #a21caf; --related-soft: #fde7fb; }
.service-related-card a.related-theme-orange { --related-accent: #f59e0b; --related-deep: #c65f00; --related-soft: #fff4df; }
.service-related-card a.related-theme-aqua { --related-accent: #0fb7c6; --related-deep: #087d8a; --related-soft: #dbfbff; }
.service-related-card a.related-theme-indigo { --related-accent: #6366f1; --related-deep: #4338ca; --related-soft: #e0e7ff; }
.service-related-card a.related-theme-sky { --related-accent: #0284c7; --related-deep: #075985; --related-soft: #dbeafe; }
.service-related-card a.related-theme-rose { --related-accent: #f43f5e; --related-deep: #be123c; --related-soft: #ffe4e6; }
.service-related-card a.related-theme-emerald { --related-accent: #10b981; --related-deep: #047857; --related-soft: #d1fae5; }
.service-related-card a.related-theme-violet { --related-accent: #8b5cf6; --related-deep: #6d28d9; --related-soft: #ede9fe; }
.service-related-card a.related-theme-lime { --related-accent: #65a30d; --related-deep: #3f6212; --related-soft: #ecfccb; }

.service-detail-cta {
    padding: 44px 0 88px;
}

.service-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 32px;
    padding: clamp(24px, 4vw, 42px);
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .2), transparent 26%),
        linear-gradient(135deg, var(--service-deep), var(--service-accent));
    box-shadow: 0 28px 70px color-mix(in srgb, var(--service-accent) 28%, transparent);
}

.service-cta-card span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .78);
    font-weight: 850;
}

.service-cta-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.service-cta-card .btn-primary {
    color: var(--service-deep);
    background: #fff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .14);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .service-detail-hero-grid,
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .service-card-action {
        opacity: 1;
        transform: none;
    }

    .service-detail-hero {
        min-height: auto;
        padding: 124px 0 58px;
    }

    .service-detail-panel,
    .service-story-card,
    .service-side-card,
    .service-alert-card,
    .service-cta-card {
        border-radius: 22px;
    }

    .service-check-grid {
        grid-template-columns: 1fr;
    }

    .service-step-list li {
        grid-template-columns: 46px 1fr;
        padding: 14px;
    }

    .service-step-list span {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .service-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-detail-orb,
    .reveal-on-scroll {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* ============================================
   News Grid - Modern Cards
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.news-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-date i {
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.5;
    flex: 1;
    color: var(--text-dark);
}

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

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

/* Homepage news controlled from CMS */
.home-news-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 8%, rgba(15, 159, 131, .08), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(244, 184, 74, .10), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f4faf9 100%);
}

.home-news-section::before {
    content: '';
    position: absolute;
    inset: 56px auto auto clamp(20px, 8vw, 128px);
    width: 120px;
    height: 120px;
    border-radius: 999px;
    border: 20px solid rgba(14, 165, 233, .07);
    pointer-events: none;
}

.home-news-header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto 14px;
    padding: 9px 18px;
    border: 1px solid rgba(15, 159, 131, .20);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: #0f766e;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 14px 32px rgba(15, 159, 131, .09);
}

.home-news-header h2 {
    display: block;
    width: 100%;
}

.home-news-grid {
    position: relative;
    z-index: 1;
}

.home-news-card {
    border: 1px solid rgba(15, 159, 131, .14);
    box-shadow: 0 18px 42px rgba(15, 35, 63, .08);
    animation: homeNewsIn .72s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

.home-news-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--home-news-accent, #0f9f83), color-mix(in srgb, var(--home-news-accent, #0f9f83) 60%, #0ea5e9));
}

.home-news-card:hover {
    border-color: color-mix(in srgb, var(--home-news-accent, #0f9f83) 35%, #dbeafe);
    box-shadow: 0 24px 58px rgba(15, 35, 63, .12);
}

.home-news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.home-news-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--home-news-accent, #0f9f83), color-mix(in srgb, var(--home-news-accent, #0f9f83) 68%, #0f172a));
    color: #fff;
    box-shadow: 0 16px 30px color-mix(in srgb, var(--home-news-accent, #0f9f83) 24%, transparent);
}

.home-news-meta strong,
.home-news-meta small {
    display: block;
}

.home-news-meta strong {
    color: #123047;
    font-size: .92rem;
    font-weight: 900;
}

.home-news-meta small {
    margin-top: 4px;
    color: #668095;
    font-size: .82rem;
    font-weight: 750;
}

.home-news-excerpt {
    margin: -6px 0 18px;
    color: #66788a;
    font-size: .94rem;
    line-height: 1.75;
}

.home-news-more {
    position: relative;
    z-index: 1;
    margin-top: 36px;
    text-align: center;
}

.home-news-empty {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
    padding: 38px 26px;
    border: 1px dashed rgba(15, 159, 131, .35);
    border-radius: 24px;
    background: #ffffffc9;
    color: #426174;
    text-align: center;
}

.home-news-empty i {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #e8f6f2;
    color: #0f9f83;
    font-size: 1.35rem;
}

/* Contact map - no API key dependency */
.contact-map-section {
    position: relative;
    padding: 88px 0;
    background:
        radial-gradient(circle at 8% 14%, rgba(15, 159, 131, .10), transparent 28%),
        radial-gradient(circle at 92% 28%, rgba(244, 184, 74, .12), transparent 25%),
        linear-gradient(180deg, #f4fbfd 0%, #eef8f5 100%);
    overflow: hidden;
}

.contact-map-card {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
    gap: 24px;
    align-items: stretch;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(15, 159, 131, .18);
    border-radius: 32px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 28px 80px rgba(15, 35, 63, .12);
    backdrop-filter: blur(10px);
}

.contact-map-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 3vw, 34px);
}

.contact-map-copy span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #e7f8f4;
    color: #0f766e;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-map-copy h2 {
    margin-bottom: 12px;
    color: #0f3258;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.045em;
}

.contact-map-copy p {
    max-width: 440px;
    color: #5f7890;
    font-size: 1.05rem;
}

.contact-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.contact-map-frame {
    min-height: 430px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 159, 131, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
    background: #dbeafe;
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
    border: 0;
}

@keyframes homeNewsIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   Gallery - Modern Grid with Hover Effects
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    filter: brightness(0.95);
}

.gallery-img:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    filter: brightness(1.05);
    z-index: 10;
}

/* Home gallery - premium module cards */
.home-gallery-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #f7fbfd 0%, #eef6f8 100%);
}

.home-gallery-section::before {
    content: '';
    position: absolute;
    inset: 42px auto auto clamp(20px, 7vw, 110px);
    width: 128px;
    height: 128px;
    border-radius: 999px;
    border: 22px solid rgba(15, 159, 131, .08);
    pointer-events: none;
}

.home-gallery-section::after {
    content: '';
    position: absolute;
    inset: auto clamp(18px, 7vw, 120px) 48px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(242, 184, 75, .16), transparent 68%);
    pointer-events: none;
}

.home-gallery-section .container {
    position: relative;
    z-index: 1;
}

.home-gallery-section .gallery-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 780px;
    margin: 0 auto clamp(30px, 4vw, 48px);
}

.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 9px 15px;
    border: 1px solid rgba(15, 159, 131, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #0f7c72;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(15, 159, 131, .1);
}

.home-gallery-section .gallery-header h2 {
    display: block;
    margin-top: 0;
}

.home-gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(16px, 2vw, 24px);
    align-items: stretch;
}

.home-gallery-section .gallery-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    padding: 10px;
    border: 1px solid rgba(15, 159, 131, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .96);
    cursor: zoom-in;
    text-align: left;
    box-shadow: 0 22px 54px rgba(15, 35, 63, .1);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-gallery-section .gallery-card:hover {
    transform: translateY(-7px);
    border-color: rgba(15, 159, 131, .32);
    box-shadow: 0 28px 70px rgba(15, 35, 63, .16);
}

.home-gallery-section .gallery-card-feature {
    grid-row: auto;
    min-height: 100%;
}

.gallery-media-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background: linear-gradient(135deg, #dbecef, #eaf8f6);
}

.home-gallery-section .gallery-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: inherit;
    object-fit: cover;
    box-shadow: none;
    filter: saturate(1.02) contrast(1.02);
    transform: scale(1.001);
    transition: transform .45s ease, filter .45s ease;
}

.home-gallery-section .gallery-card > .gallery-img {
    height: auto;
    aspect-ratio: 4 / 3;
}

.home-gallery-section .gallery-card:hover .gallery-img {
    transform: scale(1.055);
    filter: saturate(1.12) contrast(1.03) brightness(1.04);
    box-shadow: none;
}

.gallery-video-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #0f8f83;
    box-shadow: 0 18px 36px rgba(15, 35, 63, .2);
    transform: translate(-50%, -50%);
}

.gallery-card-content {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 16px 8px 6px;
    color: #10233f;
    text-align: left;
    pointer-events: none;
}

.gallery-card-label {
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(15, 159, 131, .16);
    border-radius: 999px;
    background: rgba(15, 159, 131, .08);
    color: #0f7c72;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gallery-card-content strong {
    color: #10233f;
    font-size: clamp(1rem, 1.35vw, 1.22rem);
    font-weight: 950;
    line-height: 1.28;
}

.gallery-card-content small {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-card-no-text .gallery-media-frame {
    aspect-ratio: 16 / 10;
}

@media (max-width: 575px) {
    .home-gallery-section .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Organization Chart - Modern Clean Design
   ============================================ */
.org-chart {
    background: #eceff2;
    padding: 58px 42px 52px;
    border-radius: 22px;
    border: 1px solid #dce4ec;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    text-align: center;
}

#structure.section {
    padding: 92px 0 98px;
    background: #cfe0ec;
}

#structure.section::before,
#structure.section::after {
    display: none;
}

#structure .section-header {
    margin-bottom: 52px;
}

#structure .section-header h2 {
    font-size: clamp(2.15rem, 3.1vw, 3.25rem);
    background: none;
    -webkit-text-fill-color: #0f3258;
    color: #0f3258;
}

#structure .section-header h2::after {
    width: 58px;
    height: 4px;
    background: #1ab6ea;
    animation: none;
}

#structure .section-header p {
    color: #6d8295;
    font-size: 1.12rem;
    max-width: 700px;
    padding-top: 16px;
}

.org-director {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.org-director-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1299e8, #0d6fb8);
    color: white;
    padding: 15px 38px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.08rem;
    box-shadow: 0 12px 24px rgba(14, 116, 184, 0.32);
}

.org-director-box i {
    font-size: 1.06rem;
}

.org-director-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.org-director-avatar i {
    color: #fff;
    font-size: 0.95rem;
}

.org-director-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.org-director-avatar.has-photo img {
    display: block;
}

.org-director-avatar.has-photo i {
    display: none;
}

.org-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-vertical-line {
    width: 2px;
    height: 40px;
    background: var(--border-color);
}

.org-horizontal-line {
    display: none;
}

.org-departments {
    display: flex;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 16px;
    position: relative;
}

/* Horizontal line - calc to match flex:1 items with gap:16px (4 gaps = 64px) 
   First item center = (container - total_gaps) / 10 */
.org-departments::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc((100% - var(--org-gap-px, 64px)) / (var(--org-unit-count, 5) * 2));
    right: calc((100% - var(--org-gap-px, 64px)) / (var(--org-unit-count, 5) * 2));
    height: 2px;
    background: var(--border-color);
}



.org-dept {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Vertical connector line using pseudo-element - always centered on each dept */
.org-dept::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 25px;
    background: var(--border-color);
}

.org-dept-line {
    display: none;
}

.org-dept-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 20px 15px;
    border-radius: 14px;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

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

.org-dept-box i {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 12px;
}

.org-dept-title {
    color: var(--text-main);
    line-height: 1.4;
}

.org-child-nodes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.org-child-node {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.2;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.org-child-node-more {
    color: #0369a1;
    background: #e0f2fe;
    border-color: #bae6fd;
    font-weight: 600;
}

.org-connector-hidden {
    display: none;
}

.org-departments-multi {
    flex-wrap: wrap;
    max-width: 1080px;
    justify-content: center;
}

.org-departments-multi::before {
    display: none;
}

.org-departments-multi .org-dept {
    flex: 0 1 calc(20% - 16px);
    min-width: 160px;
    max-width: 210px;
}

.org-departments-multi .org-dept::before {
    display: none;
}

.org-departments-multi .org-dept-box {
    margin-top: 0;
    min-height: 140px;
    justify-content: flex-start;
}

.org-functional-chart {
    margin-top: 12px;
    position: relative;
    overflow-x: auto;
    padding-bottom: 0;
}

.org-functional-chart.has-director {
    padding-top: 32px;
}

.org-functional-chart.has-director::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: #cfd8e1;
}

.org-functional-chart.compact-root {
    overflow-x: visible;
}

.org-functional-chart.compact-root .org-branch-root {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
    gap: 14px 12px;
    width: 100%;
    min-width: 0;
    padding-top: 18px;
    border-top: 2px solid #d0d8e1;
}

.org-functional-chart.compact-root .org-branch-root::before,
.org-functional-chart.compact-root .org-branch-root>.org-branch-item::before,
.org-functional-chart.compact-root .org-branch-root>.org-branch-item::after {
    display: none !important;
}

.org-functional-chart.compact-root .org-branch-root>.org-branch-item {
    padding: 0;
}

.org-functional-chart.compact-root .org-branch-root>.org-branch-item>.org-person-card,
.org-functional-chart.compact-root .org-branch-root>.org-branch-item>.org-branch-list>.org-branch-item>.org-person-card {
    width: 100%;
    max-width: 100%;
}

.org-functional-chart.compact-root .org-branch-root>.org-branch-item>.org-branch-list {
    display: block;
    width: 100%;
    min-width: 0;
    margin-left: 12px;
    padding-top: 10px;
    padding-left: 10px;
    border-left: 2px solid #d0d8e1;
}

.org-functional-chart.compact-root .org-branch-root>.org-branch-item>.org-branch-list::before,
.org-functional-chart.compact-root .org-branch-root>.org-branch-item>.org-branch-list>.org-branch-item::before,
.org-functional-chart.compact-root .org-branch-root>.org-branch-item>.org-branch-list>.org-branch-item::after {
    display: none;
}

.org-functional-chart.compact-root .org-branch-root>.org-branch-item>.org-branch-list>.org-branch-item {
    padding: 10px 0 0;
}

.org-branch-list {
    list-style: none;
    margin: 0;
    padding: 32px 0 0;
    display: flex;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    position: relative;
}

.org-branch-root {
    padding-top: 12px;
}

.org-branch-item {
    list-style: none;
    position: relative;
    text-align: center;
    padding: 32px 8px 0;
}

.org-branch-item::before,
.org-branch-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 24px;
    border-top: 2px solid #c9d7e4;
}

.org-branch-item::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #d0d8e1;
}

.org-branch-item:only-child::before,
.org-branch-item:only-child::after {
    display: none;
}

.org-branch-item:only-child {
    padding-top: 0;
}

.org-branch-item:first-child::before,
.org-branch-item:last-child::after {
    border: 0 none;
}

.org-branch-item:last-child::before {
    border-right: 2px solid #d0d8e1;
    border-radius: 0 10px 0 0;
}

.org-branch-item:first-child::after {
    border-radius: 10px 0 0 0;
}

.org-branch-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 32px;
    border-left: 2px solid #d0d8e1;
}

.org-branch-root::before,
.org-branch-root>.org-branch-item::before,
.org-branch-root>.org-branch-item::after {
    display: none;
}

.org-functional-chart.has-director .org-branch-root::before,
.org-functional-chart.has-director .org-branch-root>.org-branch-item::before,
.org-functional-chart.has-director .org-branch-root>.org-branch-item::after {
    display: block;
}

.org-person-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 162px;
    max-width: 162px;
    min-height: 114px;
    border-radius: 14px;
    padding: 16px 12px 14px;
    border: 1px solid #d3deea;
    background: #f4f6f8;
    color: #20324a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.org-person-card.theme-lead {
    --node-accent-fallback: #3b82f6;
}

.org-person-card.theme-manager {
    --node-accent-fallback: #ef476f;
}

.org-person-card.theme-team {
    --node-accent-fallback: #14b8a6;
}

.org-person-card.theme-staff {
    --node-accent-fallback: #06b6d4;
}

.org-person-card.theme-support {
    --node-accent-fallback: #f59e0b;
}

.org-person-card.style-default {
    background: #f4f6f8;
    border-color: #d3deea;
}

.org-person-card.style-solid {
    background: color-mix(in srgb, var(--node-accent, var(--node-accent-fallback, #3b82f6)) 16%, #ffffff);
    border-color: color-mix(in srgb, var(--node-accent, var(--node-accent-fallback, #3b82f6)) 42%, #ffffff);
    box-shadow: 0 7px 18px color-mix(in srgb, var(--node-accent, var(--node-accent-fallback, #3b82f6)) 24%, transparent);
}

.org-person-card.style-outline {
    background: #ffffff;
    border-width: 2px;
    border-color: color-mix(in srgb, var(--node-accent, var(--node-accent-fallback, #3b82f6)) 55%, #ffffff);
}

.org-person-card.style-minimal {
    background: #ffffff;
    border-color: #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
}

.org-person-card.style-minimal:hover {
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.org-person-card.style-gradient {
    background: linear-gradient(
        150deg,
        color-mix(in srgb, var(--node-accent, var(--node-accent-fallback, #3b82f6)) 13%, #ffffff),
        #ffffff 65%
    );
    border-color: color-mix(in srgb, var(--node-accent, var(--node-accent-fallback, #3b82f6)) 32%, #ffffff);
}

.org-person-card.is-unit {
    border-top: 1px solid #d3deea;
}

.org-person-card.is-person {
    border-top: 2px solid color-mix(in srgb, var(--node-accent, var(--node-accent-fallback, #3b82f6)), white 35%);
}

.org-person-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #e9edf2;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.org-person-icon.has-photo {
    border-radius: 999px;
    background: #d6e2ef;
}

.org-person-icon .org-person-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.org-person-icon.has-photo .org-person-photo {
    display: block;
}

.org-person-icon.has-photo i {
    display: none;
}

.org-person-icon i {
    color: var(--node-accent, var(--node-accent-fallback, #3b82f6));
    font-size: 1.3rem;
}

.org-person-copy {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.org-person-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    font-size: 0.98rem;
    font-weight: 600;
}

.org-person-role {
    display: none;
    margin-top: 3px;
    font-size: 0.74rem;
    line-height: 1.2;
    color: #6b7f96;
}

.org-person-card.is-person .org-person-role {
    display: block;
}

.org-chart-loading,
.org-chart-empty,
.org-chart-error {
    min-height: 188px;
    border-radius: 16px;
    border: 1px dashed #c6d3df;
    background: #f5f7fa;
    color: #4e6579;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.98rem;
    font-weight: 500;
    padding: 26px 20px;
}

.org-chart-empty i,
.org-chart-error i {
    color: #8aa2b7;
}

.org-chart-loading i {
    color: #1299e8;
}

.org-chart-error {
    border-color: #f2c3c3;
    background: #fff4f4;
    color: #985252;
}

.org-chart-error i {
    color: #d66a6a;
}



/* ============================================
   Footer - Premium Modern Design
   ============================================ */
footer {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0f2340 100%);
    color: var(--white);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9, #14b8a6, #f59e0b, #0ea5e9);
    background-size: 300% 100%;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

footer::after {
    content: '';
    position: absolute;
    top: 60px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr) 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 60px;
    height: auto;
    filter: brightness(1.1);
}

.footer-logo-text {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 4px 0;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(8px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

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

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    transform: translateY(-5px);
}

/* Facebook - Blue */
.footer-social a[title="Facebook"]:hover {
    background: linear-gradient(135deg, #1877f2, #166fe5);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

/* LINE - Green */
.footer-social a[title="Line"]:hover {
    background: linear-gradient(135deg, #00c300, #00b900);
    box-shadow: 0 8px 25px rgba(0, 195, 0, 0.4);
}

/* YouTube - Red */
.footer-social a[title="YouTube"]:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    text-align: left;
    color: #64748b;
    font-size: 0.9rem;
    padding: 0;
    border: none;
}

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

.footer-bottom-links a {
    color: #64748b;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .director-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .director-card::before {
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
    }

    .director-img {
        width: 100%;
        max-width: 350px;
        height: auto;
    }

    .quote-box {
        border-left: none;
        border-top: 4px solid var(--accent-teal);
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        align-items: stretch;
        max-height: 80vh;
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        gap: 14px;
        border-radius: 0;
        text-align: left;
    }

    .nav-icon {
        font-size: 1.2rem;
        width: 28px;
        text-align: center;
    }

    .nav-text {
        align-items: flex-start;
    }

    .nav-text small {
        font-size: 0.7rem;
    }

    .dropdown-arrow {
        margin-left: auto;
        margin-top: 0;
        font-size: 1rem;
        transition: transform 0.3s ease;
        /* Make arrow touch-friendly with larger tap area */
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
        border-radius: 12px;
        color: #0ea5e9;
        -webkit-text-fill-color: #0ea5e9;
        flex-shrink: 0;
        border: 1px solid rgba(14, 165, 233, 0.2);
    }

    .dropdown-arrow:active {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(20, 184, 166, 0.25) 100%);
        transform: scale(0.95);
    }

    .nav-item.active .dropdown-arrow {
        transform: rotate(180deg);
        background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
        color: white;
        -webkit-text-fill-color: white;
        border-color: transparent;
    }


    .dropdown {
        position: static !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        border: none;
        padding: 8px 16px;
        display: none;
        min-width: auto !important;
        margin-top: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
        border-left: none;
        border-image: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.3s ease,
            opacity 0.3s ease;
        margin: 0 12px;
        left: auto !important;
        top: auto !important;
        width: calc(100% - 24px) !important;
    }

    .dropdown::before {
        display: none !important;
    }

    .dropdown::after {
        display: none !important;
    }

    .nav-item.active .dropdown {
        display: block;
        max-height: 600px;
        padding: 12px 16px;
        transform: none !important;
        left: auto !important;
        position: static !important;
    }

    /* Disable hover dropdown on mobile - only show on click */
    .nav-item:hover .dropdown {
        display: none;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
    }

    .nav-item.active:hover .dropdown {
        display: block;
        max-height: 600px;
        opacity: 1;
        visibility: visible;
    }




    .dropdown li {
        margin-bottom: 4px;
        opacity: 0;
        transform: translateX(-10px);
        animation: none;
    }

    .nav-item.active .dropdown li {
        opacity: 1;
        transform: translateX(0);
        animation: mobileDropdownIn 0.3s ease forwards;
    }

    .nav-item.active .dropdown li:nth-child(1) {
        animation-delay: 0.05s;
    }

    .nav-item.active .dropdown li:nth-child(2) {
        animation-delay: 0.08s;
    }

    .nav-item.active .dropdown li:nth-child(3) {
        animation-delay: 0.11s;
    }

    .nav-item.active .dropdown li:nth-child(4) {
        animation-delay: 0.14s;
    }

    .nav-item.active .dropdown li:nth-child(5) {
        animation-delay: 0.17s;
    }

    .nav-item.active .dropdown li:nth-child(6) {
        animation-delay: 0.20s;
    }

    .nav-item.active .dropdown li:nth-child(7) {
        animation-delay: 0.23s;
    }

    .nav-item.active .dropdown li:nth-child(8) {
        animation-delay: 0.26s;
    }

    .nav-item.active .dropdown li:nth-child(n+9) {
        animation-delay: 0.29s;
    }

    @keyframes mobileDropdownIn {
        from {
            opacity: 0;
            transform: translateX(-10px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .dropdown li a {
        padding: 14px 16px;
        font-size: 0.9rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.7);
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 14px;
        transition: all 0.25s ease;
        border: 1px solid rgba(226, 232, 240, 0.5);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .dropdown li a:hover,
    .dropdown li a:active {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(20, 184, 166, 0.15) 100%);
        border-color: rgba(14, 165, 233, 0.4);
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    }


    .dropdown li a i {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-size: 0.95rem;
        flex-shrink: 0;
        transition: all 0.25s ease;
    }

    /* Colorful icons for each dropdown item */
    .dropdown li:nth-child(1) a i {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
        color: #0ea5e9;
    }

    .dropdown li:nth-child(2) a i {
        background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(20, 184, 166, 0.05));
        color: #14b8a6;
    }

    .dropdown li:nth-child(3) a i {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
        color: #10b981;
    }

    .dropdown li:nth-child(4) a i {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
        color: #f59e0b;
    }

    .dropdown li:nth-child(5) a i {
        background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
        color: #f43f5e;
    }

    .dropdown li:nth-child(6) a i {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
        color: #8b5cf6;
    }

    .dropdown li:nth-child(7) a i {
        background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
        color: #ec4899;
    }

    .dropdown li:nth-child(n+8) a i {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
        color: #3b82f6;
    }

    .dropdown li a:hover i,
    .dropdown li a:active i {
        transform: scale(1.1);
    }


    .header-cta {
        margin-top: 20px;
        text-align: center;
        justify-content: center;
    }

    .hamburger {
        display: block;
    }

    .hero {
        height: 550px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.6) 50%, rgba(10, 22, 40, 0.3) 100%);
    }

    .hero-content {
        text-align: center;
        padding: 0 24px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 1200px) {
    .nav-text small {
        display: none;
    }

    .nav-link {
        padding: 10px 10px;
    }

    .nav-links {
        gap: 2px;
    }
}

@media (max-width: 992px) {
    .header-cta {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Animations & Effects
   ============================================ */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text Helper */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   📱 Enhanced Responsive Design - All Breakpoints
   ============================================ */

/* Extra Large Screens - 1400px and up */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Tablets & Small Laptops - 992px to 1199px */
@media (max-width: 1199px) and (min-width: 992px) {
    header {
        height: 100px;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.72rem;
        padding: 10px 8px;
    }

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

/* Tablets - 768px to 991px */
@media (max-width: 991px) and (min-width: 768px) {
    header {
        height: 90px;
    }

    .hamburger {
        display: block !important;
    }

    .nav-menu {
        display: none;
    }

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

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Mobile - 576px to 767px */
@media (max-width: 767px) and (min-width: 576px) {
    header {
        height: 80px;
    }

    .hamburger {
        display: block !important;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .logo img {
        height: 40px;
    }

    .logo-title {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.65rem;
    }

    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        margin-top: 20px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Small Mobile - below 576px */
@media (max-width: 575px) {
    header {
        height: 70px;
        padding: 0;
    }

    .header-container {
        padding: 0 10px;
    }

    .logo {
        padding: 8px 10px;
        gap: 10px;
    }

    .logo img {
        height: 36px;
    }

    .logo-title {
        font-size: 0.9rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
        display: none;
    }

    .logo-img-container::before,
    .logo-img-container::after {
        display: none;
    }

    .hamburger {
        font-size: 1.3rem;
        padding: 10px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        height: 450px;
        min-height: 400px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .hero-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-item {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* History Timeline Mobile - Single Column Layout */
    .history-timeline {
        padding-left: 30px !important;
        max-width: 100% !important;
    }

    /* Hide center timeline line on mobile */
    .history-timeline>div[style*="position: absolute"][style*="left: 50%"] {
        left: 12px !important;
        transform: translateX(0) !important;
        width: 3px !important;
    }

    /* Convert all timeline items to full width */
    .history-timeline>div[style*="margin-bottom: 40px"] {
        display: block !important;
        justify-content: flex-start !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 24px !important;
    }

    /* Make all cards full width */
    .history-timeline>div[style*="margin-bottom: 40px"]>div[style*="width: 90%"] {
        width: 100% !important;
        margin-left: 25px !important;
        margin-right: 0 !important;
        padding: 20px !important;
        border-radius: 14px !important;
        border-left: 4px solid var(--primary-color) !important;
        border-right: none !important;
    }

    /* Move timeline dots to left side */
    .history-timeline>div[style*="margin-bottom: 40px"]>div>div[style*="border-radius: 50%"] {
        left: -35px !important;
        right: auto !important;
        width: 16px !important;
        height: 16px !important;
        border-width: 3px !important;
    }

    /* Timeline item text */
    .history-timeline h3 {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .history-timeline p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .history-timeline span[style*="border-radius: 20px"] {
        font-size: 0.8rem !important;
        padding: 3px 10px !important;
    }

    #structure.section {
        padding: 70px 0 78px;
    }

    #structure .section-header {
        margin-bottom: 34px;
    }

    #structure .section-header h2 {
        font-size: 2rem;
    }

    #structure .section-header p {
        font-size: 0.98rem;
        max-width: 340px;
        padding-top: 14px;
    }

    /* Organization Chart Mobile - Clean Vertical Layout */
    .org-chart {
        padding: 26px 16px 24px;
        border-radius: 18px;
    }

    .org-director {
        margin-bottom: 20px;
    }

    .org-director-box {
        padding: 14px 22px;
        font-size: 0.96rem;
        gap: 10px;
        width: 100%;
        min-height: 52px;
        justify-content: center;
    }

    .org-director-box i {
        font-size: 1rem;
    }

    .org-director-avatar {
        width: 28px;
        height: 28px;
    }

    /* Hide ALL connector lines on mobile */
    .org-connector {
        display: none !important;
    }

    .org-departments::before {
        display: none !important;
    }

    .org-dept::before {
        display: none !important;
    }

    .org-departments {
        flex-direction: column;
        gap: 12px;
    }

    .org-dept {
        flex-direction: row;
    }

    .org-dept-line {
        display: none !important;
    }

    .org-dept-box {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 16px 20px;
        gap: 16px;
        text-align: left;
        border-left: 4px solid var(--primary-color);
        margin-top: 0;
        background: white;
        align-items: flex-start;
    }

    .org-dept-box i {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;

        flex-shrink: 0;
    }

    .org-dept-title {
        flex: 1;
        min-width: 0;
        margin-top: 10px;
    }

    .org-child-nodes {
        flex-basis: 100%;
        justify-content: flex-start;
        margin-top: -4px;
        padding-left: 60px;
    }

    .org-functional-chart {
        overflow: visible;
        margin-top: 12px;
    }

    .org-functional-chart.has-director {
        padding-top: 20px;
    }

    .org-functional-chart.has-director::before {
        height: 18px;
    }

    .org-branch-list,
    .org-branch-root {
        display: block;
        width: 100%;
        min-width: 0;
        padding-top: 10px;
    }

    .org-branch-list::before,
    .org-branch-item::before,
    .org-branch-item::after {
        display: none !important;
    }

    .org-branch-item {
        padding: 10px 0 0;
    }

    .org-branch-item>.org-branch-list {
        margin-top: 8px;
        margin-left: 12px;
        padding-left: 12px;
        border-left: 2px solid #d0d8e1;
    }

    .org-person-card {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-height: 56px;
        padding: 10px 12px;
    }

    .org-person-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .org-person-icon.has-photo {
        border-radius: 50%;
    }

    .org-person-icon i {
        font-size: 1rem;
    }

    .org-person-copy {
        align-items: flex-start;
        text-align: left;
    }

    .org-person-name {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .org-person-role,
    .org-person-card.is-person .org-person-role {
        display: block;
    }

    .org-chart-loading,
    .org-chart-empty,
    .org-chart-error {
        min-height: 140px;
        font-size: 0.9rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }



    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card {
        border-radius: 12px;
    }

    .news-body {
        padding: 20px;
    }

    .news-title {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gallery-img {
        border-radius: 8px;
    }

    /* Director Section Mobile */
    .director-section {
        padding: 40px 0;
    }

    .director-photo {
        width: 180px;
        height: 180px;
    }

    .director-name {
        font-size: 1.3rem;
    }

    .director-position {
        font-size: 0.85rem;
    }

    .director-message p {
        font-size: 0.9rem;
    }

    .director-vision-box {
        padding: 16px;
        gap: 12px;
    }

    /* Footer Mobile - Enhanced */
    footer {
        padding: 50px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-col {
        padding: 0 20px;
    }

    .footer-col p {
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
        position: relative;
        display: inline-block;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Services/Links Section */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin-bottom: 10px;
        width: 100%;
        max-width: 280px;
    }

    .footer-links a {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        transition: all 0.3s ease;
        text-align: left;
    }

    .footer-links a:hover {
        background: rgba(14, 165, 233, 0.15);
        padding-left: 20px;
    }

    /* Social Icons */
    .footer-social {
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Contact Info - Left aligned in centered container */
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact li {
        font-size: 0.9rem;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        max-width: 300px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
        margin-bottom: 8px;
        gap: 12px;
    }

    .footer-contact li i {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(20, 184, 166, 0.2));
        border-radius: 10px;
        font-size: 0.9rem;
    }

    /* Footer Bottom */
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 16px;
        margin-top: 20px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .footer-bottom-links a {
        font-size: 0.85rem;
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .footer-bottom-links a:hover {
        background: rgba(14, 165, 233, 0.15);
    }

    /* Extra padding at bottom for floating buttons */
    footer {
        padding-bottom: 80px;
    }


    /* Nav Menu Mobile */
    .nav-menu {
        top: 70px;
        padding: 15px;
    }

    .nav-link {
        padding: 12px 16px;
    }

    .dropdown {
        padding: 8px 12px;
        margin: 0 8px;
    }


    .dropdown li a {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .dropdown li a i {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* Very Small Mobile - below 375px */
@media (max-width: 374px) {
    .logo-title {
        font-size: 0.8rem;
    }

    .logo img {
        height: 30px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .feature-item {
        padding: 20px 16px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        transform: none;
        box-shadow: none;
    }

    .feature-item:hover {
        transform: none;
    }

    .news-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .logo:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .hamburger,
    .nav-menu {
        display: none !important;
    }

    .container {
        max-width: 100%;
    }

    .hero {
        height: auto;
        padding: 20px;
    }

    .section {
        padding: 20px 0;
    }
}

/* ============================================
   Patient Steps Page - Mobile Responsive
   ============================================ */
@media (max-width: 768px) {

    /* Hide the vertical timeline line on mobile */
    .steps-timeline::before {
        display: none !important;
    }

    .steps-timeline {
        padding: 0 16px !important;
    }

    /* Stack all step items vertically */
    .step-item,
    .step-item:nth-child(odd),
    .step-item:nth-child(even) {
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 24px !important;
    }

    /* Step content takes full width */
    .step-content,
    .step-item:nth-child(odd) .step-content,
    .step-item:nth-child(even) .step-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 24px 20px !important;
        padding-top: 50px !important;
        position: relative !important;
    }

    /* Step number positioned at top center of card */
    .steps-timeline .step-number {
        position: absolute !important;
        top: -25px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }

    .steps-timeline .step-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
    }

    .step-content h3 {
        font-size: 1.2rem !important;
    }

    .step-content p {
        font-size: 0.95rem !important;
    }

    .step-time {
        font-size: 0.85rem !important;
        padding: 6px 12px !important;
    }
}

/* ============================================
   Service Schedule Page - Mobile Responsive
   ไม่ต้องเลื่อน วันมีสีต่างกัน
   ============================================ */
@media (max-width: 768px) {

    /* Force wrapper to fit viewport */
    .schedule-table-wrapper {
        max-width: 100%;
        overflow: hidden;
        padding: 0 5px;
    }

    /* Transform table to vertical cards */
    .schedule-table,
    .schedule-table table {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        table-layout: fixed !important;
    }

    .schedule-table table,
    .schedule-table thead,
    .schedule-table tbody,
    .schedule-table th,
    .schedule-table td,
    .schedule-table tr {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    /* Hide table headers */
    .schedule-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    /* Each row becomes a premium card */
    .schedule-table tr {
        background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
        border-radius: 24px;
        margin-bottom: 24px;
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.08),
            0 2px 10px rgba(0, 0, 0, 0.04),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.6);
    }

    /* Day cells - refined layout */
    .schedule-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        font-size: 0.95rem;
        background: transparent;
    }

    .schedule-table td:last-child {
        border-bottom: none;
    }

    /* Day label - modern pill design */
    .schedule-table td:before {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 100px;
        padding: 10px 16px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.8rem;
        text-align: center;
        flex-shrink: 0;
        order: 1;
        letter-spacing: 0.3px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* Ensure time badge comes after day label */
    .schedule-table td .time-badge,
    .schedule-table td .closed-badge {
        order: 2;
        flex-shrink: 0;
    }

    /* First cell = Premium Department header */
    .schedule-table td:first-child {
        background: linear-gradient(135deg, #0c4a6e 0%, #0891b2 50%, #14b8a6 100%);
        color: white;
        padding: 28px 20px !important;
        font-size: 1.15rem;
        font-weight: 800;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        letter-spacing: 0.5px;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .schedule-table td:first-child:before {
        display: none;
    }

    .schedule-table td:first-child .service-icon {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(12px);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        box-shadow:
            0 6px 20px rgba(0, 0, 0, 0.15),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: transform 0.3s ease;
    }

    /* === Unique Department Header Colors === */
    /* 1. OPD - Sky Blue */
    .schedule-table-wrapper.general-schedule tbody tr:nth-child(1) td:first-child {
        background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    }

    /* 2. ER - Red/Coral */
    .schedule-table-wrapper.general-schedule tbody tr:nth-child(2) td:first-child {
        background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    }

    /* 3. Dental - Purple */
    .schedule-table-wrapper.general-schedule tbody tr:nth-child(3) td:first-child {
        background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    }

    /* 4. X-Ray - Indigo */
    .schedule-table-wrapper.general-schedule tbody tr:nth-child(4) td:first-child {
        background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #818cf8 100%);
    }

    /* 5. Lab - Teal */
    .schedule-table-wrapper.general-schedule tbody tr:nth-child(5) td:first-child {
        background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    }

    /* 6. Pharmacy - Emerald */
    .schedule-table-wrapper.general-schedule tbody tr:nth-child(6) td:first-child {
        background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    }

    /* 7. Physical Therapy - Orange */
    .schedule-table-wrapper.general-schedule tbody tr:nth-child(7) td:first-child {
        background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    }

    /* Premium Time badges */
    .time-badge {
        background: linear-gradient(145deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
        color: white;
        padding: 12px 20px;
        border-radius: 14px;
        font-size: 0.9rem;
        font-weight: 800;
        letter-spacing: 1px;
        font-family: 'Segoe UI', 'SF Pro Display', system-ui, sans-serif;
        box-shadow:
            0 6px 20px rgba(13, 148, 136, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 2px 0 rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.15);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .closed-badge {
        background: linear-gradient(145deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
        color: white;
        padding: 12px 20px;
        border-radius: 14px;
        font-size: 0.9rem;
        font-weight: 800;
        letter-spacing: 0.5px;
        font-family: 'Segoe UI', 'SF Pro Display', system-ui, sans-serif;
        box-shadow:
            0 6px 20px rgba(239, 68, 68, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 2px 0 rgba(255, 255, 255, 0.25);
        border: 2px solid rgba(255, 255, 255, 0.15);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* === Premium Day Colors === */
    /* Monday - Sky Blue */
    .schedule-table-wrapper.general-schedule td:nth-of-type(2):before {
        content: "จันทร์";
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    }

    /* Tuesday - Rose */
    .schedule-table-wrapper.general-schedule td:nth-of-type(3):before {
        content: "อังคาร";
        background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    }

    /* Wednesday - Emerald */
    .schedule-table-wrapper.general-schedule td:nth-of-type(4):before {
        content: "พุธ";
        background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }

    /* Thursday - Amber */
    .schedule-table-wrapper.general-schedule td:nth-of-type(5):before {
        content: "พฤหัสบดี";
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #7c2d12;
        border: none;
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    }

    /* Friday - Teal */
    .schedule-table-wrapper.general-schedule td:nth-of-type(6):before {
        content: "ศุกร์";
        background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(45, 212, 191, 0.4);
    }

    /* Weekend - Violet */
    .schedule-table-wrapper.general-schedule td:nth-of-type(7):before {
        content: "เสาร์-อาทิตย์";
        background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    }

    /* OPD Schedule labels */
    .schedule-table-wrapper.opd-schedule td:nth-of-type(2):before {
        content: "ช่วงเช้า";
        background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
        color: #7c2d12;
        border: none;
        box-shadow: 0 4px 12px rgba(252, 211, 77, 0.4);
    }

    .schedule-table-wrapper.opd-schedule td:nth-of-type(3):before {
        content: "ช่วงบ่าย";
        background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(251, 146, 60, 0.4);
    }

    /* Colspan cells (like ER always open) */
    .schedule-table td[colspan] {
        display: flex;
        justify-content: center;
        padding: 20px !important;
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    }

    .schedule-table td[colspan]:before {
        display: none;
    }
}

/* =========================================
   Services Page Styles (Migrated)
   ========================================= */

/* Premium plan/services hero */
.plan-page-hero {
    position: relative;
    overflow: hidden;
    padding: 180px 0 84px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 34%, #0ea5e9 68%, #14b8a6 100%);
}

.plan-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 52%, rgba(255, 255, 255, .10), transparent 48%),
        radial-gradient(circle at 82% 22%, rgba(20, 184, 166, .18), transparent 42%),
        radial-gradient(circle at 58% 84%, rgba(242, 184, 75, .13), transparent 40%);
    animation: heroBgShift 15s ease infinite alternate;
}

.plan-hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.plan-hero-particles span {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    animation: particleFloat 8s infinite ease-in-out;
}

.plan-hero-particles span:nth-child(1) { width: 18px; height: 18px; left: 10%; top: 24%; animation-delay: 0s; }
.plan-hero-particles span:nth-child(2) { width: 12px; height: 12px; left: 24%; top: 62%; animation-delay: 1s; }
.plan-hero-particles span:nth-child(3) { width: 22px; height: 22px; left: 48%; top: 18%; animation-delay: 2s; }
.plan-hero-particles span:nth-child(4) { width: 10px; height: 10px; left: 72%; top: 70%; animation-delay: .5s; }
.plan-hero-particles span:nth-child(5) { width: 18px; height: 18px; left: 86%; top: 30%; animation-delay: 1.5s; }
.plan-hero-particles span:nth-child(6) { width: 12px; height: 12px; left: 40%; top: 84%; animation-delay: 3s; }
.plan-hero-particles span:nth-child(7) { width: 16px; height: 16px; left: 62%; top: 46%; animation-delay: 2.5s; }
.plan-hero-particles span:nth-child(8) { width: 22px; height: 22px; left: 15%; top: 76%; animation-delay: 4s; }

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

.plan-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
}

.plan-page-hero h1 {
    max-width: 900px;
    margin: 0 auto 12px;
    color: #fff;
    font-size: clamp(2.15rem, 4.6vw, 3.35rem);
    font-weight: 950;
    letter-spacing: -.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.plan-page-hero p {
    max-width: 720px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.1rem;
    line-height: 1.75;
}

.plan-hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.plan-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .11);
    backdrop-filter: blur(10px);
    color: #fff;
    text-align: left;
    text-decoration: none;
    transition: transform .25s ease, background .25s ease;
}

.plan-hero-stat:hover {
    color: #fff;
    background: rgba(255, 255, 255, .2);
    transform: translateY(-3px);
}

.plan-hero-stat .stat-icon {
    flex: 0 0 auto;
}

.plan-hero-stat strong,
.plan-hero-stat small {
    display: block;
}

.plan-hero-stat strong {
    font-weight: 900;
}

.plan-hero-stat small {
    color: rgba(255, 255, 255, .78);
}

/* Shared premium hero for static public pages */
.static-premium-hero {
    position: relative;
    overflow: hidden;
    padding: 176px 0 90px;
    color: #fff;
    text-align: center;
    isolation: isolate;
    background: linear-gradient(135deg, #0b3f5f 0%, #0d8fd0 54%, #0f9f83 100%);
}

.about-premium-hero {
    background: linear-gradient(135deg, #0d3b56 0%, #0d8fd0 50%, #0f9f83 100%);
}

.symbol-premium-hero {
    background: linear-gradient(135deg, #143a66 0%, #0d8fd0 46%, #7c3aed 100%);
}

.contact-premium-hero {
    background: linear-gradient(135deg, #0f3f58 0%, #0f9f83 48%, #0d8fd0 100%);
}

.static-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        radial-gradient(circle at 15% 58%, rgba(255, 255, 255, .11), transparent 42%),
        radial-gradient(circle at 78% 20%, rgba(244, 184, 74, .16), transparent 36%),
        linear-gradient(120deg, rgba(7, 27, 44, .16), transparent 46%);
    animation: heroBgShift 15s ease infinite alternate;
}

.static-premium-hero::before,
.static-premium-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.static-premium-hero::before {
    width: clamp(180px, 24vw, 360px);
    height: clamp(180px, 24vw, 360px);
    left: -90px;
    bottom: -130px;
    border: 34px solid rgba(255, 255, 255, .08);
}

.static-premium-hero::after {
    width: clamp(170px, 21vw, 330px);
    height: clamp(170px, 21vw, 330px);
    right: -80px;
    top: 92px;
    background: rgba(255, 255, 255, .08);
}

.static-hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    animation: staticHeroIn .84s cubic-bezier(.22, 1, .36, 1) both;
    will-change: transform, opacity;
}

.static-premium-hero h1 {
    max-width: 900px;
    margin: 0 auto 14px;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.25rem);
    font-weight: 950;
    line-height: 1.12;
    letter-spacing: -.055em;
    text-shadow: 0 12px 36px rgba(8, 30, 48, .22);
}

.static-premium-hero p {
    max-width: 780px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.85;
    font-weight: 650;
}

.static-premium-hero .plan-hero-stats {
    margin-top: 8px;
}

.static-premium-hero .plan-hero-stat {
    min-width: 235px;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 16px 40px rgba(7, 27, 44, .14);
}

.static-premium-hero .plan-hero-stat .stat-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .16);
}

.structure-showcase-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(15, 159, 131, .10), transparent 32%),
        linear-gradient(180deg, #f4faf9 0%, #eef6fb 100%);
}

.structure-showcase-section::before {
    content: '';
    position: absolute;
    inset: 42px auto auto 8vw;
    width: 118px;
    height: 118px;
    border-radius: 999px;
    border: 20px solid rgba(14, 165, 233, .08);
    pointer-events: none;
}

.structure-section-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 920px;
    margin: 0 auto 42px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(15, 159, 131, .17);
    border-radius: 32px;
    background:
        radial-gradient(circle at 90% 10%, rgba(244, 184, 74, .17), transparent 26%),
        rgba(255, 255, 255, .78);
    box-shadow: 0 24px 60px rgba(15, 35, 63, .10);
    backdrop-filter: blur(10px);
}

.structure-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 14px;
    padding: 9px 18px;
    border: 1px solid rgba(15, 159, 131, .22);
    border-radius: 999px;
    background: #ffffff;
    color: #0f766e;
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(15, 159, 131, .09);
}

.structure-section-header h2 {
    display: block;
    width: 100%;
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    letter-spacing: -.055em;
}

@keyframes staticHeroIn {
    from {
        opacity: 0;
        transform: translateY(34px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Plan & Project Grid */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.plan-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

.plan-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plan-card .icon i {
    font-size: 1.5rem;
    color: white;
}

.plan-card .content {
    flex: 1;
}

.plan-card .content h4 {
    color: #0f172a;
    /* Darker for better contrast */
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.plan-card .content p {
    color: #475569;
    /* Darker grey for better contrast */
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.plan-card .content a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0ea5e9;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 0;
    /* Add touch target area */
}

.plan-card .content a:hover {
    color: #0891b2;
    transform: translateX(5px);
}

.plan-card .content a i {
    transition: transform 0.3s ease;
}

.plan-card .content a:hover i {
    transform: translateX(3px);
}

/* Quick Links Section (ITA/Law) */
.quick-links-section {
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    padding: 80px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.quick-link-card {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9, #14b8a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.quick-link-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 80px rgba(14, 165, 233, 0.15);
}

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

.quick-link-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3);
    transition: all 0.4s ease;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-link-card.ita .quick-link-icon {
    background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 100%);
}

.quick-link-card.law .quick-link-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
}

.quick-link-card.info .quick-link-icon {
    background: linear-gradient(135deg, #1e3a5f 0%, #0e7490 100%);
}

.quick-link-card h3 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.quick-link-card p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    margin-top: auto;
    /* Push button to bottom */
}

.quick-link-card.ita .quick-link-btn {
    background: linear-gradient(135deg, #0c4a6e 0%, #0e7490 100%);
}

.quick-link-card.law .quick-link-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
}

.quick-link-card.info .quick-link-btn {
    background: linear-gradient(135deg, #1e3a5f 0%, #0e7490 100%);
}

.quick-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

/* Original ITA List Styles (Hidden/Legacy support but cleaned up) */
.ita-container {
    display: none !important;
}

/* =========================================
   Mobile Responsiveness for Services Page
   ========================================= */

@media (max-width: 1024px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .quick-link-card {
        padding: 40px 25px;
    }

    .quick-link-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .plan-page-hero,
    .static-premium-hero {
        padding: 140px 0 58px;
    }

    .plan-hero-stat {
        width: 100%;
        max-width: 360px;
    }

    .static-premium-hero .plan-hero-stats {
        gap: 12px;
    }

    .structure-section-header {
        border-radius: 24px;
        padding: 28px 20px;
    }

    .plan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .plan-card {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-card .icon {
        margin-bottom: 15px;
    }

    .quick-links-section {
        padding: 40px 0;
    }

    .quick-links-grid {
        gap: 25px;
    }

    /* Fix Director Card / Special Clinics on Mobile */
    .director-card {
        flex-direction: column !important;
        text-align: left;
        padding: 25px !important;
        gap: 20px;
    }

    .director-card>div {
        width: 100%;
    }

    .director-img {
        width: 100%;
        height: 200px !important;
        /* Force smaller height on mobile */
        object-fit: cover;
        border-radius: 12px;
        margin-top: 15px;
    }

    .director-card h3 {
        font-size: 1.5rem;
    }

    .director-card p,
    .director-card ul {
        font-size: 0.95rem;
    }

    /* Ensure bullets are visible */
    .director-card ul {
        padding-left: 20px;
        color: #334155;
    }

    .director-card li {
        margin-bottom: 8px;
    }
}

/* ============================================
   Quick Link Cards - Enhanced Styling
   ============================================ */
.quick-links-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Top Border - Default */
.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #14b8a6);
    transition: all 0.4s ease;
}

/* Aura Glow Effect */
.quick-link-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.quick-link-card:hover::after {
    opacity: 1;
}

/* Card Hover Effects */
.quick-link-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(14, 165, 233, 0.15);
}

/* ITA Card - Green Theme */
.quick-link-card.ita::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.quick-link-card.ita:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 50px rgba(16, 185, 129, 0.25);
}

.quick-link-card.ita:hover::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
}

.quick-link-card.ita .quick-link-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.quick-link-card.ita .quick-link-btn:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Law Card - Orange Theme */
.quick-link-card.law::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.quick-link-card.law:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 50px rgba(249, 115, 22, 0.25);
}

.quick-link-card.law:hover::after {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 60%);
}

.quick-link-card.law .quick-link-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.quick-link-card.law .quick-link-btn:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Info Card - Purple Theme */
.quick-link-card.info::before {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.quick-link-card.info:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 0 50px rgba(99, 102, 241, 0.25);
}

.quick-link-card.info:hover::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}

.quick-link-card.info .quick-link-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.quick-link-card.info .quick-link-btn:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Icon Styling */
.quick-link-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Card Content */
.quick-link-card h3 {
    font-size: 1.4rem;
    color: #0369a1;
    margin-bottom: 15px;
    font-weight: 700;
}

.quick-link-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Button Styling */
.quick-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.quick-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.quick-link-btn i {
    transition: transform 0.3s ease;
}

.quick-link-btn:hover i:last-child {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-link-card {
        padding: 30px 20px;
    }

    .quick-link-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* ============================================
   Project-wide Responsive Hardening
   Keeps public pages usable on phone screens.
   ============================================ */
video,
iframe,
embed,
object {
    max-width: 100%;
}

.table-responsive,
.schedule-table-wrap,
.doc-modal-table-wrap {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }

    .container {
        width: min(100%, calc(100vw - 32px));
        padding-left: 0;
        padding-right: 0;
    }

    header,
    header.scrolled {
        height: 86px;
    }

    .header-container {
        min-height: 86px;
    }

    .logo {
        max-width: calc(100vw - 96px);
        padding: 8px 12px;
        gap: 10px;
    }

    .logo-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-menu {
        top: 86px;
        max-height: calc(100vh - 86px);
    }

    .hero {
        margin-top: 86px;
        min-height: 560px;
        height: min(72vh, 620px);
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(7, 18, 31, .44) 0%, rgba(7, 18, 31, .68) 100%);
        padding: 52px 0;
    }

    .hero-content {
        max-width: 720px;
        padding: 0;
        margin: 0 auto;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 7vw, 3.2rem);
    }

    .hero-content p {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(.98rem, 2.4vw, 1.12rem);
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .features-grid,
    .news-grid,
    .home-news-grid,
    .gallery-grid,
    .home-gallery-section .gallery-grid,
    .plan-grid,
    .quick-links-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .director-card,
    .plan-card {
        min-width: 0;
    }

    .structure-section-header {
        gap: 10px;
        border-radius: 26px;
    }

    .structure-eyebrow {
        white-space: normal;
        text-align: center;
    }

    .structure-section-header h2 {
        display: block;
        width: 100%;
        line-height: 1.08;
        text-align: center;
    }

    .contact-map-card {
        grid-template-columns: 1fr;
    }

    .contact-map-copy {
        padding-bottom: 6px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100%, calc(100vw - 28px));
    }

    header,
    header.scrolled {
        height: 78px;
    }

    .header-container {
        min-height: 78px;
    }

    .nav-menu {
        top: 78px;
        max-height: calc(100vh - 78px);
    }

    .logo {
        border-radius: 14px;
        max-width: calc(100vw - 84px);
    }

    .logo img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .logo-title {
        font-size: .95rem;
        max-width: 52vw;
    }

    .hero {
        margin-top: 78px;
        min-height: 520px;
        height: auto;
    }

    .hero-overlay {
        position: relative;
        min-height: 520px;
        align-items: flex-end;
        padding: 70px 0 46px;
    }

    .hero-content h1 {
        font-size: clamp(1.78rem, 10vw, 2.45rem);
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: .96rem;
        line-height: 1.72;
        margin-bottom: 24px;
    }

    .hero-badge {
        margin-bottom: 18px;
    }

    .hero-buttons {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section,
    #structure.section {
        padding: 54px 0;
    }

    .section-header {
        margin-bottom: 34px;
    }

    .section-header h2,
    #structure .section-header h2,
    .structure-section-header h2 {
        font-size: clamp(1.85rem, 9vw, 2.45rem);
        letter-spacing: -.035em;
    }

    .section-header p,
    #structure .section-header p {
        font-size: .98rem;
        max-width: 34rem;
    }

    .structure-section-header {
        padding: 26px 18px;
        margin-bottom: 30px;
    }

    .structure-eyebrow {
        font-size: .74rem;
        letter-spacing: .06em;
        padding: 8px 14px;
    }

    .features-grid,
    .news-grid,
    .home-news-grid,
    .gallery-grid,
    .home-gallery-section .gallery-grid,
    .plan-grid,
    .quick-links-grid,
    .footer-grid,
    .plan-hero-stats,
    .static-premium-hero .plan-hero-stats {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .news-card,
    .home-news-card,
    .plan-card,
    .quick-link-card,
    .director-card,
    .org-chart {
        border-radius: 18px;
    }

    .footer-grid {
        text-align: left;
    }

    .contact-map-section {
        padding: 54px 0;
    }

    .contact-map-card {
        border-radius: 24px;
        padding: 14px;
    }

    .contact-map-copy {
        padding: 18px 12px;
    }

    .contact-map-actions {
        flex-direction: column;
    }

    .contact-map-actions .btn {
        width: 100%;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        min-height: 340px;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100%, calc(100vw - 22px));
    }

    .logo-title {
        max-width: 46vw;
    }

    .hero-overlay {
        padding-bottom: 34px;
    }

    .btn {
        min-height: 46px;
        padding: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider,
    .hero-slider .slide {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}


/* Standalone chatbot navigation entry */
.chatbot-header-item .chatbot-nav-link {
    position: relative;
    overflow: hidden;
}

.chatbot-header-item .chatbot-nav-link::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(16, 185, 129, .16));
    opacity: 0;
    transition: opacity .18s ease;
    z-index: -1;
}

.chatbot-header-item .chatbot-nav-link:hover::before {
    opacity: 1;
}

.chatbot-header-item .chatbot-nav-link .nav-icon {
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
}

.chatbot-header-item .chatbot-nav-link.active {
    background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
    color: #fff;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .chatbot-header-item .nav-text small {
        display: none;
    }
}


/* CARE CHAT after official polish */
.chatbot-header-item .chatbot-nav-link {
    isolation: isolate;
    border: 1px solid rgba(16, 185, 129, .16);
}

.chatbot-header-item .chatbot-nav-link .nav-icon {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(135deg, #0ea5e9, #10b981) !important;
}

.chatbot-header-item .chatbot-nav-link:hover .nav-icon,
.chatbot-header-item .chatbot-nav-link.active .nav-icon {
    background: rgba(255,255,255,.22) !important;
}


/* CARE CHAT header icon correction 2026-05-25 */
.chatbot-header-item .chatbot-nav-link {
    overflow: visible !important;
    align-items: center;
    gap: 8px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(236,253,245,.72), rgba(255,251,235,.72));
    border: 1px solid rgba(20,184,166,.22);
    box-shadow: 0 10px 26px rgba(15,118,110,.08);
}

.chatbot-header-item .chatbot-nav-link::before {
    inset: 4px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(20,184,166,.16), rgba(245,158,11,.14)) !important;
}

.chatbot-header-item .chatbot-nav-link .nav-icon {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: conic-gradient(from 220deg, #0f766e, #14b8a6, #f59e0b, #f97316, #0f766e) !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 18px rgba(15,118,110,.18) !important;
}

.chatbot-header-item .chatbot-nav-link .nav-text {
    color: #334155;
}

.chatbot-header-item .chatbot-nav-link .nav-text small {
    color: #64748b;
}

.chatbot-header-item .chatbot-nav-link:hover,
.chatbot-header-item .chatbot-nav-link.active {
    color: #0f172a !important;
    background: linear-gradient(135deg, #ecfdf5, #fffbeb) !important;
    border-color: rgba(245,158,11,.3) !important;
    transform: translateY(-2px);
}

.chatbot-header-item .chatbot-nav-link:hover .nav-icon,
.chatbot-header-item .chatbot-nav-link.active .nav-icon {
    background: conic-gradient(from 220deg, #064e3b, #0f766e, #f59e0b, #f97316, #064e3b) !important;
}

/* CARE CHAT nav normalization 2026-06-09
   Same rhythm as the main nav, with a small live-support accent instead of an oversized card. */
.chatbot-header-item .chatbot-nav-link {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: auto !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-radius: var(--radius-md) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none;
}

.chatbot-header-item .chatbot-nav-link::before {
    content: "" !important;
    position: absolute !important;
    inset: 7px !important;
    z-index: -1 !important;
    border-radius: 14px !important;
    opacity: 0 !important;
    background:
        radial-gradient(circle at 72% 20%, rgba(245, 158, 11, .20), transparent 30%),
        linear-gradient(135deg, rgba(236, 253, 245, .96), rgba(224, 242, 254, .88)) !important;
    transition: opacity .22s ease, transform .22s ease !important;
    transform: scale(.96);
}

.chatbot-header-item .chatbot-nav-link::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #10b981;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .42);
    animation: careChatStatusPulse 2.8s ease-out infinite;
}

.chatbot-header-item .chatbot-nav-link .nav-icon {
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 1.4rem !important;
    line-height: 1.2 !important;
    color: transparent !important;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 44%, #f59e0b 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 6px 10px rgba(15, 118, 110, .12));
    animation: careChatIconFloat 3.6s ease-in-out infinite;
}

.chatbot-header-item .chatbot-nav-link .nav-text,
.chatbot-header-item .chatbot-nav-link .nav-text small {
    color: var(--text-main) !important;
}

.chatbot-header-item .chatbot-nav-link:hover,
.chatbot-header-item .chatbot-nav-link.active {
    color: var(--white) !important;
    background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%) !important;
    border: 0 !important;
    box-shadow: 0 8px 20px rgba(15, 118, 110, .24) !important;
    transform: translateY(-3px) !important;
}

.chatbot-header-item .chatbot-nav-link:hover::before,
.chatbot-header-item .chatbot-nav-link.active::before {
    opacity: 1 !important;
    transform: scale(1);
}

.chatbot-header-item .chatbot-nav-link:hover::after,
.chatbot-header-item .chatbot-nav-link.active::after {
    background: #f59e0b;
}

.chatbot-header-item .chatbot-nav-link:hover .nav-icon,
.chatbot-header-item .chatbot-nav-link.active .nav-icon {
    color: var(--white) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: var(--white) !important;
    filter: none;
}

.chatbot-header-item .chatbot-nav-link:hover .nav-text,
.chatbot-header-item .chatbot-nav-link:hover .nav-text small,
.chatbot-header-item .chatbot-nav-link.active .nav-text,
.chatbot-header-item .chatbot-nav-link.active .nav-text small {
    color: var(--white) !important;
}

@keyframes careChatIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes careChatStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .42); }
    72%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-header-item .chatbot-nav-link::after,
    .chatbot-header-item .chatbot-nav-link .nav-icon {
        animation: none !important;
    }
}

/* CARE CHAT final normalization: match the main nav exactly, no oversized hover card. */
.chatbot-header-item .chatbot-nav-link {
    position: relative !important;
    overflow: visible !important;
    isolation: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius-md) !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
    transform: none !important;
}

.chatbot-header-item .chatbot-nav-link::before {
    content: none !important;
    display: none !important;
}

.chatbot-header-item .chatbot-nav-link::after {
    content: none !important;
    display: none !important;
}

.chatbot-header-item .chatbot-nav-link .nav-icon {
    position: relative !important;
    overflow: visible !important;
    flex: 0 0 auto !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(20, 184, 166, .18) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 10px 18px rgba(20, 184, 166, .14) !important;
    font-size: 1.18rem !important;
    line-height: 1 !important;
    color: #0f766e !important;
    background: linear-gradient(135deg, #ecfeff 0%, #dcfce7 100%) !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #0f766e !important;
    display: inline-grid !important;
    place-items: center !important;
    filter: none !important;
    transform-origin: center !important;
    animation: careChatIconBreathe 3.6s cubic-bezier(0.25, 1, 0.5, 1) infinite !important;
}

.chatbot-header-item .chatbot-nav-link .nav-icon::after {
    content: "ใหม่" !important;
    position: absolute !important;
    top: -8px !important;
    right: -24px !important;
    min-width: 26px !important;
    height: 16px !important;
    padding: 0 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #fb7185 0%, #ef4444 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 0.52rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, .34) !important;
    animation: careChatBadgePulse 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite !important;
}

.chatbot-header-item .chatbot-nav-link .nav-text,
.chatbot-header-item .chatbot-nav-link .nav-text small {
    color: var(--text-main) !important;
}

.chatbot-header-item .chatbot-nav-link .nav-text {
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
}

.chatbot-header-item .chatbot-nav-link .nav-text small {
    color: #5b6b83 !important;
    font-weight: 600 !important;
}

.chatbot-header-item .chatbot-nav-link:hover {
    color: var(--white) !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%) !important;
    border-color: rgba(14, 165, 233, .18) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 30px rgba(14, 165, 233, .24) !important;
}

.chatbot-header-item .chatbot-nav-link.active {
    color: var(--white) !important;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%) !important;
    border-color: rgba(14, 165, 233, .16) !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, .25) !important;
}

.chatbot-header-item .chatbot-nav-link:hover .nav-icon,
.chatbot-header-item .chatbot-nav-link.active .nav-icon {
    color: var(--white) !important;
    background: rgba(255,255,255,.18) !important;
    border-color: rgba(255,255,255,.22) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 20px rgba(15, 23, 42, .12) !important;
    -webkit-text-fill-color: var(--white) !important;
    animation-duration: .72s !important;
    animation-name: careChatIconHover !important;
}

.chatbot-header-item .chatbot-nav-link:hover .nav-text,
.chatbot-header-item .chatbot-nav-link:hover .nav-text small,
.chatbot-header-item .chatbot-nav-link.active .nav-text,
.chatbot-header-item .chatbot-nav-link.active .nav-text small {
    color: var(--white) !important;
}

.chatbot-header-item .chatbot-nav-link:hover .nav-icon::after,
.chatbot-header-item .chatbot-nav-link.active .nav-icon::after {
    background: linear-gradient(135deg, #fb7185 0%, #ef4444 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12) !important;
}

@keyframes careChatIconBreathe {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 0 rgba(20, 184, 166, 0));
    }
    50% {
        transform: translateY(-1px) scale(1.08);
        filter: drop-shadow(0 4px 10px rgba(20, 184, 166, .22));
    }
}

@keyframes careChatIconHover {
    0% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-2px) scale(1.14); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes careChatBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, .34);
    }
    55% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-header-item .chatbot-nav-link .nav-icon::after,
    .chatbot-header-item .chatbot-nav-link .nav-icon {
        animation: none !important;
        filter: none !important;
    }
}
