/* ============================================================
   1. FONTS & GLOBAL STYLES
   ============================================================ */
@font-face {
    font-family: 'Prompt';
    src: url('../fonts/Prompt/Prompt-Regular.ttf') format('truetype');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Prompt';
    src: url('../fonts/Prompt/Prompt-Bold.ttf') format('truetype');
    font-weight: bold; font-style: normal;
}

/* ─── Design Tokens — Violet-to-Cyan palette ────────────────
   Source swatches: #FFCBF2 #F3C4FB #ECBCFD #E5B3FE #E2AFFF
                    #DEAAFF #D8BBFF #D0D1FF #C8E7FF #C0FDFF   */
:root {
    --primary:        #7B5EA7;
    --primary-dark:   #5B4A8A;
    --primary-light:  #EDE9F8;
    --accent:         #D8BBFF;
    --accent-mid:     #C8E7FF;
    --accent-light:   #F3EEFF;
    --cyan:           #C0FDFF;
    --nav-bg:         #5B4A8A;
    --nav-hover:      #D8BBFF;
    --gray-border:    #DDD5F0;
    --gray-text:      #7A6B99;
    --gray-light:     #F5F2FC;
    --white:          #ffffff;
    --green:          #16a34a;
    --red:            #dc2626;
    --yellow:         #d97706;
    --orange:         #e53d00;
    --radius:         10px;
    --shadow:         0 2px 12px rgba(91,74,138,.10);
    --shadow-md:      0 4px 20px rgba(91,74,138,.18);
}

/* ─── Thai Gold Theme — inspired by Thai identity colors ─────
   Deep purple #3D0072 · Gold #E8B84B (accent) · Magenta #CC1177
   Rebalanced: purple leads, gold is now an accent, not the primary */
html[data-theme="thai"] {
    --primary:        #6B2D8C;
    --primary-dark:   #3D0072;
    --primary-light:  #F0E3F7;
    --accent:         #E8B84B;
    --accent-mid:     #D9A441;
    --accent-light:   #FBF1DC;
    --cyan:           #FF80B5;
    --nav-bg:         #2D005A;
    --nav-hover:      #E8B84B;
    --gray-border:    #DDD0EC;
    --gray-text:      #6B5A8C;
    --gray-light:     #F7F2FB;
    --shadow:         0 2px 12px rgba(61,0,114,.12);
    --shadow-md:      0 4px 20px rgba(61,0,114,.22);
}

body {
    font-family: 'Prompt', sans-serif;
    font-size: 16px;
    background-color: var(--gray-light);
    margin: 0;
    color: #2d2547;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   2. HEADER
   ============================================================ */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    color: white;
    padding: 15px 50px;
}
.branding h4 { font-size: 1.3rem; font-weight: bold; margin: 0; }

/* ============================================================
   3. NAVBAR
   ============================================================ */
.sub-nav {
    background-color: var(--nav-bg);
    padding: 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.sub-nav .nav-link {
    color: rgba(255,255,255,.88) !important;
    padding: 12px 20px !important;
    font-weight: bold;
    transition: background .25s;
}
.sub-nav .nav-link:hover,
.sub-nav .nav-link.active {
    background-color: #c0117c;
    color: #fff !important;
}

/* ============================================================
   4. TAB BAR
   ============================================================ */
.tab-bar { background: var(--white); border-bottom: 1px solid var(--gray-border); display: flex; }
.tab-item {
    flex: 1; padding: 14px 24px;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--gray-text);
    font-size: .875rem; font-weight: 500;
    border-bottom: 3px solid transparent; transition: all .2s;
}
.tab-item:hover { background: var(--gray-light); color: var(--primary); }
.tab-item.active { color: var(--primary-dark); border-bottom-color: var(--primary); background: var(--primary-light); }
.tab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-border); flex-shrink: 0; }
.tab-item.active .tab-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(123,94,167,.25); }
.tab-label-sub { font-size: .75rem; color: var(--gray-text); font-weight: 400; margin-top: 1px; }

/* ============================================================
   5. MAIN CONTENT
   ============================================================ */
