/* News Page Styles - New Design */

/* Hero Section with Pinned News */
.news-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.vc-motion-section .container-frame {
    padding: 0;
    position: relative;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    padding: 60px 0;
}
.news-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.news-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
    padding: 25px;
}

.news-hero-text {
    color: white;
}

.news-hero-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.news-hero-excerpt {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    opacity: 0.9;
}

.news-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.news-hero-date {
    font-size: 14px;
    opacity: 0.8;
}

.news-hero-tags {
    display: flex;
    gap: 8px;
}

.news-hero-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #1e3a8a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-hero-cta:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    text-decoration: none;
    color: #1e3a8a;
}

.news-hero-cta svg {
    width: 16px;
    height: 16px;
}

.news-hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.news-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-hero-image-fallback {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.news-hero-image-fallback svg {
    width: 64px;
    height: 64px;
    opacity: 0.6;
}

/* VC in Motion Section */
.vc-motion-section {
    padding: 0;
    background: white;
}

.vc-motion-header {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    max-width: 670px;
    margin-left: auto;
    margin-right: auto;
}

.vc-motion-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 24px;
    color: #fbbf24;
}

.vc-motion-icon svg {
    width: 100%;
    height: 100%;
}

.vc-motion-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.vc-motion-header p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

/* Filters */
.vc-motion-filters {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 48px;
    padding: 0 32px;
}

.news-filter-dropdown {
    position: relative;
    display: inline-block;
}

.news-filter-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: space-between;
}

.news-filter-dropdown-toggle:hover {
    border-color: #1e3a8a;
    background: #f1f5f9;
}

.news-filter-dropdown-toggle.is-open {
    border-color: #1e3a8a;
    background: #f1f5f9;
}

.news-filter-dropdown-toggle.is-open .filter-arrow {
    transform: rotate(180deg);
}

.filter-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.news-filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.news-filter-dropdown-menu.is-open {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.news-filter-dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.news-filter-dropdown-item:last-child {
    border-bottom: none;
}

.news-filter-dropdown-item:hover {
    background: #f1f5f9;
    color: #1e3a8a;
    text-decoration: none;
}

.news-filter-dropdown-item.is-active {
    background: #1e3a8a;
    color: white;
    font-weight: 600;
}

.news-filter-dropdown-item.is-active:hover {
    background: #1e3a8a;
    color: white;
}

/* VC Motion Grid */
.vc-motion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
}

/* VC Motion Cards */
.vc-motion-card {
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 20px 20px;
    border: 1px solid rgba(0,0,0,0.12);
}

.vc-motion-card:hover {
    text-decoration: none;
    color: inherit;
    background: var(--CG-colors-Shadows-Black-5, rgba(0, 0, 0, 0.05));
}

.vc-motion-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}
.vc-motion-card:hover .vc-motion-card-image img{
    transform: scale(1.1);
}
.vc-motion-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc-motion-card-image-fallback {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.vc-motion-card-image-fallback svg {
    width: 32px;
    height: 32px;
}

.vc-motion-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.vc-motion-card-content {
    padding-bottom: 27px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vc-motion-card-title {
    color: var(--CG-colors-Shadows-Black-80, rgba(0, 0, 0, 0.80));
    font-family: var(--Typography-font-family-body, Montserrat);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 0;
}

.vc-motion-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 27px;
}

.vc-motion-card-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.news-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-content-split .hero-text-column .hero-text h1, .hero-news-index .hero-content-split .hero-text-column .hero-text p, .hero-news-index .hero-content-split .hero-text-column .hero-text, .hero-news-index .hero-content-split .hero-text-column .hero-text .sub
    {
        width: 444px !important;
    }
    .hero-line {
        bottom: 23% !important;
    }
}
@media (max-width: 1250px) {

    .hero-line {
        display: none;
    }
}
@media (max-width: 992px) {

    .hero-content-split .hero-text-column .hero-text h1, .hero-news-index .hero-content-split .hero-text-column .hero-text p, .hero-news-index .hero-content-split .hero-text-column .hero-text, .hero-news-index .hero-content-split .hero-text-column .hero-text .sub
    {
        width: 100% !important;
        padding-bottom: 40px;
    }

    /* Stack hero content on tablets and below */
    .news-hero-content {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 16px !important;
        min-height: auto !important;
        text-align: center;
    }

    .news-hero-image { aspect-ratio: 16/9; }

    /* Make CTA full-width and tappable */
    .news-hero-cta { width: 100%; justify-content: center; padding: 12px 16px; }

    /* Filters: full width and centered */
    .vc-motion-filters { padding: 0 16px; justify-content: center; }
    .news-filter-dropdown { width: 100%; }
    .news-filter-dropdown-toggle { width: 100%; justify-content: space-between; }
    .news-filter-dropdown-menu { position: static; width: 100%; max-height: 220px; overflow: auto; box-shadow: none; border-radius: 6px; }

    /* VC Motion grid -> single column for easier reading on tablets */
    .vc-motion-grid { grid-template-columns: 1fr !important; gap: 20px !important; padding: 0 16px; }
    .vc-motion-card { padding: 24px 16px; }

    /* Reduce large paddings present on desktop-only containers */
    .vc-motion-section { padding: 40px 0; }
    
}

/* Position news swiper arrows like transactions: top-left */
.news-section .news-swiper .section-header { position: relative; }
.news-section .news-swiper .swiper-navigation {
    position: absolute;
    top: 12px;
    left: 20px;
    display: flex;
    gap: 12px;
    z-index: 6;
}
.news-section .news-swiper .swiper-button-prev,
.news-section .news-swiper .swiper-button-next {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--CG-colors-Grey-Black, #000);
    padding: 0;
}

@media (max-width: 768px) {
    .news-section .news-swiper .swiper-navigation { top: 8px; left: 12px; }
}

@media (max-width: 768px) {
    .news-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .news-hero-text h1 {
        font-size: 32px;
    }
    
    .news-hero-excerpt {
        font-size: 16px;
    }
    
    .vc-motion-section {
        padding: 60px 0;
    }
    
    .vc-motion-header h2 {
        font-size: 28px;
    }
    
    .vc-motion-filters {
        padding: 0 20px;
    }
    
    .vc-motion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .news-hero-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .news-hero-text h1 {
        font-size: 28px;
    }
    
    .vc-motion-grid {
        padding: 0 16px;
    }
    
    .vc-motion-filters {
        padding: 0 16px;
    }
    
    .news-hero-container {
        padding: 0 16px;
    }
}
.hero-text-column .hero-text h1{
    font-size: 40px !important;
    line-height: 40px !important;
}
.discover {
    left: 12% !important;
}
.hero-line {
    width: 50% !important;
    bottom: 31% !important;
}
.resources-filters{
    margin-bottom: 20px;
}

/* Style tags to match filter button appearance (no dropdown) */
.vc-motion-card .vc-motion-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 27px;
}

.vc-motion-card .vc-motion-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--CG-colors-Shadows-Black-30, rgba(0, 0, 0, 0.30));
    border-radius: 4px;
    color: var(--CG-colors-Grey-Black, #000);
    font-family: var(--Typography-font-family-caption, Montserrat);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-transform: none;
}

.vc-motion-card .vc-motion-card-tag:hover {
    background: #C4F222; /* same hover as filter */
    border-color: #C4F222;
    color: #000;
}

/* --- responsive overrides added by agent: news view --- */
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr !important; }
  .news-thumb { width: 100%; height: auto; }
}
@media (min-width: 350px) and (max-width: 550px) {
  .news-title { font-size: 16px; }
  .news-meta { display: none; }
}