:root {
    --primary-color: #ba1212;
    --primary-dark: #8a0d0d;
    --secondary: #111111;
    --text: #333333;
    --text-light: #666666;
    --bg: #f7f8fa;
    --white: #ffffff;
    --border: #e8e8e8;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --container-width: 1560px;
}

* {
    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);
    width: 96%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 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-tagline {
    font-weight: 500;
}
.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.top-weather {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.top-social {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-social a {
    color: var(--white);
    opacity: 0.85;
}
.top-social a:hover {
    opacity: 1;
}

/* MAIN HEADER */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.site-logo {
    display: flex;
    align-items: center;
    max-height: 66px;
}
.site-logo img {
    height: auto;
    max-height: 60px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
    display: block;
}
.logo-text {
    font-size: 26px;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -0.5px;
}
.logo-text span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}
.main-nav a {
    font-weight: 600;
    font-size: 14px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}
.main-nav a:hover, .main-nav .active a {
    color: var(--primary-color);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav .active a::after {
    width: 100%;
}

.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
}
.dropdown:hover .dropdown-menu {
    display: flex;
}
.dropdown-menu li {
    width: 100%;
}
.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    text-transform: none;
}
.dropdown-menu a:hover {
    background: #f8f9fa;
}
.dropdown-menu a::after {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px;
}
.search-toggle-btn:hover {
    color: var(--primary-color);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--secondary);
    cursor: pointer;
}

/* HERO SECTION */
.hero-section {
    margin-top: 25px;
    margin-bottom: 35px;
}
.hero-card {
    height: 460px;
    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: 12px;
    color: #fff;
}
.hero-title {
    font-size: 38px;
    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 (2 COLUMNS: CONTENT LEFT + SIDEBAR RIGHT) */
.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 36px;
    align-items: start;
    margin-top: 30px;
    margin-bottom: 45px;
    width: 100%;
}
.main-content {
    min-width: 0;
    width: 100%;
}

/* SECTION BLOCKS */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    margin-bottom: 25px;
    padding-bottom: 12px;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    position: relative;
    color: var(--secondary);
}
.section-title span {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 12px;
}
.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}
.section-link:hover {
    color: var(--primary-dark);
}

/* NEWS GRID */
.news-grid {
    display: grid;
    gap: 24px;
}
.news-grid-4 {
    grid-template-columns: repeat(3, 1fr);
}
.news-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1200px) {
    .news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.09);
}
.news-card-img-link {
    display: block;
    overflow: hidden;
}
.news-card-img {
    height: 210px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card-img {
    transform: scale(1.03);
}
.category-badge-sm {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--white);
}
.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}
.news-card-title a {
    color: var(--secondary);
}
.news-card-title a:hover {
    color: var(--primary-color);
}
.news-card-date {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* SIDEBAR */
.sidebar {
    width: 100%;
    min-width: 0;
}
.sidebar-widget {
    background: var(--white);
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}
.widget-header {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--secondary);
    display: flex;
    align-items: center;
}
.widget-header i {
    color: var(--primary-color);
    margin-right: 8px;
}
/* WEATHER WIDGET */
.weather-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.weather-widget-container {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.weather-location-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary, #111827);
    margin-bottom: 12px;
}

.weather-location-bar i {
    color: var(--primary-color, #ba1212);
    font-size: 1.1rem;
}

.weather-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.weather-current-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.weather-temp-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-icon-wrap {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    flex-shrink: 0;
}

.weather-current-temp {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--secondary, #111827);
    letter-spacing: -0.03em;
}

.weather-current-minmax {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    padding-left: 2px;
    margin-top: 6px;
}

.weather-divider {
    width: 1px;
    height: 55px;
    background: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}

.weather-forecast-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-grow: 1;
}

.forecast-day-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 54px;
}

.forecast-day-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap;
    text-transform: capitalize;
}

.forecast-icon-wrap {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #f59e0b;
    margin-bottom: 4px;
}

.forecast-temps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.temp-max {
    font-weight: 700;
    color: #ba1212;
}

.temp-min {
    font-weight: 600;
    color: #0284c7;
}

