/* Archive Welcome Page Styles */

/* Base Styles */
.section {
    padding: 4rem 0;
}
.section-header {
    margin-bottom: 2.5rem;
}

/* Hero section responsiveness */
#intro {
    min-height: 400px;
}
@media (max-width: 768px) {
    #intro {
        min-height: 400px;
        padding: 2rem 1rem;
    }
    .text-wrapper p {
        font-size: 1.2rem;
    }
    .buttons-wrapper .btn {
        margin: 0.5rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* A4 Magazine Card Base */
.magazine-edition-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}
.magazine-edition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.magazine-edition-card .magazine-image {
    width: 100%;
    aspect-ratio: 210/297;
    object-fit: contain;
    display: block;
}
.magazine-edition-card .magazine-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    );
    transform: translateY(0);
    transition: transform 0.3s ease;
}
.magazine-edition-card:hover .magazine-overlay {
    transform: translateY(-5px);
}
.magazine-edition-card .magazine-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Hide title for palestinian cause section */
#palestinian_cause .section-header {
    display: none;
}

/* Palestinian Cause - Split Layout Magazine Slider (75% width) */
.palestine-magazine-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.palestine-slide-layout {
    display: flex;
    flex-direction: row-reverse; /* Image left, content right in RTL */
    min-height: 500px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.palestine-slide-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.palestine-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 8s ease-out;
}

.swiper-slide-active .palestine-slide-image img {
    transform: scale(1.1);
}

.palestine-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.palestine-slide-content {
    flex: 1;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.palestine-magazine-slider .slide-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(39, 54, 73, 0.3);
}

.palestine-magazine-slider .slide-category i {
    font-size: 1rem;
}

.palestine-magazine-slider .slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.palestine-magazine-slider .slide-excerpt {
    font-size: 1.05rem;
    color: #5a6c7d;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.palestine-magazine-slider .slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.palestine-magazine-slider .slide-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.palestine-magazine-slider .slide-meta i {
    color: #5d8c69;
    font-size: 0.95rem;
}

.palestine-magazine-slider .slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 54, 73, 0.4);
    width: fit-content;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.palestine-magazine-slider .slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(93, 140, 105, 0.6);
    color: #fff;
}

.palestine-magazine-slider .slide-btn svg {
    transition: transform 0.3s ease;
}

.palestine-magazine-slider .slide-btn:hover svg {
    transform: translateX(-5px);
}

/* Navigation Buttons */
.palestine-magazine-slider .swiper-button-next,
.palestine-magazine-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(39, 54, 73, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.palestine-magazine-slider .swiper-button-next:hover,
.palestine-magazine-slider .swiper-button-prev:hover {
    background: #5d8c69;
    transform: scale(1.1);
}

.palestine-magazine-slider .swiper-button-next:after,
.palestine-magazine-slider .swiper-button-prev:after {
    font-size: 20px;
    color: #fff;
    font-weight: bold;
}

/* Pagination */
.palestine-magazine-slider .swiper-pagination {
    bottom: 20px !important;
    text-align: center;
}

.palestine-magazine-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(39, 54, 73, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.palestine-magazine-slider .swiper-pagination-bullet-active {
    background: #5d8c69;
    width: 30px;
    border-radius: 5px;
}

/* Responsive - Palestine Split Layout */
@media (max-width: 1200px) {
    .palestine-slide-content {
        padding: 2.5rem 3rem;
    }
    .palestine-magazine-slider .slide-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 992px) {
    .palestine-slide-layout {
        flex-direction: column;
        min-height: 600px;
    }
    .palestine-slide-image {
        flex: 0 0 300px;
    }
    .palestine-slide-content {
        padding: 2rem;
    }
    .palestine-magazine-slider .slide-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    #palestinian_cause .container {
        max-width: 95% !important;
    }
    .palestine-slide-layout {
        min-height: auto;
    }
    .palestine-slide-image {
        flex: 0 0 250px;
    }
    .palestine-slide-content {
        padding: 1.5rem;
    }
    .palestine-magazine-slider .slide-title {
        font-size: 1.5rem;
    }
    .palestine-magazine-slider .slide-excerpt {
        font-size: 0.95rem;
    }
    .palestine-magazine-slider .slide-meta {
        gap: 1rem;
    }
}

/* Keep old styles for backward compatibility */

/* Palestinian Cause - Modern Magazine Slider */
.modern-magazine-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.modern-magazine-slider .swiper-slide {
    position: relative;
    height: 600px;
    overflow: hidden;
}
.modern-magazine-slider .slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1);
    transition: transform 8s ease-out;
}
.modern-magazine-slider .swiper-slide-active .slide-background {
    transform: scale(1.1);
}
.modern-magazine-slider .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}
.modern-magazine-slider .slide-content {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 600px;
    padding: 3rem 4rem;
    z-index: 10;
}
.modern-magazine-slider .slide-category {
    display: inline-block;
    background: rgba(39, 54, 73, 0.9);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}
