/* ==========================================
   1. GLOBAL VARIABLES & BASE THEME
   ========================================== */
:root {
    --komodo-green: #25963a;
    --komodo-yellow: #f1c40f;
    --komodo-dark: #1e1e1e;
    --komodo-light: #f8f9fa;
    --pkr-green: #2d5a27;
    --pkr-green-rgb: 45, 90, 39;
    --pkr-green-light: #4a8c3f;
    --pkr-dark: #1e3a1a;
    --pkr-secondary: #88d498;
    --pkr-secondary-rgb: 136, 212, 152;
    --sidebar-width: 260px;
}

/* PKR Overrides for Bootstrap Primary (Blue -> Dark Green) and Info (Cyan -> Light Green) */
.text-primary { color: var(--pkr-green) !important; }
.btn-primary { 
    background-color: var(--pkr-green) !important; 
    border-color: var(--pkr-green) !important; 
    color: white !important; 
}
.btn-primary:hover { 
    background-color: var(--pkr-dark) !important; 
    border-color: var(--pkr-dark) !important; 
}
.btn-outline-primary {
    color: var(--pkr-green) !important;
    border-color: var(--pkr-green) !important;
}
.btn-outline-primary:hover {
    background-color: var(--pkr-green) !important;
    color: white !important;
}
.bg-primary { background-color: rgba(var(--pkr-green-rgb), var(--bs-bg-opacity, 1)) !important; }
.border-primary { border-color: var(--pkr-green) !important; }

.text-info { color: var(--pkr-secondary) !important; }
.btn-info { 
    background-color: var(--pkr-secondary) !important; 
    border-color: var(--pkr-secondary) !important; 
    color: #1e3a1a !important; 
}
.btn-outline-info {
    color: var(--pkr-secondary) !important;
    border-color: var(--pkr-secondary) !important;
}
.btn-outline-info:hover {
    background-color: var(--pkr-secondary) !important;
    color: #1e3a1a !important;
}
.bg-info { background-color: rgba(var(--pkr-secondary-rgb), var(--bs-bg-opacity, 1)) !important; }

/* Move Styles from header.php and project_detail.php here */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--pkr-dark);
    color: white;
    transition: all 0.3s;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    margin: 4px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 12px; /* Increased spacing */
    text-align: center;
}

