/* =========================================================
   BLOG PAGE VARIABLES
========================================================= */
:root {
    --color1: #1F3B5D;
    --color2: #FBD405;

    --blog-white: #ffffff;
    --blog-blue-dark: #06124D;
    --blog-blue-bright: #0862F4;
    --blog-muted: #526488;
}

/* =========================================================
   BLOG HERO SECTION
========================================================= */
.blog-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 45%, #cfe0ff 100%);
}

.blog-hero-inner {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding: 92px 0 0;
}

.blog-hero-inner::before {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -70px;
    width: 680px;
    height: 560px;
    border-radius: 46% 0 0 0;
    background: linear-gradient(135deg, rgba(8, 98, 244, 0.05), rgba(8, 98, 244, 0.14));
    pointer-events: none;
}

.blog-hero-inner::after {
    content: "";
    position: absolute;
    right: 120px;
    top: 84px;
    width: 210px;
    height: 260px;
    opacity: 0.20;
    background:
        linear-gradient(90deg, transparent 0 56%, rgba(255, 255, 255, 0.65) 56% 100%),
        linear-gradient(0deg, transparent 0 56%, rgba(255, 255, 255, 0.65) 56% 100%);
    pointer-events: none;
}

.blog-hero-row {
    position: relative;
    z-index: 2;
    min-height: 628px;
}

.blog-hero-content {
    position: relative;
    z-index: 6;
    height: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px 72px 92px;
}

.blog-hero-badge {
    width: fit-content;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 28px;
    margin-bottom: 46px;
    border-radius: 999px;
    background: rgba(8, 98, 244, 0.10);
    color: var(--blog-blue-bright);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    animation: blogBadgeFloat 3.8s ease-in-out infinite;
}

.blog-hero-badge i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(8, 98, 244, 0.10);
    color: var(--blog-blue-bright);
    font-size: 16px;
}

.blog-hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--blog-blue-dark);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -2px;
}

.blog-hero-line {
    width: 98px;
    height: 6px;
    margin: 36px 0 34px;
    border-radius: 999px;
    background: var(--color2);
}

.blog-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--blog-muted);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.58;
}

.blog-hero-visual {
    position: relative;
    z-index: 4;
    height: 100%;
    min-height: 628px;
}

.blog-hero-img {
    position: absolute;
    right: 0;
    bottom: 0;
    max-height: 100%;
    max-width: 890px;
    width: auto;
    object-fit: contain;
    transform-origin: bottom right;
    filter: drop-shadow(0 30px 44px rgba(31, 59, 93, 0.16));
    transition: transform 0.45s ease;
}

.blog-hero-visual:hover .blog-hero-img {
    transform: translateY(-7px) scale(1.018);
}

/* =========================================================
   BLOG HERO ANIMATION
========================================================= */
.blog-hero .fade-up {
    opacity: 0;
    animation: blogFadeUp 0.85s ease forwards;
}

.blog-hero .delay-1 {
    animation-delay: 0.18s;
}

@keyframes blogFadeUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blogBadgeFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* =========================================================
   BLOG HERO RESPONSIVE
========================================================= */
@media (max-width: 1399.98px) {
    .blog-hero-inner {
        min-height: 680px;
        padding-top: 82px;
    }

    .blog-hero-row {
        min-height: 598px;
    }

    .blog-hero-content {
        padding-left: 72px;
        padding-bottom: 64px;
    }

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

    .blog-hero p {
        font-size: 18px;
    }

    .blog-hero-img {
        max-width: 790px;
    }
}

