/* Dedicated styles for the blog section - DFW Royal Limos */
.blog-page {
    --blog-ink: #09253f;
    --blog-gold: #bd892d;
    --blog-gold-hover: #d69e38;
    --blog-sand: #f8f6f2;
    --blog-sand-accent: #f0eae1;
    --blog-paper: #ffffff;
    --blog-body: #475569;
    --blog-line: #e6e0d5;
    --blog-shadow: 0 20px 45px rgba(9, 37, 63, 0.08);
    --blog-shadow-hover: 0 25px 50px rgba(9, 37, 63, 0.14);
    background: var(--blog-paper);
    color: var(--blog-body);
}

.blog-page a {
    color: inherit;
}

.blog-page a:focus-visible,
.blog-page button:focus-visible,
.blog-page input:focus-visible {
    outline: 3px solid rgba(189, 137, 45, 0.5);
    outline-offset: 3px;
}

.blogs-main-title {
    color: var(--blog-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.blogs-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--blog-gold);
}

.blog-eyebrow,
.blog-cta__eyebrow {
    margin: 0 0 0.75rem;
    color: var(--blog-gold);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    line-height: 1.3;
    text-transform: uppercase;
}

.blog-hero h1,
.blog-detail__title,
.blog-section-heading h2,
.blog-empty-state h2,
.blog-cta h2,
.blog-detail__services h2,
.blog-detail__cta h2 {
    color: var(--blog-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}

.blog-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    margin: 0;
}

.blog-hero > .container > p:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 1.02rem;
    line-height: 1.8;
    margin: 1.2rem auto 0;
    max-width: 680px;
}

.blog-hero .breadcrumb,
.blog-detail-hero .breadcrumb {
    justify-content: center;
}

.blog-content-section {
    padding: 4.5rem 0 5.5rem;
}

.blog-layout {
    align-items: start;
    display: grid;
    gap: clamp(2rem, 4vw, 4rem);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

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

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

.blog-card {
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(9, 37, 63, 0.03);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover {
    border-color: rgba(189, 137, 45, 0.4);
    box-shadow: var(--blog-shadow-hover);
    transform: translateY(-6px);
}

.blog-card__image {
    background: var(--blog-ink);
    display: block;
    overflow: hidden;
    position: relative;
}

.blog-card__image img {
    aspect-ratio: 16 / 10;
    display: block;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.06);
}

.blog-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.6rem 1.6rem 1.75rem;
}

