/* 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 PUBLIC BLOGS PAGE
========================================================= */

.takmedi-blog-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 84px;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(104, 180, 255, 0.22),
            transparent 34%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(107, 211, 184, 0.17),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #1B306F 0%,
            #2E4EAD 58%,
            #5A73C4 100%
        );
}

.takmedi-blog-hero::before,
.takmedi-blog-hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.takmedi-blog-hero::before {
    top: -130px;
    right: 7%;
    width: 360px;
    height: 360px;
}

.takmedi-blog-hero::after {
    bottom: -190px;
    left: 4%;
    width: 420px;
    height: 420px;
}

.takmedi-blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.takmedi-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.takmedi-blog-hero h1 {
    max-width: 790px;
    margin: 0 auto 18px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.takmedi-blog-hero-content > p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.75;
}

.takmedi-blog-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    max-width: 730px;
    margin: 34px auto 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(1, 22, 49, 0.24);
}

.takmedi-blog-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    color: #54718f;
    font-size: 17px;
}

.takmedi-blog-search input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #20273A;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.takmedi-blog-search button {
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 11px;
    background: #2E4EAD;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.takmedi-blog-search button:hover {
    background: #2E4EAD;
    transform: translateY(-1px);
}

.takmedi-blog-page {
    padding: 66px 0 90px;
    background:
        linear-gradient(
            180deg,
            #F6F8FF 0,
            #ffffff 520px
        );
}

.takmedi-blog-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 30px;
    padding: 3px 2px 10px;
    scrollbar-width: thin;
}

.takmedi-blog-categories a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #dce7f3;
    border-radius: 999px;
    background: #ffffff;
    color: #415d79;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(25, 62, 100, 0.04);
    transition: 0.2s ease;
}

.takmedi-blog-categories a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    background: #EEF2FF;
    color: #52708e;
    font-size: 11px;
}

.takmedi-blog-categories a:hover,
.takmedi-blog-categories a.active {
    border-color: #2E4EAD;
    background: #2E4EAD;
    color: #ffffff;
}

.takmedi-blog-categories a:hover span,
.takmedi-blog-categories a.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.takmedi-blog-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 27px;
    padding: 15px 18px;
    border: 1px solid #dce8f5;
    border-radius: 13px;
    background: #ffffff;
    color: #58718a;
    font-size: 14px;
}

.takmedi-blog-filter-summary strong {
    color: #20273A;
}

.takmedi-blog-filter-summary a {
    color: #2E4EAD;
    font-weight: 600;
    text-decoration: none;
}

.takmedi-featured-article {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    overflow: hidden;
    margin-bottom: 70px;
    border: 1px solid #dce8f5;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 25px 60px rgba(23, 59, 99, 0.11);
}

.takmedi-featured-image {
    min-height: 470px;
    overflow: hidden;
    background: #EEF2FF;
}

.takmedi-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.takmedi-featured-article:hover
.takmedi-featured-image img {
    transform: scale(1.025);
}

.takmedi-featured-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 48px;
}

.takmedi-featured-label,
.takmedi-blog-category-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.takmedi-featured-label {
    background: #EEF2FF;
    color: #2E4EAD;
}

.takmedi-blog-category-label {
    background: #effaf5;
    color: #278767;
}

.takmedi-featured-content h2 {
    margin: 4px 0 18px;
    color: #20273A;
    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.takmedi-featured-content > p {
    margin: 0;
    color: #61778d;
    font-size: 15px;
    line-height: 1.75;
}

.takmedi-blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin: 24px 0 28px;
    color: #6a8096;
    font-size: 13px;
}

.takmedi-blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.takmedi-blog-meta i {
    color: #2E4EAD;
}

.takmedi-blog-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 20px;
    border-radius: 10px;
    background: #2E4EAD;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.takmedi-blog-primary-link:hover {
    background: #2E4EAD;
    color: #ffffff;
    transform: translateY(-1px);
}

.takmedi-blog-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 30px;
}

.takmedi-blog-section-heading span {
    display: block;
    margin-bottom: 6px;
    color: #2E4EAD;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.takmedi-blog-section-heading h2 {
    margin: 0;
    color: #20273A;
    font-size: clamp(29px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.takmedi-blog-section-heading p {
    max-width: 500px;
    margin: 0;
    color: #6b8095;
    font-size: 14px;
    line-height: 1.7;
    text-align: right;
}

.takmedi-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.takmedi-blog-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #dfe9f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(26, 67, 108, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.takmedi-blog-card:hover {
    border-color: #bfd9ee;
    box-shadow: 0 21px 45px rgba(26, 67, 108, 0.13);
    transform: translateY(-5px);
}

.takmedi-blog-card-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 10px;
    background: #f4f8fc;
}