@media (max-width: 1199.98px) {
    .blog-hero-inner {
        min-height: 630px;
        padding-top: 74px;
    }

    .blog-hero-row {
        min-height: 556px;
    }

    .blog-hero-content {
        padding-left: 52px;
        padding-bottom: 54px;
    }

    .blog-hero-badge {
        min-height: 48px;
        margin-bottom: 34px;
        font-size: 16px;
    }

    .blog-hero-badge i {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

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

    .blog-hero p {
        font-size: 18px;
    }

    .blog-hero-img {
        max-width: 660px;
    }
}

@media (max-width: 991.98px) {
    .blog-hero-inner {
        min-height: auto;
        padding: 64px 0 0;
    }

    .blog-hero-row {
        min-height: auto;
    }

    .blog-hero-content {
        max-width: 760px;
        height: auto;
        margin: 0 auto;
        padding: 0 24px 34px;
        text-align: center;
        align-items: center;
    }

    .blog-hero-badge,
    .blog-hero-line {
        margin-left: auto;
        margin-right: auto;
    }

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

    .blog-hero p {
        max-width: 650px;
        font-size: 17px;
    }

    .blog-hero-visual {
        min-height: 480px;
        height: 480px;
    }

    .blog-hero-img {
        left: 50%;
        right: auto;
        bottom: 0;
        max-height: 100%;
        max-width: 600px;
        transform: translateX(-50%);
        transform-origin: bottom center;
    }

    .blog-hero-visual:hover .blog-hero-img {
        transform: translateX(-50%) translateY(-6px) scale(1.018);
    }
}

@media (max-width: 767.98px) {
    .blog-hero-inner {
        padding-top: 48px;
    }

    .blog-hero-badge {
        min-height: 42px;
        gap: 10px;
        padding: 8px 18px;
        margin-bottom: 26px;
        font-size: 14px;
    }

    .blog-hero-badge i {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .blog-hero h1 {
        font-size: 36px;
        line-height: 1.2;
        letter-spacing: -0.8px;
    }

    .blog-hero-line {
        width: 78px;
        height: 5px;
        margin: 24px auto;
    }

    .blog-hero p {
        font-size: 15.5px;
        line-height: 1.6;
    }

    .blog-hero-visual {
        min-height: 380px;
        height: 380px;
    }

    .blog-hero-img {
        max-width: 490px;
    }
}

@media (max-width: 575.98px) {
    .blog-hero-inner {
        padding-top: 40px;
    }

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

    .blog-hero p {
        font-size: 14.5px;
    }

    .blog-hero-visual {
        min-height: 310px;
        height: 310px;
    }

    .blog-hero-img {
        max-width: 395px;
    }
}

/* =========================================================
   BLOG MAIN SECTION
========================================================= */
.blog-main {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 34px 28px;
    background: linear-gradient(135deg, #eef5ff 0%, #ffffff 45%, #eef6ff 100%);
}

.blog-main-wrap {
    display: grid;
    grid-template-columns: 315px 1fr;
    gap: 34px;
    width: 100%;
}

.blog-sidebar {
    min-height: 840px;
    padding: 32px 24px;
    border: 1px solid rgba(8, 98, 244, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(31, 59, 93, 0.08);
}

.blog-search-box h3,
.blog-category-box h3 {
    margin: 0 0 18px;
    color: var(--blog-blue-dark);
    font-size: 18px;
    font-weight: 900;
}

.blog-search-input {
    height: 52px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(31, 59, 93, 0.12);
    border-radius: 10px;
    background: var(--blog-white);
    transition: all 0.35s ease;
}

.blog-search-input:hover,
.blog-search-input:focus-within {
    border-color: var(--blog-blue-bright);
    box-shadow: 0 12px 28px rgba(8, 98, 244, 0.10);
}

.blog-search-input i {
    color: #7a86a4;
    font-size: 16px;
}

.blog-search-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--blog-blue-dark);
    font-size: 14px;
    font-weight: 600;
}

.blog-search-input input::placeholder {
    color: #9aa5bf;
}

.blog-category-box {
    margin-top: 42px;
}

.blog-category {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(31, 59, 93, 0.08);
    border-radius: 9px;
    background: var(--blog-white);
    color: #536180;
    text-decoration: none;
    transition: all 0.35s ease;
}

.blog-category span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 800;
}

.blog-category i {
    color: var(--blog-blue-bright);
    font-size: 16px;
}

.blog-category strong {
    min-width: 28px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf5ff;
    color: var(--blog-blue-bright);
    font-size: 12px;
    font-weight: 900;
}

.blog-category.active,
.blog-category:hover {
    background: #eaf3ff;
    color: var(--blog-blue-bright);
    transform: translateX(5px);
    text-decoration: none;
}

.blog-content {
    min-width: 0;
}

.blog-content-head {
    margin-bottom: 24px;
}

.blog-content-head h2 {
    margin: 0 0 8px;
    color: var(--blog-blue-dark);
    font-size: 24px;
    font-weight: 900;
}

.blog-content-head p {
    margin: 0;
    color: #536180;
    font-size: 14px;
    font-weight: 600;
}

.blog-list {
    display: grid;
    gap: 14px;
}

.blog-item {
    display: grid;
    grid-template-columns: 300px 1fr 175px;
    align-items: center;
    gap: 28px;
    min-height: 190px;
    padding: 16px 28px 16px 16px;
    border: 1px solid rgba(8, 98, 244, 0.10);
    border-radius: 13px;
    background: var(--blog-white);
    box-shadow: 0 12px 30px rgba(31, 59, 93, 0.05);
    transition: all 0.35s ease;
}

.blog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(31, 59, 93, 0.11);
}

