/* Archive Welcome Page Styles */

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

/* Hero section responsiveness */
#intro {
    min-height: 400px;
}

/* Archive numbers section */
#archive-numbers {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

.numbers-card {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: center;
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: #fff;
    box-shadow: 0 15px 40px rgba(39, 54, 73, 0.25);
    position: relative;
    overflow: hidden;
}

.numbers-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.numbers-item {
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0.5;
    transform: translateY(8px);
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}

.numbers-card.is-visible .numbers-item {
    opacity: 1;
    transform: translateY(0);
}

.numbers-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transform: translateZ(0);
}

.numbers-card.is-visible .numbers-icon {
    animation: numbersPulse 2.4s ease-in-out infinite;
}

.numbers-card.is-visible .numbers-item:nth-child(1) .numbers-icon {
    animation-delay: 0s;
}

.numbers-card.is-visible .numbers-item:nth-child(2) .numbers-icon {
    animation-delay: 0.3s;
}

.numbers-card.is-visible .numbers-item:nth-child(3) .numbers-icon {
    animation-delay: 0.6s;
}

.numbers-card.is-visible .numbers-item:nth-child(4) .numbers-icon {
    animation-delay: 0.9s;
}

.numbers-card.is-visible .numbers-item:nth-child(5) .numbers-icon {
    animation-delay: 1.2s;
}

@keyframes numbersPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .numbers-card.is-visible .numbers-icon {
        animation: none;
    }
}

.numbers-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.numbers-label {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

@media (max-width: 991px) {
    .numbers-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .numbers-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .numbers-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 1.25rem 1rem;
    }

    .numbers-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .numbers-value {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .numbers-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Festival popup */
.results-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at top,
        rgba(16, 40, 70, 0.85),
        rgba(7, 18, 36, 0.95)
    );
    backdrop-filter: blur(3px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.results-popup-overlay.closing {
    opacity: 0;
}

.results-popup-close {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.results-popup-close:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.results-popup-card {
    position: relative;
    width: min(620px, 92vw);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 1;
}

.results-popup-media {
    position: relative;
    background: #1a2f55;
    border-radius: 28px;
    overflow: hidden;
}

.results-popup-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(6, 16, 36, 0.2) 0%,
        rgba(6, 16, 36, 0.55) 45%,
        rgba(6, 16, 36, 0.75) 100%
    );
    z-index: 0;
}

.results-popup-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.results-popup-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 2.5rem 2.75rem;
    color: #fff;
}

.card-decoration {
    margin-bottom: 1rem;
}

.decoration-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    background: transparent;
    color: #c0192f;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.results-subtitle {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.results-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.results-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.9rem;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.results-footer {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.confetti-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 14px;
    background: #ffcc48;
    top: -10%;
    animation: confettiFall 6s linear infinite;
    opacity: 0.9;
}

.confetti:nth-child(2n) {
    background: #4ad9d9;
    animation-duration: 7s;
}

.confetti:nth-child(3n) {
    background: #ff6b6b;
    animation-duration: 5.5s;
}

.confetti:nth-child(4n) {
    background: #b388ff;
}

.confetti:nth-child(1) {
    left: 8%;
    animation-delay: 0s;
}
.confetti:nth-child(2) {
    left: 16%;
    animation-delay: 1.2s;
}
.confetti:nth-child(3) {
    left: 26%;
    animation-delay: 0.6s;
}
.confetti:nth-child(4) {
    left: 34%;
    animation-delay: 2.1s;
}
.confetti:nth-child(5) {
    left: 42%;
    animation-delay: 0.9s;
}
.confetti:nth-child(6) {
    left: 52%;
    animation-delay: 1.8s;
}
.confetti:nth-child(7) {
    left: 60%;
    animation-delay: 0.4s;
}
.confetti:nth-child(8) {
    left: 68%;
    animation-delay: 1.5s;
}
.confetti:nth-child(9) {
    left: 76%;
    animation-delay: 2.6s;
}
.confetti:nth-child(10) {
    left: 84%;
    animation-delay: 0.2s;
}
.confetti:nth-child(11) {
    left: 90%;
    animation-delay: 1.9s;
}
.confetti:nth-child(12) {
    left: 96%;
    animation-delay: 0.8s;
}
.confetti:nth-child(13) {
    left: 12%;
    animation-delay: 2.4s;
}
.confetti:nth-child(14) {
    left: 48%;
    animation-delay: 2.9s;
}
.confetti:nth-child(15) {
    left: 72%;
    animation-delay: 1.1s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-15vh) rotate(0deg);
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
    }
}

