/* --- Global Layout --- */
.blog-page-wrapper {
    display: block;
    width: 100%;
    overflow-x: hidden;
}

.blog-container {
    max-width: 100% !important;
    /* Top/Bottom: 0, Left/Right: 135px */
    margin: 0 135px !important; 
    padding: 0 20px;
    /* Ensures the margins don't push the box off-screen on smaller displays */
    width: auto !important; 
}

/* --- Banner Section --- */
.blog-page-banner {
    position: relative; 
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.blog-page-banner img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* --- Banner Overlay --- */
.banner-overlay {
    position: relative;
    z-index: 2;
    margin-left: 80px;
    margin-right: 30%;
    padding: 50px;
    background: linear-gradient(111.55deg, rgba(20, 36, 63, 0.9) 1%, rgba(20, 36, 63, 0.63) 91.78%);
    border-radius: 4px;
}

.banner-subtitle {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.banner-subtitle span {
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.accent-line {
    width: 40%;
    border-top: 1px solid;
    border-image-source: linear-gradient(90deg, #EEEEEE 30.38%, rgba(227, 30, 36, 0) 100%);
    border-image-slice: 1;
}

.banner-overlay h1 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 20px;
}

.banner-overlay p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.6;
}

/* --- Recent Blogs Heading --- */
.recent-blogs-heading {
    margin: 70px 0 50px;
}

.recent-blogs-heading h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 30px;
    color: #161616;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 100px;
}

.blog-item {
    background: transparent;
}

/* Blog Thumbnail (298px height, 30px radius) */
.blog-thumbnail {
    width: 100%;
    height: 298px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-item:hover .blog-thumbnail img {
    transform: scale(1.06);
}

/* Blog Title (Sora 600, 18px, #141A28) */
.blog-title {
    margin: 0 0 10px 0; /* Margin bottom to separate from meta below */
    line-height: 1.4;
}

.blog-title a {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #141A28;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #e31e24;
}

/* Blog Meta Row (Author & Date below title) */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta .author {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #141A28; /* Author Color */
}

.blog-meta .separator {
    color: #ccc;
    font-size: 12px;
}

.blog-meta .date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #7E7F81; /* Date Color */
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 1100px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-overlay { margin-left: 40px; margin-right: 15%; }
}

@media screen and (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-thumbnail { height: 260px; }
    .blog-page-banner { height: auto; display: block; }
    .banner-overlay { margin: 0; padding: 40px 20px; text-align: center; border-radius: 0; }
    .banner-subtitle { justify-content: center; }
    .banner-overlay h1, .banner-overlay p { text-align: center; }
}

/* =====================================================
   Featured Blog Section
===================================================== */

.featured-blog-section {
    margin: 80px 0 100px;
}

.featured-blogs-heading {
    margin-bottom: 40px;
}

.featured-blogs-heading h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 30px;
    color: #161616;
}

/* ---- Layout 65% / 35% ---- */
.featured-blog-layout {
    display: flex;
    gap: 40px;
}

/* ================= LEFT (65%) ================= */
.featured-blog-left {
    width: 65%;
    margin-top: 30px;
}

.featured-blog-card {
    background: #FFFFFF !important;
    border: 0.46px solid #C1DDF3 !important;
    border-radius: 37px !important;
    /* Keeping the padding from your original code */
    padding: 25px;
}

.featured-blog-inner {
    display: flex;
    gap: 25px;
}

/* ---- Image 50% ---- */
.featured-blog-image {
    width: 50% !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    /* Ensures the image fills the area without stretching */
    object-fit: cover; 
}


.featured-blog-image img {
    border-radius: 30px !important;
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}

/* ---- Content 50% ---- */
.featured-blog-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-blog-content h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important; /* Semi Bold */
    font-size: 20.79px !important;
    color: #161616 !important;
    margin-bottom: 10px;
    line-height: 1.3; /* Added for better readability with Inter */
}

.featured-date {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important; /* Regular */
    font-size: 10.4px !important;
    color: #173E83 !important;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 6px; /* Space between icon and text */
}

/* Adding the Icon */
.featured-date::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    /* This uses a standard calendar SVG icon */
    background-image: url("https://sidsamgroup.com/wp-content/uploads/2025/12/featured_blog_date.png");
    background-repeat: no-repeat;
    background-size: contain;
}

