/* =========================================================
   OLI TRAINING ACADEMY
   BLOG PAGE
   PROFESSIONAL ISOLATED STYLESHEET
   Orange / Blue / Black / White
========================================================= */


/* =========================================================
   BLOG VARIABLES
========================================================= */

.blog-page {
    --orange: #f59e0b;
    --orange-dark: #d97706;
    --blue: #0b4f8a;
    --blue-dark: #073b68;
    --black: #111827;
    --dark: #1f2937;
    --text: #4b5563;
    --muted: #6b7280;
    --white: #ffffff;
    --light: #f8fafc;
    --soft-blue: #eff6ff;
    --soft-orange: #fff7ed;
    --border: #e5e7eb;

    --shadow:
        0 12px 35px rgba(15, 23, 42, 0.08);

    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.blog-page *,
.blog-page *::before,
.blog-page *::after {
    box-sizing: border-box;
}

.blog-page a {
    text-decoration: none;
}

.blog-page img {
    max-width: 100%;
    display: block;
}

.blog-page button,
.blog-page input,
.blog-page select,
.blog-page textarea {
    font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.blog-page .header {
    width: 100%;
    min-height: 88px;
    padding: 12px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background: var(--white);
    border-bottom: 1px solid var(--border);

    position: relative;
    z-index: 100;
}


/* =========================================================
   LOGO
========================================================= */

.blog-page .logo-area {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.blog-page .logo-area img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 8px;
}

.blog-page .logo-text h2 {
    margin: 0;

    color: var(--black);

    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.blog-page .logo-text p {
    margin: 5px 0 0;

    color: var(--orange-dark);

    font-size: 12px;
    font-weight: 600;
    font-style: italic;
}


/* =========================================================
   NAVIGATION
========================================================= */

.blog-page .navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    flex: 1;
}

.blog-page .navbar a {
    position: relative;

    padding: 10px 11px;

    color: var(--dark);

    font-size: 14px;
    font-weight: 600;

    border-radius: 6px;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.blog-page .navbar a:hover {
    color: var(--orange-dark);
    background: var(--soft-orange);
}

.blog-page .navbar a.active {
    color: var(--orange-dark);
}

.blog-page .navbar a.active::after {
    content: "";

    position: absolute;

    left: 11px;
    right: 11px;
    bottom: 2px;

    height: 3px;

    border-radius: 20px;

    background: var(--orange);
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.blog-page .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.blog-page .search-button {
    width: 40px;
    height: 40px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: var(--white);
    color: var(--blue);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.25s ease;
}

.blog-page .search-button:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.blog-page .apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    border-radius: 5px;

    background: var(--orange);
    color: var(--black);

    font-size: 13px;
    font-weight: 800;

    transition: all 0.25s ease;
}

.blog-page .apply-button:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}


/* =========================================================
   BLOG HERO
========================================================= */

.blog-page .blog-hero {
    min-height: 430px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        linear-gradient(
            120deg,
            #071f35,
            #0b4f8a
        );
}

.blog-page .blog-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(245, 158, 11, 0.20),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(245, 158, 11, 0.15),
            transparent 30%
        );
}

.blog-page .blog-hero::after {
    content: "";

    position: absolute;
    width: 420px;
    height: 420px;

    right: -150px;
    bottom: -220px;

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
}

.blog-page .blog-hero-content {
    width: min(850px, 90%);

    position: relative;
    z-index: 2;

    padding: 70px 20px;
}

.blog-page .blog-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: var(--orange);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.blog-page .blog-kicker > span {
    width: 28px;
    height: 3px;

    border-radius: 10px;

    background: var(--orange);
}

.blog-page .blog-hero h1 {
    margin: 18px 0;

    color: var(--white);

    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    font-weight: 800;
}

.blog-page .blog-hero h1 strong {
    color: var(--orange);
}

.blog-page .blog-hero p {
    max-width: 720px;

    margin: 0 auto;

    color: rgba(255,255,255,0.86);

    font-size: 17px;
}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.blog-page .blog-category-section {
    padding: 35px 6%;

    background: var(--white);

    border-bottom: 1px solid var(--border);
}

.blog-page .blog-category-container {
    max-width: 1200px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}

.blog-page .category-title {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}