.temp-label {
    color: #94a3b8;
    font-size: 0.82rem;
}
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--white);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-btn i {
    font-size: 16px;
}
.social-fb { background: #1877F2; }
.social-ig { background: #E4405F; }
.social-yt { background: #FF0000; }
.social-btn:hover {
    opacity: 0.92;
    color: var(--white);
    transform: translateY(-2px);
}

.sidebar-news-list {
    list-style: none;
}
.sidebar-news-item {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.sidebar-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sidebar-news-img {
    width: 75px;
    height: 75px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}
.sidebar-news-info {
    flex: 1;
    min-width: 0;
}
.sidebar-news-title {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    line-height: 1.35;
    color: var(--secondary);
}
.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: var(--primary-light, rgba(0,0,0,0.08));
    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: 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: 1024px) {
    .main-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .main-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        margin-top: 20px !important;
        width: 100% !important;
    }
    .main-content {
        width: 100% !important;
        min-width: 0 !important;
    }
    .sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .news-grid-4, .news-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .page-contact-layout {
        grid-template-columns: 1fr !important;
    }
    .hero-card-split {
        flex-direction: column !important;
        height: auto !important;
    }
    .hero-split-image {
        width: 100% !important;
        height: 260px !important;
    }
    .hero-split-content {
        width: 100% !important;
        height: auto !important;
        padding: 25px 20px !important;
    }
}

@media (max-width: 640px) {
    .main-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        margin-top: 15px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
    }
    .news-grid, .news-grid-4, .news-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .section-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 18px !important;
        border-bottom: 2px solid var(--border) !important;
        padding-bottom: 10px !important;
    }
    .section-title {
        font-size: 1.25rem !important;
        white-space: nowrap !important;
    }
    .section-title span {
        border-bottom: 3px solid var(--primary-color) !important;
        padding-bottom: 10px !important;
    }
    .section-link {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    .hero-split-image {
        height: 200px !important;
    }
    .hero-split-content {
        padding: 18px 15px !important;
    }
    .hero-split-content .hero-title,
    .hero-split-content .hero-title a {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
    .hero-split-content .btn-hero {
        padding: 9px 16px !important;
        font-size: 0.85rem !important;
    }
    .sidebar-widget {
        padding: 18px 16px !important;
        margin-bottom: 20px !important;
    }
    .article-title {
        font-size: 1.5rem !important;
    }
    .container, .header-inner, .top-bar-inner, .newsletter-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* -------------------------------------------------------
   REFINED SINGLE ARTICLE & SHARE BUTTONS
   ------------------------------------------------------- */
.article-body-wrapper {
    background: var(--white);
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    min-width: 0;
}

.article-body-wrapper .category-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    border-radius: 4px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--secondary, #111);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.88rem;
    color: var(--text-light, #666);
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}
.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-meta i {
    color: var(--primary-color, #ba1212);
}

.article-featured-image {
    width: 100%;
    max-height: 480px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.article-featured-image:hover img {
    transform: scale(1.02);
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #2c3e50;
    word-break: break-word;
}
.article-content p {
    margin-bottom: 1.4em;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.article-content h2, .article-content h3, .article-content h4 {
    margin: 30px 0 15px;
    color: var(--secondary, #111);
    font-weight: 800;
    line-height: 1.3;
}
.article-content blockquote {
    border-left: 4px solid var(--primary-color, #ba1212);
    background: #fdf5f5;
    padding: 15px 22px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #444;
}

/* SHARE BUTTONS */
.article-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 25px;
    margin-top: 35px;
    border-top: 1px solid #ebebeb;
}
.article-share-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--secondary, #111);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 5px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    border: none;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.18);
    color: #ffffff !important;
}
.share-fb {
    background: #1877f2 !important;
}
.share-fb:hover {
    background: #1464cc !important;
}
.share-tw {
    background: #000000 !important;
}
.share-tw:hover {
    background: #222222 !important;
}
.share-wa {
    background: #25d366 !important;
}
.share-wa:hover {
    background: #1da851 !important;
}
.share-copy {
    background: #4b5563 !important;
}
.share-copy:hover {
    background: #374151 !important;
}

@media (max-width: 768px) {
    .article-header {
        padding: 20px 0;
    }
    .article-title {
        font-size: 1.7rem;
    }
    .article-body-wrapper {
        padding: 20px 18px;
    }
    .article-featured-image {
        max-height: 280px;
        margin-bottom: 20px;
    }
    .article-featured-image img {
        max-height: 280px;
    }
    .article-content {
        font-size: 1rem;
        line-height: 1.75;
    }
    .article-share {
        flex-direction: column;
        align-items: stretch;
    }
    .share-btn {
        justify-content: center;
        width: 100%;
    }
}

