/* ========================================
   CSS VARIABLES - กำหนดสีและค่าที่ใช้ซ้ำ
   ======================================== */
:root {
    /* สีหลัก - Modern Teal/Blue Palette */
    /* Primary: #0a897e (Teal) */
    --primary-teal: #0a897e;

    /* Secondary (Darker for depth): #065a52 */
    --secondary-teal: #065a52;

    /* Light/Highlight (User's 2nd color): #27ced7 (Cyan) */
    --light-teal: #27ced7;

    /* Accent (User's 3rd color): #2683c6 (Blue) - Replaces Gold */
    --accent-blue: #2683c6;

    /* Very Dark (for text/footer): #043b35 */
    --dark-teal: #043b35;

    /* Pale Background */
    --light-blue: #f0fdfc;

    /* Gradients */
    /* Primary Gradient: Teal to Blue */
    --gradient-primary: linear-gradient(135deg, #0a897e 0%, #2683c6 100%);

    /* Secondary Gradient: Cyan to Teal */
    --gradient-secondary: linear-gradient(135deg, #27ced7 0%, #0a897e 100%);

    /* Accent Gradient (Replacing Gold): Blue to Cyan */
    --gradient-gold: linear-gradient(135deg, #2683c6 0%, #27ced7 100%);

    /* พื้นหลังและเงา */
    --bg-glass: rgba(255, 255, 255, 0.98);
    /* Shadow using Primary Color (10, 137, 126) */
    --shadow-soft: 0 10px 40px rgba(10, 137, 126, 0.15);
    --shadow-hover: 0 20px 60px rgba(10, 137, 126, 0.25);
}

/* ========================================
   GLOBAL STYLES - สไตล์พื้นฐาน
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f0fdff 0%, #e6fffc 100%);
}

/* ========================================
   NAVIGATION BAR - แถบเมนูด้านบน
   ======================================== */
.navbar-custom {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(10, 137, 126, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-teal) !important;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--accent-blue);
    font-size: 1.6rem;
}

.nav-link {
    color: var(--dark-teal) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-blue) !important;
    transform: translateY(-2px);
}

/* เส้นใต้เมนูเมื่อ hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px;
    margin-top: 15px;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.dropdown-item {
    border-radius: 10px;
    padding: 10px 15px;
    color: var(--dark-teal);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--light-blue);
    color: var(--primary-teal);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 25px;
    text-align: center;
}

.text-primary-teal {
    color: var(--primary-teal) !important;
}

/* Contact Button in Nav */
.btn-contact-nav {
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 137, 126, 0.2);
}

.btn-contact-nav:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(10, 137, 126, 0.3);
    color: white !important;
}

.btn-contact-nav::after {
    display: none;
    /* Remove underline from nav link style */
}

/* ========================================
   HERO SECTION - ส่วนหัวหน้าแรก
   ======================================== */
/* ========================================
   HERO SECTION - ส่วนหัวหน้าแรก
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-item {
    background-size: cover;
    background-position: center;
    transition: transform 1.2s ease-in-out;
    /* Smooth slide */
}

/* Gradient Overlay over the slider but under the content */
/* Gradient Overlay over the slider but under the content */
/* MODIFIED: Reduced opacity significantly for brighter images and added inner shadow frame */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Lighter gradient: very subtle dark tint at bottom */
    background: linear-gradient(135deg, rgba(4, 59, 53, 0.1), rgba(10, 137, 126, 0.1));
    /* Add Inner Shadow Frame for "Interesting" Look */
    box-shadow: inset 0 0 80px rgba(4, 59, 53, 0.6);
    z-index: 1;
    pointer-events: none;
    /* See-through for clicks if needed */
}

/* Border bottom decoration */
.hero-section {
    border-bottom: 5px solid var(--accent-blue);
}

.hero-content-overlay {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 100px 0 80px;
    width: 100%;
}

/* พื้นหลังเคลื่อนไหว - ปรับให้เป็น Overlay แทน */
/* Old animation removed or replaced by carousel movement */

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 16px rgba(0, 0, 0, 0.7),
        2px 2px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 400;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow:
        0 1px 6px rgba(0, 0, 0, 0.9),
        0 2px 12px rgba(0, 0, 0, 0.7);
}

/* ========================================
   BUTTONS - ปุ่มต่างๆ
   ======================================== */
