/* Extracted styles from index.html */

/* Animación de demostración de la lupa */
@keyframes demoMagnifier {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    25% {
        transform: scale(1);
        opacity: 1;
    }

    75% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.demo-magnifier-animation {
    animation: demoMagnifier 3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for in-page anchors */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #30473a;
    --accent-color: #f9d48a;
    --text-dark: #1b2b21;
    --text-light: #1b2b21;
    --background-light: #f2f9f4;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.serif-font {
    font-family: 'Georgia', serif;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CSS para ocultar controles del mapa de Google */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 8px solid var(--primary-color);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 11px;
    margin-top: -50px;
    filter: contrast(1.1) brightness(1.05);
}

/* Logo placeholders */
.logo-placeholder {
    width: 150px;
    height: 40px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    border: 1px dashed #adb5bd;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact-logo {
    height: 40px;
    width: auto;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.phone {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-button {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 18px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Header / logo responsive adjustments */
.logo-link:focus-visible,
.cta-button:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.12);
    outline-offset: 3px;
}

/* Logo base size (increased ~30%) */
.logo-img {
    width: 293px;
    height: 78px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {

    /* mobile: 80% of base (~234px) to keep layout */
    .logo-img {
        width: 234px;
        height: auto;
    }

    .header-content {
        padding: 8px 0;
    }

    .cta-button {
        padding: 12px 18px;
        font-size: 0.95rem;
    }

    .hero-logo {
        width: 300px;
    }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2b3d33 100%);
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/hero.png');
    background-size: 150% auto;
    /* Imagen más grande para permitir movimiento */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 1;
    animation: heroSlide 30s ease-in-out infinite alternate;
}

@keyframes heroSlide {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 100% center;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Hero CTA Button with shine animation */
.hero .cta-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin: 0 auto;
}

.hero .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 10s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes doublePulse {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.05);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.header-contact .cta-button {
    animation: pulse 0.6s ease-in-out;
    animation-iteration-count: 1;
    animation-delay: 8s;
    animation-fill-mode: forwards;
}

.header-contact .cta-button:hover {
    animation: none;
}

.submit-button:hover {
    background: #fde68a;
    transform: translateY(-2px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.hero-logo {
    display: block;
    margin: 0 auto 60px auto;
    max-width: 400px;
    width: 100%;
}

.hero-location {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Sections */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background: var(--background-light);
}

.bg-primary {
    background: var(--primary-color);
    color: var(--white);
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Cards */
.card {
    background: var(--background-light);
    padding: 30px 25px;
    border-radius: 6px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Make the feature cards (the six boxes under "¿Por qué Los Arcos de Yautepec?") white */
.features-section .card {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Property cards */
.property-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    height: 250px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

.property-content {
    padding: 25px;
}

.property-specs {
    list-style: none;
}

.property-specs li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.property-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Placeholders */
.placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 6px;
    padding: 100px 20px;
    text-align: center;
    color: var(--text-light);
    border: 2px dashed #adb5bd;
}

.placeholder::before {
    content: '▶';
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Video container específico */
.video-section {
    width: 100%;
    max-width: 100%;
}

.video-container {
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel (fade-based) - scoped to avoid interfering with other components */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 700ms ease-in-out;
    border-radius: 6px;
    will-change: opacity;
}

.carousel-slides>img.active {
    opacity: 1;
    z-index: 2;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 5;
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.carousel-dots {
    display: none !important;
    height: 0;
    margin: 0;
    padding: 0;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer
}

.carousel-dots button.active {
    background: var(--accent-color);
}

@media (max-width:768px) {

    .carousel-prev,
    .carousel-next {
        display: none
    }
}

/* Placeholder para cuando el video no carga */
.video-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 6px;
    padding: 100px 20px;
    text-align: center;
    color: var(--text-light);
    border: 2px dashed #adb5bd;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-placeholder::before {
    content: '▶';
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Scoped typography for Reglamento content loaded into the FAQ */
#reglamento .faq-content {
    font-family: inherit;
    /* inherit from body (site font) */
    color: var(--text-dark);
    /* use the same font sizing and line-height as other FAQ content */
    max-height: 300px;
    /* keep existing constraint */
    overflow: auto;
    padding: 10px 8px;
}

#reglamento .faq-content h1,
#reglamento .faq-content h2,
#reglamento .faq-content h3 {
    /* headings inherit the site font to avoid serif styling here */
    font-family: inherit;
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Ensure all heading levels inside the Reglamento are compact and match Créditos Bancarios */
#reglamento .faq-content h1,
#reglamento .faq-content h2,
#reglamento .faq-content h3,
#reglamento .faq-content h4,
#reglamento .faq-content h5 {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
    color: var(--primary-color);
}

#reglamento .faq-content p {
    margin-bottom: 0.75rem;
}

#reglamento .faq-content ul,
#reglamento .faq-content ol {
    margin: 0.5rem 0 0.75rem 1.1rem;
}

#reglamento .faq-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Make embedded images responsive inside the reglamento content */
#reglamento .faq-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem 0;
}

/* Remove horizontal divider lines inside the reglamento content */
#reglamento .faq-content hr,
#reglamento .faq-content .divider,
#reglamento .faq-content [role="separator"] {
    display: none !important;
}

/* Remove borders and box-shadows that create horizontal rules */
#reglamento .faq-content * {
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Carousel styles (replaces visible video) */
.video-hidden {
    display: none;
    /* keep in DOM for future use */
}

.carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-slides {
    display: flex;
    gap: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Smooth slide transition - hardware accelerated */
.carousel-slides {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slides>img {
    flex: 0 0 100%;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    /* same as video */
}

/* Cap visible size to native image size (max 1800x900) and center */
.carousel-container,
.carousel-track {
    max-width: 1800px;
    max-height: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {

    /* Hide control buttons on mobile to rely on swipe */
    .carousel-prev,
    .carousel-next {
        display: none;
    }
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    padding: 12px 14px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 6px;
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.carousel-dots button.active {
    background: var(--accent-color);
}

/* Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-button {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 18px 40px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #fde68a;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--background-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* Center all content inside the footer columns */
.footer-content {
    justify-items: center;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--background-light);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.instagram-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: var(--background-light);
    font-size: 0.8rem;
}

/* Prevent fixed header from covering section titles when using anchors */
#plano {
    scroll-margin-top: 100px;
    /* adjust if header height changes */
}

/* Texto instructivo para móviles - oculto por defecto */
.mobile-instruction {
    display: none;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .header-contact {
        display: none;
    }

    /* Desactivar animación del hero en móviles */
    .hero::before {
        animation: none;
        background-size: cover;
        background-position: center center;
    }

    /* Mostrar texto instructivo para móviles en la sección del plano */
    .mobile-instruction {
        display: block !important;
    }

    /* Mobile-only header: hide logo, center WhatsApp CTA, reduce header padding */
    .header .logo-link {
        display: none !important;
    }

    .header {
        padding: 10px 0;
        /* narrow header */
    }

    .header .header-content {
        justify-content: center;
        padding: 0 10px;
        /* 10px margin around button */
    }

    .header .header-contact {
        display: flex;
        gap: 0;
        align-items: center;
        justify-content: center;
    }

    .header .header-contact .cta-button {
        padding: 10px 16px;
    }

    /* Hide phone number on mobile header */
    .header .phone {
        display: none !important;
    }

    /* Add margin between logo and phone numbers on mobile */
    .header .header-contact-logo {
        margin-right: 20px;
    }
}

/* Additional mobile fixes: allow video/carousel wrapper to size to content */
@media (max-width: 768px) {
    .video-container {
        height: auto !important;
        min-height: 0 !important;
    }

    /* also ensure carousel track doesn't force extra height */
    .carousel-track {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* Styles for magnifier elements (positioning kept to be controlled by JS) */
.magnifier-container {
    position: relative;
}

#magnifier {
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

#demo-magnifier {
    pointer-events: none;
}

/* Utility classes moved from inline attributes */
.logo-link {
    display: inline-block;
}


.hero-logo {
    width: 400px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.hero-subtitle--spaced {
    margin-bottom: 20px;
}

.small-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Ensure footer CTA uses the same visual style and has no animation */
.footer-section .cta-button {
    /* inherit main CTA styles */
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-section .cta-button:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: var(--text-dark);
}

/* Disable header-specific animation for footer CTAs */
.footer-section .cta-button {
    animation: none !important;
}

/* Space between phone and CTA in footer */
.footer-section .footer-phone {
    display: block;
    margin-bottom: 8px;
}

.footer-section .footer-phone:last-of-type {
    margin-bottom: 25px;
}

.icon-80 {
    width: 80px;
    height: 80px;
}

/* Plans / magnifier */
.plans-wrapper {
    border-radius: 6px;
    padding: 15px 0;
    text-align: center;
}

/* Desktop/Mobile subtitle visibility helpers */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }
}

.magnifier-container {
    width: 100%;
    max-width: 3000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.plan-img {
    width: 100%;
    max-width: 3000px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

.magnifier {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
    transform: scale(0);
    will-change: transform, opacity, background-position;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.demo-magnifier {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    z-index: 11;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
    will-change: transform, opacity, background-position;
    left: 50%;
    top: 50%;
    margin-left: -100px;
    margin-top: -100px;
}

/* Financing cards */
.fg-light {
    color: var(--background-light);
}

.fg-light-sub {
    color: rgba(225, 239, 231, 0.9);
}

.finance-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 6px;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.finance-card .cta-button {
    margin-top: 20px;
}

.finance-card__title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.finance-list {
    text-align: left;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.finance-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.finance-list__bullet {
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* FAQ: make any opened detail content scrollable when open */
.faq-wrapper details[open] .faq-content {
    max-height: 300px;
    overflow: auto;
    font-size: 0.85rem;
    line-height: 1.4;
    padding-right: 10px;
    /* room for scrollbar */
}

/* Location */
.location-grid {
    gap: 40px;
    align-items: flex-start;
}

.location-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.location-list {
    list-style: none;
    margin-top: 15px;
    padding: 0;
}

.location-list__item {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}

.location-list__bullet {
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* FAQ */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.faq-summary {
    background: var(--background-light);
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq-content {
    padding: 20px 25px;
    background: var(--background-light);
    line-height: 1.8;
}

/* Ensure paragraphs inside FAQ content have visible spacing (line break between paragraphs) */
.faq-content p {
    margin-bottom: 1rem;
}

/* Headings inside FAQ content: keep them compact and consistent */
.faq-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.6rem;
    margin-bottom: 0.4rem;
}

.faq-content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
}

/* Footer */
.footer-section--center {
    text-align: center;
}

.footer-logo {
    width: 381px;
    /* 293px * 1.3 */
    height: 101px;
    /* 78px * 1.3 */
    object-fit: contain;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .footer-logo {
        width: 304px;
        /* 234px * 1.3 */
        height: auto;
    }
}

.social-wrapper {
    margin-top: 15px;
}

.social-link {
    display: inline-block;
}

.social-icon {
    width: 28px;
    height: 28px;
}

/* Add space between the FAQ title and the details list */
.faq-wrapper {
    margin-top: 35px;
    /* adds gap after the section title */
}

/* Mobile-only: prevent carousel images from being cropped; make them fit the viewport */
@media (max-width: 768px) {

    /* Let the carousel size itself to the (scaled) images on mobile.
       Use a max-height cap so it never takes more than a portion of the viewport. */
    .carousel-container,
    .carousel-track,
    .carousel-slides {
        height: auto;
        max-height: 60vh;
    }

    /* Images determine the height; scale by width and keep aspect ratio */
    .carousel-slides>img,
    .carousel-img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        inset: auto !important;
        display: block;
    }

    /* Keep fade transitions functional while using static positioning */
    .carousel-slides>img {
        opacity: 0;
        transition: opacity 700ms ease-in-out;
    }

    .carousel-slides>img.active {
        opacity: 1;
    }
}