.main-content2 { padding: 0; }
.content-area  { padding: 28px 32px; }
.main-content, .container { flex: 1 0 auto; }
.main-content { margin-left: 250px; transition: margin .3s; min-height: 100vh; }

/* ============================================================
   6. PAGE HEADINGS
   ============================================================ */
.page-heading    { font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.page-subheading { font-size: .85rem; color: var(--gray-text); margin-bottom: 24px; }

/* ============================================================
   7. STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--white); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow);
    border-left: 4px solid; transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .label { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-text); margin-bottom: 8px; font-size: .78rem; }
.stat-card .value { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .unit  { font-size: .875rem; font-weight: 400; margin-left: 4px; }

.stat-card.violet { border-color: var(--primary); }    .stat-card.violet .value { color: var(--primary); }
.stat-card.blue   { border-color: #5B8FD4; }           .stat-card.blue   .value { color: #5B8FD4; }
.stat-card.cyan   { border-color: #4CC9D4; }           .stat-card.cyan   .value { color: #4CC9D4; }
.stat-card.green  { border-color: var(--green); }      .stat-card.green  .value { color: var(--green); }
.stat-card.red    { border-color: var(--red); }        .stat-card.red    .value { color: var(--red); }
.stat-card.yellow { border-color: var(--yellow); }     .stat-card.yellow .value { color: var(--yellow); }
.stat-card.orange { border-color: var(--orange); }     .stat-card.orange .value { color: var(--orange); }
.stat-card.purple { border-color: #9B59E8; }           .stat-card.purple .value { color: #9B59E8; }

.stat-button {
    background: var(--white); padding: 20px;
    border-left: 5px solid var(--primary); border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,.05); font-weight: bold;
    color: var(--primary-dark); text-decoration: none; display: block; transition: all .2s;
}
.stat-button:hover { background: var(--primary); color: var(--white); }

.back-button {
    background: var(--white); padding: 10px 18px;
    border: 2px solid var(--primary); border-radius: 8px;
    font-weight: bold; color: var(--primary);
    transition: all .2s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.back-button:hover { background: var(--primary); color: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ============================================================
   8. CHART CARDS
   ============================================================ */
.chart-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chart-card-header {
    padding: 14px 20px; border-bottom: 1px solid var(--gray-border);
    font-size: .875rem; font-weight: 600; color: var(--primary-dark);
    display: flex; align-items: center; gap: 8px; background: var(--primary-light);
}
.chart-card-body { padding: 20px; }

/* ============================================================
   9. COOP TYPE SELECTOR CARDS
   ============================================================ */
.coop-card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px 24px; text-decoration: none; display: block;
    border-left: 5px solid; transition: all .2s;
}
.coop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.coop-card .coop-type  { font-size: 1.75rem; font-weight: 800; margin-bottom: 4px; }
.coop-card .coop-label { font-size: .85rem; color: var(--gray-text); }
.coop-card .coop-icon  { font-size: 2.5rem; opacity: .15; float: right; margin-top: -8px; }

/* ============================================================
   10. RANK BADGES
   ============================================================ */
