/* =========================================================
   BETRACOM
   BERITA & ARTIKEL TRAINING
========================================================= */

:root {

    --bt-navy: #071d36;
    --bt-navy-dark: #041426;
    --bt-navy-light: #0c3155;

    --bt-blue: #0b5ea8;
    --bt-blue-light: #eaf4fc;

    --bt-white: #ffffff;
    --bt-bg: #f5f8fb;

    --bt-text: #172b3f;
    --bt-muted: #6c7c8d;

    --bt-border: #e1e8ef;

    --bt-shadow:
        0 18px 45px rgba(7, 29, 54, 0.08);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    color: var(--bt-text);

    background: var(--bt-bg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}


/* =========================================================
   SECTION
========================================================= */

.bt-news-section {

    position: relative;

    padding:
        95px 0
        100px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f5f8fb 100%
        );

    overflow: hidden;
}


/* Background decoration */

.bt-news-section::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -280px;
    right: -180px;

    border-radius: 50%;

    border:
        1px solid
        rgba(7, 29, 54, 0.06);

    pointer-events: none;
}


.bt-news-section::after {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    bottom: -220px;
    left: -180px;

    border-radius: 50%;

    border:
        1px solid
        rgba(7, 29, 54, 0.05);

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.bt-news-container {

    position: relative;

    z-index: 2;

    width:
        min(
            calc(100% - 48px),
            1200px
        );

    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.bt-news-heading {

    max-width: 760px;

    margin:
        0 auto
        55px;

    text-align: center;
}


.bt-news-label {

    display: inline-flex;

    align-items: center;

    margin-bottom: 15px;

    padding:
        8px 16px;

    border:
        1px solid
        #d5e2ee;

    border-radius: 50px;

    background:
        #f1f6fa;

    color:
        var(--bt-blue);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


.bt-news-heading h1 {

    margin: 0 0 16px;

    color:
        var(--bt-navy);

    font-size:
        clamp(34px, 4vw, 52px);

    line-height: 1.15;

    letter-spacing: -1.4px;

    font-weight: 800;
}


.bt-news-heading p {

    margin: 0;

    color:
        var(--bt-muted);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   GRID
========================================================= */

.bt-news-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   CARD LINK
========================================================= */

.bt-news-card-link {

    display: block;

    min-width: 0;

    color: inherit;

    text-decoration: none;
}


.bt-news-card-link:hover,
.bt-news-card-link:focus,
.bt-news-card-link:active {

    color: inherit;

    text-decoration: none;
}


/* =========================================================
   CARD
========================================================= */

.bt-news-card {

    height: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        var(--bt-border);

    border-radius: 20px;

    background:
        var(--bt-white);

    box-shadow:
        0 10px 30px
        rgba(7, 29, 54, 0.045);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}


.bt-news-card-link:hover .bt-news-card {

    transform:
        translateY(-8px);

    border-color:
        #cbd9e5;

    box-shadow:
        var(--bt-shadow);
}


/* Keyboard accessibility */

.bt-news-card-link:focus-visible {

    outline:
        3px solid
        var(--bt-blue);

    outline-offset: 5px;

    border-radius: 20px;
}


/* =========================================================
   IMAGE
========================================================= */

.bt-news-image {

    position: relative;

    height: 245px;

    overflow: hidden;

    background:
        var(--bt-navy);
}


.bt-news-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .6s ease;
}


.bt-news-card-link:hover
.bt-news-image img {

    transform:
        scale(1.07);
}


/* =========================================================
   CATEGORY
========================================================= */

.bt-news-category {

    position: absolute;

    top: 18px;
    left: 18px;

    padding:
        7px 12px;

    border-radius: 50px;

    background:
        var(--bt-navy);

    color:
        #ffffff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

    box-shadow:
        0 5px 15px
        rgba(0,0,0,.18);
}


/* =========================================================
   CONTENT
========================================================= */

.bt-news-content {

    flex: 1;

    display: flex;

    flex-direction: column;

    padding:
        25px 25px 21px;
}


/* =========================================================
   META
========================================================= */

.bt-news-meta {

    margin-bottom: 13px;
}


.bt-news-meta span {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        var(--bt-muted);

    font-size: 12px;

    font-weight: 600;
}


.bt-news-meta svg {

    width: 15px;
    height: 15px;

    fill: none;

    stroke:
        var(--bt-blue);

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


/* =========================================================
   TITLE
========================================================= */

.bt-news-content h2 {

    margin:
        0 0 13px;

    color:
        var(--bt-navy);

    font-size: 21px;

    line-height: 1.4;

    letter-spacing: -.3px;

    font-weight: 750;

    transition:
        color .3s ease;
}


.bt-news-card-link:hover
.bt-news-content h2 {

    color:
        var(--bt-blue);
}


/* =========================================================
   DESCRIPTION
========================================================= */

.bt-news-content p {

    margin:
        0;

    color:
        var(--bt-muted);

    font-size: 14px;

    line-height: 1.75;
}


/* =========================================================
   FOOTER CARD
========================================================= */

.bt-news-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 20px;

    border-top:
        1px solid
        var(--bt-border);
}


/* =========================================================
   AUTHOR
========================================================= */

.bt-news-author {

    display: flex;

    align-items: center;

    gap: 9px;
}


.bt-author-icon {

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--bt-blue-light);
}


.bt-author-icon svg {

    width: 17px;
    height: 17px;

    fill: none;

    stroke:
        var(--bt-blue);

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.bt-news-author span {

    color:
        var(--bt-navy);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   ARROW
========================================================= */

.bt-news-arrow {

    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--bt-navy);

    color:
        #ffffff;

    font-size: 18px;

    transition:
        transform .3s ease,
        background .3s ease;
}


.bt-news-card-link:hover
.bt-news-arrow {

    transform:
        translateX(5px);

    background:
        var(--bt-blue);
}


/* =========================================================
   ARTICLE PAGINATION
========================================================= */

.bt-news-pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

    margin-top: 50px;
}


/* =========================================================
   PREVIOUS ARTICLE
========================================================= */

.bt-prev-article {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    min-width: 210px;

    padding:
        14px 22px;

    border:
        1px solid
        var(--bt-navy);

    border-radius: 10px;

    background:
        var(--bt-navy);

    color:
        #ffffff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        all .3s ease;
}


.bt-prev-article:hover {

    background:
        #ffffff;

    color:
        var(--bt-navy);

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 25px
        rgba(7,29,54,.10);
}


.bt-prev-article svg {

    width: 19px;

    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition:
        transform .3s ease;
}


.bt-prev-article:hover svg {

    transform:
        translateX(-5px);
}


/* =========================================================
   NEXT ARTICLE
========================================================= */

.bt-next-article {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    min-width: 210px;

    padding:
        14px 22px;

    border:
        1px solid
        var(--bt-navy);

    border-radius: 10px;

    background:
        var(--bt-navy);

    color:
        #ffffff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        all .3s ease;
}


.bt-next-article:hover {

    background:
        #ffffff;

    color:
        var(--bt-navy);

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 25px
        rgba(7,29,54,.10);
}


.bt-next-article svg {

    width: 19px;

    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition:
        transform .3s ease;
}


.bt-next-article:hover svg {

    transform:
        translateX(5px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .bt-news-pagination {

        flex-direction: column;

        gap: 14px;

    }


    .bt-prev-article,
    .bt-next-article {

        width: 100%;

        max-width: 320px;

        min-width: 0;

    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .bt-news-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .bt-news-section {

        padding:
            65px 0
            70px;

    }


    .bt-news-container {

        width:
            calc(100% - 30px);

    }


    .bt-news-heading {

        margin-bottom: 38px;

    }


    .bt-news-heading h1 {

        font-size: 34px;

        letter-spacing: -1px;

    }


    .bt-news-heading p {

        font-size: 15px;

    }


    .bt-news-grid {

        grid-template-columns:
            1fr;

        gap: 20px;

    }


    .bt-news-image {

        height: 230px;

    }


    .bt-news-content {

        padding:
            22px 20px 19px;

    }


    .bt-news-content h2 {

        font-size: 20px;

    }


    .bt-news-content p {

        font-size: 14px;

    }


    .bt-news-pagination {

        margin-top: 35px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .bt-news-heading h1 {

        font-size: 30px;

    }


    .bt-news-image {

        height: 210px;

    }

}