.blog-page .category-title > span {
    width: 4px;
    height: 25px;

    background: var(--orange);

    border-radius: 5px;
}

.blog-page .category-title p {
    margin: 0;

    color: var(--black);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.blog-page .blog-categories {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    flex-wrap: wrap;
}

.blog-page .category {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 13px;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: var(--white);
    color: var(--text);

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition: all 0.25s ease;
}

.blog-page .category i {
    color: var(--blue);
}

.blog-page .category:hover {
    border-color: var(--orange);
    color: var(--orange-dark);
    background: var(--soft-orange);
}

.blog-page .category.active {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.blog-page .category.active i {
    color: var(--orange);
}


/* =========================================================
   FEATURED ARTICLE
========================================================= */

.blog-page .featured-blog {
    max-width: 1180px;

    margin: 75px auto;

    padding: 0 6%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 55px;

    align-items: center;
}

.blog-page .featured-blog-image {
    height: 390px;

    overflow: hidden;

    border-radius: 12px;

    box-shadow: var(--shadow);
}

.blog-page .featured-blog-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.blog-page .featured-blog:hover
.featured-blog-image img {
    transform: scale(1.03);
}

.blog-page .featured-blog-content {
    padding: 10px 0;
}

.blog-page .featured-label {
    display: inline-block;

    margin-bottom: 13px;

    padding: 6px 10px;

    border-radius: 4px;

    background: var(--soft-orange);
    color: var(--orange-dark);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.blog-page .featured-blog-content h2 {
    margin: 0 0 18px;

    color: var(--black);

    font-size: clamp(28px, 4vw, 43px);
    line-height: 1.15;
}

.blog-page .featured-blog-content > p {
    margin: 0 0 22px;

    color: var(--text);

    font-size: 16px;
}

.blog-page .featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 25px;
}

.blog-page .featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--muted);

    font-size: 13px;
}

.blog-page .featured-meta i {
    color: var(--orange-dark);
}

.blog-page .featured-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 12px 19px;

    border: none;
    border-radius: 5px;

    background: var(--blue);
    color: var(--white);

    cursor: pointer;

    font-size: 14px;
    font-weight: 800;

    transition: all 0.25s ease;
}

.blog-page .featured-read:hover {
    background: var(--orange);
    color: var(--black);

    transform: translateY(-2px);
}


/* =========================================================
   BLOG ARTICLES SECTION
========================================================= */

.blog-page .blog-section {
    padding: 90px 6%;

    background: var(--light);
}

.blog-page .blog-heading {
    max-width: 1200px;

    margin: 0 auto 40px;
}

.blog-page .blog-kicker.dark {
    color: var(--orange-dark);
}

.blog-page .blog-heading h2 {
    margin: 12px 0 7px;

    color: var(--black);

    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.15;
}

.blog-page .blog-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 15px;
}


/* =========================================================
   ARTICLE GRID
========================================================= */

.blog-page .blog-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* =========================================================
   BLOG CARD
========================================================= */

.blog-page .blog-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    box-shadow:
        0 5px 20px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.blog-page .blog-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.11);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.blog-page .blog-card-image {
    height: 210px;

    position: relative;

    overflow: hidden;

    background: #e5e7eb;
}

.blog-page .blog-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.blog-page .blog-card:hover
.blog-card-image img {
    transform: scale(1.04);
}

.blog-page .blog-card-image span {
    position: absolute;

    top: 14px;
    left: 14px;

    padding: 6px 9px;

    border-radius: 4px;

    background: var(--blue);
    color: var(--white);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.4px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.blog-page .blog-card-content {
    padding: 24px;
}

.blog-page .blog-date {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 11px;

    color: var(--orange-dark);

    font-size: 12px;
    font-weight: 700;
}

.blog-page .blog-card-content h3 {
    margin: 0 0 12px;

    color: var(--black);

    font-size: 20px;
    line-height: 1.3;
}

.blog-page .blog-card-content p {
    margin: 0 0 20px;

    color: var(--text);

    font-size: 14px;
    line-height: 1.7;
}

.blog-page .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0;

    border: none;

    background: transparent;
    color: var(--blue);

    cursor: pointer;

    font-size: 13px;
    font-weight: 800;

    transition: color 0.2s ease;
}

