.page-blog {
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom for content */
}

.page-blog__section {
    padding: 40px 0;
}

.page-blog__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-blog__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: #08160F; /* Ensure background matches body */
    text-align: center;
}

.page-blog__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-blog__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-blog__hero-content {
    max-width: 900px;
    padding: 0 20px;
    color: #F2FFF6; /* Custom Text Main */
}

.page-blog__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F2FFF6; /* Custom Text Main */
    letter-spacing: 0.5px;
}

.page-blog__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Custom Text Secondary */
}

/* Section Titles */
.page-blog__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #F2FFF6; /* Custom Text Main */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Text Blocks */
.page-blog__text-block {
    font-size: 1rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 20px;
    text-align: justify;
}

.page-blog__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-blog__btn-secondary {
    background: transparent;
    color: #2AD16F; /* A lighter shade of green from the gradient */
    border: 2px solid #2AD16F;
    margin-left: 20px;
}

.page-blog__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    transform: translateY(-2px);
}

.page-blog__btn-text {
    color: #2AD16F; /* Custom Deep Green */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-blog__btn-text:hover {
    color: #57E38D; /* Custom Glow */
}

/* Article Grid (Featured Articles) */
.page-blog__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-blog__article-card {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-blog__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-blog__card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #F2FFF6; /* Custom Text Main */
}

.page-blog__card-title a {
    color: #F2FFF6; /* Custom Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
    color: #57E38D; /* Custom Glow */
}

.page-blog__card-meta {
    font-size: 0.85rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 15px;
}

.page-blog__card-description {
    font-size: 0.95rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Category Grid */
.page-blog__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjusted for smaller cards */
    gap: 20px;
    margin-top: 30px;
}

.page-blog__category-card {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: #F2FFF6; /* Custom Text Main */
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Ensure category cards are not too small */
}

.page-blog__category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__category-card .page-blog__card-image {
    width: 100px; /* Smaller image for category cards */
    height: 100px;
    border-radius: 50%; /* Make it round */
    margin-bottom: 10px;
    min-width: 100px; /* Ensure minimum size */
    min-height: 100px; /* Ensure minimum size */
}

.page-blog__category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
}

/* Latest Articles List */
.page-blog__article-list {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 30px;
    margin-top: 30px;
}

.page-blog__article-item {
    background-color: #11271B; /* Custom Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column; /* Stack image and content on small screens */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-blog__item-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-blog__item-content {
    padding: 25px;
    flex-grow: 1;
}

.page-blog__item-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #F2FFF6; /* Custom Text Main */
}

.page-blog__item-title a {
    color: #F2FFF6; /* Custom Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}