/* ===== CSS Variables ===== */
:root {
    --primary-color: #003366;
    --primary-dark: #002244;
    --primary-light: #004488;
    --secondary-color: #0066cc;
    --accent-color: #ff6600;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Top Bar ===== */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    margin-right: 5px;
}

.top-bar-right a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
}

.top-bar-right a:hover {
    color: var(--accent-color);
}

/* ===== Main Header ===== */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

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

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 14px;
    color: var(--text-muted);
}

.logo-text .tagline {
    font-size: 12px;
    color: var(--secondary-color);
}

.search-box {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
}

.search-box input {
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    width: 250px;
    outline: none;
}

.search-box button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

/* ===== Main Navigation ===== */
.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
}

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

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu > li > a i {
    margin-right: 8px;
}

.nav-menu > li > a .fa-chevron-down {
    margin-left: 5px;
    font-size: 12px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: var(--primary-light);
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-color: var(--primary-color);
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #e55a00;
    transform: translateY(-2px);
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
}

.slider-nav button:hover {
    background-color: var(--accent-color);
}

.slider-nav .prev {
    left: 20px;
}

.slider-nav .next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background-color: var(--accent-color);
}

/* ===== Quick Info Section ===== */
.quick-info {
    padding: 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 15px;
}

.info-card.weather .card-icon {
    background-color: #e3f2fd;
    color: #1976d2;
}

.info-card.earthquake .card-icon {
    background-color: #fce4ec;
    color: #c2185b;
}

.info-card.warning .card-icon {
    background-color: #fff3e0;
    color: #f57c00;
}

.info-card.maritime .card-icon {
    background-color: #e0f7fa;
    color: #00838f;
}

