/**
* Template Name: Arsha - v4.9.0
* Template URL: https://bootstrapmade.com/arsha-free-bootstrap-html-template-corporate/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

:root {
    --pcru-navy-dark: #081a2e;
    --pcru-navy: #0e2a4a;
    --pcru-navy-light: #123860;
    --pcru-blue: #1f6fb2;
    --pcru-sky: #e9f4fd;
    --pcru-gold: #f0b429;
    --pcru-gold-hover: #d99f18;
    --pcru-text-dark: #102a45;
    --pcru-text-muted: #5b738c;
    --pcru-border: rgba(18, 53, 91, 0.1);
    --pcru-card-shadow: 0 12px 36px rgba(14, 42, 74, 0.08);
    --pcru-card-hover: 0 20px 48px rgba(14, 42, 74, 0.14);
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    font-family: 'Sarabun', sans-serif;
    color: var(--pcru-text-dark);
    background-color: #f7faff;
}

a {
    color: var(--pcru-blue);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--pcru-navy-dark);
    text-decoration: none;
}

p {
    color: var(--pcru-text-muted);
    text-decoration: none;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sarabun', sans-serif;
}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 20px;
    bottom: 20px;
    z-index: 996;
    background: var(--pcru-blue);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(31, 111, 178, 0.35);
}

.back-to-top i {
    font-size: 22px;
    color: #ffffff;
    line-height: 0;
}

.back-to-top:hover {
    background: var(--pcru-navy);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(14, 42, 74, 0.4);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
    transition: all 0.4s ease;
    z-index: 997;
    padding: 16px 0;
    background: rgba(14, 42, 74, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(8, 26, 46, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#header.header-scrolled,
#header.header-inner-pages {
    background: rgba(11, 34, 60, 0.98);
    padding: 12px 0;
    box-shadow: 0 6px 25px rgba(8, 26, 46, 0.35);
}

#header .logo {
    font-size: 22px;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#header .logo a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

#header .logo img {
    max-height: 42px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
    padding: 0;
}

.navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.navbar li {
    position: relative;
}

.navbar a,
.navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px 26px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.navbar a i,
.navbar a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
    color: var(--pcru-gold);
}

.navbar .getstarted,
.navbar .getstarted:focus {
    padding: 9px 24px;
    margin-left: 26px;
    border-radius: 50px;
    color: var(--pcru-navy-dark);
    background: linear-gradient(135deg, var(--pcru-gold), #ffd05b);
    font-size: 14px;
    border: 0;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(240, 180, 41, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.navbar .getstarted:hover,
.navbar .getstarted:focus:hover {
    color: var(--pcru-navy-dark);
    background: linear-gradient(135deg, #ffd875, var(--pcru-gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(240, 180, 41, 0.5);
}

.navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 14px;
    top: calc(100% + 30px);
    margin: 0;
    padding: 12px 0;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(14, 42, 74, 0.16);
    transition: 0.3s;
    border-radius: 12px;
    border: 1px solid var(--pcru-border);
}

.navbar .dropdown ul li {
    min-width: 200px;
}

.navbar .dropdown ul a {
    padding: 10px 20px;
    font-size: 14px;
    text-transform: none;
    font-weight: 500;
    color: var(--pcru-navy);
}

.navbar .dropdown ul a i {
    font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
    color: var(--pcru-blue);
    background-color: var(--pcru-sky);
}

.navbar .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
}

.navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 30px);
    visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
}

@media (max-width: 1366px) {
    .navbar .dropdown .dropdown ul {
        left: -90%;
    }

    .navbar .dropdown .dropdown:hover>ul {
        left: -100%;
    }
}

/*--------------------------------------------------------------
# Navbar Dropdown & User Profile Dropdown Fixes
--------------------------------------------------------------*/
/* Dropdown Toggle Pill in Header */
.navbar .user-nav-pill,
.navbar a#navbarDropdown {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 6px 14px 6px 10px !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.navbar .user-nav-pill:hover,
.navbar a#navbarDropdown:hover,
.navbar a#navbarDropdown:focus,
.navbar .user-nav-pill.show,
.navbar a#navbarDropdown[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: var(--pcru-gold) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pcru-gold), #ffd875);
    color: var(--pcru-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.user-nav-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.user-nav-role {
    font-size: 0.76rem;
    color: var(--pcru-gold) !important;
    line-height: 1.1;
    display: block;
}

/* Fix Dropdown Menu and Dropdown Items inside Navbar */
.navbar .dropdown-menu,
.dropdown-menu {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 12px 35px rgba(8, 26, 46, 0.2) !important;
    padding: 8px 6px !important;
    margin-top: 10px !important;
    background: #ffffff !important;
    min-width: 230px !important;
    z-index: 1050 !important;
}

/* CRITICAL: Overwrite navbar a style for dropdown items so text is dark and visible */
.navbar .dropdown-menu a,
.navbar .dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-item {
    color: var(--pcru-navy) !important; /* DARK NAVY TEXT - NEVER WHITE ON WHITE */
    background-color: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.navbar .dropdown-menu a i,
.navbar .dropdown-menu .dropdown-item i,
.dropdown-menu .dropdown-item i {
    font-size: 16px !important;
    color: var(--pcru-blue) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.navbar .dropdown-menu a:hover,
.navbar .dropdown-menu a:focus,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #f1f6fc !important;
    color: var(--pcru-blue) !important;
    transform: translateX(3px);
}

.navbar .dropdown-menu a:hover i,
.navbar .dropdown-menu .dropdown-item:hover i,
.dropdown-menu .dropdown-item:hover i {
    color: var(--pcru-blue) !important;
}

/* Logout item red highlight */
.navbar .dropdown-menu a.text-danger,
.navbar .dropdown-menu .dropdown-item.text-danger,
.dropdown-menu .dropdown-item.text-danger {
    color: #dc3545 !important;
}

.navbar .dropdown-menu a.text-danger i,
.navbar .dropdown-menu .dropdown-item.text-danger i {
    color: #dc3545 !important;
}

.navbar .dropdown-menu a.text-danger:hover,
.navbar .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
}


/**
* Mobile Navigation
*/
.mobile-nav-toggle {
    color: var(--pcru-gold);
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.4s;
}

.mobile-nav-toggle.bi-x {
    color: #ffffff;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }

    .navbar ul {
        display: none;
    }
}

.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(8, 26, 46, 0.75);
    backdrop-filter: blur(8px);
    transition: 0.3s;
    z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
}

