/* ==========================================================
   GALYA PSYCHIATRY RESIDENCY TRAINING PROGRAM
   แผนงานฝึกอบรมแพทย์ประจำบ้าน สาขาจิตเวชศาสตร์
   COMPLETE STYLESHEET
   Version 7.0
   ========================================================== */


/* ==========================================================
   01. THEME
   ========================================================== */

:root {
    --navy: #163f56;
    --navy-dark: #103447;
    --navy-deep: #0b2a3a;

    --teal: #3f8581;
    --teal-dark: #32736f;
    --teal-soft: #e9f3f2;
    --teal-pale: #f3f8f7;

    --blue-grey: #6f8791;
    --blue-grey-light: #dce6e9;

    --white: #ffffff;
    --off-white: #fbfcfc;
    --background: #f6f8f8;
    --background-blue: #eef3f4;

    --text: #293f49;
    --text-soft: #5d727c;
    --text-light: #7d8e96;

    --border: #dce5e7;
    --border-light: #e8edef;

    --container: 1240px;

    --shadow:
        0 12px 32px rgba(15, 48, 65, .08);

    --menu-shadow:
        0 18px 42px rgba(15, 48, 65, .15);

    --transition: .2s ease;
}


/* ==========================================================
   02. RESET
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;

    background: var(--white);
    color: var(--text);

    font-family:
        "Leelawadee UI",
        "Noto Sans Thai",
        Tahoma,
        Arial,
        sans-serif;

    font-size: 17px;
    line-height: 1.85;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-container,
.container {
    width: min(
        var(--container),
        calc(100% - 48px)
    );

    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   03. ACCESSIBILITY
   ========================================================== */

.skip-link {
    position: absolute;

    left: -9999px;
    top: 0;

    z-index: 99999;
}

.skip-link:focus {
    left: 20px;
    top: 20px;

    padding: 11px 17px;

    background: #ffffff;
    color: var(--navy);

    border: 2px solid var(--teal);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(63, 133, 129, .40);
    outline-offset: 3px;
}


/* ==========================================================
   04. TOP BAR
   ========================================================== */

.top-bar {
    width: 100%;

    background: var(--navy-deep);
    color: #c0d0d6;

    font-size: 14px;
}

.top-bar-inner {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;

    gap: 14px;
}

.top-divider {
    width: 1px;
    height: 14px;

    flex: 0 0 1px;

    background: rgba(255, 255, 255, .22);
}

.top-bar a {
    color: #d3dfe3;

    transition: color var(--transition);
}

.top-bar a:hover {
    color: #ffffff;
}


/* ==========================================================
   05. BRAND HEADER
   ========================================================== */

.brand-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid var(--border-light);
}

.brand-header-inner {
    min-height: 132px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 45px;
}

.brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 20px;
}

.brand-logo {
    width: 80px;
    height: 80px;

    flex: 0 0 80px;

    object-fit: contain;
}

.brand-title {
    min-width: 0;

    padding-left: 21px;

    border-left: 1px solid #d5e0e3;
}

.brand-institute {
    margin-bottom: 2px;

    color: var(--teal-dark);

    font-size: 17px;
    font-weight: 600;

    line-height: 1.5;
}

.brand-program {
    color: var(--navy);

    font-size: 25px;
    font-weight: 400;

    line-height: 1.45;
}

.brand-program strong {
    font-weight: 700;
}

.brand-program-en {
    margin-top: 4px;

    color: #7d9098;

    font-family: Arial, sans-serif;

    font-size: 13px;
    line-height: 1.5;

    letter-spacing: .55px;
}

.brand-side {
    flex: 0 0 auto;

    padding-left: 25px;

    border-left: 1px solid var(--border);

    text-align: right;
}

.brand-side-label {
    color: var(--teal-dark);

    font-family: Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.3px;
}

.brand-side strong {
    display: block;

    margin-top: 2px;

    color: var(--navy);

    font-size: 17px;
    line-height: 1.5;
}

.brand-side span {
    display: block;

    color: var(--text-soft);

    font-size: 15px;
}


/* ==========================================================
   06. MAIN NAVIGATION
   ========================================================== */

.main-nav {
    position: sticky;

    top: 0;

    z-index: 5000;

    width: 100%;

    background: var(--navy);

    border-bottom: 1px solid rgba(255, 255, 255, .06);

    transition:
        background .2s ease,
        box-shadow .2s ease;
}

.main-nav.is-scrolled {
    background: var(--navy-dark);

    box-shadow:
        0 6px 20px rgba(8, 36, 50, .17);
}

.nav-container {
    width: min(
        1480px,
        calc(100% - 30px)
    );

    margin-left: auto;
    margin-right: auto;
}

.nav-menu {
    width: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: stretch;
    justify-content: center;

    list-style: none;
}

.nav-menu > li {
    position: relative;

    min-width: 0;

    display: flex;
    align-items: stretch;
}

.nav-menu > li > a,
.nav-parent-button {
    position: relative;

    min-height: 64px;

    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 0;

    background: transparent;

    color: rgba(255, 255, 255, .94);

    font-size: 16px;
    font-weight: 500;

    line-height: 1.45;

    white-space: nowrap;

    transition:
        color var(--transition),
        background var(--transition);
}

.nav-menu > li > a::after,
.nav-parent-button::after {
    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 0;

    height: 3px;

    background: #80bcb8;

    transform: scaleX(0);

    transform-origin: center;

    transition: transform .2s ease;
}

.nav-menu > li > a:hover,
.nav-parent-button:hover,
.nav-parent:hover > .nav-parent-button {
    background: rgba(255, 255, 255, .045);

    color: #ffffff;
}

.nav-menu > li > a:hover::after,
.nav-parent-button:hover::after,
.nav-parent:hover > .nav-parent-button::after {
    transform: scaleX(1);
}

.nav-arrow {
    position: relative;

    top: -1px;

    color: #a9d2cf;

    font-size: 12px;

    transition: transform .18s ease;
}

.nav-parent:hover .nav-arrow {
    transform: rotate(180deg);
}

.main-nav.is-scrolled .nav-menu > li > a,
.main-nav.is-scrolled .nav-parent-button {
    min-height: 60px;
}

.mobile-nav-button {
    display: none;
}


/* ==========================================================
   07. DROPDOWN BASE
   ========================================================== */

.nav-dropdown {
    position: absolute;

    top: 100%;
    left: 0;

    z-index: 5100;

    display: none;

    background: #ffffff;

    border-top: 4px solid var(--teal);

    box-shadow: var(--menu-shadow);
}

.nav-parent:hover > .nav-dropdown,
.nav-parent:focus-within > .nav-dropdown {
    display: block;
}


/* ==========================================================
   08. NORMAL DROPDOWN
   ========================================================== */

.nav-dropdown-normal {
    width: 355px;

    padding: 10px;
}

.nav-dropdown-normal > a {
    display: block;

    padding: 11px 14px;

    color: #4e646e;

    font-size: 15px;
    line-height: 1.65;

    transition:
        background var(--transition),
        color var(--transition);
}

.nav-dropdown-normal > a:hover {
    background: var(--teal-soft);

    color: var(--teal-dark);
}

/* ==========================================================
   08.1 NESTED DROPDOWN
   ใบประเมินผลกิจกรรม และ logbook
   ========================================================== */

.nav-sub-parent {
    position: relative;
}

.nav-sub-button {
    width: 100%;
    min-height: 0;

    padding: 11px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border: 0;

    background: transparent;

    color: #4e646e;

    font-family:
        "Leelawadee UI",
        "Noto Sans Thai",
        Tahoma,
        Arial,
        sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.65;

    text-align: left;

    transition:
        background var(--transition),
        color var(--transition);
}

.nav-sub-button:hover,
.nav-sub-parent:hover > .nav-sub-button,
.nav-sub-parent:focus-within > .nav-sub-button {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.nav-sub-arrow {
    flex: 0 0 auto;

    font-size: 15px;
    line-height: 1;

    color: var(--teal-dark);
}

/* ==========================================================
   08.2 CURRICULUM NESTED DROPDOWN
   แก้การจัดวางเมนูย่อยของหลักสูตรการฝึกอบรม
   ========================================================== */

/* Dropdown หลักของหลักสูตร */
.curriculum-dropdown {
    width: 355px;
}


/* เมนูชั้นที่ 2 ของหลักสูตร */
.curriculum-dropdown .nav-sub-dropdown {
    width: 480px;
}


/* 
   สำคัญ:
   เมนูหลักสูตรไม่มีเลข i - xi
   จึงต้องใช้ 1 column ไม่ใช้ grid 36px แบบ Logbook
*/
.curriculum-dropdown .nav-sub-dropdown > a {
    display: block;

    width: 100%;

    padding: 11px 14px;

    color: #4e646e;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.65;

    white-space: normal;

    transition:
        background var(--transition),
        color var(--transition);
}


.curriculum-dropdown .nav-sub-dropdown > a:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
}


