@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* ===== FONT FACE ===== */
@font-face {
    font-family: 'Impact';
    src: url('../fonts/impact.woff2') format('woff2'),
         url('../fonts/impact.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== ROOT VARIABLES ===== */
:root {
    /* Colors */
    --color-primary-red: #EB272D;
	--color-gray: #CCCCCC;
    --color-dark-blue: #22386B;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Impact', sans-serif;
    --font-content: 'Open Sans', sans-serif;
}

/* ===== BASE TYPOGRAPHY ===== */
body {
    font-family: var(--font-content);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* ===== CTA BUTTONS ===== */
.cta-primary {
    display: inline-block;
    border-radius: 5px;
    padding: 8px 22px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
	min-width: 150px;
	text-align: center;
}

/* CTA Red - Background Primary Red, Font White */
.cta-red {
    background-color: var(--color-primary-red);
    color: var(--color-white);
}

.cta-red:hover {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
}

/* CTA White - Background White, Font Dark Blue */
.cta-white {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
}

.cta-white:hover {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
}

/* CTA Glass - Transparent with Red Border */
.cta-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-primary-red);
    color: var(--color-white);
}

.cta-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--color-primary-red);
    color: var(--color-primary-red);
}

/* ===== HELLO BAR ===== */
.hello-bar {
    background-color: var(--color-primary-red);
    padding: 8px 0;
}

.hello-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hello-bar-text {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
}

/* ===== MAIN HEADER ===== */
.main-header {
    background-color: var(--color-dark-blue);
    padding: 25px 0;
    position: relative;
    z-index: 1000;
}

