/*
 Theme Name: ClassiList Child
 Theme URI: https://shoppaddy.com/
 Description: Child theme for the ClassiList WordPress theme.
 Author: ShopPaddy
 Author URI: https://shoppaddy.com/
 Template: classilist
 Version: 1.0
*/

/* Import parent theme styles */
@import url("../classilist/style.css");

/* Add your custom CSS below */
/* =====================
   1. FORM BUILDER UI
   ===================== */

/* Form list layout */
.rtcl-form-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Base styling for each form card */
.rtcl-form-item {
    flex: 1 1 180px;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    color: #333;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Hover effect */
.rtcl-form-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    filter: brightness(1.05);
}

/* Icon styling */
.rtcl-form-icon {
    font-size: 40px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

/* Icon hover */
.rtcl-form-item:hover .rtcl-form-icon {
    color: #444;
}

/* Title styling */
.rtcl-form-title {
    font-size: 16px;
    font-weight: 600;
}

/* Gradient cards */
.rtcl-form-item[data-slug="vehicles-6"] {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.rtcl-form-item[data-slug="job-submit"] {
    background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}

.rtcl-form-item[data-slug="service-listing-4"] {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.rtcl-form-item[data-slug="shoppaddy-food-2"] {
    background: linear-gradient(135deg, #d4fc79, #96e6a1);
}

.rtcl-form-item[data-slug="marketplace-form"] {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

/* Remove backgrounds in form builder wrapper */
#rtcl-form-builder-container,
#rtcl-form-builder,
.rtcl-fb-wrap,
.elementor-widget-shortcode .elementor-shortcode {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove pseudo-element shadows */
#rtcl-form-builder-container::before,
#rtcl-form-builder-container::after,
.rtcl-fb-wrap::before,
.rtcl-fb-wrap::after {
    background: none !important;
    display: none !important;
}



/* =====================
   2. HEADER & SELL NOW BUTTON
   ===================== */

/* Button styling */
.post-ad-button > a {
    background: linear-gradient(135deg, #f4bb00 0%, #f4bb00 100%);
    color: #ffffff !important;
    padding: 14px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.6px;
    box-shadow: 0 4px 10px rgba(0, 37, 66, 0.25);
    transition: all 0.25s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase;
    pointer-events: none !important; /* keep dropdown only */
    cursor: default !important;
}

/* Hover effect */
.post-ad-button > a:hover {
    background: linear-gradient(135deg, #004a7c 0%, #006bb3 100%);
    box-shadow: 0 5px 12px rgba(0, 74, 124, 0.3);
}

/* Dropdown styling */
.post-ad-button .sub-menu {
    border-radius: 8px;
    padding: 8px 0;
    background-color: #ffffff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    margin-top: 8px;
}

/* Dropdown links */
.post-ad-button .sub-menu a {
    color: #002542 !important;
    font-weight: 500;
    padding: 8px 18px;
    transition: background 0.25s ease, padding-left 0.25s ease;
}

.post-ad-button .sub-menu a:hover {
    background-color: #f0f4f8;
    padding-left: 24px;
}

/* Hide old “Sell Now” button */
a.btn.rdtheme-button-1 {
    display: none !important;
}

/* Dropdown animation */
.post-ad-button:hover .sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: all 0.2s ease-in-out;
}

/* Header text clarity */
.header-menu-btn,
.header-menu-btn:hover {
    transform: none !important;
    scale: 1 !important;
    filter: none !important;
    font-weight: 600 !important;
    text-rendering: optimizeLegibility;
}

.post-ad-button > a .sell-now-text {
    font-weight: 800 !important;
}



/* =====================
   3. SEARCH BAR STYLING
   ===================== */

.rtcl-widget-search-form {
    max-width: 700px;
    margin: 0 auto !important;
}

.rtin-search-btn {
    background-color: #0087ef !important;
    border-color: #002542 !important;
    color: #ffffff !important;
}

.rtin-search-btn:hover {
    background-color: #00335d !important;
    border-color: #00335d !important;
}

/* Mobile one-line layout */
@media (max-width: 767px) {

    .classilist-listing-search .rtcl-search-inline-form {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5px !important;
        width: 100% !important;
    }

    .classilist-listing-search .rtin-key-space {
        flex: 1 1 auto !important;
        max-width: calc(100% - 55px) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .classilist-listing-search input.rtcl-autocomplete {
        width: 100% !important;
        height: 45px !important;
    }

    .classilist-listing-search .rtin-btn-holder {
        flex: 0 0 45px !important;
        max-width: 45px !important;
        margin-top: -4px !important;
    }

    .rtin-search-btn {
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 20px !important;
        padding: 0 !important;
        font-size: 0 !important;
        color: transparent !important;
    }

    .rtin-search-btn i {
        font-size: 20px !important;
        color: #fff !important;
    }

    .classilist-listing-search .rtcl-widget-search-form > div {
        flex: unset !important;
        max-width: unset !important;
        width: auto !important;
    }
}



/* =====================
   4. SECTION SPACING & TYPOGRAPHY
   ===================== */

/* Homepage headings */
.home h2,
.home .section-title,
.home .rtcl-widget-title,
.home .rtcl-section-title {
    margin-top: 16px !important;
    margin-bottom: 22px !important;
}

/* Mobile spacing adjustments */
@media (max-width: 768px) {

    h2, .section-title, .rt-section-title {
        font-size: 19px !important;
        margin-top: 28px !important;
        margin-bottom: 18px !important;
    }

    .rtcl-widget,
    .elementor-section,
    .rt-section {
        margin-top: 28px !important;
        margin-bottom: 28px !important;
    }

    .rtcl-slider,
    .rtcl-hero-slider {
        margin-bottom: 25px !important;
    }

    .rtcl-listing-item {
        margin-top: 14px !important;
    }

    .rt-container,
    .container,
    .elementor-widget-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}



/* =====================
   5. SAFETY BANNER
   ===================== */

.ghana-trust-banner {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(90deg, #d62828, #ffca3a, #007f5f);
    color: white;
}

.ghana-trust-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.trust-logo {
    height: 40px;
    width: auto;
}

/* Safety row */
.safety-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* Safety box */
.safety-box {
    background: white;
    color: #333;
    width: 250px;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.2s ease;
    text-decoration: none;
}

.safety-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.trust-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.safety-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

.safety-box p {
    font-size: 0.95rem;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .safety-box {
        width: 90%;
        max-width: 300px;
    }
    .trust-logo {
        height: 30px;
    }
}



/* =====================
   6. CATEGORY SLIDER (CIRCULAR ICONS)
   ===================== */

.rt-el-listing-cat-slider .rtin-icon {
    width: 130px !important;
    height: 130px !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: 
        transform 0.35s cubic-bezier(.17,.67,.37,1.35),
        box-shadow 0.35s ease,
        border 0.35s ease,
        filter 0.35s ease;
}

.rt-el-listing-cat-slider .rtin-icon img {
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Hover effect */
.rt-el-listing-cat-slider .rtin-item:hover .rtin-icon {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 10px 25px rgba(0,0,0,0.28);
    filter: 
        drop-shadow(0 0 5px rgba(255,230,0,0.4))
        drop-shadow(0 0 8px rgba(0,150,255,0.3));
}

/* Mobile circle size */
@media (max-width: 768px) {
    .rt-el-listing-cat-slider .rtin-icon {
        width: 80px !important;
        height: 80px !important;
    }
    .rt-el-listing-cat-slider .rtin-title {
        margin-top: 8px !important;
        font-size: 14px !important;
    }
}



/* =====================
   7. FEATURED STORES
   ===================== */

.featured-store-item {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    border: 2px solid #e2ecff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.07);
    transition: all 0.28s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Override Elementor’s shadow */
.featured-store-item.elementor-widget-image {
    box-shadow: none !important;
}

.featured-store-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.28s ease;
}

/* Hover effect */
.featured-store-item:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: #1e88ff;
    box-shadow: 0 12px 26px rgba(30,136,255,0.28);
    cursor: pointer;
}

.featured-store-item:hover img {
    filter: brightness(1.05);
}

/* Mobile */
@media (max-width: 768px) {
    .featured-store-item {
        padding: 12px;
        border-radius: 10px;
    }
    .featured-store-item img {
        max-width: 90%;
    }
}