/* ให้ข้อความภายในใช้พื้นที่เต็ม */
.curriculum-dropdown .nav-sub-dropdown > a > span {
    display: block;

    width: 100%;

    min-width: 0;
}


/* หัวข้อที่มีเมนูย่อย */
.curriculum-dropdown .nav-sub-button {
    width: 100%;

    padding: 11px 14px;

    font-size: 15px;
    line-height: 1.65;
}


/* ลูกศรอยู่ขวาสุด */
.curriculum-dropdown .nav-sub-arrow {
    margin-left: auto;

    flex: 0 0 auto;

    font-size: 15px;
}
/* Dropdown ชั้นที่ 2 */

.nav-sub-dropdown {
    position: absolute;

    top: -10px;
    left: 100%;

    z-index: 5200;

    width: 480px;

    padding: 10px;

    display: none;

    background: #ffffff;

    border-top: 4px solid var(--teal);

    box-shadow: var(--menu-shadow);
}

.nav-sub-parent:hover > .nav-sub-dropdown,
.nav-sub-parent:focus-within > .nav-sub-dropdown {
    display: block;
}


/* รายการ i - xi */

.nav-sub-dropdown > a {
    padding: 9px 14px;

    display: grid;

    grid-template-columns: 36px minmax(0, 1fr);

    align-items: start;

    gap: 8px;

    color: #4e646e;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.65;

    transition:
        background var(--transition),
        color var(--transition);
}

.nav-sub-dropdown > a:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
}

.nav-sub-number {
    font-family: Arial, sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.65;

    color: #648f8c;
}
/* ==========================================================
   09. CURRICULUM MEGA MENU
   ========================================================== */

.nav-mega {
    left: 50%;

    width: min(
        1030px,
        94vw
    );

    padding: 27px 22px;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 0;

    transform: translateX(-50%);
}

.nav-parent:hover > .nav-mega,
.nav-parent:focus-within > .nav-mega {
    display: grid;
}

.mega-column {
    min-width: 0;

    padding: 0 19px;
}

.mega-column:not(:last-child) {
    border-right: 1px solid var(--border);
}

.mega-title {
    margin: 0 0 10px;

    padding: 0 0 10px;

    border-bottom: 1px solid var(--border);

    color: var(--navy);

    font-size: 15px;
    font-weight: 700;

    line-height: 1.55;
}

.mega-column > a {
    display: block;

    padding: 9px 10px;

    color: #536973;

    font-size: 15px;
    line-height: 1.65;

    transition:
        background var(--transition),
        color var(--transition);
}

.mega-column > a:hover {
    background: var(--teal-soft);

    color: var(--teal-dark);
}


/* ==========================================================
   10. RESIDENT MEGA MENU
   ========================================================== */

.nav-resident-mega {
    left: 50%;

    width: min(
        1180px,
        96vw
    );

    padding: 27px 22px;

    grid-template-columns:
        .80fr
        1.10fr
        1.10fr;

    gap: 0;

    transform: translateX(-50%);
}

.nav-parent:hover > .nav-resident-mega,
.nav-parent:focus-within > .nav-resident-mega {
    display: grid;
}

.resident-menu-column {
    min-width: 0;

    padding: 0 18px;
}

.resident-menu-column:not(:last-child) {
    border-right: 1px solid var(--border);
}

.resident-menu-column .mega-title {
    margin-bottom: 10px;
}

.resident-menu-column > a {
    min-height: 46px;

    padding: 9px 10px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    color: #536973;

    font-size: 15px;
    line-height: 1.65;

    transition:
        background var(--transition),
        color var(--transition);
}

.resident-menu-column > a:hover {
    background: var(--teal-soft);

    color: var(--teal-dark);
}

.resident-menu-number {
    min-width: 27px;

    flex: 0 0 27px;

    padding-top: 2px;

    color: #648f8c;

    font-family: Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;
}


/* ==========================================================
   11. QUALITY MEGA MENU
   ========================================================== */

.nav-quality-mega {
    left: auto;
    right: 0;

    width: min(
        810px,
        94vw
    );

    padding: 27px 22px;

    grid-template-columns:
        .80fr
        1.20fr;

    gap: 0;
}

.nav-parent:hover > .nav-quality-mega,
.nav-parent:focus-within > .nav-quality-mega {
    display: grid;
}

.quality-menu-column {
    min-width: 0;

    padding: 0 18px;
}

.quality-menu-column:not(:last-child) {
    border-right: 1px solid var(--border);
}

.quality-menu-column > a {
    display: block;

    padding: 9px 10px;

    color: #536973;

    font-size: 15px;
    line-height: 1.65;

    transition:
        background var(--transition),
        color var(--transition);
}

.quality-menu-column > a:hover {
    background: var(--teal-soft);

    color: var(--teal-dark);
}


/* ==========================================================
   12. HOME HERO
   ========================================================== */

.home-hero {
    position: relative;

    width: 100%;
    height: 570px;

    overflow: hidden;

    background: var(--navy-dark);
}

.home-hero-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.home-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(7, 35, 50, .95) 0%,
            rgba(12, 54, 72, .86) 39%,
            rgba(23, 76, 87, .51) 68%,
            rgba(23, 76, 87, .10) 100%
        );
}

.home-hero-inner {
    position: relative;

    z-index: 2;

    height: 100%;

    display: flex;
    align-items: center;
}

.home-hero-content {
    width: 720px;

    max-width: 70%;

    color: #ffffff;
}

.home-hero-institute {
    margin-bottom: 10px;

    color: #add5d2;

    font-size: 18px;
    font-weight: 500;

    line-height: 1.6;
}

.home-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(42px, 4vw, 56px);
    font-weight: 400;

    line-height: 1.3;
}

.home-hero h1 span {
    display: block;

    font-weight: 700;
}

.home-hero-content > p {
    width: 650px;

    max-width: 100%;

    margin: 22px 0 0;

    color: #e0eaed;

    font-size: 18px;
    line-height: 1.85;
}

.home-hero-actions {
    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;

    gap: 11px;
}


/* ==========================================================
   13. BUTTONS
   ========================================================== */

.button {
    min-height: 50px;

    padding: 10px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.4;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.button-main {
    background: var(--teal);

    color: #ffffff;
}

.button-main:hover {
    background: var(--teal-dark);
}

.button-outline {
    border: 1px solid rgba(255, 255, 255, .55);

    color: #ffffff;
}

.button-outline:hover {
    background: rgba(255, 255, 255, .10);

    border-color: #ffffff;
}


/* ==========================================================
   14. QUICK ACCESS
   ========================================================== */

.quick-access {
    position: relative;

    z-index: 20;

    margin-top: -31px;
}

.quick-access-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    background: #ffffff;

    border-top: 4px solid var(--teal);

    box-shadow: var(--shadow);
}

.quick-access-item {
    min-height: 128px;

    padding: 23px 25px;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        20px;

    align-items: center;

    gap: 14px;

    border-right: 1px solid var(--border);

    transition: background var(--transition);
}

.quick-access-item:last-child {
    border-right: 0;
}

.quick-access-item:hover {
    background: var(--teal-soft);
}

.quick-access-number {
    align-self: start;

    padding-top: 5px;

    color: #8799a0;

    font-family: Arial, sans-serif;

    font-size: 13px;
    font-weight: 700;
}

.quick-access-item strong {
    display: block;

    color: var(--navy);

    font-size: 19px;
    font-weight: 700;

    line-height: 1.5;
}

.quick-access-item span {
    display: block;

    margin-top: 4px;

    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.65;
}

.quick-access-item > b {
    color: var(--teal-dark);

    font-size: 20px;
}


/* ==========================================================
   15. GENERAL SECTION
   ========================================================== */

.section {
    padding: 80px 0;
}

.section-label {
    display: block;

    margin-bottom: 5px;

    color: var(--teal-dark);

    font-size: 15px;
    font-weight: 600;
}

.section-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--teal-dark);

    font-family: Arial, sans-serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.3px;
}

.section-kicker-light {
    color: #b8dad7;
}

.heading-rule {
    width: 48px;
    height: 3px;

    margin: 20px 0;

    background: var(--teal);
}


/* ==========================================================
   16. NEWS
   ========================================================== */

.home-news {
    padding-top: 100px;

    background: #ffffff;
}

.home-section-head {
    margin-bottom: 35px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;
}

.home-section-head h2 {
    margin: 0;

    color: var(--navy);

    font-size: 34px;
    font-weight: 700;

    line-height: 1.45;
}

