/* =========================================================
   GOLDEN STAR DRIVING SCHOOL
   BLOG STYLES
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #123b68;
    --primary-dark: #082d52;

    --yellow: #f8bd22;
    --yellow-dark: #e4a900;

    --text: #172536;
    --text-light: #667085;

    --white: #ffffff;

    --background: #f7f9fc;
    --border: #e5eaf0;

    --radius: 12px;

    --shadow:
        0 12px 35px rgba(18, 59, 104, 0.08);

    --container: 1200px;

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: "DM Sans", sans-serif;

    color: var(--text);

    background: var(--white);

    line-height: 1.7;

}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

.container {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;

}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {

    font-family: "Manrope", sans-serif;

    color: var(--primary);

    line-height: 1.2;

}

h1 {
    font-size: clamp(38px, 5vw, 64px);
}

h2 {
    font-size: clamp(30px, 4vw, 46px);
}

h3 {
    font-size: 23px;
}




/* =========================================================
   TOP BAR
========================================================= */

.topbar {

    background: var(--primary);

    color: white;

    font-size: 13px;

}

.topbar-inner {

    min-height: 46px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}

.topbar-location,
.topbar-contact {

    display: flex;

    align-items: center;

    gap: 18px;

}

.topbar i {

    color: var(--yellow);

    margin-right: 5px;

}

.topbar a {

    color: white;

    transition: .2s;

}

.topbar a:hover {
    color: var(--yellow);
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    background: white;

    border-bottom: 1px solid var(--border);

}

.nav-inner {

    min-height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}

.logo img {

    width: 175px;

    height: auto;

}

.main-nav {

    display: flex;

    align-items: center;

    gap: 30px;

}

.main-nav a {

    font-size: 15px;

    font-weight: 600;

    color: var(--primary);

    position: relative;

    padding: 33px 0;

}

.main-nav a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 24px;

    width: 0;

    height: 2px;

    background: var(--yellow);

    transition: .25s;

}

.main-nav a:hover::after,
.main-nav a.active::after {

    width: 100%;

}


/* =========================================================
   BUTTONS
========================================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 5px;

    padding: 14px 25px;

    font-size: 14px;

    font-weight: 700;

    transition: .25s;

    cursor: pointer;

}

.btn-primary {

    background: var(--yellow);

    color: var(--primary);

}

.btn-primary:hover {

    background: var(--yellow-dark);

    transform: translateY(-2px);

}

.btn-yellow {

    background: var(--yellow);

    color: var(--primary);

}

.btn-yellow:hover {

    background: white;

    color: var(--primary);

}


/* =========================================================
   LABEL
========================================================= */

.section-label {

    display: inline-block;

    color: var(--yellow-dark);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1.7px;

    margin-bottom: 13px;

}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {

    position: relative;

    padding: 100px 0 95px;

    background:

        linear-gradient(
            90deg,
            rgba(8,45,82,.96),
            rgba(18,59,104,.86)
        ),

        url("../images/blog-hero.jpg")
        center/cover no-repeat;

    overflow: hidden;

}

.page-hero::after {

    content: "";

    position: absolute;

    right: -150px;
    bottom: -150px;

    width: 400px;
    height: 400px;

    background: var(--yellow);

    opacity: .08;

    border-radius: 50%;

}

.hero-content {

    position: relative;

    z-index: 2;

    max-width: 780px;

}

.page-hero h1 {

    color: white;

    margin-bottom: 20px;

}

.page-hero h1 span {
    color: var(--yellow);
}

.page-hero p {

    color: rgba(255,255,255,.82);

    max-width: 650px;

    font-size: 18px;

}

.breadcrumbs {

    display: flex;

    align-items: center;

    gap: 12px;

    color: rgba(255,255,255,.7);

    font-size: 14px;

    margin-top: 25px;

}

.breadcrumbs a:hover {
    color: var(--yellow);
}


/* =========================================================
   BLOG SECTION
========================================================= */

.blog-section {

    padding: 100px 0;

    background: var(--background);

}

.section-heading {

    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;

}

.section-heading h2 {

    margin-bottom: 18px;

}

.section-heading h2 span {
    color: var(--yellow-dark);
}

.section-heading p {

    font-size: 16px;

}


/* =========================================================
   FEATURED POST
========================================================= */

.featured-post {

    display: grid;

    grid-template-columns: 1.05fr 1fr;

    background: white;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

    margin-bottom: 60px;

}

.featured-image {

    position: relative;

    min-height: 420px;

}

.featured-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

}

.category-badge {

    display: inline-flex;

    align-items: center;

    position: absolute;

    top: 20px;
    left: 20px;

    background: var(--yellow);

    color: #ffffff;

    font-size: 12px;

    font-weight: 800;

    padding: 7px 13px;

    border-radius: 4px;

    z-index: 2;

}