.sidebar .nav-link.active {
    background: var(--pkr-green);
    color: white;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header img {
    max-height: 50px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

/* Sidebar Collapsed State */
body.sidebar-collapsed .sidebar {
    width: 80px;
}
body.sidebar-collapsed .sidebar .sidebar-header h5,
body.sidebar-collapsed .sidebar .nav-link span,
body.sidebar-collapsed .sidebar .nav-item .px-4 {
    display: none;
}
body.sidebar-collapsed .sidebar .nav-link {
    justify-content: center;
    margin: 4px 10px;
}
body.sidebar-collapsed .sidebar .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
}
body.sidebar-collapsed .main-content {
    margin-left: 80px;
}

.top-navbar {
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

.content-area {
    padding: 30px;
}

@media (max-width: 992px) {
    .sidebar { left: calc(-1 * var(--sidebar-width)); }
    .sidebar.active { left: 0; }
    .main-content { margin-left: 0 !important; }
    .top-navbar { padding: 0 5px !important; }
    .content-area { padding: 8px 5px !important; }
    .card-body { padding: 10px !important; }
    .row { --bs-gutter-x: 8px; }
    .g-3, .gx-3 { --bs-gutter-x: 8px !important; }
    .g-3, .gy-3 { --bs-gutter-y: 8px !important; }
    .container, .container-fluid { padding-left: 5px !important; padding-right: 5px !important; }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

/* Green Tone for Links & Breadcrumbs */
a { color: var(--pkr-green); text-decoration: none; }
a:hover { color: var(--pkr-dark); }

.breadcrumb-item a {
    color: var(--pkr-green) !important;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Form Switches & Progress Bars to Green */
.form-check-input:checked {
    background-color: var(--pkr-green) !important;
    border-color: var(--pkr-green) !important;
}

.progress-bar {
    background-color: var(--pkr-green) !important;
}

/* Range Input (Slider) */
input[type=range]::-webkit-slider-thumb {
    background: var(--pkr-green);
}
input[type=range]::-moz-range-thumb {
    background: var(--pkr-green);
}
input[type=range]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(45, 90, 39, 0.25);
}

/* Album Styles from project_detail.php */
.album-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef !important;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.album-card:hover {
    background: #f1f3f5;
    border-color: #dee2e6 !important;
}

.album-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(136, 212, 152, 0.15);
    color: var(--pkr-secondary);
    margin-right: 10px;
}


body {
    font-family: 'Prompt', 'Kanit', sans-serif;
    background-color: var(--komodo-light);
    color: var(--komodo-dark);
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

/* DataTable & Pagination - PKR Green */
.page-item.active .page-link {
    background-color: var(--pkr-green) !important;
    border-color: var(--pkr-green) !important;
    color: white !important;
}

.page-link {
    color: var(--pkr-green) !important;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.25) !important;
}

.dataTables_length select:focus {
    border-color: var(--pkr-green-light) !important;
    box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.15) !important;
    outline: none !important;
}

/* Input & Select Focus & Hover - PKR Green */
.form-control:focus, .form-select:focus {
    border-color: var(--pkr-green-light) !important;
    box-shadow: 0 0 0 0.25rem rgba(45, 90, 39, 0.15) !important;
}

.form-control:hover, .form-select:hover {
    border-color: var(--pkr-green-light) !important;
    background-color: rgba(45, 90, 39, 0.03) !important;
}

/* Eliminate native blue highlights */
input, select, textarea {
    accent-color: var(--pkr-green) !important;
}

/* Status Light Backgrounds */
.bg-success-light { background-color: rgba(25, 135, 84, 0.08) !important; }
.bg-warning-light { background-color: rgba(255, 193, 7, 0.08) !important; }
.bg-primary-light { background-color: rgba(13, 110, 253, 0.08) !important; }
.bg-danger-light { background-color: rgba(220, 53, 69, 0.08) !important; }
.bg-info-light { background-color: rgba(13, 202, 240, 0.08) !important; }

/* Override native select dropdown highlight (Chrome/Edge/Safari/Firefox) */
select option:checked,
select option:hover,
.form-select option:checked,
.form-select option:hover {
    background-color: var(--pkr-green) !important;
    color: white !important;
    box-shadow: 0 0 10px 100px var(--pkr-green) inset !important;
    -webkit-text-fill-color: white !important;
}

/* For Firefox */
@-moz-document url-prefix() {
    select option:checked,
    .form-select option:checked {
        background-color: var(--pkr-green) !important;
        color: white !important;
    }
}

/* Parallel Workflow Alert */
.alert-parallel {
    background: rgba(136, 212, 152, 0.1) !important;
    border: 1px solid rgba(45, 90, 39, 0.2) !important;
    color: var(--pkr-dark) !important;
}

.alert-parallel i {
    color: var(--pkr-green) !important;
}

/* ==========================================
   2. GLOBAL COMPONENTS & UTILITIES
   ========================================== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.bg-komodo {
    background-color: var(--komodo-green) !important;
}

.text-komodo {
    color: var(--komodo-green) !important;
}

.btn-komodo {
    background-color: var(--komodo-green);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    border: none;
}

.btn-komodo:hover {
    background-color: #21431d;
    color: var(--komodo-yellow);
    transform: translateY(-2px);
}

.navbar {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.3rem 1rem; /* Reduced from 0.8rem to accommodate larger brand without growing bar */
}

