/* ============================================
   NativOdds — blog.css  (White + Blue Theme)
   Place in: assets/css/blog.css
   ============================================ */

:root {
    --blog-blue:       #1a56db;
    --blog-blue-dark:  #1341b0;
    --blog-blue-light: #e8f0fe;
    --blog-blue-mid:   #3b82f6;
    --blog-text:       #1e293b;
    --blog-muted:      #64748b;
    --blog-light:      #f8fafc;
    --blog-border:     #e2e8f0;
    --blog-white:      #ffffff;
    --blog-shadow:     rgba(26, 86, 219, 0.10);
}

/* ================================================
   BLOG SECTION WRAPPER
   ================================================ */
.blog-section {
    padding: 80px 0 80px;
    background: var(--blog-light);
}

/* ================================================
   INTRO BANNER — horizontal card
   ================================================ */
.blog-intro-banner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    background: var(--blog-white);
    border-left: 6px solid var(--blog-blue);
    border-radius: 14px;
    padding: 40px 44px;
    margin-bottom: 64px;
    box-shadow: 0 4px 28px var(--blog-shadow);
    position: relative;
    overflow: hidden;
}
.blog-intro-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 220px; height: 100%;
    background: linear-gradient(135deg, var(--blog-blue-light) 0%, transparent 70%);
    pointer-events: none;
}
.blog-intro-banner__icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: var(--blog-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(26,86,219,0.3);
}
.blog-intro-banner__icon i {
    font-size: 28px;
    color: #fff;
}
.blog-intro-banner__content {
    flex: 1;
    position: relative;
    z-index: 1;
}
.blog-intro-banner__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--blog-blue);
    background: var(--blog-blue-light);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.blog-intro-banner__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 12px;
    line-height: 1.35;
}
.blog-intro-banner__text {
    font-size: 18px;
    color: var(--blog-muted);
    line-height: 1.85;
    margin: 0;
    max-width: 780px;
}

/* ================================================
   SECTION TITLE OVERRIDE (white+blue)
   ================================================ */
.blog-section .section-sub-title {
    color: var(--blog-blue) !important;
}

/* ================================================
   SEARCH BAR
   ================================================ */
.blog-search-wrap {
    max-width: 640px;
    margin: 0 auto 52px;
}
.blog-search-box {
    display: flex;
    align-items: center;
    background: var(--blog-white);
    border: 2px solid var(--blog-border);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.blog-search-box:focus-within {
    border-color: var(--blog-blue);
    box-shadow: 0 0 0 4px rgba(26,86,219,0.10);
}
.blog-search-box__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 24px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--blog-text);
    background: transparent;
}
.blog-search-box__input::placeholder {
    color: #a0aec0;
}
.blog-search-box__btn {
    background: var(--blog-blue);
    border: none;
    padding: 15px 26px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 0 50px 50px 0;
}
.blog-search-box__btn:hover {
    background: var(--blog-blue-dark);
}
.blog-search-box__hint {
    text-align: center;
    font-size: 13px;
    color: var(--blog-muted);
    margin-top: 10px;
    min-height: 20px;
}

/* ================================================
   BLOG CARDS GRID
   ================================================ */
.blog-cards-grid {
    row-gap: 36px;
    margin-top: 10px;
}
.blog-card-item {
    margin-bottom: 0;
    padding-bottom: 36px;
}

/* ================================================
   BLOG CARD
   ================================================ */
.blog-card {
    background: var(--blog-white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--blog-border);
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px var(--blog-shadow);
    border-color: var(--blog-blue-mid);
}

/* ---- Image ---- */
.blog-card__img-wrap {
    position: relative;
    overflow: hidden;
    height: 230px;
    background: var(--blog-blue-light);
}
.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.blog-card:hover .blog-card__img {
    transform: scale(1.06);
}
.blog-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--blog-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}
.blog-card__read-time {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.92);
    color: var(--blog-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Body ---- */
.blog-card__body {
    padding: 26px 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ---- Title ---- */
.blog-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--blog-text);
}
.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}
.blog-card__title a:hover {
    color: var(--blog-blue);
}

/* ---- Excerpt — more content ---- */
.blog-card__excerpt {
    font-size: 17px;
    color: var(--blog-muted);
    line-height: 1.85;
    margin-bottom: 16px;
    flex: 1;
}

/* ---- Tags ---- */
.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.blog-card__tag {
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-blue);
    background: var(--blog-blue-light);
    padding: 4px 11px;
    border-radius: 12px;
}

/* ---- Divider ---- */
.blog-card__divider {
    height: 3px;
    background: var(--blog-border);
    margin-bottom: 16px;
}

/* ---- Meta ---- */
.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.blog-card__author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blog-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.blog-card__author-info {
    display: flex;
    flex-direction: column;
}
.blog-card__author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--blog-text);
    line-height: 1.2;
}
.blog-card__author-role {
    font-size: 13px;
    color: var(--blog-muted);
    line-height: 1.2;
}
.blog-card__date {
    font-size: 14px;
    color: var(--blog-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.blog-card__date i {
    color: var(--blog-blue-mid);
    font-size: 13px;
}

/* ---- Read More Link ---- */
.blog-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blog-blue);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: gap 0.25s, color 0.25s;
}
.blog-card__readmore:hover {
    gap: 10px;
    color: var(--blog-blue-dark);
}
.blog-card__readmore i {
    font-size: 12px;
}

