:root {
    --primary: #1a365d;
    --primary-dark: #0f2744;
    --primary-light: #2c5282;
    --secondary: #4299e1;
    --accent: #ed8936;
    --success: #38a169;
    --danger: #e53e3e;
    --warning: #d69e2e;
    --info: #3182ce;
    --light: #f7fafc;
    --dark: #2d3748;
    --gray-50: #f9fafb;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

section {
    padding: 5rem 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-light:hover {
    background-color: var(--gray-100);
    color: var(--primary-dark);
}

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.navbar {
    background-color: var(--primary);
    box-shadow: var(--shadow-md);
    padding: 0.65rem 0;
    transition: var(--transition);
}

.navbar.sticky-top {
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.25px;
}

.navbar-brand:hover {
    color: var(--secondary) !important;
}

.navbar-nav {
    gap: 0.15rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92) !important;
    padding: 0.4rem 0.75rem !important;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.18);
}

.nav-link.active,
.nav-link.active:hover {
    color: var(--primary) !important;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.08);
}

.navbar .btn-outline-light {
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.35rem 0.5rem;
    color: #ffffff;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section h1,
.hero-section .display-3,
.hero-section h2,
.hero-section h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-section p.lead,
.hero-section .fs-4,
.hero-section .opacity-90,
.hero-section p {
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
}

.hero-section a.position-absolute.text-white {
    color: #ffffff !important;
    opacity: 0.95;
}

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 39, 68, 0.7) 0%, rgba(26, 54, 93, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-title p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

.bg-light-section {
    background-color: var(--gray-50);
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

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

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.card-footer {
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.aim-cards .card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 4px solid var(--primary);
}

.aim-cards .card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    color: #fff;
    font-size: 1.75rem;
}

.aim-cards h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.aim-cards p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.field-grid .card {
    text-align: center;
    padding: 2rem 1rem;
}

.field-grid .field-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.field-grid h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.field-grid p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.board-member-card {
    text-align: center;
}

.board-member-card .member-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.board-member-card .card-body {
    padding: 1.5rem;
}

.board-member-card .member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.board-member-card .member-position {
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.board-member-card .member-institution {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-style: italic;
}

.board-member-card .member-bio {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.event-card .event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.event-card .event-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-card .event-meta i {
    color: var(--primary);
}

.event-card .event-year {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.subscribe-section {
    background-color: var(--gray-100);
    padding: 4rem 0;
}

.subscribe-section h2 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.subscribe-section p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.subscribe-form {
    max-width: 550px;
    margin: 0 auto;
}

.subscribe-form .input-group {
    box-shadow: var(--shadow-md);
    border-radius: 0.75rem;
    overflow: hidden;
}

.subscribe-form .form-control {
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-radius: 0;
}

.subscribe-form .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.subscribe-form .btn {
    border-radius: 0;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.subscribe-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    display: none;
}

.subscribe-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.subscribe-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 4rem;
}

.footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer ul li i {
    margin-top: 4px;
    color: var(--secondary);
    flex-shrink: 0;
}

.footer-contact li span {
    display: inline;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
    padding-left: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 0.6;
}

.notification-modal .modal-dialog {
    max-width: 480px;
    margin: 1.75rem auto;
}

.notification-modal .modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.notification-modal .modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: 1.5rem;
}

.notification-modal .modal-title {
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.notification-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.notification-modal .btn-close:hover {
    opacity: 1;
}

.notification-modal .modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.notification-modal .modal-body .popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--accent);
}

.notification-modal .modal-body h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.notification-modal .modal-body p {
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.7;
}

.notification-modal .modal-footer {
    border: none;
    padding: 0 1.5rem 1.5rem;
    justify-content: center;
    gap: 0.75rem;
}

/* ============================================================
   Popup Notification: slide-in from middle-right + sticky button
   ============================================================ */
.notification-popup .modal-dialog {
    max-width: 480px;
    margin: 0;
    margin-left: auto;
    margin-right: 1.5rem;
    min-height: 100%;
    display: flex;
    align-items: center;
}

.notification-popup.modal.fade .modal-dialog {
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.notification-popup.modal.show .modal-dialog {
    transform: translateX(0);
}

.popup-notification-fab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1055;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 0.75rem 0 0 0.75rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-notification-fab.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-notification-fab:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.popup-notification-fab .popup-notification-fab-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.popup-notification-fab .popup-notification-fab-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Popup notification image (clickable + large-size lightbox) */
.popup-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.popup-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
}

.popup-image-lightbox.show {
    display: flex;
}

.popup-image-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.popup-image-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.popup-image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 575.98px) {
    .notification-popup .modal-dialog {
        margin-right: 0.5rem;
    }
}