/* Custom Navbar Link Colors */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.0rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap !important; /* Prevent word splitting (e.g. โปรโมชั่น) */
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Navbar Responsive Fixes - Prevent wrapping on all screens including iPad Landscape (1180x820) */
@media (min-width: 768px) {
    .navbar-expand-md .navbar-nav,
    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Force items to stay in one row */
    }
    
    .navbar-nav .nav-link,
    .navbar-nav .btn {
        white-space: nowrap !important;
    }
}

/* Specific adjustments for iPad Air 5 Landscape (1180px) and smaller desktops */
@media (max-width: 1200px) {
    .navbar-dark .navbar-nav .nav-link {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        font-size: 0.95rem;
    }
    
    .brand-text {
        font-size: 1.3rem !important;
    }
    
    .circle-logo {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .circle-logo img {
        width: 38px !important;
        height: 38px !important;
    }

    .navbar-nav .nav-item.ms-lg-3 {
        margin-left: 0.5rem !important;
    }

    .navbar-nav .btn {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.9rem;
    }
}

/* Extra compact for iPad Air 5 Portrait (820px) and tighter spaces */
@media (max-width: 900px) {
    .navbar-dark .navbar-nav .nav-link {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
        font-size: 0.8rem;
        letter-spacing: -0.3px;
    }
    
    .brand-text {
        font-size: 1.1rem !important;
    }
    
    .circle-logo {
        width: 34px !important;
        height: 34px !important;
    }

    .navbar-nav .btn {
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        font-size: 0.75rem;
    }
}


.section-title {
    position: relative;
    margin-bottom: 3.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--komodo-yellow);
    border-radius: 2px;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
    transform: translateY(-5px);
}

.hover-komodo:hover {
    background-color: var(--komodo-green) !important;
    color: white !important;
}

.hover-komodo:hover i,
.hover-komodo:hover p {
    color: white !important;
}

/* Ensure Logo looks perfectly circular (with horizontal compensation) */
.circle-logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    flex: 0 0 48px !important;
    border-radius: 50% !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0;
    box-sizing: border-box !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.circle-logo img {
    width: 46px !important;
    height: 46px !important;
    object-fit: contain !important;
}

.brand-text {
    font-size: 1.6rem;
    line-height: 1;
}

.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--komodo-green);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #21431d;
}

/* ==========================================
   3. SHOP PAGE STYLES
   ========================================== */
.search-input-group {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.15) !important;
}

.text-komodo-blue {
    color: #004a99;
}

#category-sidebar-nav .list-group-item.active {
    background-color: rgba(0, 74, 153, 0.1);
    color: #004a99;
    font-weight: 600;
    border-left: 3px solid #004a99 !important;
    border-radius: 0 8px 8px 0 !important;
}

.custom-product-tabs {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-product-tabs::-webkit-scrollbar {
    display: none;
}

.custom-product-tabs .nav-link {
    background: #f1f1f1;
    color: #555;
    border-radius: 10px 10px 0 0;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.custom-product-tabs .nav-link.active {
    background: #5d9c00 !important;
    color: #fff !important;
    box-shadow: 0 -2px 10px rgba(93, 156, 0, 0.2);
}

.product-tab-content {
    background: #fff;
    border: 1px solid #eee;
    min-height: 160px;
    max-height: 250px;
    overflow-y: auto;
}

.product-tab-content::-webkit-scrollbar {
    width: 6px;
}

.product-tab-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.product-card {
	transition: transform 0.2s;
	border: none !important;
	border-radius: 15px !important;
}

.product-card:hover { transform: translateY(-5px); }

/* ==========================================
   4. SERVICES PAGE STYLES
   ========================================== */
.ps-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #5d9c00;
    margin: 15px auto 0;
    border-radius: 2px;
}

.ps-service-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none !important;
    border-radius: 20px !important;
}

.ps-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.ps-nav-tabs .nav-link {
    border: none;
    color: #718096;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    background-color: #f1f5f9;
    transition: all 0.2s;
}

