* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* Top Utility Bar */
.utility-bar {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px 50px;
    background: #fff;
    gap: 30px;
}

.search-lang-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    margin-top: 38px;
}

.search-wrapper {
    position: relative;
    width: 250px;
}

.search-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 15px;
    cursor: text;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    gap: 8px;
}

.search-container:focus-within {
    border-color: #2c4a6e;
    box-shadow: 0 0 0 2px rgba(44,74,110,0.1);
}

.search-icon {
    color: #999;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.search-input {
    border: none;
    outline: none;
    font-size: 0.88rem;
    color: #333;
    background: transparent;
    width: 100%;
    padding: 2px 0;
    font-family: inherit;
}

.search-input::placeholder {
    color: #aaa;
}

.search-close {
    display: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    padding: 0 2px;
}

.search-close:hover {
    color: #333;
}

.search-wrapper.active .search-close {
    display: block;
}

.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1100;
}

.search-results.open {
    display: block;
}

.search-result-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f5f7fa;
}

.search-result-cat {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c4a6e;
    font-weight: 700;
    margin-bottom: 3px;
}

.search-result-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.search-result-title mark {
    background: #fef3c7;
    color: #222;
    padding: 0 1px;
    border-radius: 2px;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
}

.logo-container {
    padding: 0;
    text-align: left;
    margin-right: 0;
}

.tagline {
    margin: -2px 0 0 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
    letter-spacing: 0.3px;
}

.logo-container img {
    max-height: 120px;
    width: auto;
}

.lang-switch {
    margin-left: 0;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.lang-option.active {
    opacity: 1;
}

.lang-option:hover {
    opacity: 1;
}

.lang-option img {
    width: 40px;
    height: auto;
    border: 1px solid #ccc;
}

.lang-option span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.lang-divider {
    font-size: 1.2rem;
    color: #ccc;
    align-self: center;
    margin-top: -8px;
}

.header-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
}

/* Navigation */
nav {
    border-bottom: 2px solid #c9a84c;
    padding: 15px 0;
    margin-bottom: 30px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

nav ul li {
    position: relative;
}

nav ul li > a {
    color: #444;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 0;
    transition: all 0.2s;
    white-space: nowrap;
    background: none;
    border-bottom: 2px solid transparent;
}

nav ul li > a:hover {
    color: #2c4a6e;
    border-bottom-color: #2c4a6e;
}

/* Dropdown Menu */
nav ul li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 200px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

nav ul li .dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid #ccc;
}

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

nav ul li .dropdown a:hover {
    background: #f5f5f5;
    color: #0047ab;
}

/* News Slider */
.news-slider {
    position: relative;
    max-width: 700px;
    height: 200px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    transform: translateX(100%);
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.slide.slide-out-left {
    opacity: 0;
    transform: translateX(-100%);
}

.slide-image {
    width: 35%;
    flex-shrink: 0;
    height: 100%;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 6px 0 0 6px;
}

.slide-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    overflow: hidden;
}

.slide-content .category {
    margin-bottom: 6px;
    font-size: 0.68rem;
    font-weight: 700;
}

.slide-content h2 {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.slide-content p {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.45;
    margin-bottom: 8px;
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #0047ab;
}

.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.8rem;
    transition: background 0.2s;
    padding: 0;
    z-index: 2;
}

.slider-arrow:hover {
    background: #f0f0f0;
}

.slider-prev {
    left: 6px;
}

.slider-next {
    right: 6px;
}

/* ===== Hamburger Menu Button ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: 2px solid #2c4a6e;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2c4a6e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Main Layout */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
}

/* News Items */
.news-main .image-placeholder {
    background: #f8f9fa;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 3px 10px;
    font-weight: 700;
    border-radius: 2px;
}

.category[data-lang-key="index.cat1"],
.category[data-lang-key="index.cat4"] {
    background: #2c4a6e;
    color: #fff;
}

.category[data-lang-key="index.cat2"],
.category[data-lang-key="index.cat5"] {
    background: #c9a84c;
    color: #fff;
}

.category[data-lang-key="index.cat3"] {
    background: #2c4a6e;
    color: #fff;
}

.category[data-lang-key="index.cat6"] {
    background: #c9a84c;
    color: #fff;
}