.btn-view-all {
    display: flex; /* Changed to flex to align text and arrow perfectly */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between text and arrow */
    
    /* Your existing styles */
    margin-top: 40px !important;
    padding: 12px 26px;
    width: fit-content;
    background: #173E83 !important;
    border-radius: 4.33px !important;
    box-shadow: 0px 3.47px 6.93px 0px #173E8359 !important;
    color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 12.13px !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Adding the Right Arrow Icon */
.btn-view-all::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    /* Clean white arrow SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M14 5l7 7m0 0l-7 7m7-7H3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
}

/* Hover effect: Arrow slides slightly to the right */
.btn-view-all:hover::after {
    transform: translateX(4px);
}

/* ================= RIGHT (35%) ================= */
.featured-blog-right {
    width: 35%;
}

.contact-form-box {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

.contact-form-box h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #141A28;
    margin-bottom: 12px;
}

.contact-form-box hr {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin-bottom: 25px;
}

/* =====================================================
   Contact Form Styling
===================================================== */

.connect-form .form-group {
    margin-bottom: 20px;
}

.connect-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #141A28;
    margin-bottom: 6px;
}

/* ---- Input with icon ---- */
.input-icon {
    position: relative;
}

.input-icon .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #7E7F81;
}

.input-icon input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 14px;
}

/* Make country code and phone number inline */
.wpcf7 .phone-field {
    display: flex;
    gap: 8px; /* space between select and input */
    align-items: center;
}

/* Make select fixed width and match height */
.wpcf7 .phone-field select {
    width: 80px;   /* adjust as needed */
    height: 30px !important;
    border-radius: 30px;
    border: 0.5px solid #CADFFF;
    padding: 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
}

/* Phone number input fills remaining space */
.wpcf7 .phone-field input[name="phone-number"] {
    flex: 1;
    height: 30px !important;
    border-radius: 30px;
    border: 0.5px solid #CADFFF;
    padding: 0 10px;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    box-sizing: border-box;
}


/* ---- Submit Button ---- */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #141A28;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #e31e24;
}

/* =====================================================
   Responsive – Featured Blog
===================================================== */

