.breadcrumb {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.9em;
    margin-bottom: 20px;
    color: #6c757d;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
    margin: 0 3px;
}

.breadcrumb span {
    margin: 0 8px;
    color: #aaa;
}


.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.text-content {
    flex: 1;
    max-width: 60%;
}

.hero-section h1 {
    font-size: 3em;
    color: #1a441b; 
    margin-bottom: 20px;
}

.hero-section p {
    color: #555;
    font-size: 1.1em;
}

.illustration {
    flex: 1;
    max-width: 40%;
    height: 300px; 
    display: flex; 
    align-items: center;
    justify-content: center;
}

.illustration img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}
.cards-container a.card {
    display: flex;
    align-items: flex-end;
    min-height: 547px;
    background: #365b5e;
    background-repeat: no-repeat;
    background-size: cover;
	justify-content: center;
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 auto;
}
.main-content {
    padding: 40px 0px;
}
.card-image-wrapper {
    height: 550px; 
    margin-bottom: 0; 
    position: relative;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block; 
}

.card-text {
    color: #ffffff;
    padding: 15px 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}
.category-13 .card-text {
    text-align: right;
}
.card-text h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
}


.secondary-content {
    padding: 20px 0;
}

.articles-container-wrapper {
    margin: 0 auto;
    background-color: #F6F6F6;
    padding: 25px;
    max-width: 1280px;
}

.section-title-top {
    display: flex;          
    align-items: center;   
    gap: 25px;               
    margin-bottom: 20px;   
}

.section-title-top h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #205834;
    margin: 0; 
    flex-shrink: 0;        
    transform: translateX(-10px); 
}


.title-horizontal-line-top {
    flex-grow: 35;            
    height: 2px;             
    background-color: #eee;  
    margin-top: 9px;         
}
.top-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* force EXACTLY 3 columns */
    grid-auto-rows: auto;                  /* let rows adjust naturally */
    gap: 20px;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
}

/* Your item styling */
.top-article-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 15px;
    text-align: right;
    background-color: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    justify-content: flex-end;
}

.top-article-item .text-details {
    flex: 1;
    max-width: unset; 
}

.top-article-item h3 {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: 700;
}

.top-article-item p {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.top-article-item .meta {
    font-size: 0.8em;
    color: #999;
}

.top-article-item .img-wrapper {
    width: 100px; 
    height: 100px;
    overflow: hidden;
    border-radius: 0; 
    flex-shrink: 0;
    background-color: #f0e4de; 
}

.top-article-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.more-articles-section {
    padding: 20px 0 80px;
}

.section-header-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.more-articles-title {
    text-align: right;
    font-size: 23px; 
    font-weight: bold; 
    color: #205834;
    margin-left: 20px;
    flex-shrink: 0; 
}

.title-horizontal-line {
    flex-grow: 1; 
    height: 1px;
    background-color: #eee; 
    margin-top: 7px; 
}


.more-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.article-card-full {
    text-decoration: none; 
    color: inherit; 
    background-color: #fff;
    border-radius: 0; 
    overflow: hidden;
    text-align: right;
    box-shadow: none; 
}

.article-card-full .img-wrapper {
    width: 100%;
    height: 200px; 
    overflow: hidden;
}

.article-card-full .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-full .card-body {
    padding: 10px 0; 
}

.article-card-full h3 {
    font-size: 1.1em;
    color: #333; 
    margin-bottom: 5px;
    line-height: 1.4;
    font-weight: bold;
}

.article-card-full p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0;
}

.article-card-full {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; 
}

.article-card-full:hover {
    transform: translateY(-5px) scale(1.03); 
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15); 
}

.article-card-full:active {
    transform: translateY(0) scale(0.98); 
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}



.view-more-button:hover {
    background-color: #49b5ae;
}