.card-content h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.weather-display .temp,
.quake-display .magnitude {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.weather-display .condition,
.quake-display .location {
    font-size: 14px;
    color: var(--text-color);
    margin-left: 10px;
}

.warning-display .status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.warning-display .status.normal {
    background-color: var(--success-color);
    color: var(--white);
}

.warning-display .status.warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.warning-display .status.danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.maritime-display .waves {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

.card-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== Main Content ===== */
.main-content {
    padding: 50px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.content-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Section Styles */
.section {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    font-size: 22px;
    color: var(--primary-color);
}

.section-header h2 i {
    margin-right: 10px;
}

.view-all {
    color: var(--secondary-color);
    font-weight: 500;
}

.view-all:hover {
    color: var(--primary-color);
}

/* Weather Forecast */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.forecast-card {
    text-align: center;
    padding: 25px;
    background-color: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.forecast-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.forecast-card:hover .forecast-icon {
    color: var(--accent-color);
}

.forecast-card h4 {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.forecast-card:hover h4 {
    color: rgba(255, 255, 255, 0.8);
}

.forecast-icon {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.forecast-card .temp {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.forecast-card .desc {
    font-size: 14px;
    color: var(--text-muted);
}

.forecast-card:hover .desc {
    color: rgba(255, 255, 255, 0.8);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

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

.news-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
}

.news-date i {
    margin-right: 5px;
}

.news-content h3 {
    font-size: 16px;
    margin: 10px 0;
    color: var(--primary-color);
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
}

.read-more:hover {
    color: var(--primary-color);
}

/* Earthquake Table */
.earthquake-table {
    overflow-x: auto;
}

.earthquake-table table {
    width: 100%;
    border-collapse: collapse;
}

.earthquake-table th,
.earthquake-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.earthquake-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.earthquake-table tr:hover {
    background-color: var(--light-color);
}

.mag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
}

.mag-3 {
    background-color: var(--success-color);
}

.mag-4 {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.mag-5 {
    background-color: var(--accent-color);
}

.mag-6 {
    background-color: var(--danger-color);
}

/* ===== Sidebar ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-widget h3 i {
    margin-right: 10px;
}

/* Announcement Widget */
.announcement-content {
    height: 150px;
    overflow: hidden;
}

.announcement-content p {
    padding: 10px 0;
    font-size: 14px;
}

.announcement-content hr {
    border: none;
    border-top: 1px dashed var(--border-color);
}

/* Quick Links Widget */
.quick-links ul li {
    margin-bottom: 10px;
}

.quick-links ul li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--light-color);
    border-radius: 5px;
    color: var(--text-color);
    transition: var(--transition);
}

.quick-links ul li a i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.quick-links ul li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.quick-links ul li a:hover i {
    color: var(--white);
}

/* Statistics Widget */
.stat-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 5px;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Social Widget */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 5px;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.social-btn i {
    margin-right: 10px;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.youtube {
    background-color: #ff0000;
}

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

/* Apps Widget */
.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: var(--dark-color);
    color: var(--white);
    border-radius: 5px;
    transition: var(--transition);
}

.app-btn i {
    font-size: 24px;
    margin-right: 10px;
}

.app-btn:hover {
    background-color: var(--primary-color);
}

/* ===== Services Section ===== */
.services-section {
    padding: 60px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 500;
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-card:hover .service-link i {
    margin-left: 10px;
}

/* ===== Partners Section ===== */
.partners-section {
    padding: 50px 0;
    background-color: var(--light-color);
}

.partners-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 80px;
    background-color: var(--white);
    border-radius: 5px;
    padding: 15px;
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary-color);
}

.partner-logo:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.partner-logo img {
    max-height: 50px;
    object-fit: contain;
}

/* ===== Footer ===== */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--white);
}

.footer-top {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.footer-col.about p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

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

.footer-social a:hover {
    background-color: var(--accent-color);
}

.footer-col.links ul li,
.footer-col.services ul li {
    margin-bottom: 12px;
}

.footer-col.links ul li a,
.footer-col.services ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col.links ul li a:hover,
.footer-col.services ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info li i {
    margin-right: 15px;
    color: var(--accent-color);
    width: 20px;
    margin-top: 3px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

/* ===== Back to Top Button ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* ===== Page Header (for sub-pages) ===== */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('../images/page-header-bg.jpg') center/cover;
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span {
    color: var(--accent-color);
}

/* ===== Page Content (for sub-pages) ===== */
.page-content {
    padding: 50px 0;
}

.page-content .container {
    max-width: 900px;
}

.page-content h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

/* Override untuk h2/h3/h4 di dalam element dengan background gelap/gradient */
.page-content [style*="linear-gradient"] h1,
.page-content [style*="linear-gradient"] h2,
.page-content [style*="linear-gradient"] h3,
.page-content [style*="linear-gradient"] h4,
.page-content [style*="linear-gradient"] h5,
.page-content [style*="linear-gradient"] h6,
.page-content [style*="color: #fff"] h1,
.page-content [style*="color: #fff"] h2,
.page-content [style*="color: #fff"] h3,
.page-content [style*="color: #fff"] h4,
.page-content [style*="color:#fff"] h1,
.page-content [style*="color:#fff"] h2,
.page-content [style*="color:#fff"] h3,
.page-content [style*="color:#fff"] h4,
.page-content div[style*="#003366"][style*="#0066cc"] h1,
.page-content div[style*="#003366"][style*="#0066cc"] h2,
.page-content div[style*="#003366"][style*="#0066cc"] h3,
.page-content div[style*="#003366"][style*="#0066cc"] h4 {
    color: #ffffff !important;
}

/* Override untuk paragraph di dalam element dengan background gelap */
.page-content [style*="linear-gradient"] p,
.page-content div[style*="color: #fff"] p,
.page-content div[style*="color:#fff"] p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Override untuk list di dalam element dengan background gelap */
.page-content [style*="linear-gradient"] li,
.page-content [style*="color: #fff"] li,
.page-content [style*="color:#fff"] li {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Override untuk span di dalam element dengan background gelap */
.page-content [style*="linear-gradient"] span:not([style*="color"]),
.page-content div[style*="color: #fff"] span:not([style*="color"]),
.page-content div[style*="color:#fff"] span:not([style*="color"]) {
    color: rgba(255, 255, 255, 0.95) !important;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content ul li {
    list-style: disc;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background-color: var(--primary-dark);
}

.contact-info-box {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

.contact-info-box h3 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.contact-info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Gallery Page ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 51, 102, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 30px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
        margin-bottom: 15px;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .dropdown li a {
        padding-left: 40px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .quick-info {
        margin-top: -30px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .forecast-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .btn-primary {
        padding: 12px 25px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Additional Page Styles ===== */

/* Navbar for sub-pages */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    object-fit: contain;
}

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

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.logo-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

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

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 18px 15px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background-color: var(--primary-light);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-menu li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-banner .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

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

.page-banner .breadcrumb a:hover {
    color: var(--accent-color);
}

.page-banner .breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Section Title for sub-pages */
.section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    text-align: left;
}

/* Info Box Styles */
.info-box {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.info-box.info-primary {
    background-color: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
}

.info-box.info-warning {
    background-color: #fff3e0;
    border-left: 4px solid var(--warning-color);
}

.info-box.info-danger {
    background-color: #ffebee;
    border-left: 4px solid var(--danger-color);
}

.info-box.info-success {
    background-color: #e8f5e9;
    border-left: 4px solid var(--success-color);
}

.info-icon {
    font-size: 30px;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-box.info-primary .info-icon {
    color: var(--secondary-color);
}

.info-box.info-warning .info-icon {
    color: var(--accent-color);
}

.info-box.info-danger .info-icon {
    color: var(--danger-color);
}

.info-box.info-success .info-icon {
    color: var(--success-color);
}

.info-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-content p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.info-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.info-content ul li {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 5px;
    list-style: disc;
}

.info-content h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Content Text */
.content-text {
    color: var(--text-color);
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 15px;
}

/* Widget Title */
.widget-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Widget Menu */
.widget-menu li {
    margin-bottom: 10px;
}

.widget-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--light-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.widget-menu li a i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.widget-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.widget-menu li a:hover i {
    color: var(--white);
}

/* Download List */
.download-list li {
    margin-bottom: 10px;
}

.download-list li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--light-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.download-list li a i {
    margin-right: 10px;
    color: var(--danger-color);
    font-size: 18px;
}

.download-list li a:hover {
    background-color: var(--danger-color);
    color: var(--white);
}

.download-list li a:hover i {
    color: var(--white);
}

/* Contact Info Widget */
.contact-info-widget .contact-item {
    display: flex;
    margin-bottom: 15px;
}

.contact-info-widget .contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-widget .contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.contact-info-widget .contact-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.highlight-box .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.highlight-box h2,
.highlight-box h3,
.highlight-box h4 {
    color: var(--white) !important;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.data-table tr:hover {
    background-color: var(--light-color);
}

.data-table td {
    color: var(--text-color);
}

/* Procedure Steps */
.procedure-steps {
    position: relative;
}

.step-item {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Form Styles */
.form-container {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.form-section h3 i {
    margin-right: 10px;
}

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

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

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group label .required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    color: var(--text-color);
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

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

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-agreement {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--text-muted);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
}

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

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

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

/* Data Grid & Cards */
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.data-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    transition: var(--transition);
}

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

.data-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.data-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.data-list {
    padding-left: 20px;
}

.data-list li {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 8px;
    list-style: disc;
}

/* Calibration Grid */
.calibration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.calibration-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

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

.calibration-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
}

.calibration-card h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.calibration-card ul {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 15px;
}

.calibration-card ul li {
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 5px;
    list-style: disc;
}

.calibration-range {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
}

/* Accreditation Grid */
.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.accreditation-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.accreditation-card:hover {
    box-shadow: var(--shadow-lg);
}

.accreditation-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.accreditation-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.accreditation-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Article Styles */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.featured-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.featured-content {
    padding: 30px;
}

.featured-content h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta i {
    margin-right: 5px;
}

.featured-content p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Article Filter */
.article-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-search {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.filter-search .search-input {
    padding: 10px 15px;
    border: none;
    outline: none;
    width: 250px;
}

.filter-search .search-btn {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.filter-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background-color: var(--light-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.article-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.article-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content h3 a {
    color: var(--primary-color);
}

.article-content h3 a:hover {
    color: var(--secondary-color);
}

.article-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.read-more {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--text-color);
    border-radius: 5px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: var(--text-muted);
}

/* Publication List */
.publication-list {
    margin-top: 20px;
}

.publication-item {
    display: flex;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.publication-item:hover {
    box-shadow: var(--shadow);
}

.publication-icon {
    width: 50px;
    height: 50px;
    background-color: var(--danger-color);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.publication-content h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.publication-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.publication-meta .author {
    margin-right: 15px;
}

.publication-actions {
    display: flex;
    gap: 10px;
}

/* Sidebar Popular Posts */
.popular-posts li {
    margin-bottom: 15px;
}

.popular-posts li a {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background-color: var(--light-color);
    border-radius: 5px;
    transition: var(--transition);
}

.popular-posts li a:hover {
    background-color: var(--primary-color);
}

.popular-posts li a:hover .post-content h4,
.popular-posts li a:hover .post-views {
    color: var(--white);
}

.post-number {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.post-content h4 {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.4;
}

.post-views {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category List */
.category-list li {
    margin-bottom: 10px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--light-color);
    border-radius: 5px;
    color: var(--text-color);
    transition: var(--transition);
}

.category-list li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-list .count {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.category-list li a:hover .count {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Archive List */
.archive-list li {
    margin-bottom: 8px;
}

.archive-list li a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    border-bottom: 1px dashed var(--border-color);
}

.archive-list li a:hover {
    color: var(--primary-color);
}

.archive-list li a span {
    color: var(--text-muted);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 15px;
    background-color: var(--light-color);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 13px;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Bulletin Styles */
.latest-bulletin {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.bulletin-cover {
    position: relative;
}

.bulletin-cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.bulletin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bulletin-info h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.bulletin-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.bulletin-meta i {
    margin-right: 5px;
}

.bulletin-highlights h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bulletin-highlights ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.bulletin-highlights ul li {
    color: var(--text-color);
    margin-bottom: 8px;
    list-style: disc;
}

.bulletin-actions {
    display: flex;
    gap: 15px;
}

/* Bulletin Types Grid */
.bulletin-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bulletin-type-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.bulletin-type-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.type-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.bulletin-type-card h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bulletin-type-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.type-frequency {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 600;
}

/* Bulletin Archive */
.bulletin-archive {
    margin-bottom: 30px;
}

.archive-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bulletin-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    width: calc(25% - 15px);
    transition: var(--transition);
}

.bulletin-card:hover {
    box-shadow: var(--shadow-lg);
}

.bulletin-thumb {
    height: 150px;
    overflow: hidden;
}

.bulletin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bulletin-detail {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bulletin-detail h4 {
    font-size: 14px;
    color: var(--primary-color);
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
}

.download-btn {
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.download-btn:hover {
    background-color: var(--accent-color);
}

/* Year Archive */
.year-archive {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.year-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.year-card:hover {
    box-shadow: var(--shadow-lg);
}

.year-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.year-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.year-card span {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 15px;
}

/* Subscribe Box */
.subscribe-box {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 15px;
    padding: 40px;
    color: var(--white);
}

.subscribe-icon {
    font-size: 60px;
    margin-right: 30px;
    opacity: 0.8;
}

.subscribe-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--white);
}

.subscribe-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

/* Quick Download Sidebar */
.quick-download li {
    margin-bottom: 10px;
}

.quick-download li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: var(--light-color);
    border-radius: 5px;
    transition: var(--transition);
}

.quick-download li a:hover {
    background-color: var(--primary-color);
}

.quick-download li a:hover .download-info,
.quick-download li a:hover .download-size {
    color: var(--white);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.download-info i {
    color: var(--danger-color);
}

.download-info span {
    font-size: 13px;
}

.download-size {
    font-size: 12px;
    color: var(--text-muted);
}

/* Download Stats */
.download-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.download-stats .stat-item {
    background-color: var(--light-color);
    padding: 15px 10px;
    border-radius: 5px;
}

.download-stats .stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.download-stats .stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Popular Bulletins */
.popular-bulletins li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.popular-bulletins li:last-child {
    border-bottom: none;
}

.popular-bulletins .rank {
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.popular-bulletins .bulletin-info a {
    font-size: 14px;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

.popular-bulletins .bulletin-info a:hover {
    color: var(--primary-color);
}

.popular-bulletins .downloads {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer for sub-pages */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
}

.footer-top {
    padding: 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

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

.footer-social a:hover {
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li i {
    margin-right: 15px;
    color: var(--accent-color);
    margin-top: 3px;
    width: 20px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top for sub-pages */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Responsive for sub-pages */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .calibration-grid,
    .accreditation-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bulletin-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bulletin-card {
        width: calc(50% - 10px);
    }

    .year-archive {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background-color: var(--primary-dark);
    }

    .nav-menu li.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding-left: 40px;
        color: var(--white);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .featured-article,
    .latest-bulletin {
        grid-template-columns: 1fr;
    }

    .featured-image {
        height: 250px;
    }

    .data-grid,
    .calibration-grid,
    .accreditation-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .bulletin-types-grid,
    .year-archive {
        grid-template-columns: 1fr;
    }

    .bulletin-card {
        width: 100%;
    }

    .subscribe-box {
        flex-direction: column;
        text-align: center;
    }

    .subscribe-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .subscribe-form {
        flex-direction: column;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .article-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search {
        width: 100%;
    }

    .filter-search .search-input {
        width: 100%;
    }
}