.blog-card__meta,
.blog-detail__meta {
    align-items: center;
    color: #68778a;
    display: flex;
    flex-wrap: wrap;
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    gap: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-card__meta .blog-card__category {
    background: var(--blog-sand);
    border: 1px solid var(--blog-line);
    border-radius: 20px;
    color: var(--blog-gold);
    padding: 0.2rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.blog-card__author {
    color: var(--blog-ink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card__meta time::before {
    background: #c7ced6;
    border-radius: 50%;
    content: '';
    display: inline-block;
    height: 4px;
    margin: 0 0.5rem 0.11rem 0;
    width: 4px;
}

.blog-card__title {
    color: var(--blog-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0.85rem 0 0.65rem;
}

.blog-card__title a,
.blog-card__link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card__title a:hover {
    color: var(--blog-gold);
}

.blog-card__excerpt {
    color: var(--blog-body);
    font-family: 'Poppins', sans-serif;
    font-size: 0.91rem;
    line-height: 1.7;
    margin: 0 0 1.4rem;
}

.blog-card__link,
.blog-button {
    align-items: center;
    color: var(--blog-gold);
    display: inline-flex;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-card__link {
    margin-top: auto;
}

.blog-card__link span,
.blog-button span,
.blog-service-links span {
    transition: transform 0.2s ease;
}

.blog-card__link:hover,
.blog-button:hover,
.blog-service-links a:hover {
    color: var(--blog-ink);
}

.blog-card__link:hover span,
.blog-button:hover span,
.blog-service-links a:hover span {
    transform: translateX(5px);
}

/* Sidebar Styles */
.blog-sidebar {
    display: grid;
    gap: 1.5rem;
}

.blog-sidebar-widget {
    background: var(--blog-sand);
    border: 1px solid var(--blog-line);
    border-radius: 8px;
    padding: 1.65rem;
}

.blog-sidebar-title {
    color: var(--blog-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1.1rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.blog-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--blog-gold);
}

.blog-search {
    display: flex;
}

.blog-search input {
    background: #fff;
    border: 1px solid #d9d1c5;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    color: var(--blog-ink);
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    min-width: 0;
    padding: 0.78rem 0.8rem;
    width: 100%;
}

.blog-search button {
    background: var(--blog-gold);
    border: 1px solid var(--blog-gold);
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.78rem 0.9rem;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.blog-search button:hover {
    background: var(--blog-ink);
    border-color: var(--blog-ink);
}

.blog-recent-posts,
.blog-category-list,
.blog-related-services {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-recent-posts li + li,
.blog-category-list li + li,
.blog-related-services li + li {
    border-top: 1px solid #e3ddd4;
}

.blog-recent-posts a,
.blog-category-list a,
.blog-related-services a {
    color: var(--blog-ink);
    display: block;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.blog-recent-posts a {
    padding: 0.88rem 0;
}

.blog-recent-posts a:hover,
.blog-category-list a:hover,
.blog-related-services a:hover {
    color: var(--blog-gold);
}

.blog-recent-posts span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
}

.blog-recent-posts time {
    color: #748193;
    display: block;
    font-size: 0.72rem;
    margin-top: 0.35rem;
}

.blog-recent-posts__author {
    color: #748193;
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.blog-recent-posts__author + time {
    margin-top: 0.15rem;
}

.blog-cta {
    background: linear-gradient(145deg, var(--blog-ink) 0%, #0d365c 100%);
    border-color: var(--blog-ink);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.blog-cta .blog-cta__eyebrow {
    color: #d6ad69;
}

.blog-cta h2 {
    color: #fff;
    font-size: 1.65rem;
    margin: 0;
}

.blog-cta p:not(.blog-cta__eyebrow) {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0.8rem 0 1.35rem;
}

.blog-button {
    background: var(--blog-gold);
    border-radius: 4px;
    color: #fff;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.blog-button:hover {
    background: var(--blog-gold-hover);
    color: #fff;
    box-shadow: 0 6px 20px rgba(189, 137, 45, 0.35);
}

.blog-breadcrumb ol {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-breadcrumb li {
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
}

.blog-breadcrumb li + li::before {
    color: var(--blog-gold);
    content: '/';
    font-size: 1rem;
    margin-right: 0.5rem;
}

.blog-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-breadcrumb a:hover {
    color: var(--blog-gold);
}

/* ==========================================================================
   Blog Detail Page Redesign (H1 above image, Author Mr. Zeeshan Warraich)
   ========================================================================== */
.blog-detail-section {
    padding-top: 3rem;
}

.blog-detail__header {
    border-bottom: 1px solid var(--blog-line);
    margin-bottom: 2rem;
    padding-bottom: 1.8rem;
}

.blog-detail__category-badge {
    display: inline-block;
    background: var(--blog-sand);
    border: 1px solid var(--blog-line);
    color: var(--blog-gold);
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.blog-detail__title {
    color: var(--blog-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.2rem;
    max-width: 900px;
}

/* Author Bar Styling */
.blog-author-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    background: var(--blog-sand);
    border: 1px solid var(--blog-line);
    border-radius: 8px;
    padding: 0.9rem 1.3rem;
    margin-top: 1rem;
}

.blog-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blog-ink) 0%, #1a4975 100%);
    color: var(--blog-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--blog-gold);
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(9, 37, 63, 0.15);
}

.blog-author-details {
    display: flex;
    flex-direction: column;
}

.blog-author-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blog-gold);
    font-weight: 700;
}

.blog-author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blog-ink);
}

.blog-meta-divider {
    width: 1px;
    height: 28px;
    background: var(--blog-line);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-post-meta svg, 
.blog-post-meta i {
    color: var(--blog-gold);
}

/* Featured Blog Image directly below H1 and Author Bar */
.blog-detail__image {
    margin: 0 0 2.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(9, 37, 63, 0.1);
    border: 1px solid var(--blog-line);
}

.blog-detail__image img {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.blog-detail__content {
    color: #334155;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.88;
}

.blog-detail__content section + section {
    margin-top: 2.6rem;
}

.blog-detail__content h2 {
    color: var(--blog-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.blog-detail__content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--blog-gold);
}

.blog-detail__content p {
    margin: 0;
}

.blog-detail__content p + p {
    margin-top: 1.25rem;
}

.blog-detail__content ul,
.blog-detail__content ol {
    margin: 1.2rem 0 0;
    padding-left: 1.35rem;
}

.blog-detail__content li {
    margin-bottom: 0.5rem;
}

.blog-detail__content a {
    color: var(--blog-gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease;
}

.blog-detail__content a:hover {
    color: var(--blog-ink);
}

.blog-detail__services {
    border-top: 1px solid var(--blog-line);
    margin-top: 3.5rem;
    padding-top: 2.5rem;
}

.blog-detail__services h2,
.blog-detail__cta h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    line-height: 1.2;
    margin: 0;
}

.blog-service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.35rem;
}

.blog-service-links a {
    align-items: center;
    background: var(--blog-sand);
    border: 1px solid var(--blog-line);
    border-radius: 6px;
    color: var(--blog-ink);
    display: inline-flex;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.55rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.blog-service-links a:hover {
    background: var(--blog-ink);
    color: #fff;
    border-color: var(--blog-ink);
}

.blog-detail__cta {
    background: linear-gradient(135deg, var(--blog-sand) 0%, var(--blog-sand-accent) 100%);
    border: 1px solid var(--blog-line);
    border-radius: 10px;
    margin-top: 3.5rem;
    padding: clamp(2rem, 4vw, 3rem);
}

.blog-detail__cta .blog-button {
    margin-top: 1.3rem;
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 2rem;
    }

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

    .blog-sidebar-widget {
        padding: 1.3rem;
    }

    .blog-search {
        flex-direction: column;
    }

    .blog-search input {
        border: 1px solid #d9d1c5;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }

    .blog-search button {
        border-radius: 4px;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .blog-content-section {
        padding: 3rem 0;
    }

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

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

    .blog-card__content {
        padding: 1.35rem;
    }

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

    .blog-author-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .blog-meta-divider {
        display: none;
    }

    .blog-detail-section {
        padding-top: 2.2rem;
    }

    .blog-detail__header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .blog-detail__image {
        margin-bottom: 1.8rem;
    }

    .blog-detail__content {
        font-size: 0.97rem;
        line-height: 1.8;
    }
}

/* ==========================================================================
   Blog FAQs
   ========================================================================== */
.blog-faq {
    margin-top: 2.5rem !important;
}

.blog-faq__title {
    font-size: 1.35rem !important;
    margin-bottom: 1.2rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blog-ink);
}

.blog-faq__title::after {
    display: none;
}

.blog-faq .accordion {
    border: 1px solid var(--blog-line);
    border-radius: 10px;
    overflow: hidden;
}

.blog-faq .accordion-item {
    background: var(--blog-sand);
    border: 0;
}

.blog-faq .accordion-item + .accordion-item {
    border-top: 1px solid var(--blog-line);
}

.blog-faq .accordion-button {
    background: var(--blog-sand);
    box-shadow: none;
    color: var(--blog-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 1.15rem 1.35rem;
}

.blog-faq .accordion-button:not(.collapsed) {
    background: #ffffff;
    color: var(--blog-ink);
    box-shadow: none;
}

.blog-faq .accordion-button:focus {
    border-color: transparent;
    box-shadow: inset 0 0 0 2px rgba(189, 137, 45, 0.55);
}

.blog-faq .accordion-button::after {
    background-size: 1rem;
}

.blog-faq .accordion-body {
    background: var(--blog-sand);
    padding: 1.35rem;
}

.blog-faq__answer-label {
    color: #748193;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.9rem !important;
    text-transform: uppercase;
}

.blog-keynotes-grid {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 0.75rem;
}

.blog-keynotes-grid li {
    background: #ffffff;
    border: 1px solid var(--blog-line);
    border-left: 3px solid var(--blog-gold);
    border-radius: 6px;
    padding: 0.7rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--blog-ink);
    margin-bottom: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.blog-keynotes-grid li:hover {
    box-shadow: 0 4px 12px rgba(9, 37, 63, 0.08);
    transform: translateY(-2px);
}

.blog-keynotes-grid li .keynote-icon {
    color: var(--blog-gold);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* NER Tags Styling */
.blog-ner-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ner-tag {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5dfd5;
    border-radius: 30px;
    padding: 0.38rem 0.85rem;
    font-size: 0.82rem;
    gap: 0.55rem;
    box-shadow: 0 2px 6px rgba(9, 37, 63, 0.03);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ner-tag:hover {
    background: #ffffff;
    border-color: var(--blog-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(189, 137, 45, 0.18);
}

.ner-cat {
    background: rgba(189, 137, 45, 0.12);
    color: #a47321;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    flex-shrink: 0;
}

.ner-val {
    color: var(--blog-ink);
    font-weight: 600;
    letter-spacing: 0.01em;
}

@media (max-width: 767.98px) {
    .blog-keynotes-grid {
        grid-template-columns: 1fr;
    }
}
