
/* =====================================
   StudyEG - Article Header
===================================== */

/* =====================================
   Main Header
===================================== */

.eg-article-header {
    position: relative;
    width: 100%;
    direction: rtl;
    overflow: hidden;
    isolation: isolate;
    background: #FFFCF7;
    padding: 30px 0 20px;
    font-family: 'Alexandria', sans-serif;
    box-sizing: border-box;
}

.eg-article-header *,
.eg-article-header *::before,
.eg-article-header *::after {
    box-sizing: border-box;
}

/* Main Container */

.eg-article-header-container {
    position: relative;
    z-index: 2;
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
}

/* =====================================
   Background Animation
===================================== */

.eg-article-header-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.eg-ah-glow {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(85px);
    opacity: .13;
    animation: egAhGlow 24s ease-in-out infinite alternate;
}

.eg-ah-glow-one {
    width: 350px;
    height: 350px;
    background: #C99543;
    top: -180px;
    right: 8%;
}

.eg-ah-glow-two {
    width: 300px;
    height: 300px;
    background: #80501D;
    bottom: -190px;
    left: 5%;
    animation-delay: -8s;
}

.eg-ah-orbit {
    position: absolute;
    border: 1px solid rgba(201,149,67,.13);
    border-radius: 50%;
    animation: egAhOrbit 100s linear infinite;
}

.eg-ah-orbit-one {
    width: 430px;
    height: 430px;
    top: -260px;
    left: 10%;
}

.eg-ah-orbit-two {
    width: 280px;
    height: 280px;
    bottom: -210px;
    right: 12%;
    animation-direction: reverse;
}

.eg-ah-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #C99543;
    border-radius: 50%;
    opacity: .35;
    animation: egAhFloat 12s ease-in-out infinite;
}

.eg-ah-dot-one {
    top: 30%;
    right: 18%;
}

.eg-ah-dot-two {
    bottom: 25%;
    left: 22%;
    animation-delay: -5s;
}

/* Keyframes */

@keyframes egAhGlow {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(35px, 25px) scale(1.12);
    }
}

@keyframes egAhOrbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes egAhFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

/* =====================================
   Article Heading
===================================== */

.eg-article-heading {
    max-width: 940px;
}

.eg-article-category {
    display: none;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #946B32;
    font-size: 12px;
    font-weight: 600;
}

.eg-category-indicator {
    width: 7px;
    height: 7px;
    background: #C99543;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(201,149,67,.12);
}

.eg-article-heading h1 {
    margin: 0 0 17px !important;
    padding: 0 !important;
    color: #68451E;
    font-family: 'Alexandria', sans-serif;
    font-size: clamp(23px, 3.2vw, 35px);
    font-weight: 800;
    line-height: 1.65;
    max-width: 930px;
    letter-spacing: -.8px;
    overflow-wrap: break-word;
}

.eg-article-description {
    max-width: 600px;
    margin: 0 !important;
    color: #817363;
    font-size: 14px;
    font-weight: 400;
    line-height: 2.1;
    overflow-wrap: break-word;
}

/* =====================================
   Article Meta Information
===================================== */

.eg-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 32px;
    padding-top: 23px;
    border-top: 1px solid rgba(104,69,30,.11);
}

.eg-article-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.eg-meta-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #986B31;
    background: rgba(201,149,67,.11);
}

.eg-meta-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eg-meta-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eg-meta-text small {
    color: #A29380;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.eg-meta-text strong {
    color: #68451E;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.eg-meta-divider {
    width: 1px;
    height: 30px;
    background: rgba(104,69,30,.13);
}

/* Desktop Category */

.eg-article-meta-category {
    display: flex;
}

/* Desktop Reading Time */

.eg-article-reading-time {
    display: flex;
}

.eg-reading-divider {
    display: block;
}


/* =====================================
   Responsive - Tablet
   Screens: 601px - 900px
===================================== */

@media (max-width: 900px) {

    .eg-article-header {
        padding: 26px 15px 35px;
    }

    .eg-article-heading {
        max-width: 100%;
    }

    .eg-article-heading h1 {
        font-size: 28px;
        line-height: 1.7;
        letter-spacing: -.5px;
    }

    .eg-article-description {
        font-size: 13px;
        line-height: 2;
    }

    .eg-article-meta {
        gap: 16px;
        margin-top: 27px;
        padding-top: 20px;
    }

    .eg-meta-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .eg-meta-text small {
        font-size: 9px;
    }

    .eg-meta-text strong {
        font-size: 10px;
    }
}


/* =====================================
   Responsive - Mobile
   Screens: 381px - 600px
===================================== */

@media (max-width: 600px) {

    .eg-article-header {
        padding: 22px 10px 28px;
    }

    /* Heading */

    .eg-article-heading {
        max-width: 100%;
    }

    .eg-article-heading h1 {
        font-size: 21px;
        line-height: 1.75;
        letter-spacing: -.4px;
        margin-bottom: 12px !important;
    }

    .eg-article-description {
        font-size: 12px;
        line-height: 2;
    }

    /* Article Meta */

    .eg-article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 14px 16px;
        margin-top: 22px;
        padding-top: 18px;
    }

    .eg-article-meta-item {
        gap: 8px;
    }

    .eg-meta-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
    }

    .eg-meta-icon svg {
        width: 16px;
        height: 16px;
    }

    .eg-meta-text {
        gap: 3px;
    }

    .eg-meta-text small {
        font-size: 9px;
    }

    .eg-meta-text strong {
        font-size: 10px;
    }

    .eg-meta-divider {
        height: 27px;
    }

    /* Hide Category and Reading Time on Mobile */

    .eg-article-meta-category,
    .eg-category-divider,
    .eg-article-category,
    .eg-article-reading-time,
    .eg-reading-divider {
        display: none !important;
    }
}


/* =====================================
   Responsive - Small Mobile
   Screens: 380px and below
===================================== */

@media (max-width: 380px) {

    .eg-article-header {
        padding: 19px 10px 24px;
    }

    /* Heading */

    .eg-article-heading h1 {
        font-size: 19px;
        line-height: 1.8;
        letter-spacing: -.3px;
    }

    .eg-article-description {
        font-size: 11px;
        line-height: 2;
    }

    /* Article Meta */

    .eg-article-meta {
        gap: 13px 12px;
        margin-top: 19px;
        padding-top: 16px;
    }

    .eg-article-meta-item {
        gap: 7px;
    }

    .eg-meta-icon {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        border-radius: 9px;
    }

    .eg-meta-icon svg {
        width: 15px;
        height: 15px;
    }

    .eg-meta-text small {
        font-size: 8px;
    }

    .eg-meta-text strong {
        font-size: 9px;
    }

    .eg-meta-divider {
        height: 24px;
    }
}


/* =====================================
   Accessibility
===================================== */

@media (prefers-reduced-motion: reduce) {

    .eg-article-header *,
    .eg-article-header *::before,
    .eg-article-header *::after {
        animation: none !important;
        transition: none !important;
    }

}
