/* DigeeSell Blog — Modern Card Grid */
:root {
    --blog-navy: #092d5b;
    --blog-navy-light: #1a4a8f;
    --blog-navy-deep: #051a36;
    --blog-gold: #fcc010;
    --blog-gold-hover: #e5ad00;
    --blog-bg: #f4f6f9;
    --blog-text: #1e293b;
    --blog-muted: #64748b;
    --blog-card-radius: 16px;
    --blog-shadow: 0 4px 24px rgba(9, 45, 91, 0.08);
    --blog-shadow-hover: 0 12px 40px rgba(9, 45, 91, 0.16);
}

/* Page header */
.blog-page-header {
    position: relative;
    padding: 90px 0 80px;
    background: linear-gradient(135deg, var(--blog-navy) 0%, var(--blog-navy-light) 100%);
    overflow: hidden;
}

.blog-page-header::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 192, 16, 0.25) 0%, rgba(252, 192, 16, 0) 72%);
    pointer-events: none;
}

.blog-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.blog-page-header .container {
    position: relative;
    z-index: 1;
}

.blog-page-header h1,
.blog-page-header h2 {
    color: #fff !important;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.blog-page-header .breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-page-header .breadcrumb-nav a,
.blog-page-header .breadcrumb-nav span,
.blog-page-header .page-header__menu a,
.blog-page-header .page-header__menu span {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
}

.blog-page-header .breadcrumb-nav a:hover,
.blog-page-header .page-header__menu a:hover {
    color: var(--blog-gold);
}

.blog-page-header .breadcrumb-nav .sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.blog-page-header .page-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-page-header .page-header__content {
    text-align: center;
}

/* Section */
.blog-grid-section {
    background: var(--blog-bg);
    padding: 80px 0 100px;
}

/* Card grid */
.blog-grid {
    --bs-gutter-x: 1.75rem;
    --bs-gutter-y: 1.75rem;
}

.blog-card {
    background: #fff;
    border-radius: var(--blog-card-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    border: 1px solid rgba(9, 45, 91, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--blog-shadow-hover);
}

.blog-card::before {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blog-gold), #ffe08b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--blog-navy), var(--blog-navy-light));
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.06);
}

.blog-card__image .placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
}

.blog-card__category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--blog-gold);
    color: var(--blog-navy);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 20px;
}

.blog-card__body {
    padding: 1.5rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    color: var(--blog-muted);
}

.blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card__meta i {
    color: var(--blog-gold);
    font-size: 0.75rem;
}

.blog-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    flex: 1;
}

.blog-card__title a {
    color: var(--blog-navy);
    text-decoration: none;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title a:hover {
    color: var(--blog-gold-hover);
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--blog-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blog-navy);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.25s ease, color 0.25s ease;
}

.blog-card__link i {
    color: var(--blog-gold);
    transition: transform 0.25s ease;
}

.blog-card__link:hover {
    color: var(--blog-gold-hover);
    gap: 12px;
}

.blog-card__link:hover i {
    transform: translateX(4px);
}

/* Empty state */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: var(--blog-card-radius);
    box-shadow: var(--blog-shadow);
}

.blog-empty i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

/* Pagination */
.blog-pagination {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.blog-pagination .pagination {
    gap: 6px;
}

.blog-pagination .page-link {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0;
    color: var(--blog-navy);
    font-weight: 600;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
}

.blog-pagination .page-item.active .page-link {
    background: var(--blog-gold);
    border-color: var(--blog-gold);
    color: var(--blog-navy);
}

.blog-pagination .page-link:hover {
    background: var(--blog-navy);
    border-color: var(--blog-navy);
    color: #fff;
}

/* Single post */
.blog-single-header {
    background: linear-gradient(135deg, var(--blog-navy), var(--blog-navy-light));
    color: #fff;
    padding: 4rem 0 3.5rem;
}

.blog-single-header h1 {
    color: #fff !important;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.blog-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-single-meta i {
    color: var(--blog-gold);
    margin-right: 6px;
}

.blog-single-meta .badge-cat {
    background: var(--blog-gold);
    color: var(--blog-navy);
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.blog-single-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
}

.blog-single-content .featured-image {
    border-radius: var(--blog-card-radius);
    box-shadow: var(--blog-shadow);
    margin-bottom: 2.5rem;
}

.blog-single-content .blog-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--blog-text);
}