@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .text-content, .illustration {
        max-width: 100%;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .illustration {
        height: 250px; 
    }
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    }
    .top-articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr; 
    }
    .top-articles-grid {
        grid-template-columns: 1fr; 
    }
    .top-article-item .text-details {
        max-width: unset; 
    }
    .section-title-top {
        padding-bottom: 0;
        border-bottom: none;
    }
    .section-title-top h2 {
        order: 1; 
    }
    .title-horizontal-line-top {
        display: none;
    }
    .more-articles-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .illustration {
        height: 180px;
    }
    .card-image-wrapper {
        height: 300px;
    }
    .cards-container, .more-articles-grid {
        gap: 10px;
    }
    .top-article-item h3 {
        white-space: normal;
        -webkit-line-clamp: 2;
    }
    .container,
    .articles-container-wrapper {
        padding: 10px;
    }
    .more-articles-section {
        padding: 15px 0 40px;
    }
    .view-more-button {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}

.header-category {
    background-color: #f0f8ff; 
    padding: 20px 0;
    direction: rtl; 
}


.container {
    max-width: 1280px;
    margin: 0 auto;
}


.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    color: #606060;
}

.breadcrumb img {
    width: 10px; 
    height: auto;
    margin-right: 15px; 
}


.breadcrumb a {
    color: inherit; 
    text-decoration: none; 
}


.breadcrumb span {
    color: inherit;       
    margin: 0 5px;       
}


.breadcrumb span.separator {
    font-size: 12px;      
    font-weight: bold;    
    margin: 0 5px;        
}

.category-13 .cards-container a.card {
    min-height: 448px;
}


























/* --- Main Header Section Styling (Top 1x2 Layout) --- */
.main-article {
    display: grid;
    /* On desktop, 70% content | 30% image */
    grid-template-columns: 20% 75%;
    gap: 30px;
    margin-bottom: 20px;
    align-items: center; /* Vertically align content */
    margin-top: 40px;
    padding: 0px 10px;
}

.main-article h2 {
    font-size: 24px;
    color: #141414;
    margin-bottom: 15px;
}

.main-article p {
    font-size: 20px;
    color: #595959;
    margin-bottom: 20px;
}
.main-article .date {
    font-size: 16px;
}

/* --- Card Grid Section Styling (Bottom 2x2 Layout) --- */
.card-grid {
    display: grid;
    /* Desktop layout: 2 columns of equal width */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

/* --- Image and Date Styling for Consistency --- */
.image-placeholder {
    width: 100%;
    /* Aspect ratio for the images is approximately 4:3 or 16:9 in the cards */
    /* Use a fixed height or padding-bottom trick for aspect ratio control */
    aspect-ratio: 4 / 3; 
    overflow: hidden;
    margin-bottom: 15px;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the container without distortion */
    display: block;
}

/* Adjust the specific styling for the top article image */
.main-article .image-placeholder {
    /* For the top image, it seems taller and more prominent */
    aspect-ratio: 1; /* Making it square-ish based on the visual */
    margin-bottom: 0;
}

.date {
    font-size: 0.8em;
    color: #999;
    /* Pushes the date to the bottom in the layout */
    margin-top: auto; 
}

.category-11 .principale-society {
    padding: 40px 0px;
}

.category-11 .card-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* --- Responsiveness for Mobile/Tablet --- */
@media (max-width: 900px) {
    /* For tablets, change the card grid to 1 column */
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .children {
    margin: 0 0em 1.5em 0;
    padding-right: 10px !important;
}
.post-share {
    background: unset !important;
    border-radius: 8px !important;
    display: flex !important;
    gap: 5px !important;
    position: relative !important;
    left: 5% !important;
    top: 50% !important;
    flex-direction: row-reverse !important;
    padding: 0px !important;
    transform: unset !important;
}

    .breadcrumb-book {
    padding: 20px !important;
}
    .breadcrumb {
    flex-wrap: wrap;
}
    .single-post-book .post-featured-image {
        display: none;
    }
    .single-post-book {
        flex-direction: column-reverse;
    }
    .single-post-book .width-blog-main {
        width: 100% !important;
        padding: 0px 10px !important;
    }
    .column-book-stiky {
        width: 100% !important;
        padding: 20px 0px !important;
        text-align: center;
    }
    /* For smaller screens, stack the main article content */
    .main-article {
        grid-template-columns: 1fr; /* Stack image and text */
    }

    /* Move the image to the top for the main article on mobile */
    .main-article .image-placeholder {
        order: -1; 
        aspect-ratio: 16 / 9;
    }
}