/* =========================================================
   VAASTU MAHAJEEVAN BLOG DETAILS
   Premium Navy + Gold Theme
========================================================= */

.blog-details,
.blog-details *,
.related-blog-section,
.related-blog-section * {
    box-sizing: border-box;
}

/* =========================================================
   HERO / BREADCRUMB BACKGROUND
========================================================= */

.v-blog-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 390px;
    padding: 42px 0 50px;
    overflow: hidden;
    background-color: #0b192c;

    background-image:
        linear-gradient(
            105deg,
            rgba(7, 22, 40, 0.96) 0%,
            rgba(11, 31, 49, 0.9) 48%,
            rgba(22, 39, 50, 0.78) 100%
        ),
        var(--v-blog-hero-image, none);

    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
}

.v-blog-hero::after {
    position: absolute;
    z-index: -1;
    top: -230px;
    right: -100px;
    width: 550px;
    height: 550px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(239, 189, 105, 0.16);
    border-radius: 50%;

    box-shadow:
        0 0 0 55px rgba(239, 189, 105, 0.035),
        0 0 0 110px rgba(239, 189, 105, 0.025);
}

.v-blog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(7, 22, 40, 0.45),
        rgba(12, 31, 47, 0.16) 75%,
        rgba(167, 123, 53, 0.13)
    );
}

.v-blog-hero-container {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    padding-right: 24px;
    padding-left: 24px;
    color: #ffffff;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.v-blog-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 32px;
    color: #efbd69;
    font-size: 14px;
    line-height: 1.8;
}

.v-blog-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.v-blog-breadcrumb a:hover {
    color: #efbd69;
}

.v-blog-breadcrumb a i,
.v-blog-breadcrumb .separator {
    color: #efbd69;
}

.v-blog-breadcrumb .separator {
    font-size: 10px;
}

.v-blog-breadcrumb span[aria-current="page"] {
    color: #efbd69;
    overflow-wrap: anywhere;
}

/* =========================================================
   HERO LABEL
========================================================= */

.v-blog-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 11px 17px;
    color: #efbd69;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(239, 189, 105, 0.45);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.v-blog-hero-label i {
    font-size: 15px;
}

/* =========================================================
   HERO TITLE
========================================================= */

.v-blog-hero-title {
    max-width: 950px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.v-blog-hero-line {
    width: 72px;
    height: 4px;
    margin: 22px 0 18px;
    background: linear-gradient(90deg, #efbd69, transparent);
    border-radius: 5px;
}

.v-blog-hero-description {
    max-width: 850px;
    margin: 0;
    color: #dce3ea;
    font-size: 16px;
    line-height: 1.9;
}

/* =========================================================
   HERO META
========================================================= */

.v-blog-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.v-blog-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-size: 13px;
}

.v-blog-hero-meta i {
    color: #efbd69;
    font-size: 15px;
}

/* =========================================================
   BLOG DETAILS LAYOUT
========================================================= */

.blog-details {
    padding: 65px 0 !important;
    background: #faf9f6;
}

.blog-details .container {
    max-width: 1320px;
}

.blog-details .row {
    align-items: flex-start;
}

/* =========================================================
   BLOG CONTENT CARD
========================================================= */

.blog-content-card {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #eee8df;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(23, 35, 55, 0.055);
}

/* Banner */

.blog-banner {
    width: 100%;
    max-height: 490px;
    overflow: hidden;
    background: #ece8df;
}

.blog-banner img {
    display: block;
    width: 100%;
    max-height: 490px;
    object-fit: cover;
    object-position: center;
}

/* Blog title */

.blog-main-title {
    padding: 30px 35px 22px;
    border-bottom: 1px solid #f0ede7;
}

.blog-main-title h2 {
    margin: 0 0 15px;
    color: var(--ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.blog-publish-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.blog-publish-date i {
    color: #a77b35;
}

/* =========================================================
   BLOG DESCRIPTION
========================================================= */

.blog-description {
    padding: 30px 35px 40px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
    word-break: normal;
}

.blog-description > *:first-child {
    margin-top: 0;
}

.blog-description > *:last-child {
    margin-bottom: 0;
}

.blog-description h1,
.blog-description h2,
.blog-description h3,
.blog-description h4,
.blog-description h5,
.blog-description h6 {
    margin: 30px 0 15px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.45;
}

.blog-description h2 {
    font-size: 29px;
}

.blog-description h3 {
    font-size: 24px;
}

.blog-description h4 {
    font-size: 20px;
}

.blog-description p {
    margin-bottom: 20px;
}

.blog-description a {
    color: #a77b35;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.blog-description ul,
.blog-description ol {
    margin: 0 0 22px;
    padding-left: 25px;
}

.blog-description li {
    margin-bottom: 9px;
}

.blog-description blockquote {
    margin: 25px 0;
    padding: 20px 24px;
    color: var(--muted);
    background: #f8f4ec;
    border-left: 4px solid #a77b35;
    border-radius: 0 8px 8px 0;
}

.blog-description img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    border-radius: 8px;
}

.blog-description iframe,
.blog-description video {
    max-width: 100%;
}

.blog-description table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.blog-description th,
.blog-description td {
    padding: 11px 13px;
    border: 1px solid #e5e0d7;
}

/* =========================================================
   BLOG SIDEBAR - STICKY WITHOUT INNER SCROLL
========================================================= */

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    width: 100%;
    height: auto;
    align-self: flex-start;
}

/* Desktop sticky */
@media (min-width: 992px) {
    .blog-sidebar {
        position: sticky !important;
        position: -webkit-sticky !important;
        top: 100px !important;

        height: auto !important;
        max-height: none !important;

        overflow: visible !important;
        align-self: flex-start !important;
        margin-top: 0 !important;
    }
}

.sidebar-card {
    width: 100%;
    min-width: 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #eee8df;
    border-radius: 10px;
    box-shadow: 0 7px 25px rgba(23, 35, 55, 0.04);
}

.sidebar-title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    color: var(--ink);
    border-bottom: 1px solid #eee8df;
    font-size: 20px;
    font-weight: 750;
}

.sidebar-title::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 55px;
    height: 3px;
    content: "";
    background: #a77b35;
    border-radius: 4px;
}