.home-section-head p {
    max-width: 650px;

    margin: 7px 0 0;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.8;
}

.view-all-link {
    padding-bottom: 4px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    border-bottom: 1px solid #c8d6d9;

    color: var(--navy);

    font-size: 15px;
    font-weight: 600;
}

.view-all-link span {
    color: var(--teal-dark);
}

.modern-news-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(370px, .85fr);

    gap: 44px;
}

.modern-featured-image {
    position: relative;

    height: 390px;

    overflow: hidden;

    background: var(--background-blue);
}

.modern-featured-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.modern-featured-news:hover .modern-featured-image img {
    transform: scale(1.02);
}

.featured-news-badge {
    position: absolute;

    left: 18px;
    bottom: 18px;

    padding: 6px 12px;

    background: var(--teal);

    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
}

.modern-featured-body {
    padding-top: 20px;
}

.modern-news-date {
    color: var(--text-light);

    font-size: 14px;
}

.modern-featured-body h3 {
    margin: 6px 0 8px;

    color: var(--navy);

    font-size: 25px;
    font-weight: 700;

    line-height: 1.55;
}

.modern-featured-body p {
    margin: 0 0 13px;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.85;
}

.modern-read-more,
.modern-news-small-link {
    color: var(--teal-dark);

    font-size: 15px;
    font-weight: 600;
}

.modern-news-side {
    border-top: 3px solid var(--navy);
}

.modern-news-card {
    padding: 18px 0;

    display: grid;

    grid-template-columns:
        135px
        minmax(0, 1fr);

    gap: 18px;

    border-bottom: 1px solid var(--border);
}

.modern-news-thumb {
    height: 94px;

    overflow: hidden;

    background: var(--background-blue);
}

.modern-news-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.modern-news-card-body h3 {
    margin: 4px 0 6px;

    color: var(--navy);

    font-size: 17px;
    font-weight: 600;

    line-height: 1.65;
}


/* ==========================================================
   17. EMPTY NEWS
   ========================================================== */

.modern-news-empty {
    display: grid;

    grid-template-columns:
        1.05fr
        .95fr;

    background: var(--background);
}

.modern-news-empty-image img {
    width: 100%;
    height: 360px;

    object-fit: cover;
}

.modern-news-empty-content {
    padding: 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modern-news-empty-content > span {
    color: var(--teal-dark);

    font-size: 14px;
    font-weight: 600;
}

.modern-news-empty-content h3 {
    margin: 6px 0 9px;

    color: var(--navy);

    font-size: 25px;
    line-height: 1.5;
}

.modern-news-empty-content p {
    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.85;
}

.modern-news-empty-content a {
    color: var(--teal-dark);

    font-size: 15px;
    font-weight: 600;
}


/* ==========================================================
   18. ABOUT TRAINING PROGRAM
   ========================================================== */

.training-about {
    background: var(--background);
}

.training-about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.04fr)
        minmax(0, .96fr);

    align-items: center;

    gap: 72px;
}

.training-about-image {
    position: relative;
}

.training-about-image > img {
    width: 100%;
    height: 455px;

    object-fit: cover;
}

.training-about-image-note {
    position: absolute;

    right: -18px;
    bottom: -18px;

    min-width: 210px;

    padding: 18px 21px;

    background: var(--navy);

    color: #ffffff;
}

.training-about-image-note strong {
    display: block;

    font-size: 16px;
    line-height: 1.5;
}

.training-about-image-note span {
    color: #afd4d1;

    font-size: 13px;
}

.training-about-content h2 {
    margin: 0;

    color: var(--navy);

    font-size: 33px;
    font-weight: 700;

    line-height: 1.5;
}

.training-about-content > p {
    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.9;
}

.about-points {
    margin: 24px 0;

    border-top: 1px solid var(--border);
}

.about-points > div {
    padding: 13px 0;

    display: grid;

    grid-template-columns:
        180px
        minmax(0, 1fr);

    gap: 15px;

    border-bottom: 1px solid var(--border);
}

.about-points strong {
    color: var(--navy);

    font-size: 15px;
    line-height: 1.7;
}

.about-points span {
    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.75;
}

.read-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--navy);

    font-size: 15px;
    font-weight: 600;
}

.read-link span {
    color: var(--teal-dark);
}


/* ==========================================================
   19. ADMISSION + CALENDAR
   ========================================================== */

.home-information {
    padding: 78px 0;

    background: var(--background-blue);
}

.home-information-grid {
    width: min(
        var(--container),
        calc(100% - 48px)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: stretch;

    background: #ffffff;

    box-shadow:
        0 12px 32px rgba(20, 54, 69, .07);
}


/* ==========================================================
   20. ADMISSION
   ========================================================== */

.admission-panel {
    min-width: 0;

    padding: 50px 52px;

    background: var(--navy);

    color: #ffffff;
}

.admission-panel h2 {
    margin: 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 700;

    line-height: 1.45;
}

.admission-panel > p {
    max-width: 520px;

    margin: 10px 0 22px;

    color: #d1dfe4;

    font-size: 17px;
    line-height: 1.85;
}

.admission-panel ul {
    margin: 0 0 23px;
    padding: 0;

    list-style: none;

    border-top: 1px solid rgba(255, 255, 255, .18);
}

.admission-panel li {
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.admission-panel li a {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: rgba(255, 255, 255, .94);

    font-size: 16px;
    line-height: 1.65;
}

.admission-panel li a:hover {
    color: #ffffff;
}

.admission-panel li span {
    color: #abd3d0;
}

.admission-button {
    min-height: 46px;

    padding: 8px 17px;

    display: inline-flex;
    align-items: center;

    border: 1px solid rgba(255, 255, 255, .45);

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
}

.admission-button:hover {
    background: #ffffff;

    color: var(--navy);
}


/* ==========================================================
   21. CALENDAR
   ========================================================== */

.calendar-panel {
    min-width: 0;

    padding: 50px 52px;

    background: #ffffff;
}

.modern-calendar-heading {
    min-height: 100px;

    padding-bottom: 18px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 3px solid var(--navy);
}

.modern-calendar-heading h2 {
    margin: 0;

    color: var(--navy);

    font-size: 30px;
    font-weight: 700;

    line-height: 1.45;
}

.modern-calendar-heading p {
    margin: 5px 0 0;

    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.7;
}

.calendar-all-link {
    margin-top: 45px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--teal-dark);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}

.modern-calendar-list {
    width: 100%;

    background: #ffffff;
}

.modern-calendar-item {
    position: relative;

    min-height: 88px;

    padding: 11px 40px 11px 8px;

    display: grid;

    grid-template-columns:
        60px
        minmax(0, 1fr);

    align-items: center;

    gap: 16px;

    border-bottom: 1px solid var(--border);

    transition: background var(--transition);
}

.modern-calendar-item:hover {
    background: var(--teal-soft);
}

.modern-calendar-date {
    width: 58px;
    height: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: var(--navy);

    color: #ffffff;
}

.modern-calendar-date strong {
    font-family: Arial, sans-serif;

    font-size: 22px;

    line-height: 1;
}

.modern-calendar-date span {
    margin-top: 4px;

    color: #b4d8d5;

    font-size: 12px;
}

.modern-calendar-content h3 {
    margin: 0;

    color: var(--navy);

    font-size: 16px;
    font-weight: 600;

    line-height: 1.65;
}

.modern-calendar-meta {
    margin-top: 3px;

    display: flex;
    flex-wrap: wrap;

    gap: 3px 13px;
}

.modern-calendar-meta span {
    color: var(--text-light);

    font-size: 14px;
    line-height: 1.6;
}

.modern-calendar-arrow {
    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #899ba2;

    font-size: 18px;
}


/* ==========================================================
   22. CALENDAR EMPTY
   ========================================================== */

.modern-calendar-empty {
    min-height: 125px;

    padding: 20px 14px;

    display: flex;
    align-items: center;

    gap: 16px;

    border-bottom: 1px solid var(--border);
}

.calendar-empty-date {
    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--navy);

    color: #ffffff;
}

.modern-calendar-empty strong {
    color: var(--navy);

    font-size: 16px;
}

.modern-calendar-empty p {
    margin: 3px 0 0;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.7;
}

.calendar-bottom-links {
    margin-top: 16px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 10px;
}

.calendar-bottom-links a {
    min-height: 72px;

    padding: 13px 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 1px solid var(--border);

    background: #ffffff;

    transition: background var(--transition);
}

.calendar-bottom-links a:hover {
    background: var(--teal-soft);
}

.calendar-bottom-links strong {
    color: var(--navy);

    font-size: 15px;
    line-height: 1.5;
}

.calendar-bottom-links span {
    color: var(--teal-dark);

    font-size: 14px;
}