.modern-magazine-slider .slide-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.modern-magazine-slider .slide-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.modern-magazine-slider .slide-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.modern-magazine-slider .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}
.modern-magazine-slider .meta-item i {
    color: #5d8c69;
}
.modern-magazine-slider .slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 54, 73, 0.4);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}
.modern-magazine-slider .slide-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(93, 140, 105, 0.6);
    color: #fff;
}
.modern-magazine-slider .swiper-button-next,
.modern-magazine-slider .swiper-button-prev {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}
.modern-magazine-slider .swiper-button-next:hover,
.modern-magazine-slider .swiper-button-prev:hover {
    background: rgba(93, 140, 105, 0.9);
    border-color: #5d8c69;
    transform: scale(1.1);
}
.modern-magazine-slider .swiper-button-next:after,
.modern-magazine-slider .swiper-button-prev:after {
    font-size: 24px;
    color: #fff;
    font-weight: bold;
}
.modern-magazine-slider .swiper-pagination {
    bottom: 30px !important;
}
.modern-magazine-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}
.modern-magazine-slider .swiper-pagination-bullet-active {
    background: #5d8c69;
    width: 40px;
    border-radius: 6px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Palestinian Slider */
@media (max-width: 1200px) {
    .modern-magazine-slider .slide-content {
        max-width: 500px;
        padding: 2.5rem 3rem;
    }
    .modern-magazine-slider .slide-title {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .modern-magazine-slider .swiper-slide {
        height: 500px;
    }
    .modern-magazine-slider .slide-content {
        max-width: 100%;
        padding: 2rem;
        right: 0;
        left: 0;
    }
    .modern-magazine-slider .slide-overlay {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    .modern-magazine-slider .slide-content {
        top: auto;
        bottom: 0;
        transform: none;
    }
    .modern-magazine-slider .slide-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .modern-magazine-slider .slide-excerpt {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .modern-magazine-slider .slide-meta {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .modern-magazine-slider .swiper-button-next,
    .modern-magazine-slider .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
}
@media (max-width: 576px) {
    .modern-magazine-slider .swiper-slide {
        height: 450px;
    }
    .modern-magazine-slider .slide-content {
        padding: 1.5rem;
    }
    .modern-magazine-slider .slide-title {
        font-size: 1.3rem;
    }
    .modern-magazine-slider .slide-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    .modern-magazine-slider .slide-cta {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
    }
    .modern-magazine-slider .swiper-button-next,
    .modern-magazine-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

/* Vertical Slider for Local Community */
.vertical-article-slider {
    position: relative;
    height: 700px;
}
.vertical-article-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vertical-slider-card {
    max-width: 500px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}
.vertical-slider-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.vertical-slider-card .slider-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
}
.vertical-slider-card .slider-content {
    padding: 2rem;
}
.vertical-slider-card .slider-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.vertical-slider-card .slider-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.vertical-slider-card .slider-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}
@media (max-width: 768px) {
    .vertical-article-slider {
        height: 550px;
    }
    .vertical-slider-card .slider-image {
        height: 250px;
    }
    .vertical-slider-card .slider-content {
        padding: 1.5rem;
    }
}

/* Swiper Navigation & Pagination */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.95);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    color: #2c3e50;
    font-weight: bold;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #fff;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #bdc3c7;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: #5d8c69;
    width: 30px;
    border-radius: 5px;
}

/* Section Background Variations */
.category-section:nth-child(odd) {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.category-section:nth-child(even) {
    background: #ffffff;
}
.category-section:nth-child(3n) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.category-section:nth-child(3n) .section-header h3,
.category-section:nth-child(3n) .section-header .link {
    color: #fff;
}

/* Author & Magazine Cards */
.author-card {
    text-align: center;
    transition: transform 0.3s;
}
.author-card:hover {
    transform: scale(1.05);
}
.magazine-card {
    transition: transform 0.3s;
    max-width: 200px;
    margin: 0 auto;
}
.magazine-card:hover {
    transform: translateY(-5px);
}
.magazine-card .image-wrapper {
    max-height: 280px;
    overflow: hidden;
}

.centered-slider .swiper-slide {
    opacity: 0.4;
    transform: scale(0.75);
    transition: all 0.4s;
}
.centered-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* Side slides slightly visible */
.centered-slider .swiper-slide-prev,
.centered-slider .swiper-slide-next {
    opacity: 0.6;
    transform: scale(0.85);
}

@media (max-width: 576px) {
    .section {
        padding: 2rem 0;
    }
    .author-card {
        margin-bottom: 1rem;
    }
}

/* Magazine Sidebars Layout */
.magazine-sidebars-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2.5rem;
    /* margin: 4rem 0; */
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #273649;
    position: relative;
}

.sidebar-header::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #5d8c69;
}

.sidebar-header .icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.sidebar-article {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article:hover {
    padding-right: 0.5rem;
    background: rgba(93, 140, 105, 0.05);
    border-radius: 8px;
}

.sidebar-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sidebar-article:hover .sidebar-article-image img {
    transform: scale(1.1);
}

.sidebar-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.sidebar-article:hover .sidebar-article-title {
    color: #5d8c69;
}

.sidebar-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #95a5a6;
}

.sidebar-article-meta i {
    color: #5d8c69;
}

.sidebar-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(39, 54, 73, 0.3);
}

