/* =========================
   HERO SECTION
========================= */

.hero-section {
    padding: 10px;
    background: #f5f7fb;
}

.hero-container {
    max-width: 1800px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.2fr 300px 1fr;

    gap: 15px;
    align-items: stretch;
}

.hero-box {
    border-radius: 15px;
    overflow: hidden;
}

/* =========================
   HERO CONTENT
========================= */

.hero-content {
    display: flex;
    flex-direction: column;

    padding: 24px;

    background: #ffffff;
    min-height: 650px;
}

.hero-content h1 {
    margin-bottom: 16px;

    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 800;

    background: linear-gradient(
        90deg,
        #0066ff,
        #00bfff
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-intro {
    margin-bottom: 24px;

    font-size: 18px;
    line-height: 1.7;

    color: #4d4d4d;
}

/* =========================
   FEATURE GRID
========================= */

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 28px;
}

/* =========================
   FEATURE CARD
========================= */

.feature-card {
    padding: 28px;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06);
}

/* =========================
   FEATURE HEADING
========================= */

.feature-heading {
    display: flex;
    align-items: center;

    gap: 14px;
    margin-bottom: 16px;
}

/* =========================
   FEATURE ICON
========================= */

.feature-icon {
    font-size: 22px;
    line-height: 1;

    color: #0070f3;
}

/* =========================
   FEATURE TITLE
========================= */

.feature-heading h2 {
    margin: 0;

    font-size: 22px;
    font-weight: 700;

    color: #111111;
}

/* =========================
   FEATURE DESCRIPTION
========================= */

.feature-card p {
    margin: 0;

    font-size: 16px;
    line-height: 1.8;

    color: #667085;
}

/* =========================
   BUTTON
========================= */

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    align-self: flex-start;

    margin-top: auto;
    padding: 14px 40px;

    border-radius: 999px;

    background: #0070f3;
    color: #ffffff;

    font-size: 17px;
    font-weight: 600;

    text-decoration: none;

    box-shadow:
        0 10px 25px rgba(0, 112, 243, 0.2);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(0, 112, 243, 0.25);
}

/* =========================
   ADS
========================= */

.hero-ads {
    width: 300px;
}

.ads-placeholder {
    width: 100%;
    height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    background: #dfe6f3;

    font-size: 22px;
    font-weight: 700;

    color: #555555;
}

/* =========================
   HERO IMAGE
========================= */

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f7fb;
}

.hero-image img {
    width: 100%;
    max-height: 650px;

    object-fit: contain;
    display: block;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1200px) {

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        min-height: auto;
    }

    .hero-ads {
        width: 100%;
    }

    .ads-placeholder {
        height: 250px;
    }

    .hero-image img {
        max-height: 500px;
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .hero-section {
        padding: 16px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        min-height: auto;
        padding: 28px 22px;
    }

    .hero-content h1 {
        font-size: 42px;
        line-height: 1.1;
    }

    .hero-intro {
        font-size: 16px;
        line-height: 1.7;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 22px;
    }

    .feature-heading h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 15px;
    }

    .hero-button {
        width: 100%;
        margin-top: 12px;
    }

    /* =========================
       HIDE ELEMENTS MOBILE
    ========================= */

    .hero-ads,
    .hero-image {
        display: none;
    }

}
/* =========================
   SEARCH SECTION
========================= */

.search-section {
    padding: 20px 10px 30px;
    background:
        linear-gradient(
            90deg,
            #161b22,
            #111827
        );
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 30px;
    align-items: center;
}

/* =========================
   SEARCH HEADING
========================= */

.search-heading h2 {
    margin-bottom: 10px;
    font-size: 35px;
    font-weight: 800;
    color: #ffffff;
}

.search-heading p {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
    color: #94a3b8;
}

/* =========================
   SEARCH FORM
========================= */
.search-form {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);
}

.search-field {
    flex: 1;
    height: 60px;
    border: none;
    outline: none;
    padding: 0 28px;
    font-size: 18px;
    background: transparent;
}

.search-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    height: 60px;
    padding: 0 36px;
    background: #0070f3;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.search-submit:hover {
    background: #0059c9;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .search-container {
        grid-template-columns: 1fr;
    }

    .search-heading {
        text-align: center;
    }

}

@media (max-width: 768px) {

    .search-heading h2 {
        font-size: 32px;
    }

    .search-heading p {
        font-size: 18px;
    }

    .search-form {
        flex-direction: column;

        border-radius: 24px;
    }

    .search-field {
        width: 100%;
    }

    .search-submit {
        width: 100%;
        justify-content: center;
    }

}
/* =========================
   SECTION
========================= */

