/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Bangladesh Flag Colors */
    --bd-green: #006a4e;
    --bd-red: #f42a41;
    --bd-gold: #ffcc00;
    
    /* Agriculture Theme Colors */
    --agri-green: #2e7d32;
    --agri-light-green: #4caf50;
    --agri-earth: #795548;
    --agri-sky: #29b6f6;
    --agri-sun: #ff9800;
    
    /* UI Colors */
    --light-bg: #f9fff9;
    --white: #ffffff;
    --text-dark: #1a3c34;
    --text-light: #5a7c72;
    --border-color: rgba(0, 106, 78, 0.1);
    
    /* Shadows */
    --shadow-light: 0 4px 20px rgba(0, 106, 78, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 106, 78, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 106, 78, 0.2);
    
    /* Fixed header height */
    --header-height: 70px;
}

body {
    font-family: 'Poppins', 'Siyam Rupali', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ===== Loading Screen ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}
.loading-content {
    text-align: center;
}
.loading-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}
.loading-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--bd-green);
    font-weight: 600;
    font-size: 1rem;
}
#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===== Background Elements ===== */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-leaf {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23006a4e'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.34l1.89.66.95-2.3c.48.17.98.3 1.34.3C19 20 22 3 22 3c-1 2-8 2.25-13 3.25S2 11.5 2 13.5c0 1.78.94 4.11 4 5.81 1.86 1.03 4.5 1.69 7 1.25 1.96-.35 3.5-1.58 4.5-3.12 1.37-2.08 1.88-4.72 1.5-7.94z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.bg-leaf:nth-child(1) { top: 10%; left: 5%; transform: rotate(15deg); }
.bg-leaf:nth-child(2) { top: 25%; right: 8%; transform: rotate(-20deg); }
.bg-leaf:nth-child(3) { bottom: 20%; left: 10%; transform: rotate(30deg); }
.bg-leaf:nth-child(4) { bottom: 10%; right: 15%; transform: rotate(-15deg); }

/* Agriculture graphics */
.bg-sun {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    opacity: 0.12;
    z-index: -3;
}
.bg-sun svg { width: 100%; height: 100%; display: block; }

.bg-house {
    position: absolute;
    bottom: 6%;
    left: 6%;
    width: 280px;
    height: 160px;
    opacity: 0.08;
    z-index: -3;
}
.bg-house svg { width: 100%; height: 100%; display: block; }

.bg-tree {
    position: absolute;
    width: 120px;
    height: 160px;
    opacity: 0.09;
    z-index: -3;
}
.bg-tree.tree-1 { bottom: 18%; left: 18%; transform: rotate(-6deg); }
.bg-tree.tree-2 { bottom: 22%; right: 18%; transform: rotate(8deg); }
.bg-tree svg { width: 100%; height: 100%; display: block; }

.bg-field {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 38%;
    opacity: 0.06;
    z-index: -3;
}
.bg-field svg { width: 100%; height: 100%; display: block; }

/* subtle parallax-like float for background shapes */
.bg-sun, .bg-house, .bg-tree, .bg-field {
    transform-origin: center;
    animation: slowFloat 10s ease-in-out infinite;
}
.bg-house { animation-duration: 14s; }
.bg-tree.tree-2 { animation-duration: 11s; animation-delay: 0.4s; }
.bg-tree.tree-1 { animation-duration: 12s; animation-delay: 0.8s; }

@keyframes slowFloat {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(-6px) translateX(2px) rotate(0.5deg); }
    100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

/* ===== Fixed Header ===== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 0.9rem;
    transition: box-shadow 0.4s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-icon {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-social {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.header-social a {
    color: var(--bd-green);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 106, 78, 0.08);
    text-decoration: none;
}
.header-social a:hover {
    opacity: 1;
    background: var(--bd-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== Ad Containers ===== */
.ad-container {
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    clear: both;
}
.ad-container.top-banner,
.ad-container.after-header {
    max-width: 1200px;
}
.ad-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    border: none;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* ===== Scroll Buttons ===== */
.scroll-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.scroll-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bd-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    transform: scale(0.8);
}
.scroll-btn.visible {
    opacity: 0.9;
    pointer-events: auto;
    transform: scale(1);
}
.scroll-btn.visible:hover {
    background: var(--agri-green);
    transform: scale(1.1);
    opacity: 1;
}
.scroll-btn:active {
    transform: scale(0.95);
}

/* ===== Main Content Area ===== */
.main-content {
    flex: 1;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 0;
    position: relative;
}

/* Changed h2 to h1 for SEO importance */
.page-title h1 {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--bd-green), var(--agri-green), var(--bd-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.page-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Content Card (Static Pages) ===== */
.content-card {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.lang-section { margin-bottom: 3rem; }
.lang-section:last-child { margin-bottom: 0; }

.lang-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--bd-green), var(--agri-green));
    color: var(--white);
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.content-card h2 {
    color: var(--bd-green);
    margin: 1.5rem 0 1rem;
    font-size: 1.6rem;
}