.sidebar-view-all:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(93, 140, 105, 0.5);
    color: #fff;
}

/* Main Content Area */
.main-content-area {
    min-height: 400px;
}

/* Center Content Section */
.center-content-section {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.center-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #273649;
    position: relative;
}

.center-content-header::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background: #5d8c69;
}

.center-content-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.center-content-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(39, 54, 73, 0.3);
}

.center-content-title h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
}

.center-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(39, 54, 73, 0.3);
    border: none;
}

.center-view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(93, 140, 105, 0.5);
    color: #fff;
}

/* Modern Article Grid */
.modern-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.modern-article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modern-article-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: #5d8c69;
}

.modern-article-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
    background: #f8f9fa;
}

.modern-article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.modern-article-card:hover .modern-article-image {
    transform: scale(1.08);
}

.modern-article-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(39, 54, 73, 0.95);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.modern-article-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-article-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.modern-article-card:hover .modern-article-title {
    color: #5d8c69;
}

.modern-article-excerpt {
    font-size: 0.8rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.modern-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #ecf0f1;
}

.modern-article-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #95a5a6;
}

.modern-article-author i {
    color: #5d8c69;
}

.modern-article-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #95a5a6;
}

.modern-article-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.modern-article-stat i {
    color: #273649;
}

/* Featured Article */
.modern-article-card.featured {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: 1fr;
}

.modern-article-card.featured .modern-article-image-wrapper {
    padding-top: 0;
    height: 100%;
    grid-column: 1;
}

.modern-article-card.featured .modern-article-image {
    height: 100%;
}

.modern-article-card.featured .modern-article-body {
    padding: 1.75rem;
    grid-column: 2;
}

.modern-article-card.featured .modern-article-title {
    font-size: 1.3rem;
    -webkit-line-clamp: 2;
}

.modern-article-card.featured .modern-article-excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
}

/* Compact Article Cards */
.compact-article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.compact-article-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.compact-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #5d8c69;
}

.compact-article-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: #f8f9fa;
}

.compact-article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.compact-article-card:hover .compact-article-image {
    transform: scale(1.1);
}

.compact-article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compact-article-card:hover .compact-article-overlay {
    opacity: 1;
}

.compact-article-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-article-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.compact-article-card:hover .compact-article-title {
    color: #5d8c69;
}

.compact-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #ecf0f1;
    font-size: 0.8rem;
    color: #95a5a6;
}

.compact-article-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.compact-article-author i {
    color: #5d8c69;
}

.compact-article-views {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.compact-article-views i {
    color: #273649;
}

/* Alternate Sidebar Layout */
.alternate-sidebars-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}

.alternate-main-content {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.alternate-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.alternate-sidebar-card {
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(39, 54, 73, 0.3);
    color: #fff;
    transition: all 0.3s ease;
}

.alternate-sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(93, 140, 105, 0.4);
}

