:root {
    --primary-color: #ba1212;
    --primary-dark: #8a0d0d;
    --secondary: #111111;
    --text: #333333;
    --text-light: #666666;
    --bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: break-word;
}
html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* TOP BAR */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.social-icons a {
    color: var(--white);
    margin-left: 10px;
    font-size: 16px;
}
.social-icons a:hover {
    opacity: 0.8;
}

/* HEADER */
.main-header {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 50px;
}
.logo-text {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
}
.logo-text span {
    color: var(--primary-color);
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}
.main-nav a {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--secondary);
}
.main-nav a:hover {
    color: var(--primary-color);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* HERO SECTION */
.hero-section {
    margin-top: 30px;
}
.hero-card {
    height: 480px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 800px;
}
.category-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}
.hero-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 800;
}
.hero-excerpt {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 25px;
}
.btn-hero {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
}
.btn-hero:hover {
    background: var(--primary-dark);
}

/* MAIN LAYOUT */
.main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* SECTION BLOCKS */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    margin-bottom: 25px;
    padding-bottom: 10px;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    position: relative;
}
.section-title span {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

/* NEWS GRID */
.news-grid {
    display: grid;
    gap: 30px;
}
.news-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}
.news-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.news-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.category-badge-sm {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: var(--white);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}
.news-card-body {
    padding: 20px;
}
.news-card-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.news-card-title a:hover {
    color: var(--primary-color);
}
.news-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
}
.news-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* SIDEBAR */
.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.widget-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--secondary);
}
.widget-header i {
    color: var(--primary-color);
    margin-right: 8px;
}
.weather-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.weather-icon-dyn {
    font-size: 40px;
}
.weather-temp-val {
    font-size: 32px;
    font-weight: 800;
}
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-btn {
    display: block;
    padding: 12px 15px;
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    text-align: center;
}
.social-btn i {
    margin-right: 8px;
}
.social-fb { background: #1877F2; }
.social-ig { background: #E4405F; }
.social-yt { background: #FF0000; }
.social-btn:hover { opacity: 0.9; color: var(--white); }

.sidebar-news-list {
    list-style: none;
}
.sidebar-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.sidebar-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sidebar-news-img {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}
.sidebar-news-info {
    flex: 1;
}
.sidebar-news-title {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    line-height: 1.3;
}
.sidebar-news-title:hover {
    color: var(--primary-color);
}
.sidebar-news-date {
    font-size: 12px;
    color: var(--text-light);
}

.sidebar-banner img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* NEWSLETTER */
.newsletter-section {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 0;
    margin-top: 50px;
}
.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    padding: 30px;
    border-radius: 12px;
}
.newsletter-text h3 {
    font-size: 24px;
    margin-bottom: 5px;
}
.newsletter-form {
    display: flex;
    gap: 10px;
}
.newsletter-form input {
    padding: 12px 20px;
    border-radius: 6px;
    border: none;
    width: 300px;
    font-size: 15px;
}
.btn-newsletter {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-newsletter:hover {
    background: #000;
}

/* FOOTER */
.site-footer {
    background: var(--secondary);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-title {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 700;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

/* ARTICLE */
.article-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.article-header {
    margin-bottom: 30px;
}
.category-badge-lg {
    display: inline-block;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 20px;
}
.article-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 15px;
}
.article-excerpt {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.article-figure {
    margin-bottom: 30px;
}
.article-featured-img {
    width: 100%;
    border-radius: 8px;
}
.article-figure figcaption {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}
.article-body {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}
.article-body p {
    margin-bottom: 20px;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* SEARCH & PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.page-link {
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 600;
}
.page-link:hover, .page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}


/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb li:not(:last-child)::after {
    content: "/";
    color: var(--border);
}
.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Category Header */
.category-header {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 0px;
}
.category-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}
.category-count {
    color: var(--text-light);
    font-size: 15px;
}

/* No Content Block */
.no-content-block {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.no-content-block p {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 18px;
}

/* Article Page */
.article-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.article-header {
    margin-bottom: 30px;
}
.category-badge-lg {
    display: inline-block;
    color: var(--white);
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}
.article-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}
.article-excerpt {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 25px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}
.share-label {
    font-weight: 600;
}
.share-btn {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 30px;
    color: var(--white);
}
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-wa { background: #25d366; }

.article-body {
    font-size: 18px;
    line-height: 1.8;
}
.article-body p { margin-bottom: 20px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.article-body h2 { font-size: 28px; margin: 30px 0 15px; font-weight: 700; }
.article-body h3 { font-size: 24px; margin: 25px 0 15px; font-weight: 700; }

/* Page Content (Static Pages) */
.page-content-block {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 17px;
    line-height: 1.7;
}
.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    display: inline-block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}
.page-btn, .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    padding: 0 15px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
}
.page-num { padding: 0; }
.page-current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.page-btn:hover, .page-num:not(.page-current):hover {
    background: var(--bg);
    color: var(--primary-color);
}
/* Category Badge Fixes */
.cat-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    color: var(--white);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

/* -------------------------------------------------------
   SEARCH PAGE (pesquisa.php)
   --------------------------------------------------- */
.search-hero {
    background: var(--white);
    padding: 60px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-align: center;
    margin-bottom: 40px;
}
.search-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--secondary);
}
.search-form-large {
    max-width: 700px;
    margin: 0 auto;
}
.search-input-wrap {
    display: flex;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 50px;
    overflow: hidden;
}
.search-input-large {
    flex: 1;
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    outline: none;
}
.search-btn-large {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.search-btn-large:hover { background: var(--primary-dark); }

.search-results-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
}
.search-count {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.search-count strong { color: var(--secondary); font-size: 1.3rem; }

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}
.search-result-card {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: var(--transition);
}
.search-result-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.search-result-img-link {
    width: 320px;
    flex-shrink: 0;
    position: relative;
}
.search-result-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.category-badge-sm {
    position: absolute;
    top: 15px;
    bottom: auto;
    left: 15px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.search-result-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.search-result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}
.search-result-title a { color: var(--secondary); transition: var(--transition); }
.search-result-title a:hover { color: var(--primary); }
.search-result-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.search-result-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.search-result-meta span { display: flex; align-items: center; gap: 6px; }
.search-result-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-result-link:hover i { transform: translateX(4px); transition: transform 0.2s; }
mark {
    background: rgba(186,18,18,0.15);
    color: var(--primary);
    padding: 0 4px;
    border-radius: 3px;
}
.search-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
}
.search-no-results h2 { margin: 20px 0 10px; color: var(--secondary); font-size: 1.8rem; }
.search-no-results p { color: var(--text-muted); margin-bottom: 5px; }
.search-suggestions {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.search-suggestions h3 { margin-bottom: 20px; color: var(--secondary); }
.search-suggestions ul { padding-left: 20px; color: var(--text-muted); line-height: 1.8; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}
.page-btn, .page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    padding: 0 15px;
    background: var(--white);
    color: var(--text);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.page-num { padding: 0; }
.page-btn:hover, .page-num:hover {
    background: var(--primary);
    color: var(--white);
}
.page-current {
    background: var(--primary);
    color: var(--white);
}
.page-ellipsis {
    color: var(--text-muted);
    font-weight: 700;
}

@media (max-width: 768px) {
    .search-result-card { flex-direction: column; }
    .search-result-img-link { width: 100%; height: 200px; }
    .search-input-wrap { flex-direction: column; border-radius: 12px; }
    .search-btn-large { padding: 15px; border-radius: 0 0 12px 12px; }
    .search-input-large { border-radius: 12px 12px 0 0; }
}

/* -------------------------------------------------------
   CKEDITOR 5 FRONTEND STYLES
   --------------------------------------------------- */
.article-body figure.image {
    display: table;
    clear: both;
    text-align: center;
    margin: 1.5em auto;
}
.article-body figure.image img {
    margin: 0;
    max-width: 100%;
}
.article-body figure.image.image-style-align-left {
    float: left;
    margin-right: 1.5em;
    margin-top: 0.5em;
}
.article-body figure.image.image-style-align-right {
    float: right;
    margin-left: 1.5em;
    margin-top: 0.5em;
}
.article-body figcaption {
    display: table-caption;
    caption-side: bottom;
    color: var(--text-muted);
    font-size: 0.85em;
    padding: 0.5em;
}
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.2em;
    margin-left: 0;
    margin-right: 0;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(0,0,0,0.02);
    padding: 1em 1.2em;
    border-radius: 0 8px 8px 0;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.article-body table th, .article-body table td {
    border: 1px solid var(--border);
    padding: 10px 15px;
}
.article-body table th {
    background: var(--light);
}
.article-body .text-tiny { font-size: 0.7em; }
.article-body .text-small { font-size: 0.85em; }
.article-body .text-big { font-size: 1.4em; }
.article-body .text-huge { font-size: 1.8em; }

/* -------------------------------------------------------
   STICKY FOOTER
   --------------------------------------------------- */
html, body {
    /* height: 100%; removed to fix mobile scroll bug */
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1 0 auto;
}

/* -------------------------------------------------------
   CONTACT PAGE LAYOUT
   --------------------------------------------------- */
.page-contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 30px;
}
.contact-info-card, .contact-form-card, .contact-map {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.contact-info-card h3, .contact-form-card h3, .contact-map h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-info-card p {
    margin: 5px 0;
    color: var(--text-muted);
}
.contact-info-card a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.contact-social-links {
    display: flex;
    gap: 10px;
}
.contact-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light);
    color: var(--text);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.contact-social-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}