.blog-page .read-more:hover {
    color: var(--orange-dark);
}


/* =========================================================
   NO RESULTS
========================================================= */

.blog-page .no-results {
    max-width: 500px;

    margin: 45px auto 0;

    padding: 45px 25px;

    text-align: center;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    display: none;
}

.blog-page .no-results i {
    color: var(--orange);

    font-size: 30px;

    margin-bottom: 12px;
}

.blog-page .no-results h3 {
    margin: 0 0 7px;

    color: var(--black);
}

.blog-page .no-results p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================================
   BLOG CTA
========================================================= */

.blog-page .blog-cta {
    padding: 90px 6%;

    background:
        linear-gradient(
            120deg,
            var(--blue-dark),
            var(--blue)
        );

    text-align: center;
}

.blog-page .blog-cta-content {
    max-width: 820px;

    margin: auto;
}

.blog-page .blog-cta .blog-kicker {
    margin-bottom: 15px;
}

.blog-page .blog-cta h2 {
    margin: 0 0 17px;

    color: var(--white);

    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.12;
}

.blog-page .blog-cta h2 strong {
    color: var(--orange);
}

.blog-page .blog-cta p {
    max-width: 650px;

    margin: 0 auto 30px;

    color: rgba(255,255,255,0.83);

    font-size: 16px;
}

.blog-page .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 21px;

    border-radius: 5px;

    background: var(--orange);
    color: var(--black);

    font-size: 14px;
    font-weight: 800;

    transition: all 0.25s ease;
}

.blog-page .primary-button:hover {
    background: var(--white);
    color: var(--blue-dark);

    transform: translateY(-2px);
}


/* =========================================================
   ARTICLE MODAL
========================================================= */

.blog-page .article-modal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    padding: 25px;

    background: rgba(3, 12, 22, 0.78);

    display: none;

    align-items: center;
    justify-content: center;
}

.blog-page .article-modal.active {
    display: flex;
}

.blog-page .article-modal-box {
    width: min(720px, 100%);

    max-height: 88vh;

    overflow-y: auto;

    position: relative;

    padding: 42px;

    border-radius: 12px;

    background: var(--white);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.30);

    animation: blogModalIn 0.25s ease;
}

@keyframes blogModalIn {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.blog-page .modal-close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;
    color: var(--dark);

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
}

.blog-page .modal-close:hover {
    background: var(--orange);
    color: var(--black);
}

.blog-page .modal-icon {
    width: 55px;
    height: 55px;

    margin-bottom: 15px;

    border-radius: 8px;

    background: var(--blue);

    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}

.blog-page #modalCategory {
    color: var(--orange-dark);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.blog-page #modalTitle {
    margin: 8px 0 18px;

    color: var(--black);

    font-size: clamp(25px, 4vw, 36px);

    line-height: 1.2;
}

.blog-page .modal-line {
    width: 55px;
    height: 3px;

    margin-bottom: 22px;

    border-radius: 10px;

    background: var(--orange);
}

.blog-page #modalText {
    margin: 0;

    color: var(--text);

    font-size: 15px;

    line-height: 1.8;
}

.blog-page .modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    margin-top: 30px;
    padding-top: 18px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 12px;
}

.blog-page .modal-footer span {
    display: flex;
    align-items: center;
    gap: 7px;
}


/* =========================================================
   FOOTER
========================================================= */

.blog-page .footer {
    padding: 45px 6% 30px;

    background: #0d1724;

    color: var(--white);

    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        auto;

    align-items: center;

    gap: 35px;
}

.blog-page .footer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.blog-page .footer-brand img {
    width: 58px;
    height: 58px;

    object-fit: contain;

    border-radius: 7px;
}

.blog-page .footer-brand h3 {
    margin: 0 0 3px;

    color: var(--white);

    font-size: 16px;
}

.blog-page .footer-brand p {
    margin: 0;

    color: #9ca8b7;

    font-size: 12px;
}

.blog-page .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    flex-wrap: wrap;
}

.blog-page .footer-links a {
    color: #cbd5e1;

    font-size: 13px;

    transition: color 0.2s ease;
}

.blog-page .footer-links a:hover {
    color: var(--orange);
}

.blog-page .footer-links span {
    color: #566273;
}