.alternate-sidebar-header h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.alternate-sidebar-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.alternate-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.alternate-sidebar-image {
    width: 70px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.alternate-sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.alternate-sidebar-content h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alternate-sidebar-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Featured Grid with Sidebar */
.featured-grid-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    /* margin: 4rem 0; */
}

.featured-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.featured-article-large {
    grid-column: span 2;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 320px;
    transition: all 0.3s ease;
}

.featured-article-large:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.featured-article-image-large {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.featured-article-image-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.featured-article-large:hover .featured-article-image-large img {
    transform: scale(1.1);
}

.featured-article-body-large {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.featured-article-title-large {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.featured-article-excerpt-large {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.featured-small-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.featured-small-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.featured-small-image {
    position: relative;
    padding-top: 55%;
    overflow: hidden;
}

.featured-small-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.featured-small-card:hover .featured-small-image img {
    transform: scale(1.1);
}

.featured-small-body {
    padding: 1rem;
}

.featured-small-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.featured-grid-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gradient-sidebar-card {
    background: linear-gradient(135deg, #273649 0%, #5d8c69 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px rgba(39, 54, 73, 0.3);
}

.gradient-sidebar-card h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Compact Dual Sidebar Layout */
.compact-dual-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 2rem;
    /* margin: 4rem 0; */
}

.compact-sidebar-left,
.compact-sidebar-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.compact-sidebar-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #273649;
    transition: all 0.3s ease;
}

.compact-sidebar-section:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border-left-color: #5d8c69;
}

.compact-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compact-sidebar-title i {
    color: #5d8c69;
    font-size: 1.2rem;
}

.compact-mini-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.compact-mini-card:hover {
    background: #f8f9fa;
    border-color: #5d8c69;
}

.compact-mini-image {
    width: 60px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.compact-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compact-mini-content h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.compact-mini-meta {
    font-size: 0.7rem;
    color: #95a5a6;
    display: flex;
    gap: 0.5rem;
}

.compact-center-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.compact-center-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.compact-center-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.compact-center-image {
    position: relative;
    padding-top: 130%;
    overflow: hidden;
}

.compact-center-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.compact-center-card:hover .compact-center-image img {
    transform: scale(1.08);
}

.compact-center-body {
    padding: 1.25rem;
}

.compact-center-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .magazine-sidebars-wrapper {
        grid-template-columns: 280px 1fr 280px;
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .magazine-sidebars-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
    }

    .left-sidebar,
    .right-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .modern-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-article-card.featured {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
    }

    .modern-article-card.featured .modern-article-image-wrapper {
        padding-top: 120%;
        height: auto;
    }

    .modern-article-card.featured .modern-article-body {
        padding: 1rem;
    }

    .compact-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .alternate-sidebars-wrapper,
    .featured-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .alternate-sidebar,
    .featured-grid-sidebar {
        position: static;
    }

    .compact-dual-wrapper {
        grid-template-columns: 1fr;
    }

    .compact-sidebar-left,
    .compact-sidebar-right {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .featured-main-grid {
        grid-template-columns: 1fr;
    }

    .featured-article-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .compact-center-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .compact-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .magazine-compact-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .magazine-sidebars-wrapper {
        gap: 1.5rem;
    }

    .left-sidebar,
    .right-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-section {
        padding: 1.5rem;
    }

    .sidebar-article-image {
        width: 70px;
        height: 95px;
    }

    .sidebar-article-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .center-content-section {
        padding: 1.5rem;
    }

    .center-content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .center-content-title h3 {
        font-size: 1.4rem;
    }

    .center-content-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modern-article-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .modern-article-body {
        padding: 1rem;
    }

    .modern-article-card.featured {
        grid-column: span 1;
    }

    .modern-article-card.featured .modern-article-body {
        padding: 1rem;
    }

    .compact-article-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .magazine-compact-section {
        padding: 1.5rem;
    }

    .magazine-compact-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .magazine-compact-title h3 {
        font-size: 1.4rem;
    }

    .alternate-main-content,
    .gradient-sidebar-card,
    .compact-sidebar-section {
        padding: 1.5rem;
    }

    .featured-article-body-large {
        padding: 1.5rem;
    }

    .featured-article-title-large {
        font-size: 1.2rem;
    }

    .compact-center-grid {
        grid-template-columns: 1fr;
    }

    .compact-dual-wrapper {
        gap: 1.5rem;
    }
}