.featured-content {

    padding: 55px;

    display: flex;

    justify-content: center;

    flex-direction: column;

}

.post-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 18px;

    color: #8b96a5;

    font-size: 13px;

    margin-bottom: 18px;

}

.post-meta i {
    color: var(--yellow-dark);
}

.featured-content h2 {

    font-size: 36px;

    margin-bottom: 20px;

}

.featured-content p {

    margin-bottom: 25px;

}

.read-more,
.card-link {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--primary);

    font-weight: 800;

    font-size: 14px;

}

.read-more i,
.card-link i {

    color: var(--yellow-dark);

    transition: .2s;

}

.read-more:hover i,
.card-link:hover i {

    transform: translateX(5px);

}


/* =========================================================
   FILTER
========================================================= */

.blog-filter {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 45px;

}

.filter-btn {

    border: 1px solid var(--border);

    background: white;

    color: var(--primary);

    padding: 10px 20px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s;

}

.filter-btn:hover,
.filter-btn.active {

    background: var(--primary);

    color: white;

    border-color: var(--primary);

}


/* =========================================================
   BLOG GRID
========================================================= */

.blog-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;

}

.blog-card {

    background: white;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow:
        0 5px 25px rgba(18,59,104,.06);

    transition: .3s;

}

.blog-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(18,59,104,.13);

}

.blog-card-image {

    position: relative;

    height: 230px;

    overflow: hidden;

}

.blog-card-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .4s;

}

.blog-card:hover
.blog-card-image img {

    transform: scale(1.05);

}

.blog-card-content {

    padding: 28px;

}

.blog-card-content h3 {

    font-size: 21px;

    margin-bottom: 13px;

}

.blog-card-content p {

    font-size: 14px;

    margin-bottom: 20px;

}


/* =========================================================
   CTA
========================================================= */

.cta-section {

    padding: 80px 0;

}

.cta-box {

    background: var(--primary);

    border-radius: var(--radius);

    padding: 55px 65px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    position: relative;

    overflow: hidden;

}

.cta-box::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -120px;
    top: -120px;

    border: 50px solid rgba(248,189,34,.08);

    border-radius: 50%;

}

.cta-content {

    position: relative;

    z-index: 2;

}

.cta-content h2 {

    color: white;

    margin-bottom: 15px;

}

.cta-content h2 span {
    color: var(--yellow);
}

.cta-content p {

    color: rgba(255,255,255,.7);

}

.cta-box .btn {
    position: relative;
    z-index: 2;
}


/* =========================================================
   ARTICLE HERO
========================================================= */

.article-hero {

    padding: 90px 0;
    /*background: linear-gradient(0deg, #f1f3f4, #dadce0); */
    background-image: url("../img/blog/blog.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;

}

.article-hero .breadcrumbs {

    margin-top: 0;

    margin-bottom: 35px;

}

.article-hero .category-badge {

    position: static;

    margin-bottom: 20px;

}

.article-hero h1 {

    color: #0c2b4b;

    max-width: 850px;



    margin-bottom: 25px;

}

.article-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 25px;

    color: rgb(72 94 118);

    font-size: 14px;

}

.article-meta i {
    color: var(--yellow);
}


/* =========================================================
   ARTICLE LAYOUT
========================================================= */

.article-section {

    padding: 45px 0;

    background: var(--background);

}

.article-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        340px;

    gap: 55px;

    align-items: start;

}

.article-content {

    background: white;
    padding: 0 45px 45px 45px;
   border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.article-cover {

    width: 100%;

    height: 460px;

    object-fit: cover;

    border-radius: 8px;

    margin-bottom: 35px;

}

.article-content > p {

    font-size: 16px;

    margin-bottom: 22px;

}

.article-intro {

    font-size: 19px !important;

    line-height: 1.8;

    color: var(--text) !important;

    font-weight: 500;

}

.article-content h2 {

    font-size: 30px;

    margin-top: 40px;

    margin-bottom: 15px;

}

.article-content ul {

    padding-left: 25px;

    margin: 20px 0;

    color: var(--text-light);

}

.article-content li {

    margin-bottom: 9px;

}


/* =========================================================
   TIP BOX
========================================================= */

.article-tip {

    display: flex;

    gap: 20px;

    padding: 25px;

    background: #fff9e6;

    border-left: 4px solid var(--yellow);

    border-radius: 5px;

    margin: 30px 0;

}

.tip-icon {

    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    border-radius: 50%;

    background: var(--yellow);

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--primary);

}

.article-tip strong {

    color: var(--primary);

}

.article-tip p {

    margin-top: 4px;

}


/* =========================================================
   ARTICLE CTA
========================================================= */