.main-header .container {
    overflow: visible;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Columns */
.header-col {
    display: flex;
    align-items: center;
}

.header-left {
    flex: 1;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.header-right {
    flex: 1;
    justify-content: flex-end;
    gap: 15px;
}

/* Header Logo - Sobresale del header */
.header-logo {
    display: block;
}

.header-logo img {
    height: auto;
    width: auto;
    max-width: 188px;
    transform: translateY(45px);
    transition: transform 0.3s ease;
}

/* Main Navigation */
.main-nav {
    display: block !important;
}

.main-nav.collapse:not(.show) {
    display: block !important;
    width: auto;
}

.main-nav .navbar-nav,
.main-nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.main-nav .navbar-nav .nav-item .nav-link,
.main-nav ul li a {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0;
}

.main-nav .navbar-nav .nav-item .nav-link:hover,
.main-nav ul li a:hover {
    color: var(--color-primary-red);
}

/* Header Links */
.header-link {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-link:hover {
    color: var(--color-primary-red);
}

/* Mobile Toggle */
.navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    left: 0;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* ===== DROPDOWN MENUS ===== */

/* Dropdown container - must be relative for absolute positioning */
.main-nav .nav-item.dropdown {
    position: relative !important;
}

/* Dropdown toggle link - use Bootstrap's arrow */
.nav-item.dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Bootstrap arrow style override */
.nav-item.dropdown > .dropdown-toggle::after {
    border-top-color: var(--color-white);
    transition: transform 0.3s ease;
}

.nav-item.dropdown.show > .dropdown-toggle::after,
.nav-item.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Hide custom arrow - use Bootstrap's */
.dropdown-arrow-toggle {
    display: none !important;
}

/* Dropdown menu - MUST be absolute positioned outside header flow */
.main-nav .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 220px;
    background-color: var(--color-dark-blue);
    border: none;
    padding: 10px 0;
    margin-top: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999 !important;
    display: block !important;
}

.main-nav .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.main-nav .dropdown-menu .dropdown-item {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.main-nav .dropdown-menu .dropdown-item:hover {
    background-color: #426DD1;
    color: var(--color-white);
}

/* ===== HEADER RESPONSIVE ===== */

/* Medium screens - Logo adjustment */
@media (max-width: 1400px) and (min-width: 1200px) {
    .main-nav .navbar-nav,
    .main-nav ul {
        gap: 20px;
    }

    .header-right {
        gap: 10px;
    }

    .header-logo img {
        max-width: 160px;
        transform: translateY(35px);
    }

    .cta-primary {
        padding: 6px 15px;
        font-size: 14px;
        min-width: 120px;
    }

    .main-nav .navbar-nav .nav-item .nav-link,
    .main-nav ul li a {
        font-size: 16px;
    }

    .header-link {
        font-size: 16px;
    }
}

/* Smaller medium screens - More aggressive adjustments */
@media (max-width: 1199px) and (min-width: 992px) {
    .main-nav .navbar-nav,
    .main-nav ul {
        gap: 10px;
    }

    .header-right {
        gap: 8px;
    }

    .header-logo img {
        max-width: 140px;
        transform: translateY(30px);
    }

    .cta-primary {
        padding: 5px 12px;
        font-size: 13px;
        min-width: 100px;
    }

    .main-nav .navbar-nav .nav-item .nav-link,
    .main-nav ul li a {
        font-size: 13px;
    }

    .header-link {
        font-size: 13px;
    }
}

@media (max-width: 991px) {
    /* Header Layout - Logo left, CTA + Toggle right */
    .header-inner {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .header-left {
        order: 3;
        flex: 0 0 auto;
    }

    .header-center {
        position: static;
        transform: none;
        order: 1;
        flex: 0 0 auto;
    }

    .header-right {
        gap: 15px;
        order: 2;
        flex: 1;
        justify-content: flex-end;
    }

    /* Hide non-essential items */
    .header-link,
    .cta-glass {
        display: none;
    }

    /* Show toggle */
    .navbar-toggler {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-red {
        display: inline-block;
    }

    /* Logo adjustments */
    .header-logo img {
        max-height: 80px;
        max-width: 120px;
        transform: translateY(15px);
    }

    /* Mobile Menu */
    .main-nav,
    .main-nav.collapse:not(.show) {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-dark-blue);
        padding: 40px 20px;
        display: none !important;
        z-index: 9999;
    }

    .main-nav.show {
        display: block !important;
    }

    .main-nav .navbar-nav,
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    /* Menu items - 22px font size */
    .main-nav .navbar-nav .nav-item .nav-link,
    .main-nav ul li a {
        font-size: 22px;
        font-family: var(--font-heading);
        font-weight: 400;
        text-align: left;
    }

    /* Disable hover effect on mobile */
    .main-nav .navbar-nav .nav-item .nav-link:hover,
    .main-nav ul li a:hover {
        color: var(--color-white);
        background: none;
    }

    /* Dropdown toggle styles */
    .main-nav .nav-item.dropdown > .dropdown-toggle {
        justify-content: start;
        gap: 10px;
    }

    /* Fix arrows - smaller and properly styled */
    .main-nav .nav-item.dropdown > .dropdown-toggle::after {
        border-width: 6px 5px 0 5px;
        border-top-color: var(--color-white);
        vertical-align: middle;
        margin-left: 8px;
    }

    /* Dropdown Menu Mobile - Full width */
    .main-nav .dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 0;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        transition: max-height 0.3s ease, padding 0.3s ease;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }

    .main-nav .dropdown-menu.show {
        max-height: 500px;
        padding: 15px 0;
        margin-top: 15px;
        background-color: transparent;
    }

    .main-nav .dropdown-menu .dropdown-item {
        text-align: left;
        padding: 12px 20px;
        color: var(--color-white);
        font-size: 20px;
    }

    /* Disable hover on dropdown items */
    .main-nav .dropdown-menu .dropdown-item:hover {
        background-color: transparent;
        color: var(--color-white);
    }
}

@media (max-width: 768px) {
    .hello-bar-inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .hello-bar-text {
        font-size: 14px;
    }

    .header-right .cta-primary {
        padding: 6px 12px;
        font-size: 14px;
    }

    .header-logo img {
        max-height: 70px;
        transform: translateY(10px);
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(90deg, #EB272D 0%, #22386B 100%);
    position: relative;
    overflow: visible;
}

/* Footer Row 1 - CTA + Van */
.footer-row-1 {
    position: relative;
    z-index: 10;
    overflow: visible;
}

.footer-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
	max-height: 270px;
}

.footer-cta-left {
    flex: 1;
    padding-left: calc((100% - 1140px) / 2);
    padding-left: max(15px, calc((100% - 1140px) / 2));

}

.footer-cta-title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--color-white);
    margin: 0 0 15px 0;
    line-height: normal;
}

.footer-cta-content {
    font-family: var(--font-content);
    font-size: 16px;
    color: var(--color-white);
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.footer-van-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 20;
    min-height: 200px;
}

.footer-van {
    width: 100%;
    height: auto;
    max-width: 100%;
    opacity: 0;
    transform: translateX(100%) translateY(-80px);
    will-change: transform, opacity;
}

.footer-van.animate {
    animation: vanSlideIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes vanSlideIn {
    0% {
        transform: translateX(100%) translateY(-80px);
        opacity: 0;
    }
    100% {
        transform: translateX(0) translateY(-80px);
        opacity: 1;
    }
}

/* Footer Divider */
.footer-divider {
    text-align: center;
}

.divider-svg {
    max-width: 100%;
    height: auto;
	width: 100%;
}

/* Footer Row 2 - Info */
.footer-row-2 {
    padding: 40px 0;
}

.footer-info-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.footer-col-logo {
    max-width: 200px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-menu-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-white);
    margin: 0 0 20px 0;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.footer-menu-list li a {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-menu-list li a:hover {
    color: var(--color-primary-red);
}

/* Footer Contact Column */
.footer-col-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-col-contact .contact-icon {
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-col-contact .contact-icon svg {
    display: block;
}

.footer-col-contact p,
.footer-col-contact a {
    font-family: var(--font-content);
    font-size: 14px;
    color: var(--color-white);
    margin: 0;
    display: block;
}

.footer-phone {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-phone:hover {
    color: var(--color-primary-red);
}

.footer-iframe-wrapper {
    margin-top: 15px;
}

.footer-iframe-wrapper iframe {
    width: 436px;
    height: 205px;
    max-width: 100%;
    border-radius: 5px;
}

/* Footer Row 3 - Bottom Bar */
.footer-row-3 {
    padding: 20px 0;
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom-left,
.footer-bottom-center,
.footer-bottom-right {
    flex: 1;
}

.footer-bottom-center {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-bottom-right {
    display: flex;
    justify-content: flex-end;
}

.lmh-text {
    font-family: var(--font-content);
    font-size: 14px;
    color: var(--color-white);
}

.footer-bottom-link {
    font-family: var(--font-content);
    font-size: 14px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--color-primary-red);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.7;
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 991px) {
    .footer-cta-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .footer-cta-left {
        max-width: 100%;
    }

    .footer-van-wrapper {
        justify-content: center;
    }

    .footer-van {
        transform: translateX(0);
        display: none;
    }

    @keyframes vanSlideIn {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .footer-info-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "logo logo"
            "menu1 menu2"
            "contact contact";
        gap: 20px 30px;
    }

    .footer-col {
        margin-bottom: 0;
    }

    .footer-col-logo {
        grid-area: logo;
        text-align: center;
    }

    /* Two menu columns side by side */
    .footer-col-menu:first-of-type {
        grid-area: menu1;
    }

    .footer-col-logo {
        max-width: 100%;
    }

    .footer-col-menu:last-of-type {
        grid-area: menu2;
    }

    .footer-col-contact {
        grid-area: contact;
        text-align: left;
        padding-top: 30px;
    }
    .footer-col-contact p, .footer-col-contact a{
        text-align: left;
        max-width: 240px;
    }

    .footer-row-3 {
        padding-bottom: 70px;
    }

    .social-link img {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 768px) {
    .footer-row-1 {
        padding: 40px 0 30px;
    }

    .footer-cta-title {
        font-size: 32px;
    }

    .footer-info-wrapper {
        flex-direction: column;
    }

    .footer-col {
        flex: 1 1 100%;
        text-align: center;
    }

    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-left,
    .footer-bottom-center,
    .footer-bottom-right {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}


/* ================================================
   BLOG INDEX
   ================================================ */

.blog-content-wrapper {
    background: linear-gradient(180deg, #2B7FFF -19.21%, #142242 100%);
    padding-bottom: 80px;
}

/* --- Featured Article --- */

.featured-article-section {
    padding: 60px 0 70px;
}

.featured-article-label {
    font-family: var(--font-heading);
    font-size: 52px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
    text-align: center;
}

.featured-article-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.featured-article-image {
    flex: 0 0 55%;
    max-width: 55%;
    height: 407px;
    overflow: hidden;
    border-radius: 24px;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 5px 0 rgba(14, 14, 14, 0.10);
}

.featured-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-article-title {
    font-family: var(--font-heading) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--color-white) !important;
    margin: 0 !important;
}

.featured-article-excerpt {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    color: var(--color-white) !important;
    margin: 0;
}

.featured-article-content .cta-primary {
    align-self: flex-start;
    width: auto;
    min-width: auto;
}

/* --- Blog Posts Grid --- */

.blog-posts-section {
    padding: 0 0 60px;
}

.blog-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.blog-posts-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
}

.blog-search-form {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 8px;
    overflow: hidden;
    width: 325px;
    flex-shrink: 0;
}

.blog-search-form button {
    background: transparent;
    border: none;
    padding: 10px 12px 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.blog-search-form input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 16px 10px 0;
    font-family: var(--font-content);
    font-size: 16px;
    color: var(--color-white);
    line-height: 1;
}

.blog-search-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Imagen fija 407px — mismo height en todas las cards */
.blog-post-card-image {
    width: 100%;
    height: 407px;
    max-height: 407px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0px 4px 5px 0px rgba(14, 14, 14, 0.1);
    flex-shrink: 0;
}

.blog-post-card-image a {
    display: block;
    width: 100%;
    height: 407px;
}

.blog-post-card-image img {
    width: 100%;
    height: 407px;
    max-height: 407px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.blog-post-card-image img:hover {
    transform: scale(1.03);
}

.blog-post-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-post-card-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.blog-post-card-title a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card-title a:hover {
    color: var(--color-primary-red);
}

/* Excerpt: div wrapper, texto plano sin p interno */
.blog-post-card-excerpt {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    color: var(--color-white) !important;
    margin: 0;
}

.blog-post-card-content .cta-primary {
    align-self: flex-start;
    width: auto;
    min-width: auto;
}

.blog-no-results {
    color: var(--color-white);
    font-family: var(--font-content);
    font-size: 18px;
    padding: 40px 0;
    grid-column: 1 / -1;
}

/* --- Blog Pagination --- */

.blog-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    align-items: center;
}

.blog-pagination .page-numbers li a,
.blog-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 5px;
    font-family: var(--font-content);
    font-size: 16px;
    color: var(--color-white);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.blog-pagination .page-numbers li a:hover {
    background: var(--color-primary-red);
    color: var(--color-white);
}

.blog-pagination .page-numbers li span.current {
    background: var(--color-primary-red);
    color: var(--color-white);
}

.blog-pagination .page-numbers li a.prev,
.blog-pagination .page-numbers li a.next {
    font-size: 20px;
}

/* --- Blog Responsive --- */

@media (max-width: 992px) {
    .featured-article-inner {
        flex-direction: column;
        gap: 0;
    }

    .featured-article-image {
        flex: 1 1 100%;
        max-width: 100%;
        height: 280px;
        border-radius: 24px;
    }

    .featured-article-title {
        font-size: 36px !important;
    }

    .blog-posts-grid {
        gap: 30px;
    }

    .blog-post-card-image {
        height: 280px;
    }

    .blog-search-form {
        width: 100%;
    }

    .blog-posts-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .blog-post-card-image {
        height: 260px;
    }

    .featured-article-title {
        font-size: 28px !important;
    }

    .blog-post-card-title {
        font-size: 26px;
    }

    .blog-posts-title {
        font-size: 32px;
    }

    .featured-article-section {
        padding: 40px 0 50px;
    }
}

/* ══════════════════════════════════
   SINGLE POST
══════════════════════════════════ */

/* ── Hero ── */
.single-post-hero {
    position: relative;
    width: 100%;
    height: 368px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 200px;
    padding-bottom: 400px;
}

.single-post-hero .hero-blog-overlay {
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2026/03/Rectangle-624.svg');
    background-size: contain;
    background-repeat: repeat;
    z-index: 1;
}

.single-post-hero .hero-blog-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}
.single-post-content .back-to-blog-anchor {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 25px;
}

.back-to-blog {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}
.single-post-hero .hero-blog-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 400;
    line-height: 1;
    color: #fff;
    margin: 0;
}

/* ── Layout (scb) — duplicated here so it's always available on single.php ── */
.scb-section {
    padding: 80px 0 250px 0;
}

.scb-layout {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.scb-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.scb-sidebar {
    flex: 0 0 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.scb-sidebar-card {
    border-radius: 24px;
    border: 6px solid #FDF3CB;
    background: #22386B;
    padding: 48px 19px;
}

.scb-sidebar-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0 0 12px;
    padding-bottom: 12px;
}

.scb-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scb-sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.scb-sidebar-menu li:last-child {
    border-bottom: none;
}

.scb-sidebar-menu li a {
    display: block;
    padding: 11px 4px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.scb-sidebar-menu li a:hover,
.scb-sidebar-menu li.current-menu-item > a {
    color: #DC4233;
}

/* ── Body wrapper — same background as sections-wrapper-start ── */
.single-post-body {
    background-image: url('/wp-content/uploads/2026/03/Frame-1000002223-1-1.svg') !important;
    background-size: cover !important;
    background-position: top center !important;
    background-repeat: no-repeat !important;
    margin-top: -200px !important;
    padding-top: 230px !important;
    padding-bottom: 80px !important;
    position: relative;
    z-index: 2;
}

/* Neutralize inner sections-wrapper (already in the_content()) */
.single-post-body .main-sections-wrapper {
    background: transparent !important;
    background-image: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ── Content typography (mirrors scb-content from services-content-block) ── */
.single-post-content {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.75;
}

.single-post-content p {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    margin: 0 0 16px;
    color: var(--color-white);
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0 0 20px;
    line-height: 1.1;
}

.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0 0 16px;
    line-height: 1.15;
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 22px;
    margin: 0 0 16px;
    color: var(--color-white);
}

.single-post-content li {
    margin-bottom: 8px;
    line-height: 1.75;
    color: var(--color-white);
}

.single-post-content a {
    color: var(--color-primary-red);
    text-decoration: underline;
}

/* Blockquote */
.single-post-content blockquote {
    position: relative;
    margin: 32px 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.2;
    text-transform: uppercase;
}

.single-post-content blockquote::before {
    content: '';
    display: block;
    width: 44px;
    height: 35px;
    margin-bottom: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='35' viewBox='0 0 44 35' fill='none'%3E%3Cpath d='M0 35V17.6471C0 11.1111 1.07795 6.53594 3.23385 3.92156C5.45509 1.30719 9.27691 0 14.6993 0H18.9131V8.62745C16.5612 8.62745 14.9933 9.01961 14.2094 9.80392C13.4907 10.5229 13.1314 12.0261 13.1314 14.3137V16.9608H18.9131V35H0ZM25.0869 35V17.6471C25.0869 11.1111 26.1648 6.53594 28.3207 3.92156C30.5419 1.30719 34.3638 0 39.7862 0H44V8.62745C41.6481 8.62745 40.0802 9.01961 39.2962 9.80392C38.5776 10.5229 38.2183 12.0261 38.2183 14.3137V16.9608H44V35H25.0869Z' fill='%23DC4233'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.single-post-content blockquote p {
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
}

/* ══════════════════════════════════
   SERVICES — guaranteed styles for single.php
   (services.css only loads when ACF block is present)
══════════════════════════════════ */

.services-section {
    background-image: url('/wp-content/uploads/2026/02/Frame-1000002222.png');
    background-image: image-set(
        url('/wp-content/uploads/2026/02/Frame-1000002222.png.webp') type('image/webp'),
        url('/wp-content/uploads/2026/02/Frame-1000002222.png') type('image/png')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0 300px 0;
}

.services-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.services-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    line-height: normal;
    padding: 10px 60px 25px 60px;
    background-image: url('/wp-content/uploads/2026/02/Frame-1000002166.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-width: 558px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    row-gap: 60px;
    margin-bottom: 50px;
}

.service-item {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-top-image {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 100%;
    height: auto;
}

.service-item:hover .service-top-image {
    opacity: 1;
    visibility: visible;
}

.service-link {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    text-align: center;
    padding: 30px 0;
    transition: color 0.3s ease;
    display: block;
}

.service-bottom-image {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-bottom-default {
    opacity: 1;
    visibility: visible;
}

.service-bottom-hover {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
}

.service-item:hover .service-bottom-default {
    opacity: 0;
    visibility: hidden;
}

.service-item:hover .service-bottom-hover {
    opacity: 1;
    visibility: visible;
}

.services-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

/* ── CTA box (scb) — guaranteed styles for single.php ── */
.scb-cta-box {
    background-color: var(--color-dark-blue);
    border: 10px solid var(--color-white);
    border-radius: 10px;
    padding: 8px;
    width: 100%;
}

.scb-cta-box-inner {
    border-radius: 6px;
    border: 2px solid var(--color-primary-red);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.scb-cta-title {
    font-family: var(--font-heading);
    font-size: 35px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.2;
    text-transform: uppercase;
    flex: 1;
}

@media (max-width: 768px) {
    .scb-cta-box-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 20px;
    }

    .scb-cta-title {
        font-size: 22px;
    }
}

/* ── Services override inside single-post-body ── */
.single-post-body .sp-services-section {
    background-image: none !important;
    background-color: transparent !important;
    padding: 80px 0;
}

.single-post-body .sp-services-section .services-title {
    background-image: none !important;
    padding: 0 !important;
    min-width: 0 !important;
}

/* ══════════════════════════════════
   REVIEWS — guaranteed styles for single.php
   (reviews.css only loads when ACF block is present)
══════════════════════════════════ */

.reviews-section {
    background: linear-gradient(180deg, #2B7FFF 0%, #142242 100%);
    padding: 120px 0;
}

.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.reviews-title {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--color-white);
    margin: 0 0 14px 0;
    line-height: normal;
}

.reviews-content {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #CFCECE;
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
}

.reviews-content p {
    margin: 0;
}

.reviews__slider {
    position: relative;
    padding: 0 60px;
}

.reviews__slide {
    padding: 0 15px;
}

.reviews__slide-inner {
    background-color: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 25px;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
}

.reviews__slider .slick-slide.slick-center .reviews__slide-inner {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.reviews__slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.reviews__stars img {
    display: block;
    height: auto;
}

.reviews__slide-date {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-dark-blue);
}

.reviews__slide-content-wrapper {
    flex: 1;
    margin-bottom: 15px;
}

.reviews__slide-content {
    max-height: 110px;
    overflow: hidden;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.reviews__slide-content p {
    font-family: var(--font-content);
    font-size: 16px;
    font-weight: 400;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    display: inline;
}

.reviews__slide-content.is-expanded {
    max-height: 110px;
    overflow-y: auto;
    display: block;
    -webkit-line-clamp: unset;
}

.reviews__read-more {
    display: none;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-primary-red);
    cursor: pointer;
    transition: color 0.3s ease;
}

.reviews__read-more:hover {
    color: var(--color-dark-blue);
}

.reviews__read-more.is-visible {
    display: inline;
}

.reviews__slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.reviews__slide-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-dark-blue);
    text-transform: uppercase;
}

.reviews__slide-footer svg {
    width: 32px;
    height: 32px;
}

.reviews__slider .slick-prev,
.reviews__slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.reviews__slider .slick-prev:hover,
.reviews__slider .slick-next:hover {
    opacity: 0.7;
}

.reviews__slider .slick-prev { left: 0; }
.reviews__slider .slick-next { right: 0; }

.reviews__slider .slick-prev:before,
.reviews__slider .slick-next:before { display: none; }

.reviews__slider .slick-prev {
    background-image: url('/wp-content/uploads/2026/02/next.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%) rotate(180deg);
}

.reviews__slider .slick-next {
    background-image: url('/wp-content/uploads/2026/02/next.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.reviews__slider .slick-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
}

.reviews__slider .slick-dots li { margin: 0; padding: 0; }

.reviews__slider .slick-dots li button {
    width: 8px;
    height: 8px;
    border-radius: 8px;
    border: 1px solid #CFCECE;
    background: transparent;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reviews__slider .slick-dots li button:before { display: none; }

.reviews__slider .slick-dots li.slick-active button {
    background: var(--color-primary-red);
    border: 1px solid var(--color-primary-red);
}

.reviews__slider .slick-track {
    display: flex;
    align-items: stretch;
}

.reviews__slider .slick-slide { height: auto; }
.reviews__slider .slick-slide > div { height: 100%; }
.reviews__slider .slick-list { overflow: hidden; }

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.reviews__grid-item {
    display: flex;
    flex-direction: column;
}

.reviews__grid .reviews__slide-inner {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
}

/* ── Reviews override inside single-post-body ── */
.single-post-body .sp-reviews-section {
    background: transparent !important;
    padding: 80px 0;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .single-post-hero .hero-blog-title {
        font-size: 48px;
    }

    .scb-layout {
        gap: 40px;
    }

    .scb-sidebar {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .service-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .services-title {
        font-size: 42px;
        padding: 15px 40px;
    }

    .service-link {
        font-size: 32px;
    }

    .service-item,
    .service-top-image,
    .service-bottom-image,
    .service-link {
        transition: none;
    }

    .service-item:hover .service-top-image,
    .service-item:active .service-top-image {
        opacity: 0;
        visibility: hidden;
    }

    .service-item:hover .service-bottom-default,
    .service-item:active .service-bottom-default {
        opacity: 1;
        visibility: visible;
    }

    .service-item:hover .service-bottom-hover,
    .service-item:active .service-bottom-hover {
        opacity: 0;
        visibility: hidden;
    }

    .reviews__slider {
        padding: 0 40px;
    }

    .reviews__slider .slick-prev,
    .reviews__slider .slick-next {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    .single-post-hero {
        height: 220px;
    }

    .single-post-hero .hero-blog-title {
        font-size: 36px;
    }

    .single-post-body {
        margin-top: -40px;
        padding-top: 60px;
    }

    .scb-layout {
        flex-direction: column;
        gap: 48px;
    }

    .scb-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
    }

    .single-post-content h1,
    .single-post-content h2,
    .single-post-content h3 {
        font-size: 32px;
    }

    .single-post-content h4,
    .single-post-content h5,
    .single-post-content h6 {
        font-size: 24px;
    }

    .services-section {
        padding: 60px 0 300px 0;
    }

    .service-item {
        flex: 0 0 100%;
        max-width: 100%;
        height: 280px;
    }

    .services-title {
        font-size: 36px;
        padding: 12px 30px;
    }

    .service-link {
        font-size: 28px;
        padding: 20px 0;
    }

    .reviews-section {
        padding: 60px 0;
    }

    .reviews-title {
        font-size: 40px;
    }

    .reviews-content {
        font-size: 18px;
    }

    .reviews-header {
        margin-bottom: 30px;
    }

    .reviews__slide-name {
        font-size: 22px;
    }

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

@media (max-width: 480px) {
    .services-title {
        font-size: 28px;
        min-width: auto;
    }

    .service-link {
        font-size: 40px;
    }

    .service-item {
        height: 250px;
    }

    .reviews__slider {
        padding: 0 30px;
    }

    .reviews__slider .slick-prev,
    .reviews__slider .slick-next {
        width: 30px;
        height: 30px;
    }

    .reviews__slide-inner {
        padding: 20px;
        min-height: 220px;
    }
}