/* ==========================================================
   23. EXPLORE PROGRAM
   ========================================================== */

.explore-program {
    background: #ffffff;
}

.explore-heading {
    max-width: 760px;

    margin-bottom: 35px;
}

.explore-heading h2 {
    margin: 0;

    color: var(--navy);

    font-size: 33px;
    font-weight: 700;

    line-height: 1.5;
}

.explore-heading p {
    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.85;
}

.explore-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.explore-grid > a {
    min-height: 178px;

    padding: 25px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition: background var(--transition);
}

.explore-grid > a:hover {
    background: var(--teal-soft);
}

.explore-grid strong {
    color: var(--navy);

    font-size: 18px;
    font-weight: 700;

    line-height: 1.55;
}

.explore-grid p {
    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.8;
}

.explore-grid span {
    margin-top: auto;

    color: var(--teal-dark);

    font-size: 14px;
    font-weight: 600;
}


/* ==========================================================
   24. RESIDENT TOOLS
   ========================================================== */

.resident-tools {
    padding: 70px 0;

    background: var(--teal);

    color: #ffffff;
}

.resident-tools-grid {
    display: grid;

    grid-template-columns:
        .72fr
        1.28fr;

    gap: 68px;
}

.resident-tools-title > span {
    color: #e0f0ef;

    font-size: 15px;
}

.resident-tools-title h2 {
    margin: 5px 0 0;

    color: #ffffff;

    font-size: 30px;
    font-weight: 700;

    line-height: 1.5;
}

.resident-tools-links {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    border-top: 1px solid rgba(255, 255, 255, .28);
}

.resident-tools-links a {
    min-height: 66px;

    padding: 11px 13px 11px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid rgba(255, 255, 255, .28);

    color: #ffffff;

    font-size: 16px;
    line-height: 1.65;
}

.resident-tools-links a:nth-child(odd) {
    margin-right: 22px;
}


/* ==========================================================
   25. INTERNAL PAGE HERO
   ========================================================== */

.page-hero {
    padding: 55px 0;

    background: var(--navy);

    color: #ffffff;
}

.page-hero-label {
    margin-bottom: 5px;

    color: #a7d1ce;

    font-size: 14px;
    font-weight: 600;
}

.page-hero h1 {
    max-width: 950px;

    margin: 0;

    color: #ffffff;

    font-size: 36px;
    font-weight: 700;

    line-height: 1.5;
}

.page-hero p {
    max-width: 820px;

    margin: 10px 0 0;

    color: #d1dfe3;

    font-size: 17px;
    line-height: 1.85;
}


/* ==========================================================
   26. BREADCRUMB
   ========================================================== */

.breadcrumb {
    padding: 13px 0;

    background: var(--background);

    border-bottom: 1px solid var(--border-light);

    color: #71858e;

    font-size: 14px;
    line-height: 1.6;
}

.breadcrumb a {
    color: var(--teal-dark);
}

.breadcrumb a:hover {
    text-decoration: underline;
}


/* ==========================================================
   27. CONTENT PAGES
   ========================================================== */

.content-section {
    padding: 68px 0;
}

.content-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 58px;
}

.content-main {
    min-width: 0;
}

.content-main h1,
.content-main h2,
.content-main h3,
.content-main h4 {
    color: var(--navy);
}

.content-main h2 {
    margin: 0 0 20px;

    font-size: 30px;
    font-weight: 700;

    line-height: 1.5;
}

.content-main h3 {
    margin: 34px 0 13px;

    font-size: 23px;
    font-weight: 700;

    line-height: 1.55;
}

.content-main h4 {
    margin: 27px 0 10px;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.6;
}

.content-main p,
.content-main li {
    color: #465f6a;

    font-size: 17px;
    line-height: 1.95;
}

.content-main p {
    margin: 0 0 18px;
}

.content-main ul,
.content-main ol {
    padding-left: 28px;
}

.content-main li {
    margin-bottom: 8px;
}

.content-main strong {
    color: #304d5a;
}

.content-main a {
    color: var(--teal-dark);

    text-decoration: underline;

    text-underline-offset: 3px;
}


/* ==========================================================
   28. SIDEBAR
   ========================================================== */

.content-sidebar {
    min-width: 0;
}

.sidebar-box {
    margin-bottom: 22px;

    background: #ffffff;

    border: 1px solid var(--border);
}

.sidebar-title {
    padding: 14px 17px;

    background: var(--navy);

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.6;
}

.sidebar-links {
    margin: 0;

    padding: 7px 15px;

    list-style: none;
}