.blog-page .social-icons {
    display: flex;
    align-items: center;

    gap: 8px;
}

.blog-page .social-icons a {
    width: 37px;
    height: 37px;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    color: var(--white);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;

    transition: all 0.25s ease;
}

.blog-page .social-icons a:hover {
    background: var(--orange);
    color: var(--black);

    transform: translateY(-3px);
}


/* =========================================================
   COPYRIGHT
========================================================= */

.blog-page .copyright {
    padding: 15px 6%;

    background: #09111c;

    color: #7f8a99;

    text-align: center;

    font-size: 11px;

    border-top: 1px solid rgba(255,255,255,0.06);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .blog-page .header {
        padding: 12px 4%;
        gap: 18px;
    }

    .blog-page .navbar {
        gap: 1px;
    }

    .blog-page .navbar a {
        padding: 9px 7px;
        font-size: 13px;
    }

    .blog-page .featured-blog {
        padding: 0 5%;
    }

    .blog-page .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-page .footer {
        grid-template-columns: 1fr 1fr;
    }

    .blog-page .footer .social-icons {
        justify-content: flex-start;
    }
}


/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 800px) {

    .blog-page .header {
        flex-wrap: wrap;

        justify-content: center;

        padding: 15px 5%;
    }

    .blog-page .logo-area {
        width: 100%;

        justify-content: center;
    }

    .blog-page .navbar {
        order: 3;

        width: 100%;

        flex-wrap: wrap;

        justify-content: center;
    }

    .blog-page .header-actions {
        position: absolute;

        top: 20px;
        right: 5%;
    }

    .blog-page .apply-button {
        display: none;
    }

    .blog-page .blog-category-container {
        flex-direction: column;

        align-items: flex-start;
    }

    .blog-page .blog-categories {
        justify-content: flex-start;
    }

    .blog-page .featured-blog {
        grid-template-columns: 1fr;

        gap: 35px;

        margin-top: 60px;
        margin-bottom: 60px;
    }

    .blog-page .featured-blog-image {
        height: 340px;
    }

    .blog-page .blog-section {
        padding: 70px 5%;
    }

    .blog-page .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-page .footer {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .blog-page .footer-brand {
        justify-content: center;
    }

    .blog-page .footer-links {
        justify-content: center;
    }

    .blog-page .social-icons {
        justify-content: center !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .blog-page .logo-area img {
        width: 55px;
        height: 55px;
    }

    .blog-page .logo-text h2 {
        font-size: 16px;
    }

    .blog-page .logo-text p {
        font-size: 11px;
    }

    .blog-page .navbar a {
        padding: 7px 6px;

        font-size: 11px;
    }

    .blog-page .blog-hero {
        min-height: 390px;
    }

    .blog-page .blog-hero h1 {
        font-size: 42px;
    }

    .blog-page .blog-hero p {
        font-size: 14px;
    }

    .blog-page .blog-category-section {
        padding: 28px 5%;
    }

    .blog-page .blog-categories {
        width: 100%;
    }

    .blog-page .category {
        font-size: 12px;

        padding: 8px 10px;
    }

    .blog-page .featured-blog {
        padding: 0 5%;
    }

    .blog-page .featured-blog-image {
        height: 280px;
    }

    .blog-page .featured-blog-content h2 {
        font-size: 29px;
    }

    .blog-page .featured-meta {
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .blog-page .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-page .blog-card-image {
        height: 220px;
    }

    .blog-page .blog-cta {
        padding: 70px 5%;
    }

    .blog-page .blog-cta h2 {
        font-size: 32px;
    }

    .blog-page .article-modal {
        padding: 15px;
    }

    .blog-page .article-modal-box {
        padding: 35px 23px;
    }

    .blog-page .modal-footer {
        flex-direction: column;
    }
}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 420px) {

    .blog-page .navbar a {
        padding: 6px 5px;
        font-size: 10px;
    }

    .blog-page .header-actions {
        top: 17px;
    }

    .blog-page .search-button {
        width: 36px;
        height: 36px;
    }

    .blog-page .blog-hero h1 {
        font-size: 36px;
    }

    .blog-page .blog-kicker {
        font-size: 10px;
    }

    .blog-page .blog-kicker > span {
        width: 20px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-page *,
    .blog-page *::before,
    .blog-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}