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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.main-header {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    padding: 20px;
    text-align: center;
    background: #ffffff;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

.site-logo {
    max-height: 80px;
    width: auto;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0px;
    color: #1e3a8a;
    line-height: 1.2;
}

.logo-text .sub-text {
    font-size: 1.1rem;
    color: #475569;
    font-weight: 600;
    margin-top: 5px;
}

.logo-text .gov-text {
    font-size: 1rem;
    font-weight: bold;
    color: #dc2626;
    margin-top: 5px;
}

.main-nav {
    background: #f59e0b;
    border-bottom: 1px solid #d97706;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav > ul > li > a {
    display: block;
    padding: 15px 25px;
    font-weight: 600;
    color: #111827;
    transition: all 0.3s ease;
}

.main-nav > ul > li > a:hover, .dropdown:hover .dropbtn {
    color: #000000;
    background-color: #fbbf24;
}

.news-ticker {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.ticker-label {
    background: #ef4444;
    color: white;
    padding: 10px 20px;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-content {
    flex-grow: 1;
    overflow: hidden;
    padding: 0 20px;
}

.news-item {
    margin-right: 50px;
    font-weight: 500;
    color: #1e293b;
}

.hero-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid #c7d2fe;
    overflow: hidden;
    color: white;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #e0e7ff;
    max-width: 800px;
    margin: 0 auto;
}

.main-layout {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
}

.content-left {
    flex: 2;
    min-width: 300px;
}

.content-right {
    flex: 1;
    min-width: 300px;
}

.about-section, .announcements-panel, .admin-panel {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.about-section:hover, .announcements-panel:hover {
    transform: translateY(-5px);
}

h3 {
    color: #0f172a;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 10px;
    display: inline-block;
}

.announcement-list {
    list-style: none;
}

.announcement-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

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

.announcement-list .date {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 5px;
}

.announcement-list a {
    color: #1e40af;
    font-weight: 500;
    transition: color 0.2s;
}

.announcement-list a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.main-footer {
    background: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

.main-footer p {
    margin-bottom: 10px;
}

.admin-header {
    background: #1e293b;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header a {
    color: #cbd5e1;
    background: #334155;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background 0.3s;
}

.admin-header a:hover {
    background: #475569;
}

.admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 10px 20px;
    background: #e2e8f0;
    color: #334155;
    border-radius: 6px;
    font-weight: 500;
}

.admin-nav a:hover, .admin-nav a.active {
    background: #3b82f6;
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.btn {
    background: #3b82f6;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #2563eb;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
}

/* Accessibility Toolbar */
.accessibility-toolbar {
    background: #0f172a;
    color: white;
    padding: 5px 0;
    font-size: 0.85rem;
}

.toolbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.skip-link {
    color: white;
    text-decoration: underline;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-btn {
    background: none;
    border: 1px solid #334155;
    color: white;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.acc-btn:hover {
    background: #334155;
}

.toolbar-separator {
    color: #475569;
}

body.high-contrast {
    background-color: #000;
    color: #fff;
}

body.high-contrast .about-section, 
body.high-contrast .announcements-panel, 
body.high-contrast .admin-panel,
body.high-contrast .main-nav,
body.high-contrast .news-ticker {
    background-color: #111;
    color: #fff;
    border: 1px solid #fff;
}

body.high-contrast a, body.high-contrast h2, body.high-contrast h3 {
    color: #ffff00;
}

/* Slideshow */
.mySlides {
    display: none;
    height: 100%;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0,0,0,0.5);
    border: none;
    z-index: 2;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    border: none;
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Dropdown Menus */
.dropdown {
    position: relative;
    display: inline-block;
}

.main-nav ul.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f59e0b;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid #d97706;
    border-radius: 4px;
    text-align: left;
    padding: 0;
    flex-direction: column;
}

.main-nav ul.dropdown-content li {
    display: block;
    width: 100%;
}

.main-nav ul.dropdown-content li a {
    color: #111827;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #fbbf24;
    font-weight: normal;
}

.main-nav ul.dropdown-content li a:hover {
    background-color: #fbbf24;
    color: #000000;
}

.dropdown:hover ul.dropdown-content {
    display: block;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: #1e3a8a;
    color: white;
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive Styles Update */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    
    .main-nav ul li a {
        border-bottom: 1px solid #e2e8f0;
    }
    
    .dropdown-content {
        position: relative;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        width: 100%;
    }
    
    .dropdown:hover .dropdown-content {
        display: none; /* Replaced by tap/JS logic below if needed, or we just let it open on tap. */
    }
    
    .dropdown.open .dropdown-content {
        display: block;
    }
}

/* Blinking Button Effect */
.blinking-btn {
    display: inline-block;
    padding: 3px 8px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    margin: 0 10px;
    vertical-align: middle;
    animation: blinker 1.5s linear infinite;
    box-shadow: 0 0 5px #ef4444;
}

@keyframes blinker {
    50% { opacity: 0; box-shadow: none; }
}
