/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: #1d4ed8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0d9488;
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-bar {
    background-color: #0f2942;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #1e3a5f;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.top-contacts span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-top-action {
    background-color: #1e3a5f;
    color: #ffffff;
    border: 1px solid #334155;
    padding: 4px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    white-space: nowrap;
}

.btn-top-action:hover {
    background-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.btn-login-link {
    background-color: #2563eb;
    font-weight: 600;
}

.btn-login-link:hover {
    background-color: #1d4ed8;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 4px 8px;
    font-size: 0.8rem;
    border: 1px solid #334155;
    border-radius: 3px 0 0 3px;
    outline: none;
    background-color: #ffffff;
    color: #0f172a;
}

.search-box button {
    background-color: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    padding: 4px 10px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #1d4ed8;
}

/* ==========================================================================
   MAIN HEADER (INSTITUTIONAL BRANDING)
   ========================================================================== */
.main-header {
    background-color: #ffffff;
    padding: 16px 0;
    border-bottom: 2px solid #e2e8f0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.logo-emblem {
    width: 60px;
    height: 60px;
    background-color: #1a365d;
    color: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: 2px solid #d97706;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    font-weight: 600;
}

.brand-title {
    font-size: 1.25rem;
    color: #1a365d;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin: 2px 0;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.header-edrpou {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 4px;
    text-align: right;
    font-size: 0.85rem;
}

.edrpou-label {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
}

.edrpou-value {
    font-weight: 700;
    color: #1a365d;
}

/* ==========================================================================
   NAVIGATION MENU (NAVBAR)
   ========================================================================== */
.main-nav {
    background-color: #1a365d;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 12px 16px;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

.nav-item:hover > a,
.nav-item.active > a {
    background-color: #0f2942;
    border-bottom-color: #f59e0b;
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   ANNOUNCEMENT TICKER BANNER
   ========================================================================== */
.announcement-banner {
    background-color: #fef3c7;
    border-bottom: 1px solid #fde68a;
    padding: 8px 0;
    color: #92400e;
    font-size: 0.88rem;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-urgent {
    background-color: #dc2626;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    white-space: nowrap;
}

.ticker-text {
    flex-grow: 1;
    font-weight: 600;
}

.btn-ticker {
    color: #b45309;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ==========================================================================
   HERO BANNER WITH REAL PHOTO
   ========================================================================== */
.hero-section {
    padding: 20px 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
    background-color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}

.hero-image-holder {
    position: relative;
    height: 380px;
}

.hero-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.92) 100%);
    color: #ffffff;
    padding: 24px 20px 20px 20px;
}

.hero-overlay-card h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.hero-overlay-card p {
    font-size: 0.92rem;
    color: #e2e8f0;
    margin-bottom: 14px;
    max-width: 92%;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}

.btn-secondary {
    background-color: #ffffff;
    color: #0f172a;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}

/* HERO NOTICE BOX */
.hero-quick-notice {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.notice-header {
    background-color: #1a365d;
    color: #ffffff;
    padding: 12px 16px;
    border-bottom: 1px solid #cbd5e1;
}

.notice-header h3 {
    color: #ffffff;
    font-size: 1.05rem;
}

.notice-list {
    padding: 12px 16px;
    flex-grow: 1;
}

.notice-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-date {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.notice-link {
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 600;
}

.notice-link:hover {
    color: #2563eb;
}

.notice-footer {
    padding: 10px 16px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.link-all-news {
    font-size: 0.82rem;
    font-weight: 700;
}

/* ==========================================================================
   QUICK ACCESS TILES
   ========================================================================== */
.quick-tiles-section {
    padding: 10px 0 20px 0;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.tile-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 3px solid #1a365d;
    padding: 14px;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.tile-card:hover {
    transform: translateY(-2px);
    border-top-color: #2563eb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.tile-icon {
    font-size: 1.6rem;
    color: #1a365d;
}

.tile-body h4 {
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.tile-body p {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.3;
}

.highlight-tile {
    border-top-color: #dc2626;
    background-color: #fef2f2;
}

.highlight-tile .tile-icon {
    color: #dc2626;
}

/* ==========================================================================
   MAIN CONTENT & SIDEBAR LAYOUT
   ========================================================================== */
.main-content {
    padding: 10px 0 40px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
}

.primary-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.content-block {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 20px;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1a365d;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.block-header h2 {
    font-size: 1.25rem;
    color: #1a365d;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* TABS & TABLES */
.tab-container {
    margin-top: 10px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    gap: 4px;
}

.tab-btn {
    padding: 8px 16px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    font-weight: 600;
    color: #475569;
    font-size: 0.88rem;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.tab-btn.active {
    background-color: #1a365d;
    color: #ffffff;
    border-color: #1a365d;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.schedule-filter {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-filter label {
    font-weight: 600;
    font-size: 0.88rem;
}

.schedule-filter select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.88rem;
    background-color: #ffffff;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 6px;
}

.data-table th, 
.data-table td {
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    text-align: left;
}

.data-table th {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
}

.data-table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* STATS */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.stat-box {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
}

.stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a365d;
}

.stat-desc {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.profiles-box {
    margin-top: 20px;
}

.profile-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-card {
    border: 1px solid #cbd5e1;
    border-left: 4px solid #1a365d;
    padding: 14px;
    background-color: #ffffff;
    border-radius: 3px;
}

.profile-header {
    font-weight: 700;
    color: #1a365d;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

/* LEADERSHIP */
.leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leader-card {
    display: flex;
    gap: 16px;
    border: 1px solid #cbd5e1;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 4px;
    align-items: center;
}

.leader-avatar {
    width: 64px;
    height: 64px;
    background-color: #1a365d;
    color: #ffffff;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leader-info h3 {
    font-size: 1.1rem;
    color: #0f172a;
}

.leader-role {
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 4px;
}

.leader-contact {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 6px;
}

/* FORMS */
.form-container {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 4px;
}

.form-help-text {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
}

.btn-submit {
    background-color: #1a365d;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #2563eb;
}

.form-feedback {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* SIDEBAR */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}

.widget-header {
    background-color: #1a365d;
    color: #ffffff;
    padding: 10px 14px;
}

.widget-header h3 {
    color: #ffffff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-body {
    padding: 14px;
    font-size: 0.85rem;
}

.check-list li {
    font-size: 0.82rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #334155;
}

.check-list i {
    color: #16a34a;
}

.btn-sidebar-action {
    display: block;
    text-align: center;
    background-color: #2563eb;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 10px;
}

.external-links {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ext-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 600;
}

.ext-link-item:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    text-decoration: none;
}

.contact-item {
    margin-bottom: 10px;
}

/* FOOTER */
.site-footer {
    background-color: #0f2942;
    color: #cbd5e1;
    padding-top: 30px;
    font-size: 0.85rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1e3a5f;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 12px;
    border-bottom: 2px solid #f59e0b;
    display: inline-block;
    padding-bottom: 4px;
}

.footer-col p {
    margin-bottom: 6px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    background-color: #07192b;
    padding: 12px 0;
    font-size: 0.78rem;
    color: #64748b;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ACCESSIBILITY MODE */
body.accessibility-mode {
    font-size: 19px !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.accessibility-mode * {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}

body.accessibility-mode a {
    text-decoration: underline !important;
    font-weight: 700 !important;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-container,
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .nav-list.open {
        display: flex;
    }

    .stats-row,
    .profile-cards,
    .footer-content {
        grid-template-columns: 1fr;
    }
}
