/* ========================================
   HOMEPAGE DESIGN FIXES v2
   Macedonia Car Rental
   Updated for actual site structure
   ======================================== */

/* ========================================
   1. FAQ ACCORDION - Turbo Theme Structure
   ======================================== */
/* FAQ section container */
.elementor-widget-tm_faqs {
    padding: 40px 0 !important;
}

/* FAQ container */
.faq_container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* FAQ item card */
.accordion-item.content_card {
    background: #fff !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
}

.accordion-item.content_card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
}

/* FAQ title/toggle */
.accordion_title.accordion-toggle {
    cursor: pointer !important;
    padding: 20px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.accordion_title.accordion-toggle:hover {
    color: #c17f59 !important;
}

/* FAQ body/content - use Tailwind's hidden but allow override when active */
.accordion-item .accordion-body {
    padding: 0 24px 20px 24px !important;
    transition: all 0.3s ease !important;
}

/* When group has .active class, show body */
.accordion-item.group.active .accordion-body {
    display: block !important;
}

/* FAQ content text */
.accordion_content {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #555 !important;
}

/* ========================================
   2. TESTIMONIALS - Slick Slider Structure
   ======================================== */
/* Main testimonials widget */
.elementor-widget-tm_testimonials {
    padding: 50px 0 !important;
}

/* Testimonial slider - make horizontal */
.testimonial-slider.slick-slider {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Slick track */
.testimonial-slider .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

/* Slick slide items */
.testimonial-slider .slick-slide {
    height: auto !important;
    margin: 0 10px !important;
}

.testimonial-slider .slick-slide > div {
    height: 100% !important;
}

/* Testimonial card styling */
.testimonial-slider .slick-slide > div > div {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Slick dots pagination */
.testimonial-slider .slick-dots {
    bottom: -40px !important;
}

.testimonial-slider .slick-dots li button:before {
    font-size: 12px !important;
    color: #c17f59 !important;
}

.testimonial-slider .slick-dots li.slick-active button:before {
    color: #c17f59 !important;
}

/* ========================================
   3. CTA SECTION - "Rent a Car in Skopje"
   Section ID: 55cf40a
   ======================================== */
/* CTA section layout */
.elementor-element-55cf40a {
    padding: 60px 0 !important;
}

.elementor-element-55cf40a > .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 50px !important;
    max-width: 1100px !important;
    padding: 0 20px !important;
}

/* CTA left column - images */
.elementor-element-55cf40a .elementor-column:first-child {
    flex: 0 0 45% !important;
    max-width: 45% !important;
}

/* CTA images grid */
.elementor-element-55cf40a .grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

.elementor-element-55cf40a figure {
    margin: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.elementor-element-55cf40a figure img {
    width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

/* Second image offset */
.elementor-element-55cf40a figure:nth-child(2) {
    transform: translateY(30px) !important;
}

/* CTA right column - text */
.elementor-element-55cf40a .elementor-column:last-child {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

/* CTA title */
.elementor-element-55cf40a h2,
.elementor-element-55cf40a .fancy-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
    color: #333 !important;
}

/* CTA description */
.elementor-element-55cf40a p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #666 !important;
    margin-bottom: 24px !important;
}

/* CTA button */
.elementor-element-55cf40a .btn,
.elementor-element-55cf40a a[href*="about"] {
    display: inline-block !important;
    padding: 14px 32px !important;
    background: #c17f59 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.elementor-element-55cf40a .btn:hover,
.elementor-element-55cf40a a[href*="about"]:hover {
    background: #a86d4a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(193, 127, 89, 0.4) !important;
}

/* ========================================
   4. GENERAL SECTION SPACING
   ======================================== */
/* Reduce excessive padding between sections */
.elementor-section.elementor-top-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* Hero section - keep spacious */
.elementor-section.elementor-top-section:first-of-type {
    padding-top: 0 !important;
    padding-bottom: 50px !important;
}

/* Section headings - fancy title style */
h3.fancy-title,
.fancy-title.text-h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* ========================================
   5. MOBILE RESPONSIVE
   ======================================== */
@media screen and (max-width: 1024px) {
    /* CTA section stacks on tablet */
    .elementor-element-55cf40a > .elementor-container {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .elementor-element-55cf40a .elementor-column:first-child,
    .elementor-element-55cf40a .elementor-column:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .elementor-element-55cf40a figure:nth-child(2) {
        transform: none !important;
    }
}

@media screen and (max-width: 768px) {
    /* FAQ adjustments */
    .accordion_title.accordion-toggle {
        font-size: 14px !important;
        padding: 16px 20px !important;
    }

    .accordion-item .accordion-body {
        padding: 0 20px 16px 20px !important;
    }

    /* CTA adjustments */
    .elementor-element-55cf40a h2,
    .elementor-element-55cf40a .fancy-title {
        font-size: 22px !important;
        text-align: center !important;
    }

    .elementor-element-55cf40a p {
        text-align: center !important;
    }

    /* Section spacing */
    .elementor-section.elementor-top-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    h3.fancy-title {
        font-size: 22px !important;
    }
}

/* ========================================
   ACCORDION FIX - Override Tailwind hidden
   ======================================== */

/* Override Tailwind hidden for accordion body */
.accordion-item .accordion-body.hidden {
    display: none !important;
}

/* When parent has active class, override hidden */
.accordion-item.active .accordion-body,
.accordion-item.active .accordion-body.hidden,
.group.active .accordion-body,
.group.active .accordion-body.hidden {
    display: block !important;
}

/* slideToggle adds inline style, make sure it works */
.accordion-item .accordion-body[style*="display: block"],
.accordion-item .accordion-body[style*="display: none"] {
    display: inherit !important;
}

