/* =============================================================
   Blog Detail Page Styles
   Extracted from blogDetail.blade.php for caching & performance
   ============================================================= */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* ... Blog page core styles ... */
.user_detail.show {
    display: flex;
}
.padding {  padding: 3em 0;  }

.vt-bnr-content-wrapper-green {
    background-color: #f0f0f0;
    border-right: 5px solid #3593a5;
}

.blog_page h1,.pagetitlediv {
    font-size: 30px;
    font-weight: 700;
    line-height: 50px;
    margin-bottom: 15px;
}
.blog_page h2 {
    font-size: 20px;
    font-weight: bold;
    scroll-margin-top: 95px;
    text-transform: uppercase;
    color: #15262f;
}

.blog_page h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
    scroll-margin-top: 95px;
}

p {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 1rem;
    color: #15262f;
    line-height: 190%;
    font-family: "Exo", sans-serif;
}

.blog_page a {
    font-size: 16px;
    line-height: 190%;
    text-decoration: none;
    transition: 0.2s ease;
    color: #bd4900;
}
.blog_page .visa_requirements ul a, .blog_page .visa_requirements ul li{
    font-size: 16px;
    line-height: 190%;
    text-decoration: none;
    transition: 0.2s ease;
}
.blog_page{
    padding-top: 10px;
}
.blog_page .visa_type {
    margin-top: 50px;
}

.blog_page .visa_type span {
    font-weight: 700;
}

.blog_page .visa_requirements {
    border: 1px solid rgba(227, 227, 227, 1);
}
.blog_page .visa_req_img { aspect-ratio: 4/1;border-top: 4px solid rgba(53, 147, 165, 1)}
.blog_page .visa_req_img img {object-position: center;}

/* Banner 1 - 4 images grid styling */
.blog_page .simple_visa .row.row_gap {
    row-gap: 8px;
    height: 248px;
}
.blog_page .simple_visa .simpleVisa_Img {
    height: calc((248px - 8px) / 2);
    overflow: hidden;
}
.blog_page .simple_visa .simpleVisa_Img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog_page>.container>.row{align-items: center;}

.blog_page .start_app_btn {
    background-color: #3593A5;
    border: none;
    color: white;
    padding: 3px 15px;
    border-radius: 10px;
    text-decoration: none;
}

.blog_page .simple_visa .simpleVisa_content {
    padding: 30px;
}

.blog_page .simple_visa {
    background-color: #E9E9E9;
    margin: 20px 0px 40px 0px;
    border-right: 5px solid #3593A5;
}

.blog_page .row_gap {row-gap: 25px;}

.blog_page .simpleVisa_content .visa_img {
    height: 25px;
    width: 100px;
}

.blog_page .visa_btnImg {
    display: flex;
    gap: 30px;
    align-items: end;
    margin-top: 25px;
}

.blog_page .visa_btnImg .visa_img {
    height: 50px;
    width: 200px;
}

.blog_page .visa_letter {
    height: 300px;
}

.blog_page  .visa_card {
    padding: 20px;
}

.blog_page  .visa_card1 {
    background: #FCF7F6;
    border: 1px solid rgba(239, 113, 60, 0.25);
    border-right-width: 5px;
}

.blog_page  .visa_card2 {
    background: #F1F9FB;
    border: 1px solid rgba(53, 147, 165, 0.25);
    border-right-width: 5px;
}

.blog_page  .visa_card3 {
    background: #FBF7F7;
    border: 1px solid rgba(189, 30, 33, 0.25);
    border-right-width: 5px;
}

.blog_page  .visa_card4 {
    background: #F6FCF9;
    border: 1px solid rgba(108, 191, 147, 0.25);
    border-right-width: 5px;
}