.blog-single-content .blog-content p,
.blog-single-content .blog-content ul,
.blog-single-content .blog-content ol {
    margin-bottom: 1.2rem;
}

.blog-single-content .blog-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blog-navy);
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--blog-gold);
}

.blog-single-content .blog-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--blog-navy);
    margin: 2rem 0 0.75rem;
}

.blog-single-content .blog-content blockquote {
    border-left: 4px solid var(--blog-gold);
    background: #fffdf4;
    padding: 1rem 1.2rem;
    border-radius: 0 10px 10px 0;
    margin: 1.6rem 0;
    color: #334155;
}

.blog-single-content .blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--blog-shadow);
    margin: 1.8rem 0;
}

.blog-single-content .blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 10px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.blog-single-content .blog-content table th,
.blog-single-content .blog-content table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
}

.blog-single-content .blog-content table th {
    background: #eef3fb;
    color: var(--blog-navy);
}

/* Related posts */
.blog-related {
    background: var(--blog-bg);
    padding: 4rem 0 5rem;
}

.blog-related__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blog-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.blog-related__title span {
    color: var(--blog-gold);
}

/* Share */
.blog-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.blog-share__btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.blog-share__btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* FAQ on single */
.blog-faq .accordion-button:not(.collapsed) {
    background: var(--blog-navy);
    color: #fff;
    box-shadow: none;
}

.blog-faq .accordion-button {
    font-weight: 600;
}

@media (max-width: 991px) {
    .blog-grid-section {
        padding: 60px 0 80px;
    }
}

@media (max-width: 767px) {
    .blog-page-header {
        padding: 60px 0 50px;
    }

    .blog-card__body {
        padding: 1.25rem;
    }
}

/* Legacy ourblogs card support inside grid */
.blog-grid .blog_card_details {
    background: #fff;
    border-radius: var(--blog-card-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    border: 1px solid rgba(9, 45, 91, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin-bottom: 0 !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-grid .blog_card_details:hover {
    transform: translateY(-8px);
    box-shadow: var(--blog-shadow-hover);
}

.blog-grid .blog-details__img {
    margin-bottom: 0 !important;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.blog-grid .blog-details__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.blog-grid .blog_card_details:hover .blog-details__img img {
    transform: scale(1.06);
}

.blog-grid .blog-details__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-grid .blog-details__meta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--blog-muted);
}

.blog-grid .postbox__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--blog-navy);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-grid .blog-details__content > p {
    font-size: 0.9rem;
    color: var(--blog-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-grid a.blog_details {
    color: var(--blog-navy);
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-grid a.blog_details i {
    color: var(--blog-gold);
}

/* Full-width blog article pages (no sidebar) */
.blog-article-full .blog_card_details_page,
.blog-article-full .blog-details__left {
    max-width: 900px;
    margin: 0 auto;
}

.blog-article-full .blog_card_details_page img,
.blog-article-full .blog-details__left img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.blog-article-full .blog_card_details_page,
.blog-article-full .blog_card_details_page p,
.blog-article-full .blog_card_details_page li {
    color: var(--blog-text);
    line-height: 1.8;
}

.blog-article-full .blog_card_details_page h1,
.blog-article-full .blog_card_details_page h2,
.blog-article-full .blog_card_details_page h3 {
    color: var(--blog-navy);
    line-height: 1.3;
    font-weight: 800;
}

.blog-article-full .blog_card_details_page h2 {
    margin-top: 2.2rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--blog-gold);
}
