* {
    box-sizing: border-box;
}

:root {
    --ag-accent: #3F94D4;
    --ag-blue: #3F94D4;
    --ag-green: #4AA69D;
    --ag-yellow: #EEA941;
    --ag-dark: #1A1A1A;
    --ag-text: #666;
    --ag-bg: #F8FBFF;
    --ag-white: #FFFFFF;
}

.ag-news-section {
    position: relative;
    background: transparent;
    padding: 100px 0;
    width: 100%;
    overflow: hidden !important;
    font-family: 'Poppins', sans-serif;
}

.ag-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Header Row */
.ag-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 50;
}

.ag-news-title-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.ag-news-title {
    font-size: 48px;
    font-weight: 400;
    margin: 0;
    letter-spacing: -1px;
    color: var(--ag-dark);
}

.ag-news-nav {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 100;
}

.ag-news-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #5C6065;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #5C6065;
    background: transparent;
    position: relative;
}

.ag-news-nav-btn::before {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    display: block;
    transition: all 0.3s ease;
}

.ag-news-nav-btn.prev::before {
    transform: rotate(45deg);
    margin-left: 4px;
}

.ag-news-nav-btn.next::before {
    transform: rotate(-135deg);
    margin-right: 4px;
}

.ag-news-nav-btn:hover {
    border-color: var(--ag-blue);
    color: var(--ag-blue);
    transform: scale(1.05);
}

.ag-news-nav-btn.prev:hover::before {
    transform: rotate(45deg) translate(-2px, 2px);
}

.ag-news-nav-btn.next:hover::before {
    transform: rotate(-135deg) translate(-2px, 2px);
}

/* Featured Article Slider */
.ag-news-slider {
    margin-bottom: 80px;
    border-radius: 0;
    overflow: visible;
}

.ag-news-featured {
    display: flex;
    gap: 50px;
    background: transparent;
    align-items: stretch;
}

.ag-news-featured-image {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.ag-news-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-slide-active .ag-news-featured-image img {
    transform: scale(1.05);
}

.ag-news-featured-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ag-news-date {
    color: #3F94D4;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    display: block;
}

.ag-news-featured-title {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 500;
    margin: 0 0 20px 0;
    color: #18181B;
    letter-spacing: -0.5px;
}

.ag-news-featured-excerpt {
    color: #5C6065;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.ag-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ag-dark);
    text-decoration: none;
    font-size: 16px;
    transition: gap 0.3s ease;
}

.ag-read-more:hover {
    gap: 15px;
    color: var(--ag-blue);
}

.ag-read-more::after {
    content: '→';
    font-size: 20px;
    color: var(--ag-blue);
}

/* News Thumbnails Slider */
.ag-news-thumbs-wrap {
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ag-news-thumbs-overflow-hide {
    width: 100%;
    overflow: hidden;
}

.ag-news-thumbs-slider {
    width: 100%;
    overflow: visible !important;
}

.ag-news-thumb-card {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: auto;
}

.ag-news-thumb-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ag-news-thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ag-news-thumb-card:hover .ag-news-thumb-image img {
    transform: scale(1.1);
}

.ag-news-thumb-content {
    padding: 0;
}

.ag-news-thumb-title {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    color: #18181B;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ag-news-thumb-date {
    color: #3F94D4;
    font-size: 14px;
    font-weight: 500;
}

/* Rainbow Decorative SVG */
.ag-news-rainbow-container {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    width: 180px;
    height: 600px;
}

.ag-news-rainbow-svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
    display: block;
}

.ag-news-rainbow-svg path {
    opacity: 0;
    transform-origin: right center;
}

.ag-news-section.is-visible .ag-news-rainbow-svg path {
    animation: agPathReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes agPathReveal {
    0% {
        opacity: 0;
        transform: translateX(100px) scaleX(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
}

.ag-news-section.is-visible .ag-news-rainbow-svg path:nth-child(1) { animation-delay: 0.1s; }
.ag-news-section.is-visible .ag-news-rainbow-svg path:nth-child(2) { animation-delay: 0.3s; }
.ag-news-section.is-visible .ag-news-rainbow-svg path:nth-child(3) { animation-delay: 0.5s; }
.ag-news-section.is-visible .ag-news-rainbow-svg path:nth-child(4) { animation-delay: 0.7s; }
.ag-news-section.is-visible .ag-news-rainbow-svg path:nth-child(5) { animation-delay: 0.9s; }

/* Responsive Overhaul */
@media (max-width: 1024px) {
    .ag-news-featured { flex-direction: column; }
    .ag-news-featured-image { height: 350px; }
    .ag-news-featured-content { padding: 40px 0; }
    .ag-news-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .ag-news-section {
        padding: 40px 0 !important;
    }

    .ag-news-container {
        display: block !important;
    }

    .ag-news-header {
        margin-bottom: 20px !important;
        text-align: left !important;
    }

    .ag-news-slider {
        margin-bottom: 25px !important;
        height: auto !important;
    }

    .ag-news-featured {
        display: block !important;
    }

    .ag-news-featured-image {
        height: 180px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        position: relative !important;
    }

    .ag-news-featured-content {
        padding: 0 !important;
        text-align: left !important;
        position: relative !important;
    }

    .ag-news-thumbs-wrap {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .ag-news-nav {
        margin-top: 15px !important;
        padding-bottom: 10px !important;
        justify-content: center !important;
    }

    .ag-news-title { font-size: 26px !important; }
    .ag-news-featured-title { font-size: 20px !important; margin: 10px 0 !important; line-height: 1.4 !important; }
    .ag-news-featured-excerpt { font-size: 14px !important; line-height: 1.5 !important; margin-bottom: 20px !important; }
}

@media (max-width: 480px) {
    .ag-news-title { font-size: 24px !important; }
    .ag-news-featured-image { height: 160px !important; }
}