.blog-thumb {
    width: 100%;
    height: 155px;
    overflow: hidden;
    border-radius: 9px;
    background: #eaf3ff;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-item:hover .blog-thumb img {
    transform: scale(1.06);
}

.blog-label {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #e7f0ff;
    color: var(--blog-blue-bright);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.blog-body h3 {
    margin: 0 0 12px;
    color: var(--blog-blue-dark);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.28;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    color: #6f7b99;
    font-size: 13px;
    font-weight: 700;
}

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

.blog-meta img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-body p {
    margin: 0;
    color: #536180;
    font-size: 14.2px;
    font-weight: 500;
    line-height: 1.55;
}

.blog-body a {
    text-decoration: none !important;
}

.blog-action {
    height: 100%;
    display: grid;
    justify-items: end;
    align-content: space-between;
    padding: 10px 0;
}

.blog-action span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7d89a5;
    font-size: 14px;
    font-weight: 700;
}

.blog-action a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blog-blue-bright);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.35s ease;
}

.blog-action a:hover {
    gap: 15px;
    text-decoration: none;
}

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

.blog-pagination a,
.blog-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31, 59, 93, 0.10);
    border-radius: 8px;
    background: var(--blog-white);
    color: #536180;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.blog-pagination a.active,
.blog-pagination a:hover {
    color: var(--blog-white);
    background: var(--blog-blue-bright);
    text-decoration: none;
}

.blog-pagination a.disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Animation */
.blog-main .fade-up {
    opacity: 0;
    animation: blogMainFadeUp 0.85s ease forwards;
}

.blog-main .delay-1 {
    animation-delay: 0.16s;
}

@keyframes blogMainFadeUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1399.98px) {
    .blog-item {
        grid-template-columns: 250px 1fr 150px;
        gap: 22px;
    }

    .blog-thumb {
        height: 140px;
    }
}

@media (max-width: 1199.98px) {
    .blog-main-wrap {
        grid-template-columns: 280px 1fr;
        gap: 24px;
    }

    .blog-item {
        grid-template-columns: 220px 1fr;
    }

    .blog-action {
        grid-column: 2 / 3;
        display: flex;
        justify-content: space-between;
        border-top: 1px solid rgba(8, 98, 244, 0.10);
        padding-top: 12px;
    }
}