.contact-form .form-group {
    margin-bottom: 15px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--light);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* -------------------------------------------------------
   GLOBAL RESPONSIVENESS (FRONTEND)
   --------------------------------------------------- */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-contact-layout {
        grid-template-columns: 1fr;
    }
    .hero-card {
        height: auto;
        min-height: 400px;
    }
    
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 28px;
    }
}
.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* SPLIT HERO LAYOUT */
.hero-card-split {
    display: flex;
    flex-direction: column;
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    margin-top: 20px;
}
.hero-split-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-split-image:hover img {
    transform: scale(1.05);
}
.hero-split-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--secondary); /* Dark background like original */
    color: var(--white);
}
.hero-split-content .hero-title,
.hero-split-content .hero-title a {
    color: var(--white);
    text-decoration: none;
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 15px;
    margin-top: 15px;
}
.hero-split-content .hero-excerpt {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 20px;
}


body { max-width: 100%; overflow-x: hidden; }
.container { max-width: 100%; overflow-x: hidden; }


/* Mobile Bulletproof Reset */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}
@media (max-width: 600px) {
    .container, .header-inner, .top-bar-inner, .newsletter-inner {
        width: 100% !important;
        max-width: 100% !important;
    }
}






@media (max-width: 600px) {
    .news-grid, .news-grid-4, .news-grid-3 {
        grid-template-columns: 1fr !important;
    }
}


@media (min-width: 900px) {
    .hero-card-split {
        flex-direction: row;
        align-items: stretch;
    }
    .hero-split-image {
        width: 60%;
        max-height: 500px;
        height: auto; min-height: 100%;
    }
    .hero-split-content {
        width: 40%;
        padding: 40px;
    }
}


@media (max-width: 600px) {
    body *:not(.swiper-wrapper):not(.swiper-slide) {
        max-width: 100vw !important;
    }
}


