/* ===========================================
   Primăria Câlnic - Public Site Stylesheet
   Inspired by primaria-calnic.ro
   =========================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f0f0e8;
}

/* ========= TOP BAR ========= */
.top-bar {
    background: #14324a;
    padding: 6px 0;
    font-size: 13px;
}
.top-bar-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.top-link {
    color: #aec5d6;
    text-decoration: none;
    transition: color 0.2s;
}
.top-link:hover { color: #fff; }

/* ========= NAVBAR ========= */
.main-navbar {
    background: #1b3f54;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: 70px;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}
.navbar-logo img {
    height: 48px;
    border-radius: 2px;
}
.navbar-logo-text {
    display: flex;
    flex-direction: column;
}
.logo-title {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
}
.navbar-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 24px;
    padding: 4px 12px;
    cursor: pointer;
    color: white;
}
.navbar-links {
    list-style: none;
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    height: 70px;
    align-items: stretch;
}
.navbar-links > li {
    position: relative;
    display: flex;
    align-items: stretch;
}
.navbar-links > li > a {
    color: #d4e4ef;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    gap: 5px;
}
.navbar-links > li > a:hover,
.navbar-links > li > a.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-bottom-color: #e3c73b;
}
.arrow-down {
    font-size: 11px;
    opacity: 0.7;
}

/* Submenu dropdown */
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
    display: block;
}
.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: none;
    min-width: 240px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    z-index: 300;
    border-radius: 0 0 6px 6px;
    list-style: none;
    padding: 6px 0;
}
.submenu li a {
    padding: 10px 22px;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.submenu li a:hover,
.submenu li a.active {
    background: #f0f7f9;
    color: #1b3f54;
    border-left-color: #e3c73b;
}

/* ========= HERO SECTION ========= */
.hero-section {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #1b3f54 0%, #2a6f8a 60%, #3a9eae 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%);
}
.hero-overlay h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero-overlay p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 650px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ========= INFO SECTION ========= */
.info-section {
    max-width: 1300px;
    margin: -50px auto 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.info-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0,0,0,0.1);
}
.info-card {
    background: #c8cbb8;
    padding: 35px 22px;
    text-align: center;
    text-decoration: none;
    color: #1b3f54;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-right: 1px solid rgba(255,255,255,0.3);
    transition: all 0.25s;
    min-height: 180px;
    justify-content: center;
}
.info-card:last-child { border-right: none; }
.info-card:hover {
    background: #bbc0a8;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.info-card-icon {
    font-size: 32px;
    margin-bottom: 5px;
}
.info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1b3f54;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-card-subs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #555;
    margin-top: 5px;
}

/* ========= BIROUL / QUICK LINKS SECTION ========= */
.section-biroul {
    max-width: 1300px;
    margin: 50px auto 40px auto;
    padding: 0 20px;
    text-align: center;
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1b3f54;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-divider {
    width: 70px;
    height: 4px;
    background: #e3c73b;
    margin: 12px auto 30px auto;
    border-radius: 2px;
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.quick-link-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 22px 15px;
    text-decoration: none;
    color: #1b3f54;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.25s;
}
.quick-link-card:hover {
    border-color: #1b3f54;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.ql-icon { font-size: 28px; }
.ql-text { line-height: 1.3; }

/* ========= MAIN CONTENT (MENU PAGE) ========= */
.main-content {
    max-width: 1300px;
    margin: 30px auto;
    width: 100%;
    padding: 0 20px;
}
.page-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}
.content-wrapper {
    flex: 1;
    min-width: 0;
    background: white;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* ========= SIDEBAR ========= */
.page-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* ========= WEATHER WIDGET (SIDEBAR) ========= */
.weather-widget {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6a7a 100%);
    border-radius: 14px;
    padding: 22px 18px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.weather-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.weather-header .weather-icon {
    font-size: 32px;
    line-height: 1;
}
.weather-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}
.weather-location {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.weather-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}
.weather-temp {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}
.weather-desc {
    font-size: 14px;
    opacity: 0.85;
}
.weather-details {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.weather-detail {
    flex: 1;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}
.wd-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
}
.wd-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    margin-bottom: 2px;
}
.wd-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