h2, h3 {
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.news-main h2 {
    font-size: 1.5rem;
    margin-top: 0;
}

.news-sidebar h3 {
    font-size: 1.1rem;
}

.excerpt {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: #0047ab;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s;
}

.read-more:hover {
    border-bottom-color: #0047ab;
}

/* Sidebar Specific */
.news-sidebar {
    border-left: 1px solid #eee;
    padding-left: 20px;
}

.news-item {
    margin-bottom: 40px;
    border-bottom: 2px solid #c9a84c;
    padding-bottom: 20px;
}

.news-item h3 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

/* Cards Section */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.card {
    background: #fdfdfd;
    padding: 30px;
    border: 1px solid #f0f0f0;
}

/* Contact Form */
.form-section {
    max-width: 600px;
    margin: 60px auto;
}

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

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
}

button {
    background: #0047ab;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: bold;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.form-status.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-status.error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

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

.detailed-news {
    max-width: 800px;
    margin: 0 auto;
}

.news-header h1 {
    font-size: 2.5rem;
    margin: 15px 0;
    line-height: 1.2;
}

.news-meta {
    color: #666;
    margin-bottom: 30px;
}

.news-main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

.btn-download:hover {
    background: #444 !important;
}
footer {
    background-color: #1a1a2e;
    color: #d0d0d0;
    padding: 60px 50px;
    margin-top: 60px;
    border-top: 3px solid #c9a84c;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-section h3 {
    color: #c9a84c;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    max-height: 260px;
    width: auto;
    display: block;
    margin: 0 auto;
    background: transparent;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.2s;
}

.social-icon:hover {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #1a1a2e;
}

.footer-contact p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #b0b0b0;
}

.footer-contact a {
    color: #c9a84c;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #e0c068;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 860px) {
    .hamburger {
        display: flex;
    }

    .utility-bar {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
        gap: 12px;
    }

    .logo-container img {
        max-height: 80px;
    }

    .tagline {
        padding-left: 0;
        text-align: center;
        font-size: 0.75rem;
    }

    .search-lang-group {
        margin-left: 0;
        margin-top: 10px;
        align-items: center;
        width: 100%;
    }

    .search-wrapper {
        width: 100%;
        max-width: 280px;
    }

    .lang-switch {
        margin-top: 6px;
    }

    .lang-option img {
        width: 30px;
    }

    .header-container {
        max-width: 100%;
        padding: 0 15px;
        position: relative;
    }

    nav {
        border-bottom: none;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        border: 1px solid #ddd;
        border-radius: 0 0 6px 6px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        padding: 8px 0;
    }

    nav ul.mobile-open {
        display: flex;
    }

    nav ul li {
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li > a {
        display: block;
        padding: 12px 20px;
        font-size: 0.85rem;
        border-radius: 0;
        white-space: normal;
    }

    nav ul li:nth-child(1) > a,
    nav ul li:nth-child(2) > a,
    nav ul li:nth-child(3) > a,
    nav ul li:nth-child(4) > a,
    nav ul li:nth-child(5) > a {
        background: none;
        color: #333;
    }

    nav ul li:nth-child(odd) > a {
        border-left: 4px solid #2c4a6e;
    }

    nav ul li:nth-child(even) > a {
        border-left: 4px solid #c9a84c;
    }

    nav ul li > a:hover {
        background: #f8f8f8;
    }

    nav ul li .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        min-width: 0;
        padding: 0;
        display: none;
        background: #f9f9f9;
    }

    nav ul li.dropdown-open .dropdown {
        display: block;
    }

    nav ul li .dropdown a {
        padding: 10px 20px 10px 36px;
        font-size: 0.82rem;
        border-bottom: 1px solid #eee;
    }

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

    .news-slider {
        height: auto;
        min-height: 180px;
        margin: 0 auto 15px;
    }

    .slide {
        flex-direction: column;
        height: auto;
        min-height: 180px;
    }

    .slide-image {
        width: 100%;
        height: 140px;
    }

    .slide-image img {
        border-radius: 6px 6px 0 0;
        height: 140px;
    }

    .slide-content {
        padding: 12px 14px;
    }

    .slide-content h2 {
        font-size: 0.82rem;
    }

    .slide-content p {
        font-size: 0.72rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slider-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    main {
        margin: 20px auto;
        padding: 0 15px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .news-main h2 {
        font-size: 1.2rem;
    }

    .news-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 25px;
    }

    .news-item {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .news-item img {
        aspect-ratio: 16/9;
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding-top: 25px;
    }

    .card {
        padding: 20px;
    }

    .news-header h1 {
        font-size: 1.6rem;
    }

    .news-text-content p {
        font-size: 1rem;
    }

    .container {
        padding: 20px 15px;
    }

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

    footer {
        padding: 40px 20px;
        margin-top: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        max-height: 180px;
    }

    .social-icons {
        justify-content: center;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }
}

