/* Knowledge Hub Landing Page Styles */

/* ===============================
   LANDING HERO SECTION
   =============================== */
.landing-hero-section {
    background: #0057C2;
    width: 100%;
    padding: 120px 0 80px 0;
    margin: 0;
    border-radius: 0 0 2.4rem 2.4rem;
}

.landing-hero-container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.landing-hero-content {
    flex: 1;
    max-width: 80%;
}

.landing-hero-section .geico-icon {
    color: #c8f546;
}

.landing-hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.landing-hero-content .landing-hero-icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 10px;
    display: block;
    transform: scaleY(-1);
}

.landing-hero-description {
    font-size: 1.8rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

/* Editorial Guidelines Link Styling - Match Category Page */
.editorial-guidelines-link {
    display: inline-flex;
    color: #ffffff;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: text-decoration 0.2s;
    gap: 0.5em;
    position: relative;
}

.editorial-guidelines-link:hover,
.editorial-guidelines-link:focus,
.editorial-guidelines-link:visited {
    color: #ffffff;
}

.editorial-guidelines-link:hover::before,
.editorial-guidelines-link:focus::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 24rem;
    height: 1px;
    background-color: #ffffff;
}

.editorial-guidelines-link .icon-arrow-right {
    color: #fff !important;
    fill: #fff !important;
    font-size: 1.5rem;
    margin-left: 0.25em;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
}

.landing-hero-images {
    flex: 1;
    display: flex;
    gap: 0;
    align-items: flex-start;
    max-width: 50%;
    position: relative;
    justify-content: flex-end;
    min-height: 340px;
}

.hero-image-main {
    flex-shrink: 0;
    width: 535px;
    aspect-ratio: 4 / 3;
    height: auto;
    background: #8b8b8b;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.hero-image-placeholder {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

/* ===============================
   FEATURED ARTICLES SECTION (Read Latest Articles)
   =============================== */
.featured-articles-section {
    width: 100%;
    padding: 60px 0 80px 0;
    background: #f8f8f8;
}

.featured-articles-container {
    width: 100%;
    max-width: 101.7rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-articles-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 40px 0;
    text-align: left;
}

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

.featured-article-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #e0e0e0;
}

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

.featured-article-card:hover .featured-article-image img {
    transform: scale(1.05);
}

.featured-article-content {
    padding: 24px 24px 16px 24px;
    flex: 1;
}

.featured-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.featured-article-author {
    font-size: 1.4rem;
    color: #666666;
    margin: 0;
}

.featured-article-cta {
    padding: 0 24px 24px 24px;
    background: #002952;
    border-radius: 0 0 8px 8px;
}

/* ===============================
   PAGINATION (Shared)
   =============================== */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000000;
    font-size: 1.6rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-circle:hover:not(.pagination-disabled):not(.pagination-current) {
    border-color: #003d82;
    background: #f0f0f0;
    color: #000000;
}

.pagination-circle.pagination-current {
    background: #333333;
    border-color: #333333;
    color: #ffffff !important;
    cursor: default;
}

.pagination-circle.pagination-disabled {
    border-color: #e8e8e8;
    background: #f8f8f8;
    color: #cccccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-circle svg {
    width: 20px;
    height: 20px;
}

.pagination-info {
    font-size: 1.4rem;
    color: #666666;
    margin: 0;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */
@media (min-width: 768px) {

    .landing-hero-container,
    .featured-articles-container {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {

    .landing-hero-container,
    .featured-articles-container {
        padding: 0 3rem;
    }

    .landing-hero-section {
        padding: 120px 0 80px 0;
    }

    .landing-hero-title {
        font-size: 5rem;
    }

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

    .section-spacing {
        margin-bottom: 60px;
    }
}

/* Mobile and Tablet */
@media (max-width: 1023px) {
    .landing-hero-container {
        gap: 40px;
    }

    .landing-hero-title {
        font-size: 3.6rem;
    }

    .hero-image-main {
        width: 380px;
    }

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

    .section-spacing {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .landing-hero-section {
        padding: 80px 0 60px 0;
    }

    .landing-hero-container {
        flex-direction: column;
        gap: 32px;
        padding: 0 2rem;
    }

    .landing-hero-content,
    .landing-hero-images {
        max-width: 100%;
    }

    .landing-hero-images {
        justify-content: center;
    }

    .hero-image-main {
        width: 100%;
        max-width: 400px;
        aspect-ratio: 4 / 3;
        height: auto;
        border-radius: 20px;
    }

    .landing-hero-title {
        font-size: 3.2rem;
    }

    .landing-hero-description {
        font-size: 1.6rem;
    }

    .editorial-guidelines-link {
        font-size: 1.4rem;
    }

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

    .featured-articles-title {
        font-size: 2.8rem;
        margin-bottom: 30px;
    }

    .featured-articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-spacing {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .landing-hero-section {
        padding: 60px 0;
    }

    .landing-hero-container,
    .featured-articles-container {
        padding: 0 2rem;
    }

    .hero-image-main {
        width: 100%;
        max-width: 320px;
        aspect-ratio: 4 / 3;
        height: auto;
        border-radius: 16px;
    }

    .landing-hero-title {
        font-size: 2.8rem;
    }

    .landing-hero-description {
        font-size: 1.5rem;
    }

    .featured-articles-title {
        font-size: 2.4rem;
    }

    .pagination-circle {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .section-spacing {
        margin-bottom: 10px;
    }
}

/* ===============================
   DARK MODE STYLES
   =============================== */
.dark .featured-articles-section {
    background: #1C1C1E;
}

.dark .featured-articles-title {
    color: #FEFEFE;
}

.dark .featured-article-card {
    background: #2C2C2E;
}

.dark .featured-article-title {
    color: #FEFEFE;
}

.dark .featured-article-author {
    color: #999999;
}

.dark .featured-article-image {
    background: #3C3C3E;
}

.dark .featured-article-cta {
    background: #1A5DBE;
}

.dark .pagination-info {
    color: #FEFEFE !important;
}