.takmedi-blog-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    transition: opacity 0.2s ease;
}

.takmedi-blog-card:hover
.takmedi-blog-card-image img {
    transform: none;
    opacity: 0.96;
}

.takmedi-blog-card-image > span {
    position: absolute;
    left: 16px;
    bottom: 14px;
    max-width: calc(100% - 32px);
    padding: 7px 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(16, 45, 80, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.takmedi-blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.takmedi-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
    color: #7c8fa3;
    font-size: 12px;
}

.takmedi-blog-card-meta span + span::before {
    margin-right: 10px;
    content: "•";
    color: #adc0d2;
}

.takmedi-blog-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.takmedi-blog-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #153657;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.takmedi-blog-card h3 a:hover {
    color: #2E4EAD;
}

.takmedi-blog-card-body > p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 22px;
    color: #687f95;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.takmedi-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf2f7;
}

.takmedi-blog-card-footer > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    color: #768ba0;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.takmedi-blog-card-footer > span i {
    color: #2E4EAD;
}

.takmedi-blog-card-footer > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: #2E4EAD;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.takmedi-blog-card-footer > a i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.takmedi-blog-card-footer > a:hover i {
    transform: translateX(3px);
}

.takmedi-blog-empty-state {
    padding: 70px 25px;
    border: 1px solid #dce8f5;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
}

.takmedi-blog-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #EEF2FF;
    color: #2E4EAD;
    font-size: 32px;
}

.takmedi-blog-empty-state h2 {
    margin: 0 0 9px;
    color: #20273A;
    font-size: 27px;
}

.takmedi-blog-empty-state p {
    margin: 0 0 24px;
    color: #6d8398;
}

.takmedi-blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
}

.takmedi-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}

.takmedi-pagination-numbers a,
.takmedi-pagination-numbers span,
.takmedi-pagination-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dce7f2;
    border-radius: 9px;
    background: #ffffff;
    color: #4c6883;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.takmedi-pagination-numbers a:hover,
.takmedi-pagination-numbers a.active,
.takmedi-pagination-direction:hover {
    border-color: #2E4EAD;
    background: #2E4EAD;
    color: #ffffff;
}

.takmedi-pagination-direction {
    gap: 8px;
    min-width: auto;
}

.takmedi-pagination-direction.disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.takmedi-pagination-direction.disabled:hover {
    border-color: #dce7f2;
    background: #ffffff;
    color: #4c6883;
}

.sr-only {
    position: absolute !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .takmedi-featured-article {
        grid-template-columns: 1fr;
    }

    .takmedi-featured-image,
    .takmedi-featured-image img {
        min-height: 420px;
    }

    .takmedi-featured-content {
        padding: 40px;
    }

    .takmedi-blog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .takmedi-blog-hero {
        padding: 70px 0 62px;
    }

    .takmedi-blog-hero h1 {
        font-size: 36px;
    }

    .takmedi-blog-hero-content > p {
        font-size: 15px;
    }

    .takmedi-blog-search {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0;
        padding: 7px;
    }

    .takmedi-blog-search button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 7px;
    }

    .takmedi-blog-page {
        padding: 42px 0 65px;
    }

    .takmedi-blog-filter-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .takmedi-featured-article {
        margin-bottom: 48px;
        border-radius: 18px;
    }

    .takmedi-featured-image,
    .takmedi-featured-image img {
        min-height: 260px;
    }

    .takmedi-featured-content {
        padding: 27px 22px 30px;
    }

    .takmedi-featured-content h2 {
        font-size: 28px;
    }

    .takmedi-blog-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .takmedi-blog-section-heading p {
        text-align: left;
    }

    .takmedi-blog-grid {
        grid-template-columns: 1fr;
    }

    .takmedi-blog-card-body {
        padding: 20px;
    }

    .takmedi-blog-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .takmedi-pagination-numbers {
        justify-content: center;
        flex-wrap: wrap;
    }

    .takmedi-pagination-direction {
        width: 100%;
    }
}

@media (max-width: 420px) {

    .takmedi-blog-hero h1 {
        font-size: 32px;
    }

    .takmedi-blog-search-icon {
        width: 38px;
    }

    .takmedi-featured-content {
        padding: 24px 18px 27px;
    }

    .takmedi-blog-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}