.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(0.5px);
    animation: floatShape 10s ease-in-out infinite;
}

.floating-shapes .shape-1 {
    width: 160px;
    height: 160px;
    background: #4ad9d9;
    top: 10%;
    left: 10%;
}

.floating-shapes .shape-2 {
    width: 220px;
    height: 220px;
    background: #ffcc48;
    bottom: 12%;
    right: 8%;
    animation-delay: 1.2s;
}

.floating-shapes .shape-3 {
    width: 120px;
    height: 120px;
    background: #ff6b6b;
    top: 20%;
    right: 18%;
    animation-delay: 0.6s;
}

.floating-shapes .shape-4 {
    width: 140px;
    height: 140px;
    background: #b388ff;
    bottom: 20%;
    left: 18%;
    animation-delay: 1.8s;
}

@keyframes floatShape {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@media (max-width: 576px) {
    .results-popup-content {
        padding: 1.8rem 1.4rem 2rem;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .results-popup-close {
        top: 16px;
        left: 16px;
    }
}
@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;
    }

    /* Hide side slides on mobile for centered slider */
    .centered-slider .swiper-slide {
        opacity: 0 !important;
        transform: scale(0) !important;
    }
    .centered-slider .swiper-slide-active {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    .centered-slider .swiper-slide-prev,
    .centered-slider .swiper-slide-next {
        opacity: 0 !important;
        transform: scale(0) !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 {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }

    /* Position buttons for mobile */
    .swiper-button-next {
        right: 10px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    /* Latest magazine specific mobile adjustments */
    #latest-magazine .swiper-button-wrapper {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        pointer-events: none;
        z-index: 30;
    }

    #latest-magazine .swiper-button-next,
    #latest-magazine .swiper-button-prev {
        pointer-events: auto;
        position: absolute;
        top: 0;
    }
}

.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;
}

/* Improve touch interaction for mobile */
.centered-slider {
    touch-action: pan-y pinch-zoom;
}

.centered-slider .swiper-slide {
    opacity: 0.4;
    transform: scale(0.75);
    transition: all 0.4s;
    user-select: none;
    -webkit-user-select: none;
}

.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;
    }

    /* Mobile optimized centered slider - all slides visible on smallest screens */
    .centered-slider .swiper-slide {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    .centered-slider .swiper-slide-active {
        opacity: 1 !important;
        transform: scale(1.05) !important;
        z-index: 10;
    }
    .centered-slider .swiper-slide-prev,
    .centered-slider .swiper-slide-next {
        opacity: 0.8 !important;
        transform: scale(0.95) !important;
    }

    /* Make magazine cards more mobile friendly */
    .magazine-card {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .magazine-card .image-wrapper {
        max-height: 200px !important;
    }

    .magazine-card .title {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Additional mobile styles for latest-magazine section */
#latest-magazine {
    padding: 3rem 0 2rem 0;
}

/* Improve mobile layout for latest-magazine */
@media (max-width: 768px) {
    #latest-magazine {
        padding: 2rem 0 1.5rem 0;
    }

    #latest-magazine .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #latest-magazine .centered-slider-wrapper {
        position: relative;
        overflow: hidden;
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    #latest-magazine .most-viewed-editions {
        padding-bottom: 3rem;
    }

    #latest-magazine .magazine-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin: 0 auto;
        max-width: 280px;
    }

    #latest-magazine .magazine-card .title {
        padding: 0.75rem;
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.3;
        font-weight: 600;
    }

    #latest-magazine .magazine-card .link {
        display: block;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Mobile overlay improvements */
    #latest-magazine .magazine-card .overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.8) 0%,
            transparent 100%
        );
        padding: 1rem 0.75rem;
    }

    #latest-magazine .magazine-card .overlay-link {
        display: inline-block;
        margin: 0 0.25rem;
        padding: 0.4rem 0.8rem;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        color: white;
        text-decoration: none;
        font-size: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    #latest-magazine .magazine-card .overlay-link:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

    #latest-magazine .swiper-pagination {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }
}

/* 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;
    }
}