.ps-nav-tabs .nav-link.active {
    background-color: #5d9c00 !important;
    color: white !important;
}

.ps-tab-container {
    border: 2px solid #edf2f7;
    border-top: none;
    border-radius: 0 0 15px 15px;
    background: #fff;
    min-height: 450px;
    padding: 25px !important;
}

.ps-img-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ps-img-gallery img:hover { transform: scale(1.02); }

/* ==========================================
   5. REGISTRATION PAGE STYLES
   ========================================== */
.header-banner {
    background: linear-gradient(90deg, #c4e4ff, #eef7ff);
    padding: 15px;
    text-align: center;
    border-bottom: 5px solid var(--komodo-green);
}

.profile-section {
    text-align: center;
    margin-top: -50px;
    margin-bottom: 30px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    background: #eee;
}

.btn-submit {
    background-color: #e0e0e0;
    color: #888;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.btn-submit.active {
    background-color: var(--komodo-green);
    color: white;
}

.liff-loading {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ==========================================
   6. ADMIN PANEL STYLES
   ========================================== */
.login-card {
    max-width: 400px;
    margin: 100px auto;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bg-admin {
    background: linear-gradient(135deg, #1e1e1e, var(--komodo-green));
    color: white;
    border-radius: 15px 15px 0 0;
}

.btn-admin {
    background-color: var(--komodo-green);
    color: white;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-admin:hover {
    background-color: #1e1e1e;
    color: white;
}

/* ==========================================
   7. HERO CAROUSEL (INDEX PAGE)
   ========================================== */
.ps-hero-carousel {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.ps-carousel-item {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.ps-carousel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(34, 73, 11, 0.92) 0%, rgba(93, 156, 0, 0.75) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.ps-carousel-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

/* ==========================================
   8. LIGHTBOX SYSTEM
   ========================================== */
#product-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

#product-lightbox.show { display: flex; opacity: 1; }

#product-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#product-lightbox.show img { transform: scale(1); }

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 15px 22px;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
}
/* ==========================================
   9. SCROLL REVEAL (LAZY LOAD) ANIMATION
   ========================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.5, 0, 0, 1), transform 0.9s cubic-bezier(0.5, 0, 0, 1);
    visibility: hidden;
}

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

/* ==========================================
   11. INFINITE LOGO/IMAGE MARQUEE
   ========================================== */
.ps-marquee-container {
    overflow: hidden;
    position: relative;
    padding: 2.5rem 0;
    user-select: none;
}

.ps-marquee-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 1.5rem;
    width: max-content;
}

.ps-marquee-track.reverse {
    animation: marquee-r 40s linear infinite;
}

.ps-marquee-track.slow {
    animation: marquee-l 60s linear infinite;
}

.ps-marquee-track:not(.reverse):not(.slow) {
    animation: marquee-l 40s linear infinite;
}

.ps-marquee-item {
    flex: 0 0 320px;
    height: 200px;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.ps-marquee-item:hover {
    transform: translateY(-5px) scale(1.03);
    z-index: 10;
}

.ps-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes marquee-l {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-r {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ps-marquee-overlay-l,
.ps-marquee-overlay-r {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 2;
    pointer-events: none;
}

.ps-marquee-overlay-l {
    left: 0;
    background: linear-gradient(90deg, var(--komodo-light) 0%, rgba(248, 249, 250, 0) 100%);
}

.ps-marquee-overlay-r {
    right: 0;
    background: linear-gradient(-90deg, var(--komodo-light) 0%, rgba(248, 249, 250, 0) 100%);
}

/* ==========================================
   12. ABOUT US PAGE STYLES
   ========================================== */
.about-hero {
	background: linear-gradient(135deg, rgba(37, 150, 58, 0.95) 0%, rgba(30, 30, 30, 0.85) 100%), url('../img/about_hero_bg.png');
	background-size: cover;
	background-position: center;
	padding: 140px 0 100px;
	color: white;
	text-align: center;
	border-radius: 0 0 50px 50px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
	position: relative;
	overflow: hidden;
}

.about-hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url('https://www.transparenttextures.com/patterns/cubes.png');
	opacity: 0.1;
	pointer-events: none;
}

.vision-mission-card {
	border: none;
	border-radius: 30px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	height: 100%;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.vision-mission-card:hover {
	transform: translateY(-12px);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.icon-box {
	width: 80px;
	height: 80px;
	background: rgba(37, 150, 58, 0.12);
	color: var(--komodo-green);
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	margin-bottom: 30px;
	transition: all 0.3s ease;
}

.vision-mission-card:hover .icon-box {
	background: var(--komodo-green);
	color: white;
	transform: rotate(10deg);
}

.value-card {
	border: none;
	border-radius: 24px;
	padding: 45px 35px;
	text-align: center;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
	height: 100%;
	position: relative;
	z-index: 1;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.03);
}

.value-card:hover {
	border-color: var(--komodo-green);
	transform: scale(1.03);
}

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

.value-letter {
	font-size: 110px;
	font-weight: 900;
	opacity: 0.06;
	position: absolute;
	top: -10px;
	right: -10px;
	z-index: -1;
	color: var(--komodo-green);
	user-select: none;
}

.timeline-item {
	padding: 35px;
	border-left: 4px solid var(--komodo-green);
	position: relative;
	margin-left: 25px;
	background: #ffffff;
	border-radius: 0 24px 24px 0;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
	margin-bottom: 25px;
	transition: all 0.3s ease;
}

.timeline-item:hover {
	transform: translateX(10px);
	background: #fdfdfd;
}

.timeline-item::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	background: var(--komodo-green);
	border-radius: 50%;
	left: -12px;
	top: 40px;
	box-shadow: 0 0 0 6px rgba(37, 150, 58, 0.15);
}

.strength-item {
	background: #ffffff;
	padding: 18px 28px;
	border-radius: 60px;
	display: flex;
	align-items: center;
	margin-bottom: 18px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	font-weight: 600;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.strength-item:hover {
	color: var(--komodo-green);
	border-color: var(--komodo-green);
	transform: translateX(10px);
}

.strength-item i {
	color: var(--komodo-green);
	margin-right: 18px;
	font-size: 1.2rem;
}

.service-pill {
	display: inline-block;
	padding: 8px 20px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	margin: 5px;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.service-pill:hover {
	background: var(--komodo-yellow);
	color: var(--komodo-dark);
	border-color: var(--komodo-yellow);
}

.ps-tagline {
	font-family: 'Kanit', sans-serif;
	letter-spacing: 1px;
}

.ps-service-icon-box {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s ease;
}

.ps-floating-icon {
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1200px) {
    /* Reduce large decorative icons to prevent overlapping headers */
	.ps-floating-icon i {
		font-size: 2.5rem !important;
	}
}

/* Tablet & Mobile Specific Adjustments */
@media (max-width: 991px) {
	.ps-service-icon-box {
		width: 30px !important;
        height: 30px !important;
        padding: 5px !important;
        margin-right: 0.5rem !important;
    }

    .ps-service-icon-box i {
			font-size: 0.75rem !important;
    }
		
		.ps-floating-icon i {
			font-size: 2.5rem !important;
		}
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
	.about-hero {
		padding: 100px 0 60px;
		border-radius: 0 0 30px 30px;
	}

	.about-hero h1 {
		font-size: 2.2rem !important;
	}

	.about-hero h2 {
		font-size: 1rem !important;
	}

	.ps-tagline {
		font-size: 0.9rem !important;
		padding: 12px 20px !important;
	}

	.vision-mission-card {
		padding: 30px !important;
		border-radius: 20px;
	}

	.icon-box {
		width: 60px;
		height: 60px;
		font-size: 24px;
		margin-bottom: 20px;
	}

	.value-card {
		padding: 30px 20px;
	}

	.value-letter {
		font-size: 80px;
	}

	.timeline-item {
		margin-left: 15px;
		padding: 25px;
	}

	.strength-item {
		padding: 12px 20px;
		font-size: 0.9rem;
	}

	.ps-floating-icon {
		padding: 1.5rem !important;
	}

	.ps-floating-icon i {
		font-size: 2.5rem !important;
	}

	.display-5 {
		font-size: 2rem !important;
	}

	.display-6 {
		font-size: 1.75rem !important;
	}
}

/* ==========================================
   13. INDEX PAGE SPECIFIC STYLES (MIGRATED)
   ========================================== */

.services-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 40px 20px;
    gap: 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.services-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.services-horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--komodo-green);
    border-radius: 10px;
}

.services-horizontal-scroll .service-column {
    flex: 0 0 420px;
    scroll-snap-align: center;
}

.desktop-section-divider {
    scroll-margin-top: 80px;
    padding-top: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-link.active {
    color: var(--komodo-yellow) !important;
    border-bottom: 2px solid var(--komodo-yellow);
}

.hero-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f2 100%);
}

.section-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(37, 150, 58, 0.1);
    color: var(--komodo-green);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.card-news-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-news-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Fix for potential modal backdrop issues */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

.card-service-clickable {
    transition: all 0.3s ease;
}

.card-service-clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 150, 58, 0.15) !important;
}

/* News Marquee Styling */
.news-marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.news-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: news-scroll 100s linear infinite;
}

.news-marquee-track:hover {
    animation-play-state: paused;
}

.news-marquee-item {
    width: 350px;
    flex-shrink: 0;
}

@keyframes news-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

@media (max-width: 991px) {
    .news-marquee-item {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 100vw !important;
        margin: 0 !important;
    }

    .news-image-container {
        height: 50vh !important;
        min-height: 300px !important;
    }
}
/* Stepper and Utility Styles from project_detail.php */
.bg-success-soft { background-color: rgba(25, 135, 84, 0.1); }
.bg-warning-soft { background-color: rgba(255, 193, 7, 0.1); }
.bg-danger-soft { background-color: rgba(220, 53, 69, 0.1); }
.italic { font-style: italic; }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }

.stepper { position: relative; padding-left: 45px; }
.stepper::before { content: ''; position: absolute; left: 19px; top: 0; bottom: 0; width: 2px; background: #e9ecef; }
.step-item { position: relative; margin-bottom: 20px; min-height: 40px; padding: 10px 15px; border-radius: 12px; transition: all 0.3s; }
.step-item:last-child { margin-bottom: 0; }
.step-circle {
    position: absolute; left: -45px; width: 40px; height: 40px; border-radius: 50%;
    background: white; border: 2px solid #e9ecef; display: flex; align-items: center;
    justify-content: center; z-index: 1; transition: all 0.3s; font-weight: bold;
}

/* Active (Current) Step Styling - Changed from Blue to Secondary Green */
.step-item.active {
    background-color: rgba(136, 212, 152, 0.1);
    border: 1px solid rgba(136, 212, 152, 0.2);
}

.step-item.active .step-circle {
    background-color: var(--pkr-secondary);
    border-color: var(--pkr-secondary);
    color: #1e3a1a;
    box-shadow: 0 0 0 5px rgba(136, 212, 152, 0.2);
    transform: scale(1.1);
}

.step-item.completed .step-circle { background: var(--pkr-green); border-color: var(--pkr-green); color: white; opacity: 0.8; }
.step-item.active .step-title { color: var(--pkr-green); font-size: 1rem; }

.step-remarks {
    font-size: 0.9rem; color: #6c757d; background: #f8f9fa;
    padding: 8px 12px; border-radius: 8px; border-left: 3px solid var(--pkr-secondary);
}

.step-dates-mobile { font-size: 0.85rem; font-weight: 500; color: #495057; }

@media (max-width: 576px) {
    .stepper { padding-left: 40px; }
    .stepper::before { left: 14px; }
    .step-circle { left: -40px; width: 30px; height: 30px; font-size: 14px; }
    .step-item { padding: 10px 12px; margin-bottom: 12px; border-radius: 8px; }
    .step-title { font-size: 1.05rem; font-weight: 600; }
    .step-item.active .step-title { font-size: 1.15rem; }
}

.hover-lift { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; }
.transition-all { transition: all 0.3s ease; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media-item { overflow: hidden; }
.media-item img { transition: transform 0.3s ease; }
.media-item:hover img { transform: scale(1.05); }

/* Workflow Tree (Org-Chart Style) from workflow_steps.php */
.org-tree { display: inline-block; padding-bottom: 20px; padding-top: 10px; }
.org-tree ul { padding-top: 15px; position: relative; display: flex; justify-content: center; align-items: flex-start; padding-left: 0; margin-bottom: 0; }
.org-tree li { text-align: center; list-style-type: none; position: relative; padding: 15px 5px 0 5px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.org-tree li::before, .org-tree li::after { content: ''; position: absolute; top: 0; right: 50%; border-top: 2px solid #cbd5e1; width: 50%; height: 15px; }
.org-tree li::after { right: auto; left: 50%; border-left: 2px solid #cbd5e1; }
.org-tree li:only-child::after, .org-tree li:only-child::before { display: none; }
.org-tree li:only-child { padding-top: 0; }
.org-tree li:first-child::before, .org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before { border-right: 2px solid #cbd5e1; border-radius: 0 5px 0 0; }
.org-tree li:first-child::after { border-radius: 5px 0 0 0; }
.org-tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid #cbd5e1; width: 0; height: 15px; }
.org-card { min-width: 180px; max-width: 180px; border-radius: 0.5rem; text-align: left; white-space: normal; z-index: 2; position: relative; }
.config-card { min-width: 220px; max-width: 220px; }

/* Service Categories from services.php */
.category-card { transition: transform 0.2s, box-shadow 0.2s; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important; }
.custom-pills .nav-link { border-radius: 50px; padding: 10px 20px; color: #666; font-weight: 500; }
.custom-pills .nav-link.active { background-color: var(--pkr-green); color: white; }
.media-card { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.2s; }
.media-card:hover .media-overlay { opacity: 1; }
.media-badge { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: bold; color: white; }

/* Mobile Table Styles from projects.php */
@media (max-width: 768px) {
    .table td { padding: 8px 4px !important; vertical-align: middle; }
    .table td a { font-size: 0.95rem; line-height: 1.2; }
    .table td .small { font-size: 10px; line-height: 1; }
    .badge { font-size: 10px; padding: 2px 4px; }
    .btn-sm { padding: 4px 8px; font-size: 11px; }
    .text-nowrap { white-space: nowrap; }
}

/* Common Utilities from permissions.php and others */
.cursor-pointer { cursor: pointer; }
.hover-scale:hover { transform: scale(1.2); }

/* Dashboard KPI Styles from dashboard.php */
.kpi-card { border: none; border-radius: 15px; transition: transform 0.3s; }
.kpi-card:hover { transform: translateY(-5px); }
.icon-box { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.filter-bar { background: white; border-radius: 15px; padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.project-link:hover { color: var(--pkr-green) !important; text-decoration: underline !important; }

/* Final Node Red Styling */
.border-final {
    border-color: #dc3545 !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4) !important;
    position: relative;
    overflow: hidden;
}

.border-final::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.text-gold {
    color: #d4af37 !important;
}

@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.animate-pulse-red {
    animation: pulse-red 1.5s infinite;
}