.content-card h3 {
    color: var(--bd-green);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.3rem;
}

.content-card p { margin-bottom: 1rem; color: var(--text-light); }

.content-card ul, .content-card ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.content-card li { margin-bottom: 0.6rem; }

.project-highlight {
    background: linear-gradient(135deg, rgba(0,106,78,0.05), rgba(46,125,50,0.05));
    border-left: 4px solid var(--bd-green);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.project-highlight p { margin-bottom: 0.5rem; }

.privacy-box {
    background: #e8f5e9;
    border: 2px solid var(--bd-green);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.privacy-box p { color: var(--bd-green) !important; }

.privacy-icon {
    font-size: 3rem;
    color: var(--bd-green);
    margin-bottom: 1rem;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.contact-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--bd-green);
    margin-bottom: 1rem;
}

.contact-card h3 { color: var(--bd-green); margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-light); }

/* ===== Tech Stack ===== */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.tech-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.tech-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.tech-item i {
    font-size: 2rem;
    color: var(--bd-green);
    margin-bottom: 1rem;
}

.tech-item h4 { color: var(--bd-green); margin-bottom: 0.5rem; }
.tech-item p { color: var(--text-light); }

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--bd-green);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--bd-green);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Sorting Controls */
.sorting-controls {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.sorting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sort-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bd-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.sort-title i {
    color: var(--bd-red);
}

.sort-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 10px 25px;
    background: var(--light-bg);
    color: var(--bd-green);
    border: 2px solid var(--agri-light-green);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-btn.active {
    background: linear-gradient(135deg, var(--bd-green), var(--agri-green));
    color: var(--white);
    border-color: var(--bd-green);
}

.sort-btn:hover:not(.active) {
    background: var(--agri-light-green);
    color: var(--white);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.news-card.hidden {
    display: none !important;
}

.news-card.visible {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--bd-green);
}

.latest-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--bd-red), #ff5252);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    animation: glow 2s infinite;
    box-shadow: 0 4px 15px rgba(244, 42, 65, 0.3);
}

@keyframes glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(244, 42, 65, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(244, 42, 65, 0.5); }
}

.news-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f7f0;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-image.default-img {
    object-fit: contain;
    padding: 70px;
    filter: brightness(0) saturate(100%) invert(52%) sepia(18%) saturate(800%) hue-rotate(130deg) contrast(90%);
    background: transparent;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-card:hover .news-image.default-img {
    transform: scale(1.02);
}

.news-content {
    padding: 1.8rem;
}

.news-time-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.time-ago {
    background: var(--light-bg);
    color: var(--bd-green);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Removed .news-category styles as per request 1 */

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: var(--bd-green);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-date i {
    color: var(--bd-green);
}

.news-source {
    background: var(--light-bg);
    color: var(--bd-green);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--bd-green), var(--agri-green));
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.read-more:hover {
    background: transparent;
    color: var(--bd-green);
    border-color: var(--bd-green);
    transform: translateX(5px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
}

.load-more-btn {
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--bd-green), var(--agri-green));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    justify-content: center;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, var(--agri-green), var(--bd-green));
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-btn.loading .spinner {
    display: block;
}

.load-more-btn.loading .btn-text {
    display: none;
}

.load-more-info {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* No News / All News Shown Message */
.no-news-message {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    display: none;
}

.no-news-message i {
    font-size: 4rem;
    color: var(--bd-gold);
    margin-bottom: 1.5rem;
}

.no-news-message h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-news-message p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--bd-green), #004d36);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ffffff;
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: block;
    margin-bottom: 0.7rem;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.contact-info i {
    color: #ffffff;
    margin-top: 3px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-social a {
    color: #ffffff;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.footer-social a:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright strong {
    color: var(--white);
    font-weight: 600;
}

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 106, 78, 0.1);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bd-green), var(--agri-green));
    width: 0%;
    transition: width 0.3s ease;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .page-title h1 {
        font-size: 2.2rem;
    }
    .bg-sun { width: 180px; height: 180px; }
    .bg-house { width: 220px; height: 130px; }
    .bg-field { width: 70%; height: 35%; }
    .bg-tree { width: 100px; height: 140px; }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.2rem;
    }
    .header-social a {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .main-content {
        padding-top: calc(var(--header-height) + 2rem);
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .page-title h1 {
        font-size: 1.8rem;
    }
    .content-card {
        padding: 1.5rem;
    }
    .sorting-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .sort-buttons {
        width: 100%;
        justify-content: center;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .bg-house { width: 180px; height: 120px; opacity: 0.06; }
    .bg-field { display: none; }
    .bg-tree { display: none; }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.5rem;
    }
    .stats-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    .stat-card {
        padding: 1rem 0.5rem;
    }
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
    .sort-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .load-more-btn {
        padding: 15px 30px;
        min-width: 200px;
        font-size: 1rem;
    }
    .news-content {
        padding: 1.2rem;
    }
    .news-title {
        font-size: 1.1rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}