.btn-hero {
    background: white;
    color: var(--primary-teal);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(38, 131, 198, 0.3);
    background: white;
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
}

.btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-hero-outline:hover {
    background: white;
    color: var(--primary-teal);
    transform: translateY(-3px);
}

/* ========================================
   STATS SECTION - ส่วนแสดงตัวเลขสถิติ
   ======================================== */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern for Stats */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 18px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-icon-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    transition: all 0.5s ease;
}

.stat-card:hover .stat-icon-bg {
    transform: rotate(0deg) scale(1.1);
    color: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #ffffff, #e0f2fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
    display: block;
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

/* ========================================
   SECTION TITLES - หัวข้อแต่ละส่วน
   ======================================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* เส้นใต้หัวข้อ */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ========================================
   SERVICE CARDS - การ์ดแสดงบริการ
   ======================================== */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(10, 137, 126, 0.1);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
    transform: translateY(-10px);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(39, 206, 215, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-teal);
    margin-bottom: 1rem;
}

.service-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   CLIENT LOGOS - โลโก้ลูกค้า
   ======================================== */
/* ========================================
   CLIENT IMAGE CARDS - การ์ดลูกค้าแบบรูปภาพ
   ======================================== */
.client-cat-card {
    background-color: var(--dark-teal);
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(10, 137, 126, 0.2);
    height: 200px;
    /* Increased height for image visibility */
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Dark Overlay to make text readable */
/* Dark Overlay to make text readable */
.client-cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Darker gradient for better contrast */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
    transition: all 0.4s ease;
    z-index: 1;
}

.client-cat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.client-cat-card:hover::before {
    background: linear-gradient(to bottom, rgba(10, 137, 126, 0.4), rgba(0, 0, 0, 0.95));
}

.client-cat-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    width: 100%;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.client-cat-card:hover .client-cat-content {
    transform: translateY(0);
}

.client-cat-icon {
    font-size: 2.2rem;
    color: white !important;
    /* Icon is always white now */
    margin-bottom: 0.8rem;
    opacity: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.client-cat-card:hover .client-cat-icon {
    transform: scale(1.1);
    color: var(--light-teal) !important;
    text-shadow: 0 0 10px rgba(39, 206, 215, 0.5);
}

.client-cat-title {
    color: white !important;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* ========================================
   NEWS CARDS - การ์ดข่าวสาร
   ======================================== */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    height: 100%;
}

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

.news-image {
    height: 220px;
    background-color: var(--light-teal);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
}

/* Overlay สำหรับ Text icon ถ้าไม่มีรูป */
.news-image i {
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.news-body {
    padding: 2rem;
}

.news-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-teal);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.btn-read-more {
    background: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-read-more:hover {
    background: var(--primary-teal);
    color: white;
}

/* ========================================
   ACTIVITY CARDS - การ์ดกิจกรรม
   ======================================== */
.activity-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

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

.activity-icon-box {
    background: var(--gradient-primary);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.activity-icon-box i {
    font-size: 3.5rem;
    color: white;
}

.activity-body {
    padding: 1.5rem;
}

.activity-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-teal);
    margin-bottom: 0.8rem;
}

.activity-text {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.activity-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.activity-date {
    color: #9ca3af;
}

.activity-participants {
    color: var(--primary-teal);
    font-weight: 600;
}

/* ========================================
   CONTACT SECTION - ส่วนติดต่อ
   ======================================== */
.contact-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control-custom {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(39, 206, 215, 0.2);
    border-radius: 15px;
    padding: 15px 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    background: white;
    border-color: var(--light-teal);
    box-shadow: 0 0 0 0.25rem rgba(39, 206, 215, 0.25);
    outline: none;
}

.btn-submit {
    background: white;
    color: var(--primary-teal);
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    background: #f0fdfa;
}

.contact-info-box {
    text-align: center;
    padding: 2rem 1rem;
}

.contact-info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.contact-info-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.contact-info-text {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   FOOTER - ส่วนท้าย
   ======================================== */
.footer {
    background: var(--dark-teal);
    color: white;
    padding: 2rem 0;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--light-teal);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: var(--primary-teal);
    transform: translateY(-3px);
}

/* ========================================
   ANIMATIONS - แอนิเมชั่น
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   UTILITY CLASSES - คลาสเสริม
   ======================================== */
.section-padding {
    padding: 80px 0;
}

.bg-light-teal {
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.8), rgba(236, 253, 245, 0.8));
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.about-highlight {
    color: var(--primary-teal);
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.feature-item i {
    color: var(--primary-teal);
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN - การปรับให้รองรับหน้าจอขนาดต่างๆ
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* ========================================
   ABOUT SECTION REVAMP (DARK THEME)
   ======================================== */
.about-section-dark {
    background: var(--dark-teal);
    position: relative;
    padding: 100px 0;
}

.about-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 25%);
    opacity: 0.6;
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.about-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--light-teal);
    font-weight: 500;
}