/* Forecast */
.weather-forecast {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 10px;
}
.forecast-day {
    text-align: center;
    flex: 1;
}
.fd-name {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.7;
    margin-bottom: 4px;
}
.fd-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}
.fd-temps {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

.weather-updated {
    font-size: 10px;
    opacity: 0.5;
    text-align: right;
}

/* ========= PROMO MODULE ========= */
.promo-module {
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.promo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.promo-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}
.promo-link:hover .promo-image {
    opacity: 0.95;
}

/* ========= HOMEPAGE WEATHER SECTION ========= */
.home-weather-section {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.home-weather-card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d6a7a 100%);
    border-radius: 14px;
    padding: 20px 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.hw-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.hw-icon {
    font-size: 42px;
    line-height: 1;
}
.hw-temp {
    font-size: 36px;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}
.hw-desc {
    font-size: 14px;
    opacity: 0.8;
    display: block;
}
.hw-right {
    text-align: right;
}
.hw-location {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.hw-details {
    display: flex;
    gap: 14px;
    font-size: 13px;
    opacity: 0.8;
}

/* Breadcrumb */
.page-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}
.page-breadcrumb a {
    color: #2d6a7a;
    text-decoration: none;
}
.page-breadcrumb a:hover { text-decoration: underline; }

.page-heading {
    font-size: 28px;
    color: #1b3f54;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e8f4f8;
}

/* ========= ARTICLES ========= */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.article-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #e8f4f8;
}
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-body { padding: 25px; }
.article-body h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #1b3f54;
}
.article-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}
.article-author {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 15px;
}
.article-content-full {
    color: #444;
    line-height: 1.8;
    font-size: 15px;
}
.article-content-full img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 6px;
}
.article-content-full p { margin-bottom: 14px; }
.article-content-full h2, .article-content-full h3 {
    margin: 20px 0 10px 0;
    color: #1b3f54;
}
.no-articles {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    font-size: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* ========= DOCUMENTE ATAȘATE (PUBLIC) ========= */
.article-documents {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.article-documents h3 {
    font-size: 1.1rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.docs-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s;
}

.doc-download-card:hover {
    background: #edf2f7;
    border-color: #2b6cb0;
    box-shadow: 0 2px 8px rgba(43,108,176,0.1);
    transform: translateX(4px);
}

.doc-dl-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.doc-dl-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.doc-dl-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a365d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-dl-meta {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 2px;
}

.doc-dl-btn {
    font-size: 1.3rem;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.doc-download-card:hover .doc-dl-btn {
    opacity: 1;
}

.article-documents-folders {
    margin-top: 1.2rem;
}

.doc-folder-block {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.doc-folder-block h4 {
    margin: 0 0 0.7rem;
    color: #2b425a;
    font-size: 0.98rem;
}

.doc-folder-empty {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
}

@media (max-width: 600px) {
    .doc-download-card { padding: 0.6rem; gap: 0.6rem; }
    .doc-dl-icon { font-size: 1.5rem; }
}

/* ========== MOL PUBLIC SECTION ========== */
.mol-public-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #f59e0b;
    border-radius: 12px;
}

.mol-public-title {
    font-size: 1.2rem;
    color: #92400e;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f59e0b;
}

.mol-public-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mol-public-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 16px;
    background: white;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.25s;
}

.mol-public-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245,158,11,0.2);
    transform: translateX(6px);
    background: #fffef5;
}

.mol-card-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.mol-card-info {
    flex: 1;
    min-width: 0;
}

.mol-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a365d;
    margin-bottom: 2px;
    word-break: break-word;
}