/* ================================================
   NO RESULTS
   ================================================ */
.blog-no-results {
    text-align: center;
    padding: 70px 20px;
    color: var(--blog-muted);
}
.blog-no-results i {
    font-size: 52px;
    display: block;
    margin-bottom: 18px;
    color: var(--blog-border);
}
.blog-no-results p {
    font-size: 16px;
}

/* ================================================
   PAGINATION
   ================================================ */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--blog-border);
}
.blog-pagination__list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.blog-pagination__list li {
    list-style: none;
}
.blog-pagination__list li a,
.blog-pagination__list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--blog-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-muted);
    text-decoration: none;
    transition: all 0.25s;
    background: var(--blog-white);
    cursor: pointer;
}
.blog-pagination__list li a:hover {
    background: var(--blog-blue-light);
    color: var(--blog-blue);
    border-color: var(--blog-blue);
}
.blog-pagination__list li.active span {
    background: var(--blog-blue);
    color: #fff;
    border-color: var(--blog-blue);
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}
.blog-pagination__list li.disabled span {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 991px) {
    .blog-intro-banner {
        flex-direction: column;
        gap: 20px;
        padding: 30px 26px;
    }
    .blog-intro-banner__title { font-size: 20px; }
    .blog-intro-banner::before { display: none; }
}
@media (max-width: 767px) {
    .blog-section { padding: 50px 0 50px; }
    .blog-intro-banner { padding: 24px 20px; margin-bottom: 40px; }
    .blog-intro-banner__title { font-size: 18px; }
    .blog-card__img-wrap { height: 200px; }
    .blog-card__body { padding: 20px 20px 18px; }
    .blog-cards-grid { row-gap: 24px; }
    .blog-card-item { padding-bottom: 24px; }
}
/* ===============================
   BLOG MODAL — IMPROVED UX
================================== */

.blog-modal{
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 25px 80px rgba(0,0,0,.3);
}

.modal-content{
    animation: modalZoom .35s ease;
}

@keyframes modalZoom{
    from{ opacity:0; transform:scale(.92) translateY(20px); }
    to{ opacity:1; transform:scale(1) translateY(0); }
}

/* ===============================
   HERO HEADER (image + gradient)
================================== */

.blog-modal-hero{
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: #fff;
}

.blog-modal-hero__overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.85) 100%);
}

.blog-modal-hero__category{
    position: absolute;
    top: 20px;
    left: 20px;
    background: #0d6efd;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    z-index: 2;
}

.blog-modal-hero .btn-close{
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.9);
    opacity: 1;
    transition: .3s;
}

.blog-modal-hero .btn-close:hover{
    transform: rotate(180deg) scale(1.1);
    background-color: #fff;
}

.blog-modal-hero__content{
    position: relative;
    z-index: 2;
    width: 100%;
}

.blog-modal-hero .modal-title{
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.blog-modal-hero__meta{
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    opacity: .95;
}

.blog-modal-hero__meta i{
    margin-right: 6px;
    color: #6ea8ff;
}

/* ===============================
   READING PROGRESS BAR
================================== */

.blog-modal__progress{
    position: sticky;
    top: -30px;
    height: 4px;
    background: #eef1f5;
    border-radius: 10px;
    margin: -30px -30px 25px -30px;
    overflow: hidden;
    z-index: 5;
}

.blog-modal__progress-bar{
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0d6efd, #6ea8ff);
    transition: width .1s linear;
}

/* ===============================
   BODY
================================== */

.blog-modal .modal-body{
    padding: 30px;
    line-height: 1.9;
    font-size: 17px;
    color: #555;
}

.blog-modal__lead{
    font-size: 18px;
    color: #333;
    font-weight: 500;
    border-left: 4px solid #0d6efd;
    padding-left: 18px;
    margin-bottom: 28px;
}

.blog-modal h4{
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 14px;
    color: #111;
}

.blog-modal__icon{
    color: #0d6efd;
    font-size: 18px;
    margin-right: 10px;
    background: #eaf2ff;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.blog-modal p{
    margin-bottom: 18px;
}

/* ===============================
   CTA BOX (end of article)
================================== */

.blog-modal__cta{
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #0d6efd, #4f8cff);
    border-radius: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-modal__cta p{
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}

.blog-modal__cta-btn{
    background: #fff;
    color: #0d6efd;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    white-space: nowrap;
    transition: .3s;
}

.blog-modal__cta-btn:hover{
    background: #111;
    color: #fff;
    transform: translateX(3px);
}

/* ===============================
   SCROLLBAR
================================== */

.modal-body::-webkit-scrollbar{
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb{
    background: #0d6efd;
    border-radius: 10px;
}

.modal-backdrop.show{
    opacity: .8;
}

/* ===============================
   MOBILE
================================== */

@media(max-width: 768px){

    .blog-modal-hero{
        height: 200px;
        padding: 20px;
    }

    .blog-modal-hero .modal-title{
        font-size: 20px;
    }

    .blog-modal-hero__meta{
        font-size: 12px;
        gap: 10px;
    }

    .blog-modal .modal-body{
        padding: 20px;
        font-size: 15px;
    }

    .blog-modal__cta{
        flex-direction: column;
        align-items: flex-start;
    }
}