.text-accent-gold {
    color: var(--accent-blue);
}

.text-dark-teal {
    color: var(--dark-teal);
}

.text-light-opacity {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-box-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.feature-box-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--light-teal);
    transform: translateY(-5px);
}

.feature-box-dark .icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-box-dark h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 2px;
}

/* Image Collage */
.about-collage {
    position: relative;
    padding: 40px 0;
}

.collage-item.main-img img {
    width: 90%;
    border: 8px solid rgba(255, 255, 255, 0.1);
}

.collage-item.sub-img-1 {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 55%;
    z-index: 3;
}

.collage-item.sub-img-1 img {
    border: 6px solid var(--dark-teal);
}

.experience-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--dark-teal);
    z-index: 4;
}

.experience-badge .fs-2 {
    color: var(--primary-teal);
    line-height: 1;
    margin-bottom: 5px;
}

/* Animations */
@keyframes floating {
    0% {
        transform: translateY(0);
    }

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

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

.floating-anim {
    animation: floating 4s ease-in-out infinite;
}

.fs-7 {
    font-size: 0.85rem;
    color: #666;
}

/* ========================================
   PROJECTS GALLERY
   ======================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-teal);
    color: white;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    height: 300px;
    /* Fixed height for consistency */
}

.project-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 46, 22, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    color: var(--light-teal);
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.project-overlay p {
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.2s;
}

.project-card:hover .project-overlay h4,
.project-card:hover .project-overlay p {
    transform: translateY(0);
}

.project-item {
    transition: all 0.4s ease;
}

.project-item.hide {
    display: none;
}

.project-item.show {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   MODERN SERVICES CARD
   ======================================== */
.service-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 30px 25px;
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--light-blue);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-teal);
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card-modern:hover .service-icon-wrapper {
    background: var(--primary-teal);
    color: white;
    transform: scale(1.1) rotate(10deg);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 10px;
}

.service-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

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

/* ========================================
   VISION & MISSION SECTION
   ======================================== */
.vision-img-box {
    padding: 20px;
}

.circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding-bottom: 90%;
    background: radial-gradient(circle, var(--light-blue) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.7;
}

.vision-badge {
    position: absolute;
    bottom: 10%;
    right: 0;
    background: linear-gradient(135deg, var(--primary-teal), var(--dark-teal));
    color: white;
    padding: 20px;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
    animation: floating 3s ease-in-out infinite alternate;
}

.vision-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 1.8rem;
    margin-right: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-blue);
}

.border-teal {
    border-color: var(--primary-teal) !important;
}

.vision-card,
.mission-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--light-blue);
}

.vision-card h3,
.mission-card h3 {
    color: var(--dark-teal);
    font-weight: 700;
}

.vision-card p {
    font-size: 1.1rem;
    color: #444;
    background-color: var(--light-blue);
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-teal);
}

.mission-card p {
    color: #555;
    line-height: 1.8;
}

/* client-cat-* styles defined above (background-image card version) */

/* ========================================
   SEO PAGES: page header, equipment page, FAQ
   ======================================== */
.btn-teal {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(10, 137, 126, .25);
    transition: all .3s ease;
}
.btn-teal:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(10, 137, 126, .35); }

.page-header {
    padding: 150px 0 70px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(39, 206, 215, .35), transparent 45%),
        linear-gradient(135deg, #043b35 0%, #0a897e 100%);
}
.page-breadcrumb { margin-bottom: 1rem; }
.page-breadcrumb .breadcrumb-item, .page-breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.page-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.page-breadcrumb .breadcrumb-item.active { color: #fff; }
.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
.page-lead { font-size: 1.1rem; max-width: 820px; color: rgba(255, 255, 255, .9); font-weight: 300; }
.page-facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.page-facts li {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: .9rem;
}
.page-facts i { margin-right: 6px; color: #9ff3f0; }

.equipment-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding: 40px 44px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #043b35 0%, #0a897e 70%, #27ced7 130%);
    box-shadow: 0 16px 40px rgba(10, 137, 126, .25);
}
.equipment-cta h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .5rem; }
.equipment-cta p { color: rgba(255, 255, 255, .85); max-width: 560px; }