@media screen and (max-width: 1100px) {
    .featured-blog-layout {
        flex-direction: column;
    }

    .featured-blog-left,
    .featured-blog-right {
        width: 100%;
    }

    .featured-blog-inner {
        flex-direction: column;
    }

    .featured-blog-image,
    .featured-blog-content {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .featured-blog-card,
    .contact-form-box {
        padding: 20px;
    }

    .featured-blog-content h3 {
        font-size: 20px;
    }
}

.connect-form .input-icon {
    position: relative;
}

.connect-form .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.connect-form input,
.connect-form select {
    padding-left: 40px;
}
/* =====================================================
   Contact Form – Premium Gradient Card (FIXED)
===================================================== */

.contact-form-box {
    position: relative;
    padding: 30px;
    border-radius: 23px;
    background: linear-gradient(138.41deg, #D4ECFF 2.81%, #FFFFFF 98.63%);
    z-index: 1;
}

/* ===== Gradient Border Layer ===== */
.contact-form-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 23px;
    padding: 4px; /* BORDER WIDTH */
    background: linear-gradient(138.41deg, #D4ECFF 2.81%, #FFFFFF 98.63%);
    z-index: -1;

    /* Cut out the center */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

/* ===== Drop Shadow OUTSIDE Border ===== */
.contact-form-box::after {
    content: "";
    position: absolute;
    inset: -6px; /* pushes shadow outside border */
    border-radius: 27px; /* 23 + border spacing */
    background: transparent;
    z-index: -2;

    box-shadow:
        0px 25px 50px rgba(20, 36, 63, 0.18),
        0px 10px 25px rgba(20, 36, 63, 0.12);
}

/* Remove old solid border */
.contact-form-box {
    border: none;
}

/* =====================================================
   Contact Form Fields – Soft Look
===================================================== */

.connect-form input,
.connect-form select {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    background: #ffffff;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.connect-form input:focus,
.connect-form select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ---- Icons ---- */
.input-icon .icon {
    color: #64748B;
}

/* =====================================================
   Phone Field Polish
===================================================== */

.phone-field select {
    padding-left: 14px;
}

.phone-field input {
    padding-left: 14px;
}

/* =====================================================
   Submit Button – Elevated
===================================================== */

.btn-submit {
    margin-top: 10px;
    padding: 15px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    background: linear-gradient(135deg, #141A28, #1F2937);
    box-shadow: 0px 8px 18px rgba(20, 26, 40, 0.25);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #e31e24, #b91c1c);
}

/* =====================================================
   CF7 Validation & Response Styling
===================================================== */

.wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 6px;
}

.wpcf7-response-output {
    margin-top: 18px;
    border-radius: 10px;
    font-size: 14px;
}

/* =====================================================
   Contact Form Heading
===================================================== */

.form-heading-wrapper {
    text-align: center;
    margin-bottom: 26px;
}

/* Line One */
.heading-line-one {
    display: block;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 40px;
    text-transform: capitalize;
    line-height: 1.1;

    background: linear-gradient(90deg, #E31E24 0%, #173E83 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Line Two */
.heading-line-two {
    display: block;
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: 20px;
    text-transform: capitalize;

    background: linear-gradient(90deg, #E31E24 0%, #173E83 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gradient Divider Line */
.heading-divider {
    display: block;
    margin: 14px auto 0;
    border-top: 0.5px solid;
    border-image-source: linear-gradient(
        90deg,
        #E31E24 -20.51%,
        #173E83 65.23%,
        #FFFFFF 118.14%
    );
    border-image-slice: 1;
}
/* ================================
   LABEL STYLE
================================ */
.wpcf7 .form-group label {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important; /* Medium */
    font-size: 12px !important;
    padding-left: 10px;
    color: #161616 !important;
    text-transform: capitalize !important;
    display: block !important;
    margin-bottom: 4px !important;
}

/* ================================
   INPUT BOX STYLE
   Target the actual input inside the wrap span
================================ */
.wpcf7 .form-group .wpcf7-form-control-wrap input,
.wpcf7 .form-group .wpcf7-form-control-wrap select {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    line-height: 40px !important;
    border: 0.5px solid #CADFFF !important;
    border-radius: 40px !important;
    padding: 0 10px 0 36px !important; /* space for icon */
    background-color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 12px !important;
    color: #000000 !important;
    box-sizing: border-box !important;
    outline: none !important;
}

/* Placeholder style */
.wpcf7 .form-group .wpcf7-form-control-wrap input::placeholder {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    font-size: 12px !important;
    color: #161616 !important;
    opacity: 0.6 !important;
}

/* Focus border color */
.wpcf7 .form-group .wpcf7-form-control-wrap input:focus,
.wpcf7 .form-group .wpcf7-form-control-wrap select:focus {
    border-color: #9BB8FF !important;
}

/* ================================
   ICONS AS BACKGROUND IMAGE
================================ */

/* Full Name icon */
.wpcf7 input[name="full-name"] {
    background-image: url("https://sidsamgroup.com/wp-content/uploads/2025/12/full_name.png") !important;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    background-size: 12px 15px !important;
}

/* Email icon */
.wpcf7 input[name="email-address"] {
    background-image: url("https://sidsamgroup.com/wp-content/uploads/2025/12/email_address.png") !important;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    background-size: 15px 12px !important;
}

/* Phone input (optional icon) */
.wpcf7 input[name="phone-number"] {
    /* Add phone icon URL if needed */
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    background-size: 16px 16px !important;
}

/* Hide any emoji spans */
.wpcf7 .input-icon .icon {
    display: none !important;
}

/* Remove extra <br> spacing in input-icon */
.wpcf7 .input-icon br {
    display: none !important;
}
/* Remove bottom margin for all <p> inside your specific CF7 form */
#wpcf7-f6536-o1 p {
    margin-bottom: 0 !important;
}

/* Optional: remove bottom margin for div wrappers too */
#wpcf7-f6536-o1 > div {
    margin-bottom: 0 !important;
}

/* Remove extra spacing inside input-icon */
#wpcf7-f6536-o1 .input-icon p {
    margin-bottom: 0 !important;
}
/* ================================
   Submit Button Style
================================ */
.wpcf7 .btn-submit {
    width: 170px !important;       /* fixed width */
    margin: 22px auto 0 auto !important;
    display: block !important;     /* required for margin auto */
    background: linear-gradient(90deg, #E31E24 0%, #173E83 100%) !important;
    border: 0.5px solid #FFFFFF !important;
    box-shadow: 0px 4px 4px 0px #4FA6EA40 !important;
    border-radius: 24.87px !important;
    height: 40px !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 600 !important; /* SemiBold */
    font-size: 10px !important;
    color: #FFFFFF !important;
    text-transform: capitalize !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
}

/* Optional: hover effect */
.wpcf7 .btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
/* =====================================================
   FIX: Side-by-Side Phone Field & CF7 Auto-P Cleanup
===================================================== */

/* Force the container and the injected <p> tag to flex */
.phone-field, 
.phone-field p {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Ensure the wrapper spans inside the flex don't break lines */
.phone-field .wpcf7-form-control-wrap {
    display: block !important;
    margin-bottom: 0 !important;
}

/* Set widths: Country code stays small, Phone number fills the rest */
.phone-field span[data-name="country-code"] {
    flex: 0 0 85px !important; /* Fixed width for dropdown */
}

.phone-field span[data-name="phone-number"] {
    flex: 1 !important; /* Takes remaining width */
}

/* Remove the automatic line breaks CF7 injects */
.phone-field br {
    display: none !important;
}

/* Adjust Select Box to match Input styling exactly */
.wpcf7 .form-group .wpcf7-form-control-wrap select {
    padding: 0 30px 0 12px !important; /* Space for custom arrow */
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    /* Custom Arrow Icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23161616' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 8px 6px !important;
}

/* General Cleanup for the whole form */
.wpcf7-form p {
    margin-bottom: 0 !important;
}

.form-group {
    margin-bottom: 15px !important;
}