.badge-primary {
    background-color: var(--primary);
    color: #fff;
}

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

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

.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0;
}

.page-header .breadcrumb a,
.page-header .breadcrumb-item,
.page-header .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb a:hover {
    color: #fff;
}

.page-header .breadcrumb-item.active {
    color: #fff;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.15);
}

.accordion-button:not(.collapsed) {
    background-color: var(--gray-50);
    color: var(--primary);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--gray-200);
}

.list-group-item {
    padding: 1rem 1.25rem;
    border-color: var(--gray-200);
}

.list-group-item:first-child {
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.list-group-item:last-child {
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.pagination .page-link {
    color: var(--primary);
    border-color: var(--gray-300);
    padding: 0.5rem 1rem;
    margin: 0 0.15rem;
    border-radius: 0.375rem;
}

.pagination .page-link:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.spinner-border {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 0;
        padding-top: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 767.98px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .hero {
        min-height: 70vh;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .notification-modal .modal-dialog {
        margin: 1rem;
    }

    .notification-modal .modal-body {
        padding: 1.5rem 1rem;
    }

    .subscribe-form .input-group {
        flex-direction: column;
        box-shadow: none;
        border-radius: 0;
    }

    .subscribe-form .form-control,
    .subscribe-form .btn {
        border-radius: 0.5rem !important;
        width: 100%;
    }

    .subscribe-form .form-control {
        margin-bottom: 0.75rem;
        box-shadow: var(--shadow-md);
    }

    .subscribe-form .btn {
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 575.98px) {
    section {
        padding: 2.5rem 0;
    }

    .hero-content {
        padding: 1rem;
    }

    .notification-modal .modal-dialog {
        margin: 0.5rem;
    }

    .notification-modal .modal-header,
    .notification-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.skip-nav:focus,
.visually-hidden-focusable:focus {
    z-index: 9999;
    width: auto;
    height: auto;
    clip: auto;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    text-decoration: none;
}

[tabindex="-1"]:focus:not(:focus-visible) {
    outline: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.navbar-toggler:focus-visible,
.page-link:focus-visible {
    outline: 2px solid var(--bs-primary, #1a365d);
    outline-offset: 3px;
}

.page-link:focus-visible {
    box-shadow: none;
}

/* ============================================================
   Public Resources table
   ============================================================ */
.resources-table-container {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.resources-table-container .table-responsive {
    border-radius: 0.75rem;
}

.resources-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.resources-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1rem;
    border: none;
    white-space: nowrap;
}

.resources-col-category { width: 15%; }
.resources-col-title { width: 20%; }
.resources-col-description { width: 35%; }
.resources-col-remarks { width: 30%; }

.resources-table tbody td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    border-top: none;
    vertical-align: top;
    color: var(--gray-800);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.resources-table tbody tr:last-child td {
    border-bottom: none;
}

.resources-table tbody tr {
    background: #fff;
    transition: background 0.2s ease;
}

.resources-table tbody tr:hover {
    background: var(--gray-50);
}

.resources-cell-content p:last-child {
    margin-bottom: 0;
}

.resources-cell-content p {
    margin-bottom: 0.5rem;
}

.resources-cell-content ul,
.resources-cell-content ol {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.resources-cell-content a {
    word-break: break-word;
}

/* Tablet: keep four columns readable with contained horizontal scroll */
@media (min-width: 768px) and (max-width: 991.98px) {
    .resources-table {
        min-width: 860px;
    }
}

/* Mobile: stack each resource into a readable card */
@media (max-width: 767.98px) {
    .resources-table-container {
        border: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .resources-table-container .table-responsive {
        overflow: visible;
    }

    .resources-table {
        display: block;
        table-layout: auto;
        min-width: 0;
        width: 100%;
    }

    .resources-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }

    .resources-table tbody {
        display: block;
    }

    .resources-table tbody tr {
        display: block;
        border: 1px solid var(--gray-200);
        border-radius: 0.75rem;
        margin-bottom: 1rem;
        padding: 0.4rem;
        background: #fff;
        box-shadow: var(--shadow-sm);
    }

    .resources-table tbody tr:hover {
        background: #fff;
    }

    .resources-table tbody td {
        display: block;
        border: none;
        padding: 0.6rem 0.9rem;
        text-align: left;
    }

    .resources-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--gray-600);
        margin-bottom: 0.3rem;
    }
}