/* =========================================================
   SEARCH BOX
========================================================= */

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid #e5e0d7;
    border-radius: 7px;
    overflow: hidden;
}

.search-box .form-control {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 0;
    outline: none;
    box-shadow: none;
    font-size: 13px;
}

.search-box button {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: #172b40;
    border: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #a77b35;
}

/* =========================================================
   CATEGORY LIST
========================================================= */

.category-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list li + li {
    border-top: 1px solid #f0ede7;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list li:first-child a {
    padding-top: 0;
}

.category-list li:last-child a {
    padding-bottom: 0;
}

.category-list li a:hover {
    color: #a77b35;
}

.category-list .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 26px;
    padding: 3px 7px;
    color: #8a642d;
    background: #f8f1e5;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   LATEST BLOGS
========================================================= */

.latest-blog {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 15px 0;
    border-bottom: 1px solid #f0ede7;
}

.latest-blog:first-of-type {
    padding-top: 0;
}

.latest-blog:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.latest-blog > a {
    display: block;
    flex: 0 0 86px;
    width: 86px;
    height: 75px;
    overflow: hidden;
    border-radius: 6px;
    background: #eee8df;
}

.latest-blog img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.latest-blog > a:hover img {
    transform: scale(1.06);
}

.latest-blog > div {
    flex: 1;
    min-width: 0;
}

.latest-blog h6 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.latest-blog h6 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-blog h6 a:hover {
    color: #a77b35;
}

.latest-blog span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
}

.latest-blog span i {
    color: #a77b35;
}

/* =========================================================
   CONTACT WIDGET
========================================================= */

.contact-widget {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.contact-widget .form-control {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #e6e1d8;
    border-radius: 6px;
    box-shadow: none;
    font-size: 13px;
}

.contact-widget .form-control:focus {
    border-color: #a77b35;
    outline: none;
    box-shadow: 0 0 0 3px rgba(167, 123, 53, 0.09);
}

.contact-widget textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.contact-widget .btn-primary {
    min-height: 47px;
    color: #ffffff;
    background: #172b40;
    border: 1px solid #172b40;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.contact-widget .btn-primary:hover {
    background: #a77b35;
    border-color: #a77b35;
}

/* =========================================================
   SOCIAL ICONS
========================================================= */

.social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    color: #172b40;
    background: #f7f3eb;
    border: 1px solid #eee3d1;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffffff;
    background: #a77b35;
    border-color: #a77b35;
    transform: translateY(-3px);
}

/* =========================================================
   RELATED BLOGS
========================================================= */

