@charset "utf-8";
/* CSS Document */

:root {
    --primary-green: #1E6031;
    --secondary-green: #009639;
    --primary-gold: #E0A70D;
    --secondary-gold: #FFD700;
    --white: #FFFFFF;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: #f8f9fa;
}

/* Header Styles */
.top-header {
    background: var(--primary-green);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-gold);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 80px;
    width: auto;
}

.site-title h1 {
    font-size: 1.4rem;
    color: var(--white);
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.site-title h2 {
    font-size: 1.8rem;
    color: var(--secondary-gold);
    margin: 0;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-green);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-3px);
}

/* Navigation Bar */
.navbar-custom {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-custom.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar-brand-custom {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
}

.navbar-brand-custom img {
    height: 40px;
}

.navbar-custom.sticky .navbar-brand-custom {
    display: flex;
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--primary-green);
    font-weight: 500;
    padding: 8px 20px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: var(--primary-gold);
}

.navbar-custom .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link:hover::after {
    width: 80%;
}

.search-icon {
    color: var(--primary-green);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: var(--primary-gold);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 0;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-banner-img {
	filter: brightness(1.2) contrast(0.8);
	opacity: 0.5;
}

/* Main Content Area */
.content-area {
    padding: 60px 0;
}

/* Sidebar - Latest News */
.sidebar {
    position: sticky;
    top: 100px;
}

.latest-news-sidebar {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    padding: 25px;
}

.latest-news-sidebar h3 {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 3px solid var(--primary-gold);
    padding-bottom: 10px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    text-decoration: none;
    display: block;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.news-list-item.active {
    background: var(--primary-green);
    color: var(--white);
}

.news-list-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-list-item.active .news-list-title {
    color: var(--white);
}

.news-list-item:not(.active) .news-list-title {
    color: var(--primary-green);
}

.news-list-date {
    font-size: 0.85rem;
    color: var(--primary-gold);
}

.news-list-item.active .news-list-date {
    color: var(--secondary-gold);
}

.news-list-date i {
    margin-right: 5px;
}

/* Archive Button */
.btn-archive {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-archive:hover {
    background: var(--secondary-gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 167, 13, 0.3);
}

.btn-archive i {
    margin-right: 8px;
}

/* Main Content */
.news-content-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    padding: 40px;
}

.news-title {
    color: var(--primary-green);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2.5rem;
    line-height: 1.3;
}

.news-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.meta-item {
    display: inline-block;
    margin-right: 25px;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.meta-item i {
    color: var(--primary-green);
    margin-right: 8px;
}

.meta-item strong {
    color: var(--primary-green);
}

.news-content {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
    color: var(--primary-green);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content ul,
.news-content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.news-content li {
    margin-bottom: 10px;
}

.news-content blockquote {
    border-left: 4px solid var(--secondary-green);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

.news-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.news-content table th,
.news-content table td {
    border: 1px solid #dee2e6;
    padding: 12px;
}

.news-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* News Image Sidebar */
.news-image-sidebar {
    position: sticky;
    top: 100px;
}

.news-image-container {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 15px;
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
}

.no-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer h5 {
    color: var(--secondary-gold);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-green);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-content {
    width: 90%;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    border: 3px solid var(--primary-gold);
    border-radius: 50px;
    outline: none;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1366px) {
    .navbar-custom .navbar-toggler {
        border-color: var(--primary-green);
    }

    .navbar-custom .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 96, 49, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

@media (max-width: 1024px) {
    .social-links {
        display: none;
    }

    .top-header .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-content {
        justify-content: flex-start;
    }

    .logo-section {
        width: 100%;
    }

    .site-title {
        flex: 1;
        width: 100%;
    }

    .site-title h1 {
        font-size: 0.9rem;
    }

    .site-title h2 {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .news-image-sidebar {
        position: static;
        margin-top: 30px;
    }

    .news-title {
        font-size: 2rem;
    }

    .news-content-container {
        padding: 30px 20px;
    }
}

@media (max-width: 786px) {
    .site-title h1 {
        font-size: 0.8rem;
    }

    .site-title h2 {
        font-size: 1.2rem;
    }

    .logo-section img {
        height: 55px;
    }

    .news-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .meta-item {
        display: block;
        margin-right: 0;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 50px 20px 20px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.image-modal-content {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
}

.image-modal-caption {
    margin: 20px auto;
    display: block;
    width: 90%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 20px;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

/* Add hover effect to thumbnail */
.news-thumbnail {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 70vh;
    }

    .image-modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .image-modal-caption {
        font-size: 16px;
        padding: 10px;
    }
}