.latest-posts-section {
    padding: 40px 20px;
    background: #f8fafc;
}

/* =========================
   CONTAINER
========================= */

.latest-posts-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================
   HEADING
========================= */

.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin: 0;

    font-size: clamp(38px, 5vw, 52px);
    font-weight: 800;

    color: #111827;
}

/* =========================
   GRID
========================= */

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 20px;
}

/* =========================
   CARD
========================= */

.post-card {
    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    background: #ffffff;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.post-card:hover {
    transform: translateY(-6px);

    border-color: #0070f3;

    box-shadow:
        0 18px 35px rgba(0, 112, 243, 0.12);
}

/* =========================
   IMAGE
========================= */

.post-thumbnail {
    display: block;

    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    will-change: transform;

    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.06);
}
/* =========================
   CONTENT
========================= */

.post-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    padding: 24px;
}

/* =========================
   CATEGORY
========================= */

.post-category {
    display: inline-flex;
    align-self: flex-start;

    margin-bottom: 16px;
    padding: 6px 12px;

    border-radius: 999px;

    background: #eef4ff;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    color: #0070f3;
}

/* =========================
   TITLE
========================= */

.post-title {
    margin: 0 0 14px;

    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
}

.post-title a {
    color: #111827;
    text-decoration: none;

    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #0070f3;
}

/* =========================
   EXCERPT
========================= */

.post-excerpt {
    margin-bottom: 22px;

    font-size: 15px;
    line-height: 1.8;

    color: #6b7280;
}

/* =========================
   READ MORE
========================= */

.read-more {
    margin-top: auto;

    font-size: 14px;
    font-weight: 700;

    color: #0070f3;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* =========================
   FOOTER BUTTON
========================= */

.latest-posts-footer {
    display: flex;
    justify-content: center;

    margin-top: 36px;
}

.latest-posts-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 34px;

    border-radius: 999px;

    background: #0070f3;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    box-shadow:
        0 10px 25px rgba(0, 112, 243, 0.18);
}

.latest-posts-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 35px rgba(0, 112, 243, 0.25);
}

/* =========================
   TABLET
========================= */

@media (max-width: 1200px) {

    .latest-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .latest-posts-section {
        padding: 50px 16px;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .section-heading h2 {
        font-size: 36px;
    }

    /*
    =========================
    MOBILE GRID
    =========================
    */

    .latest-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /*
    =========================
    CARD MOTION
    =========================
    */

    .post-card {
        animation:
            mobileFadeUp 0.7s ease both;
    }

    /*
    =========================
    STAGGER EFFECT
    =========================
    */

    .post-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .post-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .post-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .post-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 20px;
    }

    .post-excerpt {
        font-size: 14px;
        line-height: 1.7;
    }

    .latest-posts-button {
        width: 100%;
    }

}

/* =========================
   MOBILE FADE UP
========================= */

@keyframes mobileFadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

}
/* =========================================================
   SUBSCRIBE SECTION
========================================================= */

.subscribe-section {
    background: #ffffff;
    padding: 40px 0;
    color: #1e293b;
}

.subscribe-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    align-items: start;
}

/* =========================================================
   LEFT CARD (MAILPOET)
========================================================= */

.subscribe-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* =========================================================
   RIGHT CARD (EDITOR PICKS)
========================================================= */

.editor-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* =========================================================
   HEADING
========================================================= */

.editor-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.editor-heading h2 {
    color: #0f172a;
    font-size: 24px;
    margin: 0;
    line-height: 1.3;
}

.editor-heading a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.editor-heading a:hover,
.editor-heading a:focus {
    color: #1d4ed8;
}

/* =========================================================
   EDITOR LIST
========================================================= */

.editor-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* =========================================================
   ITEM
========================================================= */

.editor-item {
    display: flex;
    gap: 16px;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.25s ease;
    padding: 10px;
}

.editor-item:hover {
    background: #f8fafc;
}

/* =========================================================
   THUMB
========================================================= */

.editor-thumb {
    flex-shrink: 0;
    width: 110px;
}

.editor-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* =========================================================
   CONTENT
========================================================= */

.editor-content {
    flex: 1;
}

/* =========================================================
   CATEGORY BADGE
========================================================= */