.related-service {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid rgba(10, 137, 126, .1);
    box-shadow: 0 4px 16px rgba(10, 137, 126, .06);
    text-decoration: none;
    color: #333;
    transition: all .25s ease;
}
.related-service:hover { border-color: var(--primary-teal); transform: translateY(-3px); color: #333; }
.related-service > i {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
}
.related-service strong { display: block; font-size: .92rem; line-height: 1.25; }
.related-service small { color: #888; font-size: .78rem; }

.faq-accordion .accordion-item {
    border: 1.5px solid rgba(10, 137, 126, .12);
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
}
.faq-accordion .accordion-header { margin: 0; }
.faq-accordion .accordion-button { font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 1.02rem; color: #043b35; padding: 18px 22px; background: #fff; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--primary-teal); background: #f0fdfc; box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(10, 137, 126, .15); }
.faq-accordion .accordion-body { color: #555; line-height: 1.8; padding: 4px 22px 20px; background: #f0fdfc; }

@media (max-width: 767.98px) {
    .page-header { padding: 120px 0 50px; }
    .equipment-cta { padding: 28px 24px; }
}


/* ========================================
   HERO SLIDER: per-slide text box + prev/next controls
   ======================================== */
.hero-box {
    background: linear-gradient(135deg, rgba(4, 59, 53, .72) 0%, rgba(10, 137, 126, .55) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 2.5rem 2.8rem;
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
}
/* Each slide carries its own text box, so it moves with the image */
.hero-slide-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
}
/* Frame/tint stays above the slides but never blocks clicks on the buttons */
.hero-section::after { z-index: 3; }
/* Hidden box stays readable for screen readers / search engines */
.hero-caption.is-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
@keyframes heroCaptionIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

.hero-nav {
    position: absolute;
    z-index: 4;
    right: max(24px, calc((100vw - 1320px) / 2 + 12px));
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 50px;
    background: rgba(4, 59, 53, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.hero-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .25s ease;
    cursor: pointer;
}
.hero-nav-btn:hover, .hero-nav-btn:focus-visible {
    background: #fff;
    color: var(--primary-teal);
    border-color: #fff;
    transform: scale(1.06);
    outline: none;
}
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .45);
    transition: all .3s ease;
    cursor: pointer;
}
.hero-dot:hover { background: rgba(255, 255, 255, .8); }
.hero-dot.active { width: 28px; background: #fff; }
.hero-counter { color: rgba(255, 255, 255, .85); font-size: .9rem; min-width: 44px; text-align: center; }
.hero-counter strong { color: #fff; font-weight: 600; }

@media (max-width: 767.98px) {
    .hero-box { padding: 1.8rem 1.5rem; }
    .hero-nav { left: 50%; right: auto; transform: translateX(-50%); bottom: 20px; gap: 10px; }
    .hero-nav-btn { width: 40px; height: 40px; }
    .hero-counter { display: none; }
    .hero-slide-inner { padding: 90px 0 100px; }
}

/* ========================================
   Hero text box: left aligned, glass card with accent bar
   ======================================== */
.hero-box {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 2.6rem 2.8rem 2.6rem 3.2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(4, 59, 53, .82) 0%, rgba(6, 90, 82, .68) 55%, rgba(10, 137, 126, .5) 100%);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 24px 60px rgba(2, 30, 27, .45), inset 0 1px 0 rgba(255, 255, 255, .15);
}
/* Accent bar on the left edge */
.hero-box::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #27ced7 0%, #0a897e 60%, #2683c6 100%);
}
/* Soft glow in the corner */
.hero-box::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 206, 215, .35), transparent 70%);
    pointer-events: none;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 1.2rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: #d9fffb;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
}
.hero-eyebrow i { color: #7ff0ea; }
.hero-box .hero-title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: .6rem; }
.hero-box .hero-subtitle { font-size: clamp(1.15rem, 2vw, 1.6rem); margin-bottom: 0; color: #c9fbf6; }
.hero-divider {
    display: block;
    width: 72px;
    height: 4px;
    margin: 1.2rem 0 1.3rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #27ced7, rgba(39, 206, 215, 0));
}
.hero-box .hero-text { max-width: 560px; margin: 0 0 1.8rem; font-size: 1.08rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.hero-actions { position: relative; z-index: 1; }

/* Control bar: bottom right, aligned with the container edge */
.hero-nav {
    left: auto;
    right: max(24px, calc((100vw - 1320px) / 2 + 12px));
    transform: none;
}
.hero-nav .hero-nav-btn {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .95);
    color: var(--primary-teal);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.hero-nav .hero-nav-btn:hover, .hero-nav .hero-nav-btn:focus-visible { background: var(--primary-teal); color: #fff; }

@media (max-width: 991.98px) {
    .hero-box { padding: 2rem 1.8rem 2rem 2.3rem; }
}
@media (max-width: 767.98px) {
    .hero-box { padding: 1.7rem 1.4rem 1.7rem 1.9rem; border-radius: 20px; }
    .hero-eyebrow { font-size: .75rem; }
    .hero-nav { left: 50%; right: auto; transform: translateX(-50%); }
    .hero-nav .hero-nav-btn { width: 40px; height: 40px; }
}

/* Side arrows: always visible on tablet/desktop; the text box keeps clear of the left one */
.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .95);
    color: var(--primary-teal);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(4, 59, 53, .35);
    cursor: pointer;
    transition: all .25s ease;
}
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
.hero-arrow:hover, .hero-arrow:focus-visible {
    background: var(--primary-teal);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    outline: none;
}
@media (min-width: 768px) {
    /* Leave room for the left arrow, but stay aligned with the page container on wide screens */
    .hero-slide-inner .container {
        max-width: none;
        padding-left: max(104px, calc((100vw - 1320px) / 2 + 12px));
        padding-right: 104px;
    }
    /* Bottom bar shows dots + counter only; the side arrows do prev/next */
    .hero-nav .hero-nav-btn { display: none; }
    .hero-nav { padding: 10px 18px; }
}
/* Clear the fixed navbar on short screens */
.hero-slide-inner { padding-top: 120px; }
@media (max-width: 767.98px) {
    .hero-arrow { display: none; }
}

/* ========================================
   Hero height (set in sadmin → สไลด์หน้าแรก → ตั้งค่าการแสดงผลสไลด์)
   The slide grows past the set height if the text box needs more room.
   ======================================== */
.hero-section { min-height: 0; }
.hero-section .hero-slider { position: relative; height: auto; }
.hero-section .carousel-item { min-height: var(--hero-h, 100vh); }
.hero-section .hero-slide-inner {
    position: relative;
    inset: auto;
    min-height: var(--hero-h, 100vh);
    padding: 120px 0 100px;
}
@media (max-width: 767.98px) {
    .hero-section .carousel-item,
    .hero-section .hero-slide-inner { min-height: var(--hero-h-m, 100vh); }
    .hero-section .hero-slide-inner { padding: 100px 0 90px; }
}

/* ========================================
   ABOUT + VISION & MISSION (combined section)
   ======================================== */
.about-vm {
    color: #fff;
    background: linear-gradient(135deg, #032e29 0%, #054a43 45%, #0a6f66 100%);
}
.about-vm-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 15%, rgba(39, 206, 215, .18), transparent 35%),
        radial-gradient(circle at 92% 85%, rgba(38, 131, 198, .22), transparent 40%),
        radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px;
    pointer-events: none;
}
.about-vm-left, .about-vm-right { height: 100%; }

