/* ============================================================
0. MASTER SECTION - ATMOSPHERE BACKGROUNDS (DESKTOP ONLY)
============================================================ */

@media (min-width: 768px) {
    .master-section {
        position: relative;
        z-index: 0;
        overflow: visible !important;
        background-color: transparent !important;
    }

    .master-section::before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        width: 60vw;
        height: 100vh;
        background-image: url(/wp-content/uploads/2023/09/background-references-right.jpg);
        background-size: contain;
        background-position: right top;
        background-repeat: no-repeat;
        z-index: -1;
        pointer-events: none;
        opacity: 0.3;
        -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
        animation: parallax-ultra-subtle-right linear;
        animation-timeline: scroll(root);
        will-change: transform;
    }

    .master-section::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 40vw;
        height: 100vh;
        background-image: url(/wp-content/uploads/2023/09/background-references-bubbles.jpg);
        background-size: contain;
        background-position: left center;
        background-repeat: no-repeat;
        z-index: -1;
        pointer-events: none;
        opacity: 0.25;
        -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%),
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%),
            linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
        animation: parallax-ultra-subtle-left linear;
        animation-timeline: scroll(root);
        will-change: transform;
    }
}

@keyframes parallax-ultra-subtle-right {
    from {
        transform: translateY(2%) scale(1.02);
    }

    to {
        transform: translateY(-5%) scale(1);
    }
}

@keyframes parallax-ultra-subtle-left {
    from {
        transform: translateY(-3%) rotate(0deg);
    }

    to {
        transform: translateY(4%) rotate(2deg);
    }
}

/* ============================================================
1. BLOG HEADER HERO [global-blog1-header]
============================================================ */

.blog-header-hero {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0;
}

.blog-header-hero .blog-header-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: center;
}

.blog-header-hero .blog-header-container {
    width: 90%;
    margin: 0 auto;
    padding: 10rem 0;
}

.blog-header-hero .blog-header-content {
    display: grid;
    grid-template-columns: 1fr;
    color: #ffffff;
    gap: 2rem;
}

.blog-header-hero h1.blog-header-title {
    font-size: clamp(1.7rem, 1.3rem + 2vw, 2.7rem);
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.05em;
    padding-bottom: 0;
}

.blog-header-hero .blog-header-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
    line-height: 1.5;
    font-weight: 400;
    max-width: 850px;
}

@media (max-width: 980px) {
    .blog-header-hero {
        border-radius: 25px;
    }

    .blog-header-hero .blog-header-overlay {
        background: rgba(0, 0, 0, 0.4);
    }

    .blog-header-hero .blog-header-container {
        width: 100%;
        padding: 7rem 2.5rem !important;
    }
}

@media (max-width: 767px) {
    .blog-header-hero {
        border-radius: 20px;
    }

    .blog-header-hero .blog-header-container {
        text-align: center;
        padding: 5rem 1.5rem !important;
    }

    .blog-header-hero .blog-header-content {
        margin: 0 auto;
        justify-items: center;
    }

    .blog-header-hero .blog-header-desc {
        max-width: 100%;
    }
}


/* ============================================================
13. AUTHOR BOX [global-blog3-authorbox]
============================================================ */

.blog-author-box {
    width: 100%;
    margin: 2.5rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 3rem;
}

.blog-author-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.blog-author-avatar img {
    border-radius: 30px;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.blog-author-content {
    flex: 1;
}

.blog-author-label {
    display: block;
    font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #769cc1;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-author-name {
    font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
    color: #495E77 !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 700;
}

.blog-author-bio {
    color: #495E77;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-author-bio p {
    margin: 0;
}

.blog-author-link {
    font-size: clamp(0.85rem, 0.8rem + 0.15vw, 0.9rem);
    font-weight: 700;
    color: #769cc1;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

@media (max-width: 980px) {
    .blog-author-box {
        border-radius: 25px;
    }

    .blog-author-avatar img {
        border-radius: 25px;
    }
}

@media (max-width: 767px) {
    .blog-author-box {
        border-radius: 20px;
        padding: 2rem;
    }

    .blog-author-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .blog-author-avatar img {
        border-radius: 20px;
        width: 100px;
        height: 100px;
    }
}


/* ============================================================
15. DIVI LAYOUT FIX
============================================================ */

@media (max-width: 980px) {

    html body #main-content .et-l.et-l--body .master-section .post-content-row,
    html body #main-content .et-l.et-l--body .master-section .global-blog1-header,
    html body #main-content .et-l.et-l--body .master-section .global-blog2-blogcontent,
    html body #main-content .et-l.et-l--body .master-section .global-blog3-authorbox,
    html body #main-content .et-l.et-l--body .master-section .global-blog4-faq {
        width: 100% !important;
    }

    html body #main-content .et-l.et-l--body .master-section .et_pb_row_0 {
        width: 100% !important;
    }
}