.mol-card-desc {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mol-card-meta {
    font-size: 0.78rem;
    color: #a0aec0;
}

.mol-card-download {
    flex-shrink: 0;
    padding: 8px 14px;
    background: #f59e0b;
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.mol-public-card:hover .mol-card-download {
    opacity: 1;
}

@media (max-width: 600px) {
    .mol-public-card {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    .mol-card-icon {
        width: 35px;
        font-size: 1.6rem;
    }
    .mol-card-download {
        width: 100%;
        text-align: center;
    }
}

/* ========= SUBMENU CARDS ========= */
.submenu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.submenu-card-link {
    text-decoration: none;
    color: inherit;
}
.submenu-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.submenu-card:hover {
    border-color: #1b3f54;
    box-shadow: 0 4px 12px rgba(27, 63, 84, 0.12);
    transform: translateY(-2px);
}
.submenu-card h3 {
    font-size: 16px;
    color: #1b3f54;
    font-weight: 600;
}
.submenu-arrow {
    font-size: 20px;
    color: #2d6a7a;
}

/* ========= FOOTER ========= */
.page-footer {
    background: #1a1a2e;
    color: #c0c0d0;
    margin-top: 40px;
    position: relative;
}

/* Logo centered on top */
.footer-logo-top {
    text-align: center;
    padding: 35px 0 20px 0;
}
.footer-logo-top .footer-logo {
    max-width: 90px;
    border-radius: 6px;
    filter: brightness(1.1);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px 30px 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col {
    flex: 1 1 150px;
    min-width: 150px;
}

.footer-col-info {
    flex: 1 1 220px;
    min-width: 220px;
}

@media (min-width: 1200px) {
    .footer-columns {
        display: grid;
        grid-template-columns: 1.2fr repeat(5, minmax(0, 1fr));
        gap: 16px;
    }

    .footer-col,
    .footer-col-info {
        min-width: 0;
        flex: initial;
    }

    .footer-col-title {
        font-size: 13px;
    }

    .footer-link {
        font-size: 12px;
    }
}

.footer-comuna-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.footer-judet {
    font-size: 13px;
    color: #8888aa;
    margin-bottom: 16px;
}

.footer-program {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #c0c0d0;
}

.footer-program strong {
    color: #e3c73b;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

.footer-contact-item {
    font-size: 13px;
    margin-bottom: 6px;
    color: #c0c0d0;
}

.footer-col-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 14px;
    color: #e3c73b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    display: block;
    color: #9a9ab0;
    text-decoration: none;
    font-size: 13px;
    padding: 3px 0;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover {
    color: #fff;
    padding-left: 4px;
}

/* Copyright bar */
.footer-copyright-bar {
    text-align: center;
    padding: 14px 20px;
    font-size: 12px;
    color: #6a6a80;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}

/* ========= RESPONSIVE ========= */
@media (max-width: 900px) {
    .navbar-toggle { display: block; }
    .navbar-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #1b3f54;
        border-bottom: 2px solid #e3c73b;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        height: auto;
        z-index: 200;
    }
    .navbar-links.open { display: flex; }
    .navbar-links > li { height: auto; }
    .navbar-links > li > a {
        padding: 14px 22px;
        border-bottom: none;
        border-left: 3px solid transparent;
        font-size: 14px;
    }
    .navbar-links > li > a:hover,
    .navbar-links > li > a.active {
        border-bottom: none;
        border-left-color: #e3c73b;
    }
    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(255,255,255,0.05);
    }
    .submenu li a { color: #ccc; }
    .submenu li a:hover { color: #fff; background: rgba(255,255,255,0.08); }
    .hero-section { height: 280px; }
    .hero-overlay h1 { font-size: 26px; }
    .hero-overlay p { font-size: 14px; }
    .info-cards-row {
        grid-template-columns: 1fr 1fr;
    }
    .info-card { min-height: 130px; padding: 20px 15px; }
    .quick-links-grid { grid-template-columns: 1fr 1fr; }
    .main-content { padding: 15px; }
    .content-wrapper { padding: 20px; }
    .page-layout { flex-direction: column; }
    .page-sidebar { width: 100%; position: static; }
    .weather-forecast { gap: 8px; }
    .home-weather-card { flex-direction: column; text-align: center; gap: 14px; }
    .hw-left { flex-direction: column; }
    .hw-right { text-align: center; }
    .hw-details { justify-content: center; }
    .page-heading { font-size: 22px; }
    .article-image { height: 180px; }
    .footer-columns { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
    .footer-col { min-width: auto; }
    .submenu-cards { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
    .info-cards-row { grid-template-columns: 1fr; }
    .quick-links-grid { grid-template-columns: 1fr; }
    .hero-section { height: 220px; }
    .hero-overlay h1 { font-size: 22px; }
    .section-title { font-size: 22px; }
    .weather-temp { font-size: 34px; }
    .weather-details { flex-direction: column; gap: 8px; }
    .hw-temp { font-size: 28px; }
}

/* ========= ACCESSIBILITY WIDGET ========= */
.acc-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1b3f54;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s, background 0.2s;
    font-size: 26px;
    line-height: 1;
}
.acc-trigger:hover {
    background: #2a6f8a;
    transform: scale(1.1);
}
.acc-trigger svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Panel */
.acc-panel {
    position: fixed;
    bottom: 86px;
    left: 24px;
    z-index: 9998;
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    display: none;
    flex-direction: column;
    animation: acc-slide-up 0.25s ease;
}
.acc-panel.open { display: flex; }

@keyframes acc-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.acc-panel-header {
    background: #1b3f54;
    color: #fff;
    padding: 16px 20px;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.acc-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.acc-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.15s;
    line-height: 1;
}
.acc-panel-close:hover { opacity: 1; }

.acc-panel-body {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.acc-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.acc-btn:hover {
    border-color: #1b3f54;
    background: #e8f4f8;
}
.acc-btn.active {
    border-color: #1b3f54;
    background: #d4eaf3;
    color: #1b3f54;
}
.acc-btn-icon {
    font-size: 28px;
    line-height: 1;
}
.acc-btn-icon svg {
    width: 30px;
    height: 30px;
}

.acc-panel-footer {
    padding: 10px 12px 14px;
    border-top: 1px solid #eee;
    text-align: center;
}
.acc-reset-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.acc-reset-btn:hover { background: #c0392b; }

/* ========= ACCESSIBILITY BODY CLASSES ========= */
body.acc-high-contrast {
    filter: contrast(1.4);
}
body.acc-high-contrast .main-navbar,
body.acc-high-contrast .top-bar,
body.acc-high-contrast .page-footer {
    filter: contrast(1);
}

body.acc-highlight-links a {
    outline: 2px solid #e3c73b !important;
    outline-offset: 2px;
    background-color: rgba(227, 199, 59, 0.12) !important;
}

body.acc-big-text {
    font-size: 120% !important;
}
body.acc-big-text .hero-overlay h1 { font-size: 50px !important; }
body.acc-big-text .hero-overlay p { font-size: 22px !important; }
body.acc-big-text .navbar-links > li > a { font-size: 16px !important; }
body.acc-big-text .article-body h2 { font-size: 26px !important; }
body.acc-big-text .article-content-full,
body.acc-big-text .article-excerpt { font-size: 18px !important; }
body.acc-big-text .page-heading { font-size: 34px !important; }

body.acc-letter-spacing {
    letter-spacing: 2px !important;
}
body.acc-letter-spacing * {
    letter-spacing: 2px !important;
}

body.acc-stop-animations,
body.acc-stop-animations * {
    animation: none !important;
    transition: none !important;
}

body.acc-hide-images img:not(.acc-trigger img):not(.footer-logo) {
    visibility: hidden !important;
    opacity: 0 !important;
}
body.acc-hide-images .hero-section {
    background-image: none !important;
}

body.acc-dyslexia-font,
body.acc-dyslexia-font * {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Arial', sans-serif !important;
}

body.acc-big-cursor,
body.acc-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M6 2 L6 32 L14 24 L22 36 L28 32 L20 20 L30 20 Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 6 2, auto !important;
}

body.acc-greyscale {
    filter: grayscale(100%);
}

body.acc-negative {
    filter: invert(1) hue-rotate(180deg);
}
body.acc-negative img {
    filter: invert(1) hue-rotate(180deg);
}

/* Responsive panel */
@media (max-width: 500px) {
    .acc-panel {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 82px;
    }
    .acc-trigger {
        left: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
    }
}

/* ========= CHATBOT VIRTUAL ASSISTANT ========= */
.chat-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b3f54, #2a6f8a);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(27,63,84,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 26px;
    line-height: 1;
}
.chat-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(27,63,84,0.5);
}
.chat-trigger svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}
.chat-trigger-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #e74c3c;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: chat-badge-pulse 2s infinite;
}
@keyframes chat-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    z-index: 9998;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chat-slide-up 0.3s ease;
}
.chat-window.open { display: flex; }

@keyframes chat-slide-up {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #1b3f54, #2a6f8a);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.chat-header-title {
    font-weight: 700;
    font-size: 15px;
}
.chat-header-status {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}
.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.15s;
    line-height: 1;
}
.chat-close:hover { opacity: 1; }

/* Messages area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f5f7fa;
}
.chat-msg {
    display: flex;
    max-width: 88%;
}
.chat-msg-bot {
    align-self: flex-start;
}
.chat-msg-user {
    align-self: flex-end;
}
.chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-word;
}
.chat-bubble-bot {
    background: #fff;
    color: #333;
    border: 1px solid #e4e8ec;
    border-radius: 4px 14px 14px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.chat-bubble-user {
    background: linear-gradient(135deg, #1b3f54, #2a6f8a);
    color: #fff;
    border-radius: 14px 4px 14px 14px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
}
.chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: chat-typing-dot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-typing-dot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* Quick topic buttons */
.chat-quick-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f7fa;
    border-top: 1px solid #e8ecf0;
    flex-shrink: 0;
}
.chat-topic-btn {
    background: #fff;
    border: 1px solid #d4dae0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #1b3f54;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.chat-topic-btn:hover {
    background: #e8f4f8;
    border-color: #1b3f54;
}

/* Input area */
.chat-input-area {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #e8ecf0;
    background: #fff;
    gap: 8px;
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    border: 1px solid #d4dae0;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.chat-input:focus {
    border-color: #1b3f54;
}
.chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1b3f54, #2a6f8a);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.chat-send:hover {
    transform: scale(1.08);
}