.article-cta {

    margin-top: 50px;

    padding: 35px;

    border-radius: 8px;

    background: var(--primary);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

}

.article-cta h3 {

    color: white;

    margin-bottom: 8px;

}

.article-cta p {

    color: rgba(255,255,255,.7);

    font-size: 14px;

}

.article-cta .section-label {

    margin-bottom: 8px;

}


/* =========================================================
   SHARE
========================================================= */

.article-share {

    display: flex;

    align-items: center;

    gap: 10px;

    border-top: 1px solid var(--border);

    margin-top: 40px;

    padding-top: 25px;

}

.article-share strong {

    margin-right: 10px;

    color: var(--primary);

}

.article-share a {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f0f3f7;

    border-radius: 50%;

    color: var(--primary);

    transition: .2s;

}

.article-share a:hover {

    background: var(--yellow);

}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar-card {

    background: white;

    border-radius: var(--radius);

    padding: 30px;

    box-shadow: var(--shadow);

}

.sidebar-card h3 {

    padding-bottom: 18px;

    margin-bottom: 5px;

    border-bottom: 1px solid var(--border);

}

.sidebar-post {

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 15px;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);

}

.sidebar-post:last-child {

    border-bottom: none;

}

.sidebar-post img {

    width: 80px;
    height: 70px;

    object-fit: cover;

    border-radius: 5px;

}

.sidebar-post strong {

    display: block;

    font-size: 14px;

    line-height: 1.45;

    color: var(--primary);

}

.sidebar-post small {

    color: #8b96a5;

    font-size: 11px;

}


.sidebar-cta {

    margin-top: 25px;

    padding: 35px 30px;

    background: linear-gradient(138deg, rgba(243, 189, 0, 0.09800416748730745) 0%, rgba(0, 212, 255, 0.09240192659094892) 100%);

    border-radius: var(--radius);

    text-align: center;

}

.sidebar-cta > i {

    font-size: 35px;

    color: var(--yellow);

    margin-bottom: 15px;

}

.sidebar-cta h3 {

    color: #0c2b4b;

    margin-bottom: 10px;

}

.sidebar-cta p {

    color: #667085;

    font-size: 14px;

    margin-bottom: 20px;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    background: #082d52;

    padding-top: 70px;

    color: white;

}

.footer-grid {

    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1.2fr;

    gap: 50px;

    padding-bottom: 55px;

}

.footer-logo {

    width: 175px;

    margin-bottom: 20px;

    filter: brightness(0) invert(1);

}

.footer-about p {

    color: rgba(255,255,255,.65);

    font-size: 14px;

    max-width: 300px;

    margin-bottom: 18px;

}

.footer-phone {

    color: white;

    font-weight: 700;

}

.footer-phone i {
    color: var(--yellow);
}

.footer-column h4 {

    color: white;

    margin-bottom: 20px;

    font-size: 17px;

}

.footer-column > a {

    display: block;

    color: rgba(255,255,255,.65);

    font-size: 14px;

    margin-bottom: 10px;

    transition: .2s;

}

.footer-column > a:hover {

    color: var(--yellow);

}

.footer-column p {

    color: rgba(255,255,255,.65);

    font-size: 14px;

}

.footer-column p + a {

    margin-top: 10px;

}

.footer-bottom {

    border-top: 1px solid rgba(255,255,255,.1);

    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}

.footer-bottom p {

    color: rgba(255,255,255,.55);

    font-size: 12px;

}

.footer-bottom a {

    color: rgba(255,255,255,.55);

    font-size: 12px;

    margin-left: 20px;

}

.footer-bottom a:hover {
    color: var(--yellow);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .nav-inner .btn {
        display: none;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 350px;
    }

    .blog-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 25px;
    }

    .sidebar-cta {
        margin-top: 0;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .container {
        width: min(
            calc(100% - 30px),
            var(--container)
        );
    }

    .topbar {
        display: none;
    }

    .nav-inner {
        min-height: 75px;
    }

    .logo img {
        width: 145px;
    }

    .main-nav {
        display: none;
    }

    .page-hero {
        padding: 70px 0;
    }

    .blog-section {
        padding: 70px 0;
    }

    .featured-content {
        padding: 30px;
    }

    .featured-content h2 {
        font-size: 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .cta-box {
        padding: 35px 25px;

        flex-direction: column;

        align-items: flex-start;
    }

    .article-hero {
        padding: 65px 0;
    }

    .article-section {
        padding: 50px 0;
    }

    .article-content {
        padding: 25px 20px;
    }

    .article-cover {
        height: 280px;
    }

    .article-content h2 {
        font-size: 25px;
    }

    .article-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-sidebar {
        display: block;
    }

    .sidebar-cta {
        margin-top: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom a {
        margin-left: 0;
        margin-right: 15px;
    }

}
