/* Insights Page Specific Styles */

/* Hero */
.insights-hero {
    background: url('../images/bkgd_insights.avif') center center / cover no-repeat;
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
}

.insights-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(73, 25, 152, 0.7);
    z-index: 0;
}

.insights-hero>* {
    position: relative;
    z-index: 1;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.insights-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.insights-hero .hero-subhead {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    color: white;
    max-width: 700px;
}

.btn-hero {
    display: inline-block;
    background: white;
    color: #491998;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.btn-hero:hover {
    filter: brightness(0.85);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Featured Article */
.featured-section {
    padding: 80px 0 40px;
    background: white;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    padding: 16px;
    margin: -16px;
}

.featured-card:hover {
    transform: scale(1.015);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-image-wrapper:hover .featured-image {
    transform: scale(1.05);
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-tag {
    color: #3AAFA9;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.featured-headline {
    font-size: 36px;
    line-height: 1.2;
    color: #1C2937;
    font-weight: 800;
    margin: 0;
}

.featured-headline a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(#1C2937, #1C2937);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.featured-headline a:hover {
    background-size: 100% 2px;
}

.featured-excerpt {
    font-size: 18px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eee;
    object-fit: cover;
}

.author-info div {
    font-size: 14px;
    line-height: 1.4;
}

.author-name {
    font-weight: 700;
    color: #1C2937;
}

.author-role {
    color: #6B7280;
}

/* Article Grid */
.posts-section {
    padding: 40px 0 80px;
    background: #F9FAFB;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #E5E7EB;
    height: 100%;
    cursor: pointer;
}

.post-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.post-image-link {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-tag {
    color: #3AAFA9;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.post-headline {
    font-size: 18px;
    font-weight: 700;
    color: #1C2937;
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.post-excerpt {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-date {
    font-size: 13px;
    color: #9CA3AF;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

/* Media / News Section */
.news-section {
    padding: 80px 0;
    background: white;
}

.section-header-left h2 {
    font-size: 36px;
    color: #1C2937;
    margin-bottom: 40px;
    font-weight: 800;
}

.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.media-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.media-card:hover {
    border-color: #491998;
    transform: translateY(-2px);
}

.media-logo-wrapper {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.media-content {
    flex-grow: 1;
}

.media-title {
    font-size: 18px;
    font-weight: 700;
    color: #1C2937;
    margin-bottom: 8px;
    line-height: 1.4;
    display: block;
}

.media-meta {
    font-size: 14px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.external-icon {
    font-size: 12px;
}

/* Buttons and Loading */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3AAFA9;
    color: #3AAFA9;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: #3AAFA9;
    color: white;
}

.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Skeletons */
.skeleton-featured {
    width: 100%;
    height: 400px;
    background: #eee;
    border-radius: 16px;
}

.skeleton-card {
    height: 350px;
    background: #eee;
    border-radius: 12px;
}

.pulse {
    animation: pulse-bg 1.5s infinite;
}

@keyframes pulse-bg {
    0% {
        background-color: #eee;
    }

    50% {
        background-color: #e0e0e0;
    }

    100% {
        background-color: #eee;
    }
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner.active {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-delay-0 {
    animation-delay: 0s;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

.fade-in-delay-4 {
    animation-delay: 0.4s;
}

.fade-in-delay-5 {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .insights-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .insights-hero {
        padding: 100px 24px 60px;
    }

    .insights-hero h1 {
        font-size: 36px;
    }

    .featured-section {
        padding: 40px 0;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .media-logo-wrapper {
        width: 100px;
        justify-content: flex-start;
    }

    .featured-image-wrapper {
        aspect-ratio: 4/3;
    }
}