/* TAKMEDI BRAND PALETTE — matched to logo
   Primary: #2E4EAD | Dark: #223C88 | Light: #5A73C4 | Text: #20273A
   Generated as a color-only theme pass; layout/spacing/slider rules preserved.
*/
/* =========================================
   TAKMEDI ARTICLE PAGE
   Format: article card + right sidebar
   Theme: matched with public blogs page
========================================= */

.edu-style-article-page {
    padding: 105px 0 78px;
    background:
        linear-gradient(
            180deg,
            #F6F8FF 0%,
            #ffffff 540px
        );
}

.edu-style-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 820px)
        315px;
    justify-content: center;
    gap: 28px;
    align-items: start;
}

.edu-style-main {
    min-width: 0;
}

.edu-style-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dce8f5;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 18px 45px
        rgba(23, 59, 99, 0.09);
}

.edu-style-accent {
    height: 4px;
    background:
        linear-gradient(
            90deg,
            #2E4EAD,
            #5A73C4,
            #55c5aa
        );
}

.edu-style-header {
    padding: 38px 42px 31px;
}

.edu-style-category {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #2E4EAD;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-decoration: none;
    text-transform: uppercase;
}

.edu-style-header h1 {
    max-width: 740px;
    margin: 0;
    color: #20273A;
    font-family: inherit;
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.edu-style-excerpt {
    max-width: 720px;
    margin: 18px 0 0;
    color: #647b91;
    font-size: 15px;
    line-height: 1.72;
}

.edu-style-author-row {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 24px;
}

.edu-style-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            #2E4EAD,
            #5A73C4
        );
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.edu-style-author-row strong {
    display: block;
    margin-bottom: 3px;
    color: #20273A;
    font-size: 14px;
}

.edu-style-author-row span {
    display: block;
    color: #7a8fa4;
    font-size: 12px;
    line-height: 1.5;
}

.edu-style-divider {
    position: relative;
    height: 1px;
    margin: 0 42px;
    background: #e6edf4;
}

.edu-style-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2E4EAD;
    transform: translate(-50%, -50%);
}

.edu-style-content {
    padding: 42px 42px 52px;
    color: #334e68;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.88;
}

.edu-style-content > *:first-child {
    margin-top: 0;
}

.edu-style-content p {
    margin: 0 0 22px;
}

.edu-style-content h2,
.edu-style-content h3,
.edu-style-content h4 {
    color: #20273A;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.35;
}

.edu-style-content h2 {
    margin: 40px 0 15px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.edu-style-content h3 {
    margin: 31px 0 13px;
    font-size: 23px;
}

.edu-style-content h4 {
    margin: 25px 0 11px;
    font-size: 19px;
}

.edu-style-content ul,
.edu-style-content ol {
    margin: 0 0 24px;
    padding-left: 25px;
}

.edu-style-content li {
    margin-bottom: 8px;
}

.edu-style-content a {
    color: #2E4EAD;
    text-underline-offset: 3px;
}

.edu-style-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 12px;
}

.edu-style-content .article-image-block {
    display: block;
    max-width: 100%;
    margin-top: 29px;
    margin-bottom: 29px;
}

.edu-style-content .article-image-block img {
    width: 100%;
    margin: 0;
}

.edu-style-content .image-left {
    margin-left: 0;
    margin-right: auto;
}

.edu-style-content .image-center {
    margin-left: auto;
    margin-right: auto;
}

.edu-style-content .image-right {
    margin-left: auto;
    margin-right: 0;
}

.edu-style-content blockquote {
    margin: 29px 0;
    padding: 20px 22px;
    border-left: 4px solid #2E4EAD;
    border-radius: 0 11px 11px 0;
    background: #f3f8fd;
    color: #425f79;
}

/* =========================================
   RIGHT SIDEBAR
========================================= */

.edu-style-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.edu-guidance-card {
    padding: 27px 22px;
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 255, 255, 0.1),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #223C88,
            #2E4EAD
        );
    color: #ffffff;
    text-align: center;
    box-shadow:
        0 16px 36px
        rgba(22, 67, 112, 0.18);
}