.blog_page .explore_saudi {
    background: linear-gradient(270deg, rgba(235, 227, 227, 0.10) 0%, #EBE3E3 100%), rgba(255, 255, 255, 0.70);
    padding: 50px;
    border-right: 5px solid rgba(239, 113, 60, 1);
    margin-bottom: 30px;
}

.blog_page .letter_txt {
    margin-top: 50px;
}

.blog_page .service_card {
    border: 1px solid rgba(189, 30, 33, 0.20);
    background: #FBF7F7;
    padding: 20px;
    height: 100%;
}
.blog_page .service_cards{align-items: unset;}
.blog_page .service_card .icon {
    width: 50px;
    height: 50px;
    object-fit: fill;
    margin-bottom: 15px;
}
.blog_page .service_card .icon img {
    object-fit: contain;
}

.blog_page .additional_notes {
    border: 1px dashed #CCCCCC;
    background: #f6f6f6;
    padding: 20px;
    margin: 2rem 0;
    text-align: center;
}
.blog_page .gray_box {
    border: 1px solid #ededed;
    border-right: 5px solid #ededed;
    background: #f6f6f6;
    padding: 20px;
    margin: 2rem 0;
}

.blog_page .faq_icon,
.blog_page .faq_icon_A {
    background-color: #EF713C;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 10px;
}

.blog_page .faq_icon_A {
    background-color: #3593A5;
}

.blog_page .faq_main {
    display: flex;
    gap: 10px;
}

.blog_page img {
    width: 100%;
    height: 100%;
}
.blog_page .saudi_img img {
    border-top: 4px solid #3593A5;
}

.blog_page .left_right_img {
    width: 100%;
    margin-bottom: 20px;
}

.blog_page ul li {
    font-size: 20px;
    margin-bottom: 5px;
}

.blog_page ul li::marker {
    color: #EF713C;
}

.blog_page .btn {
    padding: 12px 24px;
    color: #fff;
    border-radius: 10px;
    background: var(--btn_blue);
    border: 2px solid var(--btn_blue);
    font-size: 14px;
    font-weight: 400;
}
.btn_apply_for_visa {width: 60vw;height: 60px;    padding-bottom: 20px !important;}

.blog_page .btn_red { background: var(--red); border: 2px solid var(--red); color: #fff;}
.blog_page .btn_orange { background: var(--orange); border: 2px solid var(--orange);}
.blog_page .gateway_saudi .desc { padding: 40px; background: #000000CC; border-right: 5px solid #BD1E21;}
.blog_page .gateway_saudi * {color: var(--white); }
.blog_page .orange i {color: var(--orange); }
.blog_page .logo img { object-fit: contain; }
.blog_page .logo img:hover { filter: brightness(1); }

.blog_page .img_shadow { position: relative;}
.blog_page .img_shadow:before, .img_shadow:after { content: ''; height: 21px; width: 50%; position: absolute; bottom: 25px; left: 5px; transform: rotate(-2deg); box-shadow: 0 30px 6px #A4A4A4; z-index: -1; border-radius: 0; }
.blog_page .img_shadow:after { right: 5px; left: unset; transform: rotate(2deg); }
.blog_page .img_parent { height: 315px; width: 100%;}
.blog_page .visa_requirements ul {padding: 20px 20px 20px 40px;margin: 0px;}
.blog_page .visa_requirements ul a, .blog_page .visa_requirements ul li { color: #3593A5;}
.blog_page .visa_requirements .visa_requirements_heading { padding: 10px 20px; background-color: #fff; margin: -20px 0 0 15px; width: fit-content; font-size: 16px; }

.blog_page .gradient-bg { background-position: center; background-repeat: no-repeat; background-size: cover; position: relative; }
.blog_page .gradient-bg .headings-box { position: relative}
.blog_page .gradient-bg .headings-box:before { content: ''; z-index: -1; background: linear-gradient(270deg, rgba(235, 227, 227, 0.10) 0%, #EBE3E3 100%); height: 100%; width: 100%; position: absolute; top: 0; left: 0; }

.blog_page .explore_img {}
.blog_page .explore_img img {height: 100%;width: 100%;object-fit: cover;}

/* ========== BANNER STYLING (height 248px + colored side borders) ========== */

/* Banner 1 - Multi Image Banner (teal/green border) */
.blog_page .simple_visa { 
    min-height: 248px; 
    border-right: 5px solid #3593a5;
}
.blog_page .simple_visa .simpleVisa_content {
    border-right: none;
}

/* Banner 2 - Explore Banner (orange border between content and image) */
.blog_page .explore_banner { 
    min-height: 248px;
}
.blog_page .explore_banner .explore_img { 
    height: 248px;
}
/* Orange border on the image column - use box-shadow to avoid layout issues */
.blog_page .explore_banner .col-md-4 {
    box-shadow: inset 5px 0 0 0 #ef713c;
}

/* Banner 3 - Gateway Banner (red border) */
.blog_page .gateway_saudi { 
    min-height: 248px; 
}
.blog_page .gateway_saudi .row.banner-section { 
    min-height: 248px; 
}
.blog_page .gateway_saudi .img_parent { 
    height: 248px; 
}

/* ========== MOBILE RESPONSIVE ========== */
@media only screen and (max-width: 767px) {
    #INDEX {
        text-transform: uppercase;
        padding: 0 10px;
        color: #15262f;
        margin: 0;
        position: absolute;
        top: -13px;
        left: 20px;
        background: #fff;
    }
    .btn_apply_for_visa {width: 90vw;height: 60px;}

    .fs-30 { font-size: 28px;}
    .blog_page .gradient-bg {height: unset;}
    .blog_page .gradient-bg:before {background: linear-gradient(to top, rgba(235, 227, 227, 0.10) 0%, #EBE3E3 100%);}
    .blog_page .explore_img { height: 300px; }
    .blog_page .explore_banner .col-md-4 { box-shadow: none; }
    .blog_page .explore_banner .col-md-8 { border-top: 5px solid #ef713c; }
    .blog_page .simple_visa { border-right: none; border-top: 5px solid #3593A5; }
    .p_inline { padding-inline: 30px;}
    .blog_page .btn {
        white-space: nowrap;
        font-size: 14px;
        padding: 10px !important;
        font-weight: 200;
    }
}

@media only screen and (max-width: 767px) {
    .blog_page { padding: 30px 10px; }
    .blog_page h1,.pagetitlediv { font-size: 20px; line-height: 33px; margin-bottom: 10px;}
    .blog_page h2 { font-size: 18px; line-height: 30px; margin-bottom: 10px;}
    .blog_page h3 { font-size: 16px; line-height: 25px; margin-bottom: 10px;}
    .blog_page p { font-size: 16px; }
    .blog_page ul li{font-size:15px;}
    .blog_page .visa_requirements ul {padding:10px 10px 10px 30px;}
    .blog_page .gray_box { padding: 10px; }
    
    .blog_page .visa_req_img { aspect-ratio: 4/1; }

    .blog_page .row_gap { row-gap: 15px; }
    .blog_page .simple_visa>.row {flex-direction: column-reverse;}
    .blog_page .simple_visa .row.row_gap {
        height: auto;
        row-gap: 8px;
    }
    .blog_page .simple_visa .simpleVisa_Img {
        height: 80px;
    }
    .blog_page .simple_visa .simpleVisa_content { padding: 10px; }
    .blog_page .simple_visa .simpleVisa_content .visa_btnImg .logo {display: none !important}
    .blog_page .simple_visa .simpleVisa_content .start_app_btn {
        width: 80vw !important;
        display: block;
        height: 60px;
        line-height: 40px;
        font-size: 19px;
        font-weight: 500;
        background-color: #078099;
        color: #fff;
    }
    
    .blog_page .simple_visa { margin: 15px 0px 30px 0px; }
    .blog_page .explore_saudi , .blog_page .gateway_saudi .desc , .blog_page .service_card { padding: 30px; }
    .blog_page .gateway_saudi .row {flex-direction: column-reverse;}
    .blog_page .gateway_saudi .desc {border: none;border-top: 5px solid #BD1E21;}
    .blog_page .btn {padding: 10px ;}
    .blog_page .visa_btnImg {column-gap: 0px;justify-content: space-between;}
    .blog_page .simple_visa h3 { font-size: 28px; line-height: 1.2;}

    /* CLS fix: reserve space for banner on mobile */
    .bannerimage {
        aspect-ratio: 25/13.5;
        width: 100%;
        height: auto;
        display: block;
        contain: paint;
        content-visibility: auto;
        max-height: 432px;
        min-height: 171px;
        background: #f0f0f0;
        transform: translateZ(0);
        will-change: transform;
        -webkit-font-smoothing: antialiased;
    }
    .bannerblog {
        contain: layout paint;
        content-visibility: auto;
        height: 173px;
    }
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    object-fit: fill !important;
}

/* Scroll margin for anchored elements to account for fixed header */
[id] {
    scroll-margin-top: 100px;
}

/* Index Section Styles */
.vt-index-wrapper {
    padding: 20px;
    margin-top: 3rem;
    border: solid 1px #e3e3e3;
    position: relative;
}
.vt-index-wrapper h2 {
    text-transform: uppercase;
    padding: 0 10px;
    color: #15262f;
    margin: 0;
    position: absolute;
    top: -13px;
    left: 20px;
    background: #fff;
    font-size: 16px;
}
.vt-index-wrapper ul {
    list-style: none;
    margin: 10px 0;
    padding: 0;
}
.vt-index-wrapper ul li {
    color: #3593a5;
    font-weight: 500;
    padding-left: 35px;
    position: relative;
    transition: 0.2s ease;
    line-height: 190%;
}
.vt-index-wrapper ul li:before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #ef713c;
    border-radius: 50%;
    top: 12px;
    left: 20px;
}
.vt-index-wrapper ul li:hover {
    margin-left: 10px;
    color: #ef713c;
}
.vt-index-wrapper ul li a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}
.vt-index-wrapper ul li a:hover {
    color: #ef713c;
    text-decoration: none;
}

.banner-image {
    width: 100%;
    height: 100%;
}
.blog_page {
    min-height: 100vh;
}
.blog-main-wrapper h4 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.requested-visas img {
    aspect-ratio: 4/1;
    height:144px !important;
    border-radius: 22px !important;
}
.requested-visas .card_heading {
    line-height: 30px;
}

.requested-visas .image{aspect-ratio: 4/1;height:144px !important; }
.cardtitleatitle{
    font-size: 16px !important;
    font-weight: bold;
    margin: 0;
    color: #15262f;
    line-height: 190%;
}
.cardtitlea p{
    font-size: 16px !important;
    font-weight: 400 !important;
    margin: 0 0 1rem !important;
}

/* CLS fix: reserve space for banner image */
.bannerimage {
    aspect-ratio: 25/13.5;
    width: 100%;
    height: auto;
    display: block;
    contain: paint;
    content-visibility: auto;
    max-height: 432px;
    min-height: 171px;
    background: #f0f0f0;
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

#INDEX {
    text-transform: uppercase;
    padding: 0 10px;
    color: #15262f;
    margin: 0;
    position: absolute;
    top: -13px;
    left: 20px;
    background: #fff;
}

.home-index2 .nav-tabs {
    border-bottom: unset;
    display: none !important;
}
/* Neutralize negative margin inside blog detail page so tabs don't overlap breadcrumbs/author */
.blog_page .home-index2,
.article-wrapper .home-index2 {
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}
.home-index2:not(.home-index2.blog-detail-2) {
    margin-top: -80px;
}

/* Content wrapper visibility hints */
.content-wrapper [loading="high"] {
   content-visibility: visible;
}
.content-wrapper [loading="low"] {
   content-visibility: auto;
}

/* =============================================================
   FAQ Section Styles
   ============================================================= */

/* Base Styles */
.faq-section {
    padding: 4rem 0;
    background-color: #fff;
}

.faq-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

/* FAQ Item Styles */
.faq-item {
    margin: 1.5rem 0;
}

/* Content Layout */
.faq-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* RTL Support */
[dir="rtl"] .faq-content {
    flex-direction: row-reverse;
}

.faq-content.reverse {
    flex-direction: row-reverse;
}

[dir="rtl"] .faq-content.reverse {
    flex-direction: row;
}

/* Text Content */
.faq-text-content {
    flex: 2;
    max-width: 65%;
}

/* Media Content */
.faq-media-content {
    flex: 1;
    max-width: 35%;
}

/* QA Wrapper */
.faq-qa-wrapper {
    display: flex;
    gap: 1rem;
}

.faq-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Icons */
.icon-q, .icon-a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}

.icon-q {
    background-color: #EF713C;
}

.icon-a {
    background-color: #3593A5;
}

/* Text Styles */
.faq-text {
    flex: 1;
}

.faq-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Image Styles - Match original design */
.faq-image-wrapper {
    max-height: 220px;
    overflow: hidden;
    border-top: 5px solid #3593a5;
}

.faq-image {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
}

/* Para Three Side Image Styles - Match original design */
.content-image-wrapper {
    max-height: 220px;
    overflow: hidden;
    border-radius: 0;
    border-top: 5px solid #3593a5;
}

.content-image {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
}

/* Para Six (Heading Sections) Image Styles - Match original design */
.blog_page .workvisa_img {
    max-height: 220px;
    overflow: hidden;
    border-top: 5px solid #3593a5;
}

.blog_page .workvisa_img img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
}

/* FAQ Responsive Design */
@media (max-width: 992px) {
    .faq-content {
        flex-direction: column !important;
        gap: 2rem;
    }

    .faq-text-content,
    .faq-media-content {
        max-width: 100%;
    }

    .faq-section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 0;
    }

    .faq-qa-wrapper {
        gap: 0.75rem;
    }

    .icon-q, .icon-a {
        width: 25px;
        height: 25px;
        font-size: 0.875rem;
    }
}

/* Fixed "Apply for Visa" button */
.viewbtnall{
    height: 60px;
    line-height: 35px;
    font-size: 16px !important;
    position: fixed;bottom: 10px;left: -20px;
    z-index: 99999999;
}

/* =============================================================
   CLS Fixes: Reserve space for dynamic/lazy-loaded sections
   ============================================================= */

/* Reserve space for the related posts section */
.home-index-6.blog-detail-5 {
    min-height: 200px;
}

/* Reserve space for blog content images */
.blog_page .article-content img {
    max-width: 100%;
    height: auto;
}

/* Reserve space for index companion image */
.index-companion-image img {
    aspect-ratio: 8/3;
    width: 100%;
    height: auto;
    object-fit: cover;
}