.navbar-mobile ul {
    display: block;
    position: absolute;
    top: 64px;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 16px 0;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transition: 0.3s;
    border: 1px solid var(--pcru-border);
}

.navbar-mobile a,
.navbar-mobile a:focus {
    padding: 12px 24px;
    font-size: 16px;
    color: var(--pcru-navy);
    font-weight: 600;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
    color: var(--pcru-blue);
    background-color: var(--pcru-sky);
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
    margin: 16px 24px;
    color: var(--pcru-navy-dark);
    background: var(--pcru-gold);
    text-align: center;
    justify-content: center;
}

.navbar-mobile .dropdown ul {
    position: static;
    display: none;
    margin: 10px 20px;
    padding: 10px 0;
    z-index: 99;
    opacity: 1;
    visibility: visible;
    background: rgb(255, 255, 255);
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li {
    min-width: 200px;
}

.navbar-mobile .dropdown ul a {
    padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i {
    font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a {
    color: #47b2e4;
}

.navbar-mobile .dropdown>.dropdown-active {
    display: block;
}


/*--------------------------------------------------------------
# Hero Section หัวเรื่อง
--------------------------------------------------------------*/
#hero {
    width: 100%;
    min-height: 85vh;
    height: auto;
    padding: 130px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(240, 180, 41, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(31, 111, 178, 0.35), transparent 38%),
        linear-gradient(135deg, #081a2e 0%, #0e2a4a 55%, #185a94 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

#hero .container {
    padding-top: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fce8a6;
    margin-bottom: 20px;
}

#hero h1 {
    margin: 0 0 14px 0;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

#hero h2 {
    color: var(--pcru-gold);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 32px;
    max-width: 580px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--pcru-gold), #ffd05b);
    color: var(--pcru-navy-dark) !important;
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 8px 24px rgba(240, 180, 41, 0.35);
    transition: all 0.3s ease;
    border: 0;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #ffd875, var(--pcru-gold));
    color: var(--pcru-navy-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(240, 180, 41, 0.5);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.98rem;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
    color: #ffffff !important;
    transform: translateY(-3px);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.highlight-item i {
    color: var(--pcru-gold);
    font-size: 1.1rem;
}

#hero .animated {
    animation: up-down 2.5s ease-in-out infinite alternate-reverse both;
}

@media (max-width: 991px) {
    #hero {
        min-height: 100vh;
        height: auto;
        padding: 120px 0 60px;
        text-align: center;
    }

    #hero .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-highlights {
        justify-content: center;
    }

    #hero .animated {
        -webkit-animation: none;
        animation: none;
    }

    #hero .hero-img {
        text-align: center;
        margin-top: 30px;
    }

    #hero .hero-img img {
        width: 60%;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 30px;
        line-height: 1.35;
    }

    #hero h2 {
        font-size: 16px;
        margin-bottom: 18px;
    }

    #hero .hero-img img {
        width: 75%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    #hero .hero-img img {
        width: 85%;
    }
}

@-webkit-keyframes up-down {
    0% {
        transform: translateY(10px);
    }

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

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }

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

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
    padding: 70px 0;
    overflow: hidden;
}

.section-bg {
    background-color: #f4f8fc;
}

.section-title {
    text-align: center;
    padding-bottom: 35px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 16px;
    position: relative;
    color: var(--pcru-navy);
}

.section-title h2::before {
    content: "";
    position: absolute;
    display: block;
    width: 100px;
    height: 2px;
    background: #dde7f0;
    bottom: 1px;
    left: calc(50% - 50px);
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 2px;
    background: var(--pcru-blue);
    bottom: 0;
    left: calc(50% - 22px);
}

.section-title p {
    color: var(--pcru-text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/*--------------------------------------------------------------
# Quick Feature Cards (Under Hero)
--------------------------------------------------------------*/
.feature-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: var(--pcru-card-shadow);
    border: 1px solid var(--pcru-border);
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--pcru-card-hover);
    border-color: rgba(31, 111, 178, 0.3);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--pcru-sky);
    color: var(--pcru-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.feature-box h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pcru-navy);
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--pcru-text-muted);
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Visual Workflow Cards
--------------------------------------------------------------*/
.workflow-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 22px;
    border: 1px solid var(--pcru-border);
    box-shadow: var(--pcru-card-shadow);
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
}

.workflow-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pcru-card-hover);
    border-color: rgba(31, 111, 178, 0.3);
}

.workflow-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pcru-navy), var(--pcru-blue));
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(31, 111, 178, 0.28);
}

.workflow-card h4 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--pcru-navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.workflow-card p {
    font-size: 0.92rem;
    color: var(--pcru-text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Document Hub (Live Search & Clean File Cards)
--------------------------------------------------------------*/
.doc-search-box {
    background: #ffffff;
    border: 2px solid var(--pcru-border);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: var(--pcru-card-shadow);
    transition: all 0.3s ease;
}

.doc-search-box:focus-within {
    border-color: var(--pcru-blue);
    box-shadow: 0 0 0 0.25rem rgba(31, 111, 178, 0.15);
}

.doc-search-box input {
    border: 0;
    outline: none;
    font-size: 1rem;
    box-shadow: none;
}

.doc-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--pcru-border);
    box-shadow: var(--pcru-card-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.doc-card-header {
    background: linear-gradient(135deg, #0e2a4a 0%, #15416d 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.doc-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.doc-item-row {
    padding: 16px 24px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.2s ease;
}

.doc-item-row:last-child {
    border-bottom: 0;
}

.doc-item-row:hover {
    background-color: #f7faff;
}

.doc-file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.doc-file-icon {
    font-size: 26px;
    color: #e3342f;
    flex-shrink: 0;
}

.doc-file-name {
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--pcru-navy);
    line-height: 1.5;
}

.btn-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 50px;
    background: var(--pcru-sky);
    color: var(--pcru-blue) !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
    border: 1px solid rgba(31, 111, 178, 0.2);
}

.btn-doc-download:hover {
    background: var(--pcru-blue);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 111, 178, 0.3);
}

/*--------------------------------------------------------------
# Contact & Support Section
--------------------------------------------------------------*/
.contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--pcru-border);
    box-shadow: var(--pcru-card-shadow);
    height: 100%;
}

.officer-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--pcru-sky);
    color: var(--pcru-blue);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.officer-info-box {
    background: #f8fbff;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e2eaf2;
    margin-bottom: 16px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.contact-info-item i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--pcru-sky);
    color: var(--pcru-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item div h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pcru-navy);
    margin-bottom: 4px;
}

.contact-info-item div p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Footer & Visitor Statistics Dashboard
--------------------------------------------------------------*/
#footer {
    font-size: 14px;
    background: var(--pcru-navy-dark);
    color: #a0b3c6;
    padding-top: 50px;
}

#footer .footer-bottom {
    padding-bottom: 30px;
    color: #fff;
}

.visitor-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
    transition: all 0.25s ease;
}

.visitor-stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.visitor-stat-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pcru-gold);
    line-height: 1.2;
}

.visitor-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

#footer .copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: var(--pcru-navy-dark);
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--pcru-gold);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Responsive & Display Enhancements (Large Displays, iPad, Mobile)
--------------------------------------------------------------*/
/* iPad Landscape & Compact Laptops: Adjust navbar spacing to prevent wrapping */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #header .logo {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .navbar a,
    .navbar a:focus {
        padding: 8px 0 8px 14px;
        font-size: 14px;
    }

    .navbar .getstarted,
    .navbar .getstarted:focus {
        margin-left: 14px;
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* Smooth Momentum Scrolling on iOS / iPad / Mobile */
.timeline-shell,
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Base layout spacing for views with fixed header - Ensures no content is hidden behind header */
main.site-main {
    padding-top: 110px !important;
    padding-bottom: 60px !important;
    min-height: calc(100vh - 80px);
}

@media (min-width: 992px) {
    main.site-main {
        padding-top: 118px !important;
    }
}

@media (min-width: 1400px) {
    main.site-main {
        padding-top: 125px !important;
    }
}

@media (min-width: 1600px) {
    main.site-main {
        padding-top: 135px !important;
    }
}

@media (min-width: 1920px) {
    main.site-main {
        padding-top: 145px !important;
    }
}

/*--------------------------------------------------------------
# Academic Status Badges (High Contrast & Crystal Clear)
--------------------------------------------------------------*/
.status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 1. Success / ดำเนินการเสร็จสิ้น */
.status-pill-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #6ee7b7 !important;
}
.status-pill-success i {
    color: #059669 !important;
}

/* 2. Warning / ปรับปรุงผลงาน */
.status-pill-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border: 1px solid #fcd34d !important;
}
.status-pill-warning i {
    color: #d97706 !important;
}

/* 3. In Progress / ขั้นตอนต่างๆ (1-4, 6-8) */
.status-pill-info {
    background-color: #dbeafe !important;
    color: #1e3a8a !important;
    border: 1px solid #93c5fd !important;
}
.status-pill-info i {
    color: #1d4ed8 !important;
}

/* 4. Council / สภา */
.status-pill-purple {
    background-color: #ede9fe !important;
    color: #4c1d95 !important;
    border: 1px solid #c4b5fd !important;
}
.status-pill-purple i {
    color: #6d28d9 !important;
}

/* Large Displays (1400px+) */
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1360px;
    }
}

/* Full HD & 2K Monitors (1600px+) */
@media (min-width: 1600px) {
    html {
        font-size: 17px;
    }

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1540px;
    }

    #header {
        padding: 20px 0;
    }

    #header .logo {
        font-size: 30px;
    }

    .navbar a,
    .navbar a:focus {
        font-size: 17px;
        padding: 10px 0 10px 32px;
    }
}

/* Ultra-wide & 4K Displays (1920px+) */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1740px;
    }

    #header .logo {
        font-size: 34px;
    }

    .navbar a,
    .navbar a:focus {
        font-size: 18px;
        padding: 12px 0 12px 36px;
    }

    #hero h1 {
        font-size: 54px;
        line-height: 64px;
    }

    #hero h2 {
        font-size: 26px;
    }

    .section-title h2 {
        font-size: 38px;
    }
}

/* 2K / 4K QHD Large Displays (2560px+) */
@media (min-width: 2560px) {
    html {
        font-size: 19px;
    }

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 2100px;
    }
}