/* left */
.about-vm-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 500;
    color: #043b35;
    background: linear-gradient(135deg, #7ff0ea, #27ced7);
    box-shadow: 0 6px 18px rgba(39, 206, 215, .35);
}
.about-vm-title {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 1.2rem 0 .4rem;
}
.about-vm-title span { color: #7ff0ea; }
.about-vm-sub { color: rgba(255, 255, 255, .6); font-size: 1.05rem; margin-bottom: 1.4rem; }
.about-vm-text { color: rgba(255, 255, 255, .85); font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.6rem; }

.about-vm-iso {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    margin-bottom: 1.4rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 4px solid #f5c451;
}
.about-vm-iso-icon {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: #043b35;
    background: #f5c451;
}
.about-vm-iso strong { display: block; font-size: 1.05rem; }
.about-vm-iso span { font-size: .88rem; color: rgba(255, 255, 255, .75); }
.about-vm-iso b { color: #f5c451; font-weight: 600; }

.about-vm-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all .25s ease;
}
.about-vm-feature:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }
.about-vm-feature-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #0a897e, #27ced7);
}
.about-vm-feature strong { display: block; font-size: .95rem; font-weight: 600; }
.about-vm-feature small { color: rgba(255, 255, 255, .55); font-size: .78rem; }

/* right */
.about-vm-right {
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.about-vm-photo { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 1.4rem; }
.about-vm-photo img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .6s ease; }
.about-vm-photo:hover img { transform: scale(1.05); }
.about-vm-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(3, 46, 41, .75) 100%);
}
.about-vm-years {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.about-vm-years strong { font-size: 2.4rem; font-weight: 700; line-height: 1; color: #7ff0ea; }
.about-vm-years span { font-size: .8rem; line-height: 1.2; color: rgba(255, 255, 255, .85); text-transform: uppercase; letter-spacing: .05em; }

.about-vm-heading { font-size: 1.6rem; font-weight: 700; margin: 0 4px 1rem; }

.vm-card {
    display: flex;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 18px;
    background: #fff;
    color: #333;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}
.vm-card + .vm-card { margin-top: 14px; }
.vm-card:hover { transform: translateX(6px); box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.vm-card-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, #0a897e, #2683c6);
}
.vm-card h3 { font-size: 1.15rem; font-weight: 700; color: #043b35; margin-bottom: .4rem; }
.vm-card h3 small { font-size: .8rem; font-weight: 500; color: #0a897e; margin-left: 6px; text-transform: uppercase; letter-spacing: .05em; }
.vm-card p { margin: 0; color: #555; line-height: 1.75; font-size: .95rem; }
.vm-card .vm-quote { font-style: italic; color: #065a52; font-size: 1rem; }

@media (max-width: 991.98px) {
    .about-vm-right { padding: 16px; }
    .about-vm-photo img { height: 180px; }
}

/* ========================================
   SERVICE PAGES (/services, /services/{slug}) — design from sit_tlc prototypes
   ======================================== */
.svc-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 70px;
    color: #fff;
    background: linear-gradient(135deg, #043b35 0%, #0a897e 60%, #27ced7 130%);
}
.svc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .08) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .08) 0%, transparent 30%);
}
.svc-hero-icon {
    width: 90px; height: 90px;
    margin: .5rem 0 1.5rem;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem;
    background: rgba(255, 255, 255, .15);
    border: 2px solid rgba(255, 255, 255, .3);
    backdrop-filter: blur(10px);
}
.svc-hero-num {
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, .2);
}
.svc-hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; margin: 0; }
.svc-hero-th { font-size: 1.25rem; color: #c9fbf6; margin: -.4rem 0 .6rem; }
.svc-hero-sub { font-size: 1.1rem; color: rgba(255, 255, 255, .88); max-width: 760px; margin: 0; }

.svc-intro {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 36px 40px;
    margin-bottom: 50px;
    border-radius: 24px;
    background: #fff;
    border-left: 6px solid var(--primary-teal);
    box-shadow: 0 10px 30px rgba(10, 137, 126, .1);
}
.svc-intro-icon {
    width: 80px; height: 80px; flex-shrink: 0;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
}
.svc-intro h2 { font-size: 1.6rem; font-weight: 700; color: #043b35; margin-bottom: .6rem; }
.svc-intro p { margin: 0; color: #555; line-height: 1.85; font-size: 1.02rem; }

.svc-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.svc-grid-1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.svc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.svc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.svc-grid-5 { grid-template-columns: repeat(5, 1fr); }

.svc-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(10, 137, 126, .1);
    box-shadow: 0 8px 26px rgba(10, 137, 126, .08);
    transition: all .35s ease;
}
.svc-item:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(10, 137, 126, .18); border-color: var(--light-teal); }
.svc-item-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 20px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-teal), #1a9e94 60%, var(--light-teal));
}
.svc-item-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    border: 3px solid rgba(255, 255, 255, .5);
    transition: all .3s;
}
.svc-item:hover .svc-item-circle { background: #fff; color: var(--primary-teal); transform: rotate(-8deg) scale(1.05); }
.svc-item-head h3 { color: #fff; font-size: 1.02rem; font-weight: 700; line-height: 1.4; margin: 0; }
.svc-item-body { flex: 1; padding: 22px 22px 20px; }
.svc-item-body > ul { list-style: none; padding: 0; margin: 0; }
.svc-item-body > ul > li {
    position: relative;
    padding: 9px 0 9px 26px;
    border-bottom: 1px dashed rgba(10, 137, 126, .15);
    font-size: .92rem;
    color: #444;
    line-height: 1.6;
}
.svc-item-body > ul > li:last-child { border-bottom: 0; }
.svc-item-body > ul > li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0; top: 10px;
    font-size: .8rem;
    color: var(--primary-teal);
}
.svc-sub { list-style: none; padding: 6px 0 0 4px; margin: 0; }
.svc-sub li { position: relative; padding: 3px 0 3px 16px; font-size: .85rem; color: #666; }
.svc-sub li::before {
    content: "";
    position: absolute;
    left: 2px; top: 11px;
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--light-teal);
}

.svc-gallery-head { display: flex; align-items: baseline; justify-content: space-between; margin: 60px 0 18px; }
.svc-gallery-head h2 { font-size: 1.5rem; font-weight: 700; color: #043b35; margin: 0; }
.svc-gallery-head h2 i { color: var(--primary-teal); }
.svc-gallery-head span { color: #888; font-size: .9rem; }
.svc-gallery { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
.svc-gallery-item { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #e6f4f2; }
.svc-gallery-item.is-large { grid-column: span 2; grid-row: span 2; }
.svc-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-gallery-item:hover img { transform: scale(1.08); }
.svc-gallery-zoom {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    background: rgba(4, 59, 53, .45);
    opacity: 0;
    transition: opacity .3s;
}
.svc-gallery-item:hover .svc-gallery-zoom { opacity: 1; }

.svc-cert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
    padding: 22px 30px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #043b35, #065a52);
}
.svc-cert-icon { font-size: 2rem; color: var(--light-teal); }
.svc-cert strong { display: block; font-size: 1.1rem; }
.svc-cert span { color: rgba(255, 255, 255, .8); font-size: .9rem; }
.svc-cert .svc-cert-badge { padding: 8px 20px; border-radius: 50px; font-weight: 600; background: linear-gradient(135deg, var(--primary-teal), var(--light-teal)); color: #fff; font-size: .95rem; }
.svc-cert-btn { padding: 10px 24px; border-radius: 50px; background: #fff; color: var(--primary-teal); font-weight: 600; text-decoration: none; transition: all .25s; }
.svc-cert-btn:hover { background: var(--light-teal); color: #043b35; }

.svc-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.svc-pager-link {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid rgba(10, 137, 126, .12);
    color: #043b35;
    text-decoration: none;
    font-weight: 600;
    transition: all .25s;
}
.svc-pager-link small { display: block; font-weight: 400; color: #888; font-size: .78rem; }
.svc-pager-link i { color: var(--primary-teal); }
.svc-pager-link:hover { border-color: var(--primary-teal); color: var(--primary-teal); transform: translateY(-2px); }

/* overview page */
.svc-overview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1.5px solid rgba(10, 137, 126, .1);
    box-shadow: 0 6px 22px rgba(10, 137, 126, .08);
    color: #333;
    text-decoration: none;
    transition: all .3s ease;
}
.svc-overview-card:hover { transform: translateY(-8px); border-color: var(--primary-teal); box-shadow: 0 18px 40px rgba(10, 137, 126, .18); color: #333; }
.svc-overview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.svc-overview-num { font-size: 2rem; font-weight: 800; color: rgba(10, 137, 126, .2); }
.svc-overview-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
}
.svc-overview-card h3 { font-size: 1.15rem; font-weight: 700; color: #043b35; margin-bottom: 2px; }
.svc-overview-th { color: var(--primary-teal); font-size: .88rem; margin-bottom: 10px; }
.svc-overview-desc { color: #666; font-size: .88rem; line-height: 1.7; flex: 1; }
.svc-overview-more { margin-top: 14px; color: var(--primary-teal); font-weight: 600; font-size: .9rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #f0fdfc; color: #0a897e; border: 1px solid rgba(10, 137, 126, .2); border-radius: 20px; padding: 3px 12px; font-size: .72rem; font-weight: 500; }

/* lightbox */
.svc-lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(2, 20, 18, .92);
    padding: 60px 70px;
}
.svc-lightbox[hidden] { display: none; }
.svc-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.svc-lb-close, .svc-lb-nav {
    position: absolute;
    width: 48px; height: 48px;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff; font-size: 1.2rem;
}
.svc-lb-close:hover, .svc-lb-nav:hover { background: #fff; color: var(--primary-teal); }
.svc-lb-close { top: 18px; right: 18px; }
.svc-lb-nav.prev { left: 14px; top: 50%; transform: translateY(-50%); }
.svc-lb-nav.next { right: 14px; top: 50%; transform: translateY(-50%); }
.svc-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); }

@media (max-width: 1199.98px) {
    .svc-grid-4, .svc-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
    .svc-grid, .svc-grid-2, .svc-grid-4, .svc-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .svc-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .svc-hero { padding: 120px 0 50px; }
    .svc-intro { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
    .svc-grid, .svc-grid-1, .svc-grid-2, .svc-grid-4, .svc-grid-5 { grid-template-columns: 1fr; }
    .svc-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .svc-pager { flex-direction: column; }
    .svc-lightbox { padding: 60px 10px; }
}

/* ========================================
   CLIENTS PAGE (/clients) + clickable client cards on the home page
   ======================================== */
.clients-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8rem; }
.clients-jump a {
    padding: 8px 16px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: .9rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    transition: all .25s;
}
.clients-jump a i { margin-right: 6px; color: #9ff3f0; }
.clients-jump a:hover { background: #fff; color: var(--primary-teal); }
.clients-jump a:hover i { color: var(--primary-teal); }

.client-group { scroll-margin-top: 110px; margin-bottom: 48px; }
.client-group-head {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 22px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(120deg, #043b35 0%, #0a897e 75%, #27ced7 140%);
    box-shadow: 0 10px 28px rgba(10, 137, 126, .2);
}
.client-group-bg {
    position: absolute;
    inset: 0 0 0 45%;
    background-size: cover;
    background-position: center;
    opacity: .28;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.client-group-icon {
    position: relative;
    width: 54px; height: 54px; flex-shrink: 0;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
}
.client-group-head h2 { position: relative; font-size: 1.35rem; font-weight: 700; margin: 0; }
.client-group-count {
    position: relative;
    margin-left: auto;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .85rem;
    background: rgba(255, 255, 255, .18);
    white-space: nowrap;
}

.client-logo-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.client-logo-card {
    position: relative;
    height: 110px;
    padding: 14px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
    border: 1.5px solid rgba(10, 137, 126, .1);
    box-shadow: 0 4px 14px rgba(10, 137, 126, .06);
    color: #043b35;
    text-decoration: none;
    transition: all .25s ease;
}
.client-logo-card:hover { transform: translateY(-4px); border-color: var(--light-teal); box-shadow: 0 12px 26px rgba(10, 137, 126, .15); color: #043b35; }
.client-logo-card img { max-width: 100%; max-height: 78px; object-fit: contain; filter: grayscale(.15); transition: filter .25s; }
.client-logo-card:hover img { filter: none; }
.client-logo-name { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.client-logo-card small { margin-top: 3px; font-size: .72rem; color: #777; line-height: 1.25; }
.client-logo-ext { position: absolute; right: 10px; top: 10px; font-size: .7rem; color: var(--light-teal); }

/* Home page: client group cards are links now */
a.client-cat-link { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: 20px; }
a.client-cat-link:focus-visible { outline: 3px solid var(--light-teal); outline-offset: 3px; }
a.client-cat-link .client-cat-card { transition: transform .3s ease, box-shadow .3s ease; }
a.client-cat-link:hover .client-cat-card { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(4, 59, 53, .3); }
.client-cat-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    transition: all .25s;
}
a.client-cat-link:hover .client-cat-more { background: #fff; color: var(--primary-teal); }

@media (max-width: 767.98px) {
    .client-group-head { flex-wrap: wrap; padding: 16px 18px; }
    .client-group-count { margin-left: 0; }
    .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Contact section: phone / e-mail links */
.contact-link { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .5); }
.contact-link:hover { color: #fff; border-bottom-style: solid; }