/* Responsive chatbot */
@media (max-width: 500px) {
    .chat-window {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .chat-trigger {
        right: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
    }
}

/* ========= COOKIE CONSENT BANNER ========= */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(2px);
}
.cookie-overlay.open { display: block; }

.cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: 640px;
    max-width: 95vw;
    max-height: 90vh;
    display: none;
    animation: cookie-fade-in 0.3s ease;
}
.cookie-banner.open { display: block; }

@keyframes cookie-fade-in {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

.cookie-banner-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.cookie-header {
    background: #1b3f54;
    color: #fff;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.cookie-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}
.cookie-close-x {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    line-height: 1;
}
.cookie-close-x:hover { opacity: 1; }

.cookie-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
}
.cookie-intro {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.7;
}
.cookie-intro-small {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.6;
}
.cookie-read-more {
    color: #1b3f54;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}
.cookie-extra-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.6;
    padding: 10px 14px;
    background: #f5f7fa;
    border-radius: 6px;
    border-left: 3px solid #1b3f54;
}
.cookie-extra-text p { margin: 0; }

/* Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.cookie-cat {
    border-bottom: 1px solid #e0e0e0;
}
.cookie-cat:last-child { border-bottom: none; }

.cookie-cat-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    gap: 10px;
    background: #f9fafb;
    transition: background 0.15s;
    user-select: none;
}
.cookie-cat-header:hover { background: #f0f3f6; }

.cookie-cat-arrow {
    font-size: 18px;
    font-weight: 700;
    color: #1b3f54;
    transition: transform 0.2s;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.cookie-cat.expanded .cookie-cat-arrow {
    transform: rotate(90deg);
}

.cookie-cat-title {
    font-weight: 700;
    font-size: 14px;
    color: #1b3f54;
    flex: 1;
}

.cookie-cat-badge {
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.cookie-cat-body {
    display: none;
    padding: 0 18px 14px 42px;
    background: #fff;
}
.cookie-cat.expanded .cookie-cat-body {
    display: block;
}
.cookie-cat-body p {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}
.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.25s;
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #27ae60;
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

/* Footer buttons */
.cookie-footer {
    display: flex;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #e8e8e8;
    background: #f9fafb;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.cookie-btn {
    padding: 11px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    flex: 1;
    min-width: 140px;
    text-align: center;
}
.cookie-btn-refuse {
    background: #fff;
    border-color: #1b3f54;
    color: #1b3f54;
}
.cookie-btn-refuse:hover { background: #e8f4f8; }

.cookie-btn-save {
    background: #fff;
    border-color: #27ae60;
    color: #27ae60;
}
.cookie-btn-save:hover { background: #eafaf1; }

.cookie-btn-accept {
    background: #1b3f54;
    color: #fff;
    border-color: #1b3f54;
}
.cookie-btn-accept:hover { background: #2a6f8a; border-color: #2a6f8a; }

/* ========= MOL REDIRECT CARD ========= */
.mol-redirect {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin: 40px 0;
}

.mol-redirect-card {
    background: linear-gradient(135deg, #2d5a8c 0%, #1a365d 100%);
    color: white;
    padding: 50px;
    border-radius: 8px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mol-redirect-card h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #fff;
}

.mol-redirect-card p {
    margin: 0 0 25px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background-color: #48bb78;
    color: white;
}

.btn-primary:hover {
    background-color: #38a169;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 40px;
    font-size: 17px;
}

@media (max-width: 768px) {
    .mol-redirect-card {
        padding: 30px;
    }
    
    .mol-redirect-card h2 {
        font-size: 22px;
    }
    
    .mol-redirect-card p {
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .mol-redirect {
        min-height: 200px;
        margin: 20px 0;
    }
    
    .mol-redirect-card {
        padding: 20px;
    }
    
    .mol-redirect-card h2 {
        font-size: 18px;
    }
    
    .mol-redirect-card p {
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 13px;
        display: block;
        width: 100%;
    }
}

/* Responsive cookie banner */
@media (max-width: 600px) {
    .cookie-banner {
        width: 100%;
        max-width: 100%;
        top: auto;
        bottom: 0;
        left: 0;
        transform: none;
        max-height: 85vh;
    }
    .cookie-banner.open {
        animation: cookie-slide-up-mobile 0.3s ease;
    }
    @keyframes cookie-slide-up-mobile {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    .cookie-banner-inner {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
    }
    .cookie-footer {
        flex-direction: column;
    }
    .cookie-btn {
        min-width: 100%;
    }
}