.edu-guidance-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 16px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.12);
    color: #D8E0F8;
    font-size: 23px;
}

.edu-guidance-card h3 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.edu-guidance-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.65;
}

.edu-guidance-card ul {
    display: inline-block;
    margin: 16px auto 21px;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.85;
    list-style: none;
    text-align: left;
}

.edu-guidance-card li::before {
    margin-right: 6px;
    content: "✓";
    color: #E0E6FA;
}

.edu-guidance-primary,
.edu-guidance-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.edu-guidance-primary {
    background: #ffffff;
    color: #2E4EAD;
}

.edu-guidance-primary:hover {
    background: #EEF2FF;
    color: #2E4EAD;
}

.edu-guidance-secondary {
    margin-top: 9px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.edu-guidance-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.edu-related-card {
    overflow: hidden;
    border: 1px solid #dce8f5;
    border-radius: 17px;
    background: #ffffff;
    box-shadow:
        0 12px 30px
        rgba(23, 59, 99, 0.08);
}

.edu-related-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 17px;
    background: #EEF2FF;
    color: #20273A;
}

.edu-related-title span {
    font-size: 14px;
    font-weight: 700;
}

.edu-related-title strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #2E4EAD;
    color: #ffffff;
    font-size: 11px;
}

.edu-related-list {
    display: flex;
    flex-direction: column;
}

.edu-related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
    border-bottom: 1px solid #edf2f7;
    text-decoration: none;
}

.edu-related-item:last-child {
    border-bottom: 0;
}

.edu-related-image {
    overflow: hidden;
    width: 72px;
    height: 62px;
    border-radius: 8px;
    background: #edf3f8;
}

.edu-related-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.edu-related-item > div:last-child {
    min-width: 0;
}

.edu-related-item span {
    display: block;
    margin-bottom: 4px;
    color: #2E4EAD;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.edu-related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #20273A;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.edu-related-item:hover strong {
    color: #2E4EAD;
}

.edu-related-empty {
    padding: 20px;
    color: #74899d;
    font-size: 12px;
}

/* =========================================
   NOT FOUND
========================================= */

.article-not-found-page {
    min-height: 70vh;
    padding: 140px 0 85px;
    background: #F6F8FF;
}

.article-not-found-card {
    max-width: 580px;
    margin: 0 auto;
    padding: 48px 28px;
    border: 1px solid #dce8f5;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
    box-shadow:
        0 16px 42px
        rgba(23, 59, 99, 0.09);
}

.article-not-found-card > span {
    color: #2E4EAD;
    font-size: 12px;
    font-weight: 700;
}

.article-not-found-card h1 {
    margin: 8px 0 10px;
    color: #20273A;
}

.article-not-found-card p {
    margin: 0 0 22px;
    color: #73879a;
}

.article-not-found-card a {
    display: inline-flex;
    padding: 11px 18px;
    border-radius: 9px;
    background: #2E4EAD;
    color: #ffffff;
    text-decoration: none;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {

    .edu-style-layout {
        grid-template-columns:
            minmax(0, 760px);
    }

    .edu-style-sidebar {
        position: static;
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .edu-style-article-page {
        padding: 90px 0 58px;
    }

    .edu-style-layout {
        display: block;
    }

    .edu-style-card {
        border-radius: 16px;
    }

    .edu-style-header {
        padding: 28px 21px 25px;
    }

    .edu-style-header h1 {
        font-size: 34px;
    }

    .edu-style-excerpt {
        font-size: 14px;
    }

    .edu-style-divider {
        margin: 0 21px;
    }

    .edu-style-content {
        padding: 34px 21px 40px;
        font-size: 15px;
        line-height: 1.82;
    }

    .edu-style-content h2 {
        font-size: 26px;
    }

    .edu-style-sidebar {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .edu-style-author-row {
        align-items: flex-start;
    }
}