@media (max-width: 991.98px) {
    .blog-main {
        padding: 24px 18px;
    }

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

    .blog-content {
        order: 1;
    }

    .blog-sidebar {
        order: 2;
        min-height: auto;
    }

    .blog-item {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 767.98px) {
    .blog-main {
        padding: 18px 12px;
    }

    .blog-sidebar,
    .blog-item {
        border-radius: 14px;
    }

    .blog-content-head {
        text-align: center;
    }

    .blog-item {
        grid-template-columns: 1fr;
        padding: 16px;
        text-align: center;
    }

    .blog-thumb {
        height: 210px;
    }

    .blog-label,
    .blog-meta {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .blog-action {
        grid-column: auto;
        align-items: center;
    }

    .blog-pagination {
        flex-wrap: wrap;
    }
}

/* =========================================================
   BLOG SHOW HERO
========================================================= */
.blog-show-hero {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff 0%, #edf5ff 48%, #cfe0ff 100%);
}

.blog-show-hero-inner {
    min-height: 610px;
    display: flex;
    align-items: center;
    padding: 110px 92px 92px;
}

.blog-show-content {
    max-width: 1350px;
}

.blog-show-badge {
    width: fit-content;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 10px 28px 10px 18px;
    margin-bottom: 52px;
    border-radius: 18px;
    background: rgba(8, 98, 244, 0.10);
    color: var(--blog-blue-bright);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    animation: blogBadgeFloat 3.8s ease-in-out infinite;
}

.blog-show-badge i {
    color: var(--blog-blue-bright);
    font-size: 23px;
}

.blog-show-content h1 {
    max-width: 1300px;
    margin: 0;
    color: var(--blog-blue-dark);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -2px;
}

/* Responsive */
@media (max-width: 1399.98px) {
    .blog-show-hero-inner {
        min-height: 560px;
        padding: 96px 72px 82px;
    }

    .blog-show-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 1199.98px) {
    .blog-show-hero-inner {
        min-height: 500px;
        padding: 86px 52px 72px;
    }

    .blog-show-content h1 {
        font-size: 48px;
    }

    .blog-show-badge {
        min-height: 18px;
        margin-bottom: 38px;
        font-size: 19px;
    }

    .blog-show-badge i {
        font-size: 23px;
    }
}

@media (max-width: 991.98px) {
    .blog-show-hero-inner {
        min-height: auto;
        padding: 76px 28px 70px;
        text-align: center;
        justify-content: center;
    }

    .blog-show-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .blog-show-content h1 {
        font-size: 42px;
        line-height: 1.25;
    }
}

@media (max-width: 767.98px) {
    .blog-show-hero-inner {
        padding: 60px 18px 56px;
    }

    .blog-show-badge {
        min-height: 46px;
        gap: 10px;
        padding: 8px 18px;
        margin-bottom: 30px;
        border-radius: 14px;
        font-size: 15px;
    }

    .blog-show-badge i {
        font-size: 19px;
    }

    .blog-show-content h1 {
        font-size: 32px;
        letter-spacing: -0.6px;
    }
}

@media (max-width: 575.98px) {
    .blog-show-content h1 {
        font-size: 27px;
    }
}

/* =========================================================
   BLOG SHOW CONTENT
========================================================= */

.blog-detail-card {
    overflow: hidden;
    border: 1px solid rgba(8, 98, 244, 0.12);
    border-radius: 14px;
    background: var(--blog-white);
    box-shadow: 0 18px 45px rgba(31, 59, 93, 0.08);
}

.blog-detail-inner {
    padding: 28px 34px 26px;
}

.blog-detail-inner h2 {
    max-width: 1060px;
    margin: 12px 0 18px;
    color: var(--blog-blue-dark);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.5px;
}

.blog-detail-image {
    overflow: hidden;
    height: 285px;
    margin: 24px 0 22px;
    border-radius: 10px;
    background: #eaf3ff;
    box-shadow: 0 14px 32px rgba(31, 59, 93, 0.10);
}

.blog-detail-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.blog-detail-card:hover .blog-detail-image img {
    transform: scale(1.025);
}

.blog-detail-body p {
    margin: 0 0 16px;
    color: #536180;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.72;
}

.blog-back-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1.5px solid rgba(8, 98, 244, 0.26);
    border-radius: 7px;
    background: var(--blog-white);
    color: var(--blog-blue-bright);
    font-size: 13.5px;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.35s ease;
}

.blog-back-btn:hover {
    color: var(--blog-white);
    background: var(--blog-blue-bright);
    border-color: var(--blog-blue-bright);
    transform: translateY(-4px);
    text-decoration: none;
}

.blog-back {
    padding-top: 18px;
}

.share-btn {
    position: relative;
    z-index: 10;
}

.share-btn.copied {
    color: var(--blog-white) !important;
    background: var(--blog-blue-bright);
    border-color: var(--blog-blue-bright);
}

/* Responsive */
@media (max-width: 991.98px) {
    .blog-detail-inner {
        padding: 26px 24px 24px;
    }

    .blog-detail-inner h2 {
        font-size: 28px;
    }

    .blog-detail-image {
        height: 240px;
    }
}

@media (max-width: 767.98px) {
    .blog-detail-inner {
        padding: 22px 16px;
        text-align: center;
    }

    .blog-detail-inner h2 {
        font-size: 23px;
    }

    .blog-detail-image {
        height: 190px;
    }

    .blog-detail-body p {
        text-align: left;
        font-size: 14.5px;
    }

    .blog-back-btn {
        width: 100%;
    }
}