/* =========================================================
   TUTORIAL PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.tutorial-hero {
    padding: 72px 0 68px;
    background: #f7f8fc;
    border-bottom: 1px solid #e6e9f2;
}

.tutorial-hero-content {
    max-width: 780px;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #315eea;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tutorial-hero h1 {
    margin: 0;
    color: #15182b;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.tutorial-hero p {
    max-width: 680px;
    margin: 20px 0 0;
    color: #68708a;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    margin: 0;
    color: #15182b;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
}

.section-heading p {
    margin: 10px 0 0;
    color: #68708a;
    font-size: 16px;
}


/* =========================================================
   CATEGORIES
========================================================= */

.tutorial-categories {
    padding: 80px 0;
    background: #ffffff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.category-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #cdd5f5;
    box-shadow: 0 14px 35px rgba(20, 30, 70, 0.08);
}

.category-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eef2ff;
    color: #315eea;

    font-size: 20px;
    font-weight: 700;
}

.category-content {
    min-width: 0;
}

.category-content h3 {
    margin: 0;
    color: #15182b;
    font-size: 20px;
    line-height: 1.3;
}

.category-content p {
    margin: 10px 0 16px;
    color: #68708a;
    font-size: 14px;
    line-height: 1.6;
}

.category-link {
    color: #315eea;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   LATEST TUTORIALS
========================================================= */

.latest-tutorials {
    padding: 80px 0;
    background: #f7f8fc;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.view-all {
    flex-shrink: 0;
    color: #315eea;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   TUTORIAL GRID
========================================================= */

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tutorial-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6e9f2;
    border-radius: 14px;
}

.tutorial-image,
.tutorial-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tutorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tutorial-card:hover .tutorial-image img {
    transform: scale(1.04);
}

.tutorial-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #101a4a;
    color: #ffffff;

    font-size: 42px;
    font-weight: 700;
}

.tutorial-card-content {
    padding: 24px;
}

.tutorial-category {
    display: block;
    margin-bottom: 10px;
    color: #315eea;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tutorial-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.35;
}

.tutorial-card h3 a {
    color: #15182b;
}

.tutorial-card h3 a:hover {
    color: #315eea;
}

.tutorial-card p {
    margin: 12px 0 18px;
    color: #68708a;
    font-size: 14px;
    line-height: 1.65;
}

.read-more {
    color: #315eea;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   CTA
========================================================= */

.tutorial-cta {
    padding: 70px 0;
    background: #ffffff;
}

.tutorial-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding: 44px;
    border-radius: 16px;
    background: #101a4a;
}

.tutorial-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.tutorial-cta p {
    max-width: 600px;
    margin: 12px 0 0;
    color: #b8c4e8;
    font-size: 16px;
    line-height: 1.6;
}

.tutorial-cta .section-label {
    color: #8fa7ff;
}

.cta-button {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 22px;

    border-radius: 8px;

    background: #315eea;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
}

.cta-button:hover {
    background: #2447c4;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .tutorial-hero {
        padding: 52px 0 48px;
    }

    .tutorial-categories,
    .latest-tutorials {
        padding: 60px 0;
    }

    .category-grid,
    .tutorial-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading-row {
        display: block;
    }

    .view-all {
        display: inline-block;
        margin-top: 18px;
    }

    .tutorial-cta {
        padding: 50px 0;
    }

    .tutorial-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 28px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 430px) {

    .tutorial-hero {
        padding: 44px 0;
    }

    .category-card {
        padding: 22px;
        gap: 15px;
    }

    .category-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 18px;
    }

    .category-content h3 {
        font-size: 18px;
    }

    .tutorial-card-content {
        padding: 20px;
    }

}