/* =========================================
   Variables & Reset
   ========================================= */
:root {
    /* Color Palette */
    --primary-blue: #0A3D91; /* Deep Royal Blue */
    --primary-blue-light: #1864D2;
    --accent-red: #D32F2F;
    --accent-gold: #FBC02D;
    
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    --text-main: #2D3748;
    --text-muted: #718096;
    --nav-text: #FFFFFF;
    
    --border-color: #E2E8F0;
    
    /* Typography */
    --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* =========================================
   Header Layout
   ========================================= */
.main-header {
    background-color: var(--bg-white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-box {
    flex-shrink: 0;
}

.logo {
    max-height: 80px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.header-logo {
    flex-shrink: 0;
}

.h-photo {
    max-height: 80px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.header-banner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid var(--border-color);
    padding-left: 25px;
}


.header-banner h1 {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.header-banner p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* =========================================
   Navigation
   ========================================= */
.main-nav {
    background: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hamburger Menu Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links {
    display: flex;
    justify-content: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: inline-block;
    color: var(--nav-text);
    padding: 18px 30px;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    position: relative;
    opacity: 0.9;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 4px 4px 0 0;
}

/* =========================================
   Hero Section (Index)
   ========================================= */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 40px;
}


.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}


.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* =========================================
   Page Layout & Common Content
   ========================================= */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: inset 0 -10px 20px -10px rgba(0,0,0,0.2);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    flex-grow: 1;
    padding-bottom: 80px;
}

.content-card {
    background-color: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    border-top: 5px solid var(--primary-blue-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.content-card.red-border {
    border-top-color: var(--accent-red);
}

.content-card.gold-border {
    border-top-color: var(--accent-gold);
}

.section-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-red);
    border-radius: 2px;
}

.prose p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #4A5568;
    line-height: 1.8;
}

.prose strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Lists */
.styled-list {
    margin: 20px 0;
}

.styled-list li {
    padding: 15px 20px;
    background: #F7FAFC;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue-light);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.styled-list strong {
    color: var(--primary-blue);
    margin-right: 15px;
    min-width: 100px;
}

/* Contact Info Box */
.contact-box {
    background: linear-gradient(135deg, #F0F4F8 0%, #E2E8F0 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.contact-box h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-list li {
    display: flex;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info-list .label {
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 80px;
}

.contact-info-list .value {
    color: #4A5568;
}

/* Accreditation Banner */
.accreditation-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #062B6B 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bppe-logo {
    max-height: 120px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.accreditation-banner h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.accreditation-banner p {
    font-size: 1.25rem;
    font-weight: 500;
}

.accreditation-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-top: 10px;
}

/* =========================================
   Footer
   ========================================= */
.main-footer {
    background-color: #1A202C;
    color: #CBD5E0;
    padding: 40px 0;
    margin-top: auto;
    border-top: 4px solid var(--primary-blue);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}


.footer-contact-info {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-divider {
    width: 100px;
    height: 1px;
    background-color: #4A5568;
    border: none;
    margin: 10px auto;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    color: #718096;
}

/* =========================================
   Animations & Media Queries
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    
    .header-banner {
        border-left: none;
        padding-left: 0;
    }
    
    .header-banner h1 {
        font-size: 1.6rem;
    }

    /* Mobile Nav Toggle Show */
    .nav-toggle {
        display: block;
        margin-left: auto;
    }
    
    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background: var(--primary-blue);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 99;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links a.active::after {
        height: 100%;
        width: 4px;
        left: 0;
        top: 0;
        border-radius: 0;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .content-card {
        padding: 25px 15px; /* Reduced padding for mobile */
    }

    .section-title {
        font-size: 1.6rem;
    }
    
    .styled-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .accreditation-highlight {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    /* Grid layout stack for accreditation docs */
    .accreditation-docs-grid {
        grid-template-columns: 1fr !important;
    }

    /* Address boxes and other flex containers */
    .flex-mobile-stack {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .min-width-mobile-reset {
        min-width: 0 !important;
    }
}
/* =========================================
   Academic Tables
   ========================================= */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 1.05rem;
    min-width: 800px;
}

.program-table th, 
.program-table td {
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.program-table th {
    background-color: #F1F5F9;
    color: var(--primary-blue);
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--primary-blue-light);
}

.program-table td.category-cell {
    background-color: #F8FAFC;
    color: var(--primary-blue);
    font-weight: 800;
    text-align: center;
    width: 100px;
}

.program-table td.group-cell {
    background-color: #FBFDFF;
    color: #4A5568;
    font-weight: 700;
    text-align: center;
    width: 200px;
}

.program-table td.dept-cell {
    color: var(--primary-blue-light);
    font-weight: 600;
    width: 200px;
}

.program-table td.major-cell {
    color: var(--text-main);
    line-height: 1.6;
}

.program-table tr:hover {
    background-color: #F7FAFC;
}

@media (max-width: 768px) {
    .program-table {
        font-size: 0.95rem;
    }
    .program-table th, 
    .program-table td {
        padding: 12px 15px;
    }
}

/* =========================================
   Admin Bar
   ========================================= */
.admin-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.admin-badge {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.btn-add-item {
    margin-left: auto;
    background: var(--accent-gold);
    color: #1A202C;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-add-item:hover {
    background: #FAD02E;
    transform: scale(1.03);
}

.btn-logout-admin {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-logout-admin:hover {
    background: rgba(255,255,255,0.28);
}

/* =========================================
   List Header
   ========================================= */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-login-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 7px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    opacity: 0.65;
}

.admin-login-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    opacity: 1;
}

/* =========================================
   Announcement List (Accordion)
   ========================================= */
.announcement-list {
    display: flex;
    flex-direction: column;
}

.announcement-item {
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.announcement-item:first-child {
    border-top: 1px solid var(--border-color);
}

.ann-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ann-header:hover {
    background: #F7FAFC;
}

.ann-number {
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.ann-cat-badge {
    color: white;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.ann-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.ann-title.pinned::before {
    content: '📌 ';
}

.ann-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.ann-toggle-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.35s ease;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.ann-admin-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-edit-sm {
    background: #EBF4FF;
    color: var(--primary-blue);
    border: 1px solid #BEE3F8;
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-edit-sm:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-delete-sm {
    background: #FFF5F5;
    color: var(--accent-red);
    border: 1px solid #FED7D7;
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-delete-sm:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.ann-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s ease, padding 0.3s ease;
    background: #F8FAFC;
}

.ann-body.open {
    max-height: 2000px;
    padding: 20px 20px 28px 66px;
}

.ann-content-text {
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.85;
    white-space: pre-wrap;
}

.ann-content-text table {
    white-space: normal;
    margin: 20px 0;
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 1.05rem;
    border: 1px solid var(--border-color);
}

.ann-content-text th,
.ann-content-text td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: middle;
}

.ann-content-text th {
    background-color: #F1F5F9;
    color: var(--primary-blue);
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--primary-blue-light);
}

.ann-content-text tr:hover {
    background-color: #F7FAFC;
}

/* =========================================
   Download List
   ========================================= */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    background: #F8FAFC;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.download-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: #BEE3F8;
    background: white;
    transform: translateY(-2px);
}

.file-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.file-icon-box.pdf  { background: #FFF5F5; }
.file-icon-box.doc,
.file-icon-box.docx { background: #EBF8FF; }
.file-icon-box.xls,
.file-icon-box.xlsx { background: #F0FFF4; }
.file-icon-box.ppt,
.file-icon-box.pptx { background: #FFFAF0; }
.file-icon-box.zip  { background: #FAF5FF; }
.file-icon-box.img,
.file-icon-box.jpg,
.file-icon-box.png  { background: #FFF5F5; }
.file-icon-box.default { background: #F7FAFC; }

.download-info {
    flex: 1;
    min-width: 0;
}

.download-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.download-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.download-meta {
    font-size: 0.8rem;
    color: #A0AEC0;
}

.download-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-download {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-download:hover {
    background: var(--primary-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10,61,145,0.3);
}

/* =========================================
   Modal Overlay & Box
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
    animation: fadeInOverlay 0.2s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    animation: slideUpModal 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 620px;
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-box h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-blue-light);
    box-shadow: 0 0 0 3px rgba(24,100,210,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.form-check-row label {
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-main);
}

.form-error {
    color: var(--accent-red);
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #FFF5F5;
    border-radius: 6px;
    border-left: 3px solid var(--accent-red);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-actions .btn-cancel {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-main);
}

.modal-actions .btn-cancel:hover { background: #F7FAFC; }

.modal-actions .btn-primary {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--primary-blue);
    color: white;
    border: none;
}

.modal-actions .btn-primary:hover { background: var(--primary-blue-light); }

.modal-actions .btn-danger {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--accent-red);
    color: white;
    border: none;
}

.modal-actions .btn-danger:hover { background: #B71C1C; }

/* =========================================
   Empty State
   ========================================= */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3.2rem;
    margin-bottom: 16px;
    opacity: 0.45;
}

.empty-state p {
    font-size: 1.05rem;
}

.count-badge {
    background: #EBF4FF;
    color: var(--primary-blue);
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .ann-header { flex-wrap: wrap; gap: 8px; }
    .ann-date { display: none; }
    .ann-body.open { padding: 15px 15px 22px 15px; }
    .download-item { flex-wrap: wrap; gap: 12px; }
    .download-actions { width: 100%; justify-content: flex-end; }
    .admin-bar { flex-wrap: wrap; }
    .btn-add-item { margin-left: 0; }
    .list-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    
    /* Table responsive override to avoid text cutting inside accordion */
    .ann-content-text table {
        font-size: 0.88rem !important;
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ann-content-text th,
    .ann-content-text td {
        padding: 8px 10px !important;
        white-space: nowrap;
    }

    /* Corp grid layout reset for mobile */
    .corp-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .corp-card {
        padding: 15px !important;
    }
}
