/* Magazine */

.magazine-page {
    background: var(--bg-light);
}

.magazine-hero {
    position: relative;
    padding: 110px 0 120px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, .22), transparent 30%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #0369a1 100%);
    color: #fff;
}

.magazine-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -240px;
    border: 70px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
}

.magazine-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    background: rgba(255, 255, 255, .1);
    font-size: .9rem;
}

.magazine-title {
    max-width: 720px;
    margin-bottom: 22px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.35;
}

.magazine-title span {
    display: block;
    color: #7dd3fc;
}

.magazine-description {
    max-width: 620px;
    margin-bottom: 32px;
    color: #dbeafe;
    font-size: 1.05rem;
    line-height: 2.1;
}

.magazine-cover {
    position: relative;
    min-height: 390px;
    padding: 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 28px;
    background: linear-gradient(145deg, #f8fafc, #bfdbfe);
    color: var(--text-dark);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
    transform: rotate(3deg);
}

.cover-content {
    position: relative;
    z-index: 2;
    max-width: 280px;
}

.cover-content span {
    color: var(--primary-color);
    font-size: .9rem;
    font-weight: 800;
}

.cover-content h2 {
    margin: 35px 0 15px;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.5;
}

.cover-content p {
    color: #475569;
    line-height: 1.9;
}

.cover-content small {
    color: #64748b;
}

.cover-line {
    width: 70px;
    height: 5px;
    margin: 24px 0;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cover-shape {
    position: absolute;
    border-radius: 50%;
    opacity: .75;
}

.cover-shape-one {
    width: 280px;
    height: 280px;
    top: -120px;
    left: -100px;
    background: #a5b4fc;
}

.cover-shape-two {
    width: 210px;
    height: 210px;
    right: -70px;
    bottom: -75px;
    background: #67e8f9;
}

.magazine-categories {
    background: var(--bg-light);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 19px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    color: #475569;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}

.category-chip:hover,
.category-chip.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: .85rem;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
}

.view-all,
.read-more {
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: none;
}

.view-all i,
.read-more i {
    margin-right: 6px;
    transition: .3s ease;
}

.view-all:hover i,
.read-more:hover i {
    transform: translateX(-5px);
}

.featured-card {
    overflow: hidden;
}

.featured-image {
    position: relative;
    min-height: 360px;
    background:
        linear-gradient(135deg, rgba(30, 27, 75, .2), rgba(14, 165, 233, .75)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1000&q=85")
        center/cover;
}

.image-overlay {
    position: absolute;
    right: 25px;
    top: 25px;
}

.article-category {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 30px;
    background: #fff;
    color: var(--primary-color);
    font-size: .78rem;
    font-weight: 800;
}

.featured-content {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
}

.featured-content h3 {
    margin: 20px 0 15px;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.7;
}

.featured-content p,
.article-body p {
    color: #64748b;
    line-height: 2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #94a3b8;
    font-size: .78rem;
}

.article-meta i {
    margin-left: 4px;
}

.article-image {
    position: relative;
    height: 210px;
    padding: 20px;
    background-position: center;
    background-size: cover;
}

.article-image-one {
    background-image:
        linear-gradient(135deg, rgba(79, 70, 229, .2), rgba(14, 165, 233, .6)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=800&q=80");
}

.article-image-two {
    background-image:
        linear-gradient(135deg, rgba(14, 116, 144, .2), rgba(14, 165, 233, .65)),
        url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=800&q=80");
}

.article-image-three {
    background-image:
        linear-gradient(135deg, rgba(30, 27, 75, .2), rgba(79, 70, 229, .65)),
        url("https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=800&q=80");
}

.article-body {
    padding: 25px;
}

.article-body h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.7;
}

.article-body p {
    min-height: 64px;
    font-size: .9rem;
}

.newsletter-section {
    background: var(--bg-light);
}

.newsletter-card {
    position: relative;
    overflow: hidden;
    padding: 48px;
    border-radius: 25px;
    background: linear-gradient(135deg, #312e81, #0369a1);
    color: #fff;
}

.newsletter-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -100px;
    bottom: -150px;
    border: 45px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.newsletter-card h2 {
    margin-bottom: 14px;
    font-weight: 900;
}

.newsletter-card p {
    color: #dbeafe;
    line-height: 2;
}

.light-label {
    color: #bae6fd;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.newsletter-form .form-control {
    min-height: 52px;
    border: 0;
    border-radius: 50px;
    padding: 0 22px;
}

.newsletter-form .btn {
    white-space: nowrap;
    color: var(--primary-color);
}

.newsletter-card small {
    color: #bae6fd;
}

@media (max-width: 767px) {
    .magazine-hero {
        padding: 75px 0 90px;
    }

    .magazine-cover {
        min-height: 330px;
        transform: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-content {
        padding: 28px;
    }

    .newsletter-card {
        padding: 30px 22px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}