.post-category {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    line-height: 1.4;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* =========================================================
   TITLE
========================================================= */

.editor-content h3 {
    color: #0f172a;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    transition: color 0.25s ease;
}

.editor-item:hover .editor-content h3 {
    color: #2563eb;
}

/* =========================================================
   MAILPOET
========================================================= */

.mailpoet_form {
    color: #334155;
}

.mailpoet_form p,
.mailpoet_form span,
.mailpoet_form label,
.mailpoet_form div {
    color: #ffffff;
    line-height: 1.7;
}

/* =========================================================
   MAILPOET LINKS
========================================================= */

.mailpoet_form a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mailpoet_form a:hover,
.mailpoet_form a:focus {
    color: #1d4ed8;
}

/* =========================================================
   INPUT
========================================================= */

.mailpoet_form input[type="email"] {
    width: 100%;
    background: #ffffff;
    color: #111827;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
}

.mailpoet_form input[type="email"]::placeholder {
    color: #64748b;
}

/* =========================================================
   BUTTON
========================================================= */

.mailpoet_form input[type="submit"],
.mailpoet_form button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease;
}

.mailpoet_form input[type="submit"]:hover,
.mailpoet_form button:hover {
    background: #1d4ed8;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 992px) {

    .subscribe-wrapper {
        grid-template-columns: 1fr;
    }

    .editor-thumb {
        width: 90px;
    }

    .editor-thumb img {
        height: 70px;
    }

    .editor-content h3 {
        font-size: 15px;
    }
}
/* =========================
   CATEGORY SECTION
========================= */

.category-section {
    padding: 15px 20px;
}

/* =========================
   WRAPPER
========================= */

.category-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* =========================
   SECTION HEADING
========================= */

.section-heading {
    margin-bottom: 30px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 10px;

    font-size: 42px;
    font-weight: 800;

    color: #111111;
}

.section-heading p {
    font-size: 17px;
    color: #667085;
}

/* =========================
   GRID
========================= */

.category-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 18px;
}
/* =========================
   TITLE
========================= */

.category-card span {
    font-size: 17px;
    font-weight: 700;

    color: #111111;

    line-height: 1.4;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

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

}

@media (max-width: 768px) {

    .category-section {
        padding: 60px 20px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

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

}

@media (max-width: 520px) {

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

}
/* =========================
   CATEGORY CARD
========================= */

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 20px 24px;

    border-radius: 18px;
    border: 1px solid #e5e7eb;

    background: #ffffff;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-3px);

    border-color: #0070f3;

    background: #f8fbff;

    box-shadow:
        0 10px 24px rgba(0, 112, 243, 0.08);
}

/* =========================
   ICON
========================= */

.category-card i {
    font-size: 20px;
    color: #0070f3;

    width: 22px;

    text-align: center;

    flex-shrink: 0;
}

/* =========================
   TITLE
========================= */

.category-card span {
    font-size: 18px;
    font-weight: 700;

    color: #111111;

    line-height: 1.3;
}
/* =========================
   PRE FOOTER
========================= */

.prefooter-section {

    background: #020617;
    padding:
        50px 24px 30px;
    margin-top: 10px;
    border-top:
        1px solid rgba(255,255,255,0.06);
}

/* =========================
   CONTAINER
========================= */

.prefooter-container {

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.2fr
        0.9fr
        0.9fr
        0.9fr;

    gap: 20px;
}

/* =========================
   COLUMN
========================= */

.prefooter-column h4 {

    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.prefooter-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prefooter-column ul li {
    margin-bottom: 16px;
    color: #cbd5e1;
    font-size: 15px;
}

.prefooter-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition:
        color 0.3s ease;
}

.prefooter-column ul li a:hover {

    color: #1d4ed8;
}

/* =========================
   ABOUT
========================= */

.prefooter-about p {
    color: #94a3b8;
    line-height: 1.8;
    margin-top: 24px;
}

/* =========================
   LOGO
========================= */

.prefooter-logo {

    display: flex;
    align-items: center;
    gap: 14px;
}

.prefooter-logo img {

    width: 48px;
    height: auto;
}

.prefooter-logo h3 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

/* =========================
   SOCIAL
========================= */

.prefooter-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.prefooter-social a {

    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background:
        rgba(255,255,255,0.06);
    color: #ffffff;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.prefooter-social a:hover {
    transform: translateY(-3px);
    background: #1d4ed8;
}

.prefooter-social i {
    font-size: 16px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
    .prefooter-container {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .prefooter-section {
        padding:
            70px 20px
            50px;
    }
    .prefooter-container {

        grid-template-columns:
            1fr;
        gap: 40px;
    }
    .prefooter-logo h3 {

        font-size: 24px;
    }
}