/* styleblog.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

body {
    background-color: #f9f9f9;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

/* HEADER STYLES */
.header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    top: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 15px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1F8D4F;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
}

.nav-link .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 5px;
}

.social-media {
    display: flex;
    gap: 20px;
}

.social-media a {
    font-size: 1.2rem;
    color: #555;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #1F8D4F;
}



/* MOBILE OVERLAY */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MAIN CONTENT */
main {
    padding-top: 100px;
}

/* HERO SECTION */
.hero-section {
    min-height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://placehold.co/1920x1080/EFEFEFF/grey?text=Blog+Hero+Image');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* BLOG SECTION */
.blog-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 70px;
    text-align: center;
}

.title-wrapper {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

.section-header .pre-title {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 5px;
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* BLOG FILTERS */
.blog-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    border-color: #1F8D4F;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(31, 141, 79, 0.3);
}

/* BLOG GRID */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    padding: 0 30px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.blog-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 230px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: #1F8D4F;
}

.blog-read-time {
    display: flex;
    align-items: center;
}

.blog-date i,
.blog-read-time i {
    margin-right: 5px;
    color: #1F8D4F;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}



.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1F8D4F;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.blog-link:hover {
    color: #0C5D30;
    gap: 12px;
}

.blog-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.blog-link:hover i {
    transform: translateX(3px);
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    border-color: #1F8D4F;
    color: #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-number {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background-color: transparent;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover,
.pagination-number.active {
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    border-color: #1F8D4F;
    color: #ffffff;
}

.pagination-dots {
    color: #666;
    font-weight: 500;
    padding: 0 5px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(31, 141, 79, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 141, 79, 0.4);
    filter: brightness(110%);
}

/* CONTACT SECTION (FOOTER) */
.contact-section {
    padding: 100px 20px;
    color: #f9f9f9;
    background-color: #333;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.newsletter-side h3, .contact-info-side h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter-side p, .contact-info-side p {
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #444;
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form input::placeholder {
    color: #ccc;
}

.newsletter-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1F8D4F, #0C5D30);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-social-media {
    display: flex;
    gap: 25px;
}

.footer-social-media a {
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-social-media a:hover {
    color: #1F8D4F;
}

/* =========================
   FOOTER - DESKTOP
   ========================= */
.footer-main {
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: 40px 50px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #444;
}

.footer-contact {
    text-align: left;
}

.footer-contact p {
    margin: 8px 0;
}

.footer-contact a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #1F8D4F;
}

.footer-social {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    justify-content: center;
}

.footer-social-link:hover {
    color: #1F8D4F;
}

.footer-social-link i {
    font-size: 1.1rem;
}

.footer-links {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1F8D4F;
}

.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding-top: 15px;
    margin-top: 30px;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}