.related-blog-section {
    padding: 70px 0 !important;
    background: #f3f1ec;
}

.related-blog-section .container {
    max-width: 1320px;
}

.v-related-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #a77b35;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.related-blog-section .section-heading h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 750;
}

.related-blog-section .section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Related card */

.related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e9e3d9;
    border-radius: 10px;
    box-shadow: 0 7px 25px rgba(23, 35, 55, 0.04);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(23, 35, 55, 0.09);
}

.related-img {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #e9e5dd;
}

.related-img > a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.related-card:hover .related-img img {
    transform: scale(1.05);
}

.related-img > span {
    position: absolute;
    bottom: 13px;
    left: 13px;
    max-width: calc(100% - 26px);
    padding: 7px 11px;
    color: #ffffff;
    background: #a77b35;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Related content */

.related-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 23px;
}

.related-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 12px;
}

.related-date i {
    color: #a77b35;
}

.related-content h4 {
    margin: 0 0 13px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.related-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: #a77b35;
}

.related-content p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.related-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 8px;
    color: #a77b35;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-btn i {
    transition: transform 0.3s ease;
}

.related-btn:hover {
    color: #805b22;
}

.related-btn:hover i {
    transform: translateX(5px);
}

/* =========================================================
   TABLET RESPONSIVE
========================================================= */

@media (max-width: 991px) {
    .v-blog-hero {
        min-height: auto;
        padding: 38px 0 45px;
    }

    .v-blog-hero-title {
        font-size: 42px;
    }

    .blog-details {
        padding: 45px 0 !important;
    }

    .blog-sidebar {
        position: static !important;
        top: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-top: 30px;
    }

    .sidebar-card {
        padding: 22px;
    }

    .related-img {
        height: 210px;
    }
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767px) {
    .v-blog-hero {
        padding: 30px 0 38px;
    }

    .v-blog-hero-container {
        padding-right: 19px;
        padding-left: 19px;
    }

    .v-blog-breadcrumb {
        gap: 9px;
        margin-bottom: 24px;
        font-size: 12px;
    }

    .v-blog-breadcrumb .separator {
        font-size: 9px;
    }

    .v-blog-hero-label {
        gap: 8px;
        margin-bottom: 17px;
        padding: 9px 13px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .v-blog-hero-title {
        font-size: clamp(29px, 7vw, 39px);
        line-height: 1.25;
        letter-spacing: -0.5px;
    }

    .v-blog-hero-line {
        width: 58px;
        height: 3px;
        margin: 17px 0 14px;
    }

    .v-blog-hero-description {
        font-size: 14px;
        line-height: 1.8;
    }

    .v-blog-hero-meta {
        gap: 13px 18px;
        margin-top: 19px;
    }

    .v-blog-hero-meta span {
        font-size: 12px;
    }

    .blog-details {
        padding: 35px 0 !important;
    }

    .blog-main-title {
        padding: 23px 20px 18px;
    }

    .blog-main-title h2 {
        font-size: 25px;
    }

    .blog-description {
        padding: 23px 20px 30px;
        font-size: 15px;
        line-height: 1.85;
    }

    .blog-description h2 {
        font-size: 25px;
    }

    .blog-description h3 {
        font-size: 22px;
    }

    .blog-description h4 {
        font-size: 19px;
    }

    .blog-sidebar {
        position: static !important;
        top: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        gap: 20px;
        margin-top: 25px;
    }

    .sidebar-card {
        padding: 21px;
    }

    .sidebar-title {
        font-size: 19px;
    }

    .related-blog-section {
        padding: 45px 0 !important;
    }

    .related-blog-section .section-heading {
        margin-bottom: 30px !important;
    }

    .related-img {
        height: 225px;
    }

    .related-content {
        padding: 20px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
    .v-blog-hero-container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .v-blog-hero-title {
        font-size: 29px;
    }

    .v-blog-breadcrumb {
        gap: 7px;
        font-size: 11px;
    }

    .blog-main-title {
        padding-right: 16px;
        padding-left: 16px;
    }

    .blog-main-title h2 {
        font-size: 22px;
    }

    .blog-description {
        padding-right: 16px;
        padding-left: 16px;
    }

    .sidebar-card {
        padding: 18px;
    }

    .latest-blog > a {
        flex-basis: 75px;
        width: 75px;
        height: 68px;
    }

    .related-content {
        padding: 17px;
    }
}