.top-list-item { padding: 10px 0; border-bottom: 1px solid var(--gray-border); }
.top-list-item:last-child { border-bottom: none; }
.rank-badge {
    width: 24px; height: 24px; border-radius: 6px;
    background: var(--accent-light); color: var(--primary-dark);
    font-size: .75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rank-badge.top1 { background: #fef9c3; color: #854d0e; }
.rank-badge.top2 { background: #f1f5f9; color: #475569; }
.rank-badge.top3 { background: #fff7ed; color: #9a3412; }

/* ============================================================
   11. PROGRESS BARS
   ============================================================ */
.country-item { margin-bottom: 14px; }
.country-item:last-child { margin-bottom: 0; }
.progress      { height: 6px; border-radius: 99px; background: var(--gray-border); }
.progress-bar  { border-radius: 99px; }

/* ============================================================
   12. FILTER BAR
   ============================================================ */
.filter-bar {
    background: var(--gray-light); border: 1px solid var(--gray-border);
    border-radius: var(--radius); padding: 14px 18px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 20px;
}
.filter-bar label { font-size: .75rem; font-weight: 600; color: var(--gray-text); text-transform: uppercase; letter-spacing: .05em; }
.filter-bar .form-select { font-size: .85rem; border-radius: 6px; border-color: var(--gray-border); min-width: 160px; }
.btn-clear { font-size: .8rem; color: var(--gray-text); background: none; border: none; padding: 0; cursor: pointer; }
.btn-clear:hover { color: var(--primary); }

/* ============================================================
   13. DATA TABLE
   ============================================================ */
.table { border-radius: var(--radius); }
.table thead th { font-weight: bold; color: #555; background-color: #f8f9fa; }

#mouTable thead th, #myTable thead th {
    background: var(--primary-light); color: var(--primary-dark);
    font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    border-bottom: none; padding: 10px 14px;
}
#mouTable tbody td, #myTable tbody td { font-size: .875rem; padding: 10px 14px; vertical-align: middle; }
#mouTable tbody tr:hover td, #myTable tbody tr:hover td { background: var(--accent-light); }

.dataTables_wrapper .dataTables_info { font-size: .85rem; color: #6c757d; padding-top: 15px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 15px; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: .5rem .75rem; margin-left: 2px;
    border: 1px solid var(--gray-border); border-radius: 4px;
    background: #fff; color: var(--primary) !important; cursor: pointer;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--accent-light); border-color: var(--primary); }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background-color: var(--primary) !important; color: white !important; border-color: var(--primary); }
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { color: #6c757d !important; cursor: default; background: #fff; border-color: var(--gray-border); }

/* ============================================================
   14. STATUS BADGES
   ============================================================ */
.status-badge { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .03em; display: inline-block; white-space: nowrap; }
.status-active   { background: #dcfce7; color: #15803d; }
.status-inactive { background: #fee2e2; color: #b91c1c; }
.status-nego     { background: #fef9c3; color: #854d0e; }
.status-na       { background: #f1f5f9; color: #64748b; }

/* ============================================================
   15. MOU DIRECTORY CARDS
   ============================================================ */
.mou-card {
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--gray-border);
    overflow: hidden; display: flex; align-items: stretch;
    transition: box-shadow .2s, transform .15s;
    cursor: pointer; text-decoration: none; color: inherit;
}
.mou-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent); }

.mou-flag {
    width: 88px; min-width: 88px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); padding: 16px;
    border-right: 1px solid var(--gray-border);
}
.mou-flag .flag-placeholder {
    width: 52px; height: 36px; border-radius: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.mou-body { flex: 1; padding: 14px 18px; min-width: 0; }
.mou-title { font-size: .95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mou-dept  { font-size: .8rem; color: var(--gray-text); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mou-meta  { display: flex; flex-wrap: wrap; gap: 10px; font-size: .77rem; }
.mou-meta span { display: flex; align-items: center; gap: 4px; color: #555; }
.mou-meta .bi  { color: var(--primary); }

/* ============================================================
   16. HERO BANNER
   ============================================================ */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #9B8EC4 100%);
    padding: 40px 0 32px; position: relative; overflow: hidden;
}
.hero-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(255,255,255,.06) 0%, transparent 60%);
}
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.25); color: #fff;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.4);
}
.hero-title { font-size: 2rem; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-sub   { font-size: .95rem; color: rgba(255,255,255,.78); margin-top: 4px; }

/* ============================================================
   17. PAGINATION
   ============================================================ */
.pagination-wrap { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.page-info { font-size: .85rem; color: var(--gray-text); padding: 0 8px; }
.btn-page {
    border: 1px solid var(--gray-border); background: var(--white); color: var(--primary);
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-page:hover  { background: var(--primary-light); border-color: var(--primary); }
.btn-page.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-page.disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   18. CALLOUT BOXES
   ============================================================ */
.callout  { margin: 24px 0; padding: 16px; border-left: 5px solid var(--primary); background: var(--primary-light); border-radius: 0 6px 6px 0; }
.callout2 { margin: 24px 0; padding: 16px; border-left: 5px solid #4CC9D4; background: #eefeff; border-radius: 0 6px 6px 0; }

/* ============================================================
   19. LOGIN PAGE
   ============================================================ */
.login-body {
    background: linear-gradient(135deg, #FFCBF2 0%, #E5B3FE 40%, #D0D1FF 70%, #C0FDFF 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0;
}
.login-box {
    background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
    padding: 60px 56px; border-radius: 20px; width: 100%; max-width: 440px;
    box-shadow: 0 12px 40px rgba(91,74,138,.18); border: 1px solid rgba(216,187,255,.5);
}
.login-title { color: var(--primary-dark); font-weight: bold; text-align: center; font-size: 2rem; }
.login-input {
    height: 50px; border-radius: 8px; border: 1.5px solid var(--gray-border);
    font-size: 1rem; padding-left: 15px; transition: border-color .2s, box-shadow .2s;
}
.login-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123,94,167,.15); outline: none; }
.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff; border: none; height: 50px;
    font-size: 1.1rem; font-weight: bold; border-radius: 8px; transition: all .25s;
}
.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4a3a72 100%);
    color: #fff; box-shadow: 0 4px 12px rgba(91,74,138,.3);
}
.btn-second { background-color: var(--accent-light); color: var(--primary-dark); border: 1.5px solid var(--accent); border-radius: 8px; transition: all .25s; }
.btn-second:hover { background-color: var(--accent); box-shadow: 0 4px 8px rgba(0,0,0,.1); }

/* ============================================================
   20. SIDEBAR (e-doc, adddoc)
   ============================================================ */
.member-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #3a2d68 100%);
    color: white; position: fixed; height: 100vh; transition: all .3s ease; z-index: 1000;
}
.sidebar.collapsed { width: 80px; }
.menu-item {
    display: flex; align-items: center; padding: 12px 15px !important;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.85) !important; transition: background .2s;
}
.menu-item i    { font-size: 1.2rem; width: 40px; text-align: center; }
.menu-text      { display: flex; flex-direction: column; line-height: 1.2; }
.main-label     { font-weight: bold; font-size: 1rem; }
.sub-label      { font-size: .5rem; opacity: .7; }
.menu-item.active {
    background: linear-gradient(90deg, rgba(216,187,255,.25) 0%, rgba(216,187,255,.1) 100%);
    border-left: 3px solid var(--accent); color: white !important; border-bottom: none;
}
.active-badge { background-color: var(--accent); color: var(--primary-dark); font-size: .5rem; padding: 3px 8px; border-radius: 10px; font-weight: 700; }
.btn-toggle { background: rgba(255,255,255,.2); border: none; color: white; width: 35px; height: 35px; border-radius: 50%; }

/* Form inputs */
.form-control, .form-select { border: 1.5px solid var(--gray-border); border-radius: 8px; padding: .6rem .75rem; transition: border-color .2s, box-shadow .2s; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(123,94,167,.15); outline: none; }

/* ============================================================
   21. FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3a2d68 100%);
    color: #ffffff; font-size: 15px; border-top: 3px solid var(--accent);
}
.footer p   { color: rgba(255,255,255,.8); line-height: 1.4; }
.footer .bi { color: var(--accent); }
.footer-logo { max-width: 180px; filter: drop-shadow(2px 2px 4px rgba(0,0,0,.1)); }
.footer-text { color: #ffffff; text-shadow: 1px 1px 2px rgba(0,0,0,.2); }

/* ============================================================
   22. DASHBOARD LANDING CARDS (dashboard.html)
   ============================================================ */
.dash-select-card {
    background: rgba(255,255,255,.96); border-radius: 24px;
    border: 1px solid rgba(216,187,255,.5);
    box-shadow: 0 15px 35px rgba(91,74,138,.15);
    overflow: hidden; display: flex; flex-direction: column; height: 100%;
}
.dash-select-card-top  { background: linear-gradient(to bottom, #f0eafa 0%, #ffffff 100%); padding: 25px 25px 15px; }
.dash-select-card-body { padding: 25px 30px 30px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.dash-select-btn {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; border-radius: 30px; padding: 12px 20px;
    font-size: 16px; font-weight: bold; width: 100%; border: none;
    box-shadow: 0 4px 12px rgba(91,74,138,.3);
    text-decoration: none; display: block; transition: all .2s;
}
.dash-select-btn:hover { background: linear-gradient(180deg, var(--primary-dark) 0%, #3a2d68 100%); color: white; transform: translateY(-1px); }

/* ============================================================
   23. MISC
   ============================================================ */
.carousel-caption { background-color: rgba(0,0,0,.45); border-radius: 20px; }
.top-regions      { background-color: var(--accent-light); border-radius: 8px; }
.upcoming-event   { background-color: var(--primary-light); border-radius: 8px; margin-bottom: 5px; }
.search-container { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ============================================================
   24. RESPONSIVE — Mobile first
   ============================================================ */

/* ── Navbar mobile collapse menu ─────────────────────────── */
@media (max-width: 991.98px) {
    /* Collapsed nav: items stack vertically inside purple bg */
    .sub-nav .navbar-collapse {
        background: var(--primary-dark);
        margin: 0 -12px;
        padding: 8px 16px 16px;
        border-top: 1px solid rgba(255,255,255,.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    .sub-nav .navbar-nav { flex-direction: column !important; width: 100%; }
    .sub-nav .navbar-nav .nav-link { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
    .sub-nav .navbar-nav .nav-link:last-child { border-bottom: none; }
    /* Hide separators on mobile */
    .nav-sep { display: none !important; }
    /* Search full width on mobile */
    .sub-nav .navbar-nav form { width: 100%; }
    .sub-nav .navbar-nav form input { width: 100% !important; border-radius: 20px 0 0 20px !important; }
}

/* ── Main header ──────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .main-header { padding: 8px 12px; }
    .main-header .branding div:first-child { font-size: .75rem; }
}

/* ── Homepage hero ────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Banner section */
    .hero-wrap { flex-direction: column !important; }
    .hero-carousel { width: 100% !important; }
    /* Quick menu moves below banner */
    .quick-btn { padding: 10px 12px; font-size: .82rem; }
    .qi { width: 32px; height: 32px; font-size: .9rem; }
    /* News/highlight cards - 1 col on mobile */
    .content-card { margin-bottom: 12px; }
    /* Calendar compact */
    .calendar-wrap { overflow-x: auto; }
    /* Section badge */
    .sec-badge { font-size: .7rem; padding: 3px 8px; }
    .sec-title  { font-size: 1rem; }
}

/* ── Content pages ────────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Page hero headings */
    .page-hero h1 { font-size: 1.3rem; }
    .page-hero p  { font-size: .82rem; }
    /* Cards */
    .prog-card, .step-card, .scholarship-card { padding: 14px; }
    .filter-bar { flex-direction: column; align-items: stretch; gap: 8px; }
    /* Container padding */
    .container.py-4.px-3.px-md-5,
    .container-fluid.px-4.py-3 { padding-left: 14px !important; padding-right: 14px !important; }
}

/* ── THIPS coming-soon cards ──────────────────────────────── */
@media (max-width: 575.98px) {
    .coming-soon-card { padding: 20px 12px; }
}

/* ── Search page ──────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .search-wrap-lg { max-width: 100%; }
    .search-wrap-lg input { font-size: .85rem; padding: 10px 14px; }
}

/* ── MOU directory ────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .hero-banner { padding: 30px 14px; }
    .hero-title  { font-size: 1.6rem; }
}

/* ── News listing ─────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .news-card .card-body { padding: 12px; }
    .cat-tabs { gap: 6px; }
    .cat-tab  { padding: 4px 10px; font-size: .75rem; }
}

/* ── Edoc / E-office sidebar on mobile ───────────────────── */
@media (max-width: 991.98px) {
    .member-layout { flex-direction: column; }
    .sidebar {
        width: 100%; min-height: auto;
        position: relative; top: auto;
        max-height: 220px; overflow-y: auto;
    }
    .main-content { margin-left: 0; }
}

/* ── Footer ──────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .footer-section { text-align: center; }
    .footer-section .d-flex { justify-content: center; }
}