.sidebar-links li {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-links li:last-child {
    border-bottom: 0;
}

.sidebar-links a {
    padding: 12px 4px;

    display: block;

    color: #4f6771;

    font-size: 15px;
    line-height: 1.7;

    transition: color var(--transition);
}

.sidebar-links a:hover {
    color: var(--teal-dark);
}


/* ==========================================================
   29. DOCUMENT LIST
   ========================================================== */

.document-list {
    margin-top: 27px;

    border-top: 1px solid var(--border);
}

.document-item {
    padding: 18px 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 22px;

    border-bottom: 1px solid var(--border);
}

.document-item strong {
    display: block;

    color: var(--navy);

    font-size: 17px;
    font-weight: 700;

    line-height: 1.6;
}

.document-item p {
    margin: 4px 0 0;

    color: var(--text-light);

    font-size: 15px;
    line-height: 1.7;
}

.document-download {
    min-height: 44px;

    padding: 8px 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #c4d6da;

    color: var(--teal-dark);

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.document-download:hover {
    background: var(--teal);

    border-color: var(--teal);

    color: #ffffff;
}


/* ==========================================================
   30. TABLES
   ========================================================== */

.content-main table {
    width: 100%;

    margin: 25px 0;

    border-collapse: collapse;

    background: #ffffff;

    font-size: 16px;
    line-height: 1.75;
}

.content-main th,
.content-main td {
    padding: 13px 15px;

    border: 1px solid var(--border);

    vertical-align: top;
}

.content-main th {
    background: var(--navy);

    color: #ffffff;

    font-weight: 600;

    text-align: left;
}

.content-main tbody tr:nth-child(even) {
    background: #f7f9f9;
}


/* ==========================================================
   31. GENERIC FORM
   ========================================================== */

.content-main label {
    display: block;

    margin-bottom: 6px;

    color: var(--navy);

    font-size: 16px;
    font-weight: 600;
}

.content-main input[type="text"],
.content-main input[type="email"],
.content-main input[type="tel"],
.content-main input[type="date"],
.content-main input[type="number"],
.content-main select,
.content-main textarea {
    width: 100%;

    min-height: 48px;

    padding: 10px 13px;

    border: 1px solid #cbd8dc;

    background: #ffffff;

    color: var(--text);

    font-size: 16px;

    outline: none;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.content-main textarea {
    min-height: 140px;

    resize: vertical;
}

.content-main input:focus,
.content-main select:focus,
.content-main textarea:focus {
    border-color: var(--teal);

    box-shadow:
        0 0 0 3px rgba(63, 133, 129, .12);
}


/* ==========================================================
   32. FOOTER
   ========================================================== */

.site-footer {
    width: 100%;

    background: var(--navy-deep);

    color: #a3b5bd;
}

.footer-grid {
    padding: 60px 0 50px;

    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1.2fr);

    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 14px;
}

.footer-brand img {
    width: 60px;
    height: 60px;

    object-fit: contain;
}

.footer-brand strong {
    display: block;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.5;
}

.footer-brand span {
    color: #9eb1ba;

    font-size: 14px;
}

.footer-brand-area h3 {
    margin: 20px 0 9px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 400;

    line-height: 1.6;
}

.footer-brand-area h3 span {
    display: block;

    color: #acd3d0;

    font-weight: 700;
}

.footer-brand-area > p {
    max-width: 410px;

    color: #9aadb5;

    font-size: 15px;
    line-height: 1.8;
}

.footer-column h4 {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.footer-column > a {
    display: block;

    margin-bottom: 9px;

    color: #a3b5bd;

    font-size: 15px;
    line-height: 1.65;

    transition: color var(--transition);
}

.footer-column > a:hover {
    color: #ffffff;
}

.footer-contact strong {
    display: block;

    color: #dce6e9;

    font-size: 15px;
}

.footer-contact p {
    color: #9eb1ba;

    font-size: 15px;
    line-height: 1.7;
}

.footer-contact > a {
    color: #acd3d0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.footer-bottom-inner {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    color: #839aa4;

    font-size: 13px;
}


/* ==========================================================
   33. MEDIUM DESKTOP
   ========================================================== */

@media (max-width: 1350px) and (min-width: 1101px) {

    .nav-container {
        width: calc(100% - 18px);
    }

    .nav-menu > li > a,
    .nav-parent-button {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 13.5px;
    }

    .nav-menu > li > a::after,
    .nav-parent-button::after {
        left: 8px;
        right: 8px;
    }

    .brand-program {
        font-size: 23px;
    }

}


/* ==========================================================
   34. TABLET / MOBILE NAVIGATION
   ========================================================== */

@media (max-width: 1100px) {

    .brand-side {
        display: none;
    }

    .nav-container {
        position: relative;

        width: calc(100% - 30px);
    }

    .mobile-nav-button {
        width: 100%;

        min-height: 58px;

        padding: 0;

        display: flex;
        align-items: center;

        gap: 11px;

        border: 0;

        background: transparent;

        color: #ffffff;

        font-size: 16px;
        font-weight: 600;
    }

    .hamburger {
        width: 22px;

        display: flex;
        flex-direction: column;

        gap: 5px;
    }

    .hamburger i {
        width: 100%;
        height: 2px;

        display: block;

        background: #ffffff;
    }

    .nav-menu {
        position: absolute;

        left: -15px;
        right: -15px;
        top: 58px;

        width: auto;

        max-height: calc(100vh - 75px);

        display: none;

        overflow-y: auto;

        padding: 8px 15px 20px;

        background: #ffffff;

        box-shadow:
            0 18px 35px rgba(10, 38, 52, .17);
    }

    .nav-menu.is-open {
        display: block;
    }

    .nav-menu > li {
        width: 100%;

        display: block;

        border-bottom: 1px solid var(--border-light);
    }

    .nav-menu > li > a,
    .nav-parent-button,
    .main-nav.is-scrolled .nav-menu > li > a,
    .main-nav.is-scrolled .nav-parent-button {
        width: 100%;

        min-height: 54px;

        padding: 10px 5px;

        justify-content: space-between;

        color: #344e5a;

        font-size: 16px;
        line-height: 1.65;

        text-align: left;

        white-space: normal;
    }

    .nav-menu > li > a::after,
    .nav-parent-button::after {
        display: none;
    }

    .nav-arrow {
        color: var(--teal-dark);

        font-size: 13px;
    }

    .nav-parent:hover .nav-arrow {
        transform: none;
    }


    /* -------------------------
       MOBILE DROPDOWNS
       ------------------------- */

    .nav-dropdown,
    .nav-mega,
    .nav-resident-mega,
    .nav-quality-mega,
    .nav-dropdown-normal {
        position: static;

        left: auto;
        right: auto;

        width: 100%;

        max-height: none;

        display: none;

        padding: 11px;

        transform: none;

        border: 0;

        background: #f2f6f6;

        box-shadow: none;
    }

    .nav-parent:hover > .nav-dropdown,
    .nav-parent:focus-within > .nav-dropdown {
        display: none;
    }

    .nav-parent.is-open > .nav-dropdown {
        display: block;
    }

    .nav-parent.is-open > .nav-mega,
    .nav-parent.is-open > .nav-resident-mega,
    .nav-parent.is-open > .nav-quality-mega {
        display: grid;

        grid-template-columns: 1fr;
    }

    .mega-column,
    .resident-menu-column,
    .quality-menu-column {
        padding: 0;
    }

    .mega-column:not(:last-child),
    .resident-menu-column:not(:last-child),
    .quality-menu-column:not(:last-child) {
        margin-bottom: 13px;

        padding-bottom: 13px;

        border-right: 0;

        border-bottom: 1px solid var(--border);
    }

    .mega-title,
    .resident-menu-column .mega-title,
    .quality-menu-column .mega-title {
        font-size: 16px;
    }

    .mega-column > a,
    .resident-menu-column > a,
    .quality-menu-column > a,
    .nav-dropdown-normal > a {
        padding-top: 10px;
        padding-bottom: 10px;

        font-size: 15px;
        line-height: 1.7;
    }


    /* -------------------------
       PAGE LAYOUT
       ------------------------- */

    .modern-news-layout {
        grid-template-columns: 1fr;
    }

    .training-about-grid {
        gap: 50px;
    }

    .home-information-grid {
        width: min(
            900px,
            calc(100% - 40px)
        );
    }

    .admission-panel,
    .calendar-panel {
        padding: 44px 36px;
    }

    .explore-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns:
            2fr
            1fr
            1fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

}


/* ==========================================================
   35. MOBILE
   ========================================================== */

@media (max-width: 760px) {

    body {
        font-size: 16px;
    }

    .site-container,
    .container {
        width: calc(100% - 30px);
    }


    /* TOP BAR */

    .top-bar {
        font-size: 13px;
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-inner {
        min-height: 39px;

        justify-content: center;
    }


    /* BRAND */

    .brand-header-inner {
        min-height: 100px;
    }

    .brand {
        gap: 11px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;

        flex-basis: 58px;
    }

    .brand-title {
        padding-left: 11px;
    }

    .brand-institute {
        font-size: 13px;
    }

    .brand-program {
        font-size: 17px;
        line-height: 1.5;
    }

    .brand-program-en {
        display: none;
    }


    /* HERO */

    .home-hero {
        height: 520px;
    }

    .home-hero-overlay {
        background:
            rgba(8, 39, 55, .84);
    }

    .home-hero-content {
        width: 100%;

        max-width: 100%;
    }

    .home-hero-institute {
        font-size: 16px;
    }

    .home-hero h1 {
        font-size: 34px;
        line-height: 1.35;
    }

    .home-hero-content > p {
        font-size: 16px;
        line-height: 1.85;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;

        font-size: 16px;
    }


    /* QUICK ACCESS */

    .quick-access {
        margin-top: 0;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;

        box-shadow: none;
    }

    .quick-access-item {
        min-height: 105px;

        border-right: 0;

        border-bottom: 1px solid var(--border);
    }

    .quick-access-item strong {
        font-size: 18px;
    }

    .quick-access-item span {
        font-size: 15px;
    }


    /* SECTIONS */

    .section {
        padding: 60px 0;
    }

    .section-label {
        font-size: 14px;
    }

    .home-news {
        padding-top: 65px;
    }

    .home-section-head {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .home-section-head h2 {
        font-size: 30px;
    }

    .home-section-head p {
        font-size: 16px;
    }

    .view-all-link {
        font-size: 14px;
    }


    /* NEWS */

    .modern-featured-image {
        height: 250px;
    }

    .modern-featured-body h3 {
        font-size: 22px;
    }

    .modern-featured-body p {
        font-size: 16px;
    }

    .modern-news-card {
        grid-template-columns:
            105px
            minmax(0, 1fr);

        gap: 13px;
    }

    .modern-news-thumb {
        height: 78px;
    }

    .modern-news-card-body h3 {
        font-size: 16px;
    }

    .modern-news-date {
        font-size: 13px;
    }

    .modern-news-empty {
        grid-template-columns: 1fr;
    }

    .modern-news-empty-image img {
        height: 225px;
    }

    .modern-news-empty-content {
        padding: 27px 22px;
    }


    /* ABOUT */

    .training-about-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .training-about-image > img {
        height: 320px;
    }

    .training-about-image-note {
        right: 0;
    }

    .training-about-content h2 {
        font-size: 29px;
    }

    .training-about-content > p {
        font-size: 16px;
    }

    .about-points > div {
        grid-template-columns: 1fr;

        gap: 3px;
    }

    .about-points strong {
        font-size: 15px;
    }

    .about-points span {
        font-size: 16px;
    }


    /* INFORMATION */

    .home-information {
        padding: 58px 0;
    }

    .home-information-grid {
        width: calc(100% - 30px);

        grid-template-columns: 1fr;
    }

    .admission-panel,
    .calendar-panel {
        padding: 43px 23px;
    }

    .admission-panel h2,
    .modern-calendar-heading h2 {
        font-size: 27px;
    }

    .admission-panel > p {
        font-size: 16px;
    }

    .admission-panel li a {
        font-size: 16px;
    }

    .modern-calendar-heading {
        min-height: 0;

        flex-direction: column;

        gap: 8px;
    }

    .calendar-all-link {
        margin-top: 0;
    }

    .modern-calendar-content h3 {
        font-size: 16px;
    }

    .modern-calendar-meta span {
        font-size: 14px;
    }

    .calendar-bottom-links {
        grid-template-columns: 1fr;
    }


    /* PROGRAM */

    .explore-heading h2 {
        font-size: 29px;
    }

    .explore-heading p {
        font-size: 16px;
    }

    .explore-grid {
        grid-template-columns: 1fr;
    }

    .explore-grid strong {
        font-size: 17px;
    }

    .explore-grid p {
        font-size: 16px;
    }


    /* RESIDENT TOOLS */

    .resident-tools {
        padding: 55px 0;
    }

    .resident-tools-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .resident-tools-title h2 {
        font-size: 28px;
    }

    .resident-tools-links {
        grid-template-columns: 1fr;
    }

    .resident-tools-links a,
    .resident-tools-links a:nth-child(odd) {
        margin-right: 0;

        font-size: 16px;
    }


    /* CONTENT PAGE */

    .page-hero {
        padding: 42px 0;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .breadcrumb {
        font-size: 13px;
    }

    .content-section {
        padding: 47px 0;
    }

    .content-main h2 {
        font-size: 27px;
    }

    .content-main h3 {
        font-size: 22px;
    }

    .content-main h4 {
        font-size: 19px;
    }

    .content-main p,
    .content-main li {
        font-size: 17px;
        line-height: 1.9;
    }

    .sidebar-title {
        font-size: 16px;
    }

    .sidebar-links a {
        font-size: 15px;
    }

    .document-item {
        grid-template-columns: 1fr;
    }

    .document-download {
        justify-self: start;
    }


    /* TABLE */

    .content-main table {
        display: block;

        overflow-x: auto;

        font-size: 15px;

        white-space: nowrap;
    }


    /* FOOTER */

    .footer-grid {
        padding: 45px 0 36px;

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-contact {
        grid-column: auto;
    }

    .footer-brand strong {
        font-size: 15px;
    }

    .footer-brand span {
        font-size: 14px;
    }

    .footer-brand-area h3 {
        font-size: 19px;
    }

    .footer-brand-area > p {
        font-size: 14px;
    }

    .footer-column h4 {
        font-size: 16px;
    }

    .footer-column > a,
    .footer-contact strong,
    .footer-contact p {
        font-size: 14px;
    }

    .footer-bottom-inner {
        min-height: auto;

        padding: 16px 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 3px;

        font-size: 12px;
    }

}


/* ==========================================================
   36. SMALL MOBILE
   ========================================================== */

@media (max-width: 420px) {

    .brand-logo {
        width: 50px;
        height: 50px;

        flex-basis: 50px;
    }

    .brand-institute {
        font-size: 12px;
    }

    .brand-program {
        font-size: 15.5px;
    }

    .home-hero h1 {
        font-size: 31px;
    }

    .content-main p,
    .content-main li {
        font-size: 16px;
    }

}


/* ==========================================================
   37. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}
/* ==========================================================
   RESIDENT LOGBOOK DROPDOWN
   ปรับเฉพาะเมนูใบประเมินผลกิจกรรม และ logbook
   ========================================================== */

/* กล่องเมนูแพทย์ประจำบ้าน */
.resident-dropdown {
    width: 355px;
}


/* กล่องด้านขวาเฉพาะ Logbook */
.resident-dropdown .nav-sub-dropdown {
    top: -10px;

    width: 660px;

    padding: 12px;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    column-gap: 8px;

    background: #ffffff;
}


/* เปลี่ยนจาก block เป็น grid เมื่อเปิดเมนู */
.resident-dropdown .nav-sub-parent:hover > .nav-sub-dropdown,
.resident-dropdown .nav-sub-parent:focus-within > .nav-sub-dropdown {
    display: grid;
}


/* รายการแต่ละรายการ */
.resident-dropdown .nav-sub-dropdown > a {
    width: 100%;

    min-height: 48px;

    padding: 10px 12px;

    display: flex;

    align-items: center;

    color: #4e646e;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.55;

    border-bottom: 1px solid var(--border-light);

    transition:
        background var(--transition),
        color var(--transition);
}


/* เอาเส้นของรายการท้าย ๆ ออก */
.resident-dropdown .nav-sub-dropdown > a:nth-last-child(-n+2) {
    border-bottom-color: transparent;
}


/* hover */
.resident-dropdown .nav-sub-dropdown > a:hover {
    background: var(--teal-soft);
    color: var(--teal-dark);
}


/* navbar.php ปัจจุบันมี span เลขที่ว่างอยู่
   ไม่ต้องให้กินพื้นที่ */
.resident-dropdown .nav-sub-number:empty {
    display: none;
}


/* ข้อความใช้พื้นที่เต็ม */
.resident-dropdown .nav-sub-dropdown > a > span:last-child {
    width: 100%;
    min-width: 0;
}


/* หัวข้อ Logbook */
.resident-dropdown .nav-sub-button {
    font-size: 15px;
}


/* ลูกศร */
.resident-dropdown .nav-sub-arrow {
    margin-left: auto;
}
/* ==========================================================
   31. NAVIGATION FINAL DESIGN
   ปรับเมนูหลัก + Dropdown + Nested Dropdown ทั้งระบบ
   ========================================================== */


/* ==========================================================
   31.1 MAIN NAVIGATION
   ========================================================== */

.main-nav {
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-menu > li > a,
.nav-parent-button {
    min-height: 64px;

    padding: 0 15px;

    color: rgba(255,255,255,.94);

    font-size: 16px;
    font-weight: 500;

    line-height: 1.45;
}

.nav-menu > li > a:hover,
.nav-parent-button:hover,
.nav-parent:hover > .nav-parent-button {
    background: rgba(255,255,255,.055);
    color: #ffffff;
}


/* เส้นใต้เมนูหลัก */

.nav-menu > li > a::after,
.nav-parent-button::after {
    left: 15px;
    right: 15px;

    height: 3px;

    background: #75b5b1;
}


/* ลูกศรเมนูหลัก */

.nav-arrow {
    margin-left: 2px;

    color: #a9d2cf;

    font-size: 11px;
}


/* ==========================================================
   31.2 DROPDOWN BASE
   ========================================================== */

.nav-dropdown {
    background: #ffffff;

    border-top: 3px solid var(--teal);

    box-shadow:
        0 16px 38px rgba(11,42,58,.14);

    overflow: visible;
}


/* Dropdown แบบปกติ */

.nav-dropdown-normal {
    width: 360px;

    padding: 8px;
}


/* ==========================================================
   31.3 DROPDOWN ITEM STANDARD
   ========================================================== */

.nav-dropdown-normal > a,
.nav-sub-button {
    width: 100%;

    min-height: 45px;

    padding: 10px 13px;

    display: flex;
    align-items: center;

    border: 0;

    background: transparent;

    color: #4d626c;

    font-family:
        "Leelawadee UI",
        "Noto Sans Thai",
        Tahoma,
        Arial,
        sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.55;

    text-align: left;

    white-space: normal;

    transition:
        background .18s ease,
        color .18s ease;
}


/* เส้นคั่นบาง ๆ */

.nav-dropdown-normal > a + a,
.nav-dropdown-normal > a + .nav-sub-parent,
.nav-dropdown-normal > .nav-sub-parent + a,
.nav-dropdown-normal > .nav-sub-parent + .nav-sub-parent {
    border-top: 1px solid #edf1f2;
}


/* Hover */

.nav-dropdown-normal > a:hover,
.nav-sub-button:hover,
.nav-sub-parent:hover > .nav-sub-button,
.nav-sub-parent:focus-within > .nav-sub-button {
    background: var(--teal-soft);

    color: var(--teal-dark);
}


/* ==========================================================
   31.4 NESTED MENU PARENT
   ========================================================== */

.nav-sub-parent {
    position: relative;

    width: 100%;
}

.nav-sub-button {
    justify-content: space-between;

    gap: 15px;
}

.nav-sub-button > span:first-child {
    min-width: 0;
}


/* ลูกศร > */

.nav-sub-arrow {
    margin-left: auto;

    flex: 0 0 auto;

    color: #6c9996;

    font-family: Arial, sans-serif;

    font-size: 17px;
    font-weight: 400;

    line-height: 1;

    transition: transform .18s ease;
}

.nav-sub-parent:hover > .nav-sub-button .nav-sub-arrow,
.nav-sub-parent:focus-within > .nav-sub-button .nav-sub-arrow {
    transform: translateX(2px);

    color: var(--teal-dark);
}


/* ==========================================================
   31.5 NESTED DROPDOWN
   ========================================================== */

.nav-sub-dropdown {
    position: absolute;

    top: -8px;
    left: calc(100% + 2px);

    z-index: 5200;

    width: 470px;

    padding: 8px;

    display: none;

    background: #ffffff;

    border-top: 3px solid var(--teal);

    box-shadow:
        0 16px 38px rgba(11,42,58,.14);
}

.nav-sub-parent:hover > .nav-sub-dropdown,
.nav-sub-parent:focus-within > .nav-sub-dropdown {
    display: block;
}


/* ==========================================================
   31.6 NESTED ITEMS
   ========================================================== */

.nav-sub-dropdown > a {
    width: 100%;

    min-height: 44px;

    padding: 10px 13px;

    display: flex;
    align-items: center;

    color: #4d626c;

    font-family:
        "Leelawadee UI",
        "Noto Sans Thai",
        Tahoma,
        Arial,
        sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.55;

    white-space: normal;

    border-bottom: 1px solid #edf1f2;

    transition:
        background .18s ease,
        color .18s ease;
}

.nav-sub-dropdown > a:last-child {
    border-bottom: 0;
}

.nav-sub-dropdown > a:hover {
    background: var(--teal-soft);

    color: var(--teal-dark);
}


/* ข้อความภายใน Nested */

.nav-sub-dropdown > a > span {
    min-width: 0;
}


/* ==========================================================
   31.7 CURRICULUM
   หลักสูตรการฝึกอบรม
   ========================================================== */

.curriculum-dropdown {
    width: 370px;
}

.curriculum-dropdown .nav-sub-dropdown {
    width: 470px;
}


/*
   หลักสูตรไม่มีเลข i-xi
   จึงใช้พื้นที่ข้อความเต็ม
*/

.curriculum-dropdown .nav-sub-dropdown > a {
    display: block;

    min-height: 0;

    padding: 11px 14px;
}

.curriculum-dropdown .nav-sub-dropdown > a > span {
    display: block;

    width: 100%;
}


/* ==========================================================
   31.8 RESIDENT MAIN DROPDOWN
   แพทย์ประจำบ้าน
   ========================================================== */

.resident-dropdown {
    width: 370px;
}


/* ==========================================================
   31.9 RESIDENT LOGBOOK
   จัด 11 รายการเป็น 2 คอลัมน์
   ========================================================== */

.resident-dropdown .nav-sub-dropdown {
    top: -8px;

    width: 700px;

    padding: 10px;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    column-gap: 8px;

    row-gap: 0;
}


/* เปิดเป็น Grid เฉพาะ Logbook */

.resident-dropdown .nav-sub-parent:hover > .nav-sub-dropdown,
.resident-dropdown .nav-sub-parent:focus-within > .nav-sub-dropdown {
    display: grid;
}


/* แต่ละรายการ */

.resident-dropdown .nav-sub-dropdown > a {
    min-height: 52px;

    padding: 9px 12px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #edf1f2;

    line-height: 1.5;
}


/*
   navbar.php ปัจจุบันมีช่องเลขว่าง
   ไม่ให้กินพื้นที่
*/

.resident-dropdown .nav-sub-number:empty {
    display: none;
}


/* หากภายหลังใส่ i-xi กลับมา */

.resident-dropdown .nav-sub-number:not(:empty) {
    min-width: 32px;

    margin-right: 8px;

    flex: 0 0 32px;

    color: #6a9693;

    font-size: 15px;
}


/* ข้อความ */

.resident-dropdown .nav-sub-dropdown > a > span:last-child {
    min-width: 0;

    width: 100%;
}


/* ==========================================================
   31.10 CALENDAR / FACULTY / GOVERNANCE
   ========================================================== */

/*
   ให้ Dropdown ปกติทั้งหมดมีรูปแบบเดียวกัน
*/

.nav-parent > .nav-dropdown-normal:not(.curriculum-dropdown):not(.resident-dropdown) {
    width: 360px;
}


/* เมนูธรรมาภิบาลที่อยู่ด้านขวาของ navbar
   ป้องกันกล่องออกนอกจอ
*/

.nav-menu > li:nth-last-child(2) > .nav-dropdown-normal {
    left: auto;
    right: 0;
}


/* ==========================================================
   31.11 VISUAL POLISH
   ========================================================== */

/* ลดความรู้สึกเป็นกล่องใหญ่แข็ง ๆ */

.nav-dropdown-normal,
.nav-sub-dropdown {
    border-right: 1px solid rgba(220,229,231,.65);
    border-bottom: 1px solid rgba(220,229,231,.75);
    border-left: 1px solid rgba(220,229,231,.65);
}


/* Active parent */

.nav-sub-parent:hover > .nav-sub-button {
    position: relative;
}

.nav-sub-parent:hover > .nav-sub-button::before,
.nav-sub-parent:focus-within > .nav-sub-button::before {
    content: "";

    position: absolute;

    left: 0;
    top: 9px;
    bottom: 9px;

    width: 3px;

    background: var(--teal);
}


/* ==========================================================
   31.12 TABLET / MOBILE
   ========================================================== */

@media (max-width: 1100px) {

    .nav-dropdown-normal,
    .curriculum-dropdown,
    .resident-dropdown,
    .nav-parent > .nav-dropdown-normal:not(.curriculum-dropdown):not(.resident-dropdown) {
        width: 100%;
    }


    /* เมนูซ้อนเปลี่ยนจากด้านข้างมาอยู่ด้านล่าง */

    .nav-sub-dropdown,
    .curriculum-dropdown .nav-sub-dropdown,
    .resident-dropdown .nav-sub-dropdown {
        position: static;

        width: 100%;

        margin: 0;

        padding: 4px 0 7px 14px;

        display: none;

        background: #f7faf9;

        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 3px solid #c8dfdd;

        box-shadow: none;
    }


    /*
       มือถือ:
       ใช้ :focus-within ให้สามารถเปิด Nested ได้
    */

    .nav-sub-parent:focus-within > .nav-sub-dropdown {
        display: block;
    }


    /* Logbook มือถือกลับเป็น 1 คอลัมน์ */

    .resident-dropdown .nav-sub-parent:focus-within > .nav-sub-dropdown {
        display: block;

        grid-template-columns: 1fr;
    }


    .nav-sub-dropdown > a,
    .resident-dropdown .nav-sub-dropdown > a {
        min-height: 44px;

        padding: 9px 12px;

        font-size: 15px;

        border-bottom: 1px solid #e5ecec;
    }


    .nav-sub-button {
        font-size: 15px;
    }


    .nav-sub-arrow {
        transform: rotate(90deg);
    }


    .nav-sub-parent:hover > .nav-sub-button .nav-sub-arrow,
    .nav-sub-parent:focus-within > .nav-sub-button .nav-sub-arrow {
        transform: rotate(90deg);
    }

}


/* ==========================================================
   31.13 SMALL MOBILE
   ========================================================== */

@media (max-width: 640px) {

    .nav-dropdown-normal {
        padding: 5px;
    }

    .nav-dropdown-normal > a,
    .nav-sub-button {
        min-height: 44px;

        padding: 9px 11px;

        font-size: 15px;

        line-height: 1.55;
    }

    .nav-sub-dropdown,
    .curriculum-dropdown .nav-sub-dropdown,
    .resident-dropdown .nav-sub-dropdown {
        padding-left: 10px;
    }

    .nav-sub-dropdown > a,
    .resident-dropdown .nav-sub-dropdown > a {
        padding: 9px 10px;

        font-size: 15px;

        line-height: 1.55;
    }

}
/* ==========================================================
   32. MOBILE NAVIGATION FIX
   โทรศัพท์ / Tablet
   ========================================================== */

@media (max-width: 1100px) {

    /* ------------------------------------------
       Navigation container
       ------------------------------------------ */

    .main-nav {
        position: relative;
        z-index: 5000;
    }

    .nav-container {
        width: 100%;
        max-width: none;
        padding: 0;
        display: block;
    }


    /* ------------------------------------------
       ปุ่ม เมนูเว็บไซต์ / Hamburger
       ------------------------------------------ */

    .mobile-nav-button {
        width: 100%;
        min-height: 56px;

        padding: 0 20px;

        display: flex !important;
        align-items: center;
        justify-content: flex-start;

        gap: 12px;

        border: 0;

        background: var(--navy);

        color: #ffffff;

        font-family:
            "Leelawadee UI",
            "Noto Sans Thai",
            Tahoma,
            Arial,
            sans-serif;

        font-size: 16px;
        font-weight: 500;

        text-align: left;

        cursor: pointer;
    }


    /* Hamburger */

    .hamburger {
        width: 22px;
        height: 18px;

        display: flex;
        flex-direction: column;
        justify-content: space-between;

        flex: 0 0 22px;
    }

    .hamburger i {
        width: 100%;
        height: 2px;

        display: block;

        background: #ffffff;

        border-radius: 2px;
    }


    /* ------------------------------------------
       เมนูหลัก
       ปิดไว้ก่อนจนกด Hamburger
       ------------------------------------------ */

    .nav-menu {
        position: relative;

        top: auto;
        left: auto;
        right: auto;

        width: 100%;

        margin: 0;
        padding: 0;

        display: none !important;

        flex-direction: column;

        background: #ffffff;

        box-shadow:
            0 14px 30px rgba(11,42,58,.12);
    }


    /* JS จะใส่ .is-open เมื่อกดปุ่ม */

    .nav-menu.is-open {
        display: flex !important;
    }


    /* ------------------------------------------
       LI ทุกเมนู
       ------------------------------------------ */

    .nav-menu > li,
    .nav-parent {
        position: relative;

        width: 100%;

        display: block;

        border-bottom: 1px solid #e8eeee;
    }


    /* ------------------------------------------
       เมนูหลัก
       ------------------------------------------ */

    .nav-menu > li > a,
    .nav-parent-button {
        position: relative;

        width: 100%;
        min-height: 52px;

        padding: 12px 20px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        border: 0;

        background: #ffffff;

        color: var(--navy);

        font-family:
            "Leelawadee UI",
            "Noto Sans Thai",
            Tahoma,
            Arial,
            sans-serif;

        font-size: 16px;
        font-weight: 500;

        line-height: 1.5;

        text-align: left;

        white-space: normal;
    }


    .nav-menu > li > a:hover,
    .nav-parent-button:hover,
    .nav-parent.is-open > .nav-parent-button {
        background: #f1f7f6;
        color: var(--teal-dark);
    }


    /* ไม่เอาเส้นใต้แบบ Desktop */

    .nav-menu > li > a::after,
    .nav-parent-button::after {
        display: none;
    }


    /* ------------------------------------------
       ลูกศรเมนูหลัก
       ------------------------------------------ */

    .nav-arrow {
        margin-left: 12px;

        flex: 0 0 auto;

        color: var(--teal-dark);

        font-size: 13px;

        transition: transform .2s ease;
    }


    .nav-parent.is-open > .nav-parent-button .nav-arrow {
        transform: rotate(180deg);
    }


    /* ------------------------------------------
       Dropdown ชั้นที่ 1
       ------------------------------------------ */

    .nav-dropdown,
    .nav-dropdown-normal,
    .curriculum-dropdown,
    .resident-dropdown {
        position: static !important;

        top: auto !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;

        margin: 0;

        padding: 5px 10px 8px 18px;

        display: none !important;

        background: #f8faf9;

        border: 0;
        border-top: 1px solid #e5eceb;

        box-shadow: none;
    }


    /*
       สำคัญ
       เปิด Dropdown เมื่อ footer.php ใส่ .is-open
    */

    .nav-parent.is-open > .nav-dropdown {
        display: block !important;
    }


    /* ปิดพฤติกรรม hover ของ Desktop */

    .nav-parent:hover > .nav-dropdown,
    .nav-parent:focus-within > .nav-dropdown {
        display: none !important;
    }


    /* แต่ถ้ามี is-open ต้องแสดง */

    .nav-parent.is-open:hover > .nav-dropdown,
    .nav-parent.is-open:focus-within > .nav-dropdown {
        display: block !important;
    }


    /* ------------------------------------------
       รายการ Dropdown
       ------------------------------------------ */

    .nav-dropdown-normal > a {
        width: 100%;
        min-height: 46px;

        padding: 10px 12px;

        display: flex;
        align-items: center;

        color: #4e626c;

        font-size: 15px !important;
        font-weight: 400;

        line-height: 1.55;

        white-space: normal;

        border-bottom: 1px solid #e9eeee;
    }


    .nav-dropdown-normal > a:last-child {
        border-bottom: 0;
    }


    .nav-dropdown-normal > a:hover {
        background: #eaf4f3;
        color: var(--teal-dark);
    }


    /* ------------------------------------------
       Nested parent
       เช่น
       ผลลัพธ์ของแผนงาน
       การวัดและประเมินผล
       Logbook
       ------------------------------------------ */

    .nav-sub-parent {
        position: relative;

        width: 100%;

        border-bottom: 1px solid #e9eeee;
    }


    .nav-sub-button {
        width: 100%;
        min-height: 46px;

        padding: 10px 12px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        border: 0;

        background: transparent;

        color: #4e626c;

        font-size: 15px !important;
        font-weight: 400;

        line-height: 1.55;

        text-align: left;
    }


    .nav-sub-button:hover,
    .nav-sub-parent.is-open > .nav-sub-button {
        background: #eaf4f3;
        color: var(--teal-dark);
    }


    /* ------------------------------------------
       ลูกศร Nested
       ------------------------------------------ */

    .nav-sub-arrow {
        margin-left: auto;

        flex: 0 0 auto;

        color: var(--teal-dark);

        font-size: 17px;

        transform: rotate(90deg);

        transition: transform .2s ease;
    }


    .nav-sub-parent.is-open > .nav-sub-button .nav-sub-arrow {
        transform: rotate(-90deg);
    }


    /* ------------------------------------------
       Nested Dropdown ชั้นที่ 2
       ------------------------------------------ */

    .nav-sub-dropdown,
    .curriculum-dropdown .nav-sub-dropdown,
    .resident-dropdown .nav-sub-dropdown {
        position: static !important;

        top: auto !important;
        left: auto !important;
        right: auto !important;

        width: 100% !important;

        margin: 0;

        padding: 4px 0 5px 14px;

        display: none !important;

        grid-template-columns: 1fr !important;

        background: #f1f6f5;

        border: 0;
        border-left: 3px solid #bddbd8;

        box-shadow: none;
    }


    /* เปิด Nested */

    .nav-sub-parent.is-open > .nav-sub-dropdown {
        display: block !important;
    }


    /* ปิด Hover desktop */

    .nav-sub-parent:hover > .nav-sub-dropdown,
    .nav-sub-parent:focus-within > .nav-sub-dropdown {
        display: none !important;
    }


    /* is-open มีสิทธิ์สูงสุด */

    .nav-sub-parent.is-open:hover > .nav-sub-dropdown,
    .nav-sub-parent.is-open:focus-within > .nav-sub-dropdown {
        display: block !important;
    }


    /* ------------------------------------------
       รายการ Nested
       ------------------------------------------ */

    .nav-sub-dropdown > a,
    .curriculum-dropdown .nav-sub-dropdown > a,
    .resident-dropdown .nav-sub-dropdown > a {
        width: 100%;

        min-height: 44px;

        padding: 9px 12px;

        display: flex;

        align-items: center;

        color: #52676f;

        font-size: 15px !important;
        font-weight: 400;

        line-height: 1.55;

        white-space: normal;

        border-bottom: 1px solid #e2eae9;
    }


    .nav-sub-dropdown > a:last-child {
        border-bottom: 0;
    }


    .nav-sub-dropdown > a:hover {
        background: #e4f0ef;
        color: var(--teal-dark);
    }


    /* Logbook เลขว่างไม่กินพื้นที่ */

    .resident-dropdown .nav-sub-number:empty {
        display: none;
    }


    /* ------------------------------------------
       จำกัดความสูงกรณีโทรศัพท์แนวนอน
       ------------------------------------------ */

    .nav-menu.is-open {
        max-height: calc(100vh - 56px);

        overflow-y: auto;
        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;
    }

}


/* ==========================================================
   โทรศัพท์จอเล็ก
   ========================================================== */

@media (max-width: 640px) {

    .mobile-nav-button {
        min-height: 54px;

        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-menu > li > a,
    .nav-parent-button {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav-dropdown,
    .nav-dropdown-normal,
    .curriculum-dropdown,
    .resident-dropdown {
        padding-left: 12px;
        padding-right: 7px;
    }

    .nav-sub-dropdown,
    .curriculum-dropdown .nav-sub-dropdown,
    .resident-dropdown .nav-sub-dropdown {
        padding-left: 10px;
    }

}
/* ==========================================================
   INDEX PAGE - SECTION SPACING
   ลดช่องว่างระหว่างแต่ละบล็อกในหน้าแรก
   ========================================================== */

/* ข่าวประชาสัมพันธ์ */
.home-news {
    padding-top: 55px !important;
    padding-bottom: 45px !important;
}

/* การฝึกอบรมของเรา */
.training-about {
    padding-top: 45px !important;
    padding-bottom: 55px !important;
}

/* ปฏิทินกิจกรรมวิชาการ */
.google-calendar-section {
    padding-top: 55px !important;
    padding-bottom: 55px !important;
}

/* การรับสมัคร */
.home-admission-section {
    padding-top: 55px !important;
    padding-bottom: 55px !important;
}

/* ข้อมูลสำคัญของแผนงานฝึกอบรม */
.explore-program {
    padding-top: 55px !important;
    padding-bottom: 55px !important;
}

/* สำหรับแพทย์ประจำบ้าน */
.resident-tools {
    padding-top: 55px !important;
    padding-bottom: 55px !important;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {

    .home-news,
    .training-about,
    .google-calendar-section,
    .home-admission-section,
    .explore-program,
    .resident-tools {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .home-news,
    .training-about,
    .google-calendar-section,
    .home-admission-section,
    .explore-program,
    .resident-tools {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

}