/* QuickLand Modules Styles - Handling independent sections */

/* =========================================
   1. KEY FEATURES SECTION (Premium Checklist)
   ========================================= */
.ql-section.ql-features-section {
    width: 100%;
    max-width: 1280px;
    margin: 20px auto; 
    padding: 0 15px;
    box-sizing: border-box;
    clear: both;
}

.ql-features-card {
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

/* Green top accent line */
.ql-features-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #43a047, #66bb6a);
}

.ql-features-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ql-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columns */
    gap: 15px 30px;
}

.ql-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
    font-weight: 500;
}

.ql-feat-icon {
    width: 24px;
    height: 24px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Mobile: Single Column */
@media (max-width: 767px) {
    .ql-section.ql-features-section {
        padding: 0 4px !important;
        margin: 15px 0 !important;
    }
    
    .ql-features-card {
        padding: 20px;
        border-radius: 10px;
    }

    .ql-features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 12px;
    }
}


/* =========================================
   2. HOW TO USE SECTION (Premium 3D Cards)
   ========================================= */
.ql-section.ql-htu-section {
    width: 100%;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    clear: both;
}

.ql-htu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* The 3D Step Card */
.ql-htu-card {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f0f4f8;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.ql-htu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #e0e6ed;
}

.ql-htu-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    z-index: 2;
}

.ql-htu-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2c3338;
}

.ql-htu-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Background Decoration */
.ql-htu-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(46, 125, 50, 0.05);
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.4s ease;
}

.ql-htu-card:hover::before {
    transform: scale(1.5);
}

/* Mobile Optimization */
@media (max-width: 767px) {
    .ql-section.ql-htu-section {
        margin: 20px 0 !important;
        padding: 0 10px !important;
    }

    .ql-htu-grid {
        flex-direction: column;
        gap: 15px;
    }

    .ql-htu-card {
        display: flex;
        align-items: flex-start;
        text-align: left;
        padding: 20px;
        min-width: auto;
    }

    .ql-htu-number {
        margin: 0 15px 0 0;
        width: 40px;
        height: 40px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .ql-htu-content {
        flex: 1;
    }

    .ql-htu-content h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .ql-htu-content p {
        font-size: 13px;
    }
}


/* =========================================
   3. SMART RELATED PRODUCTS (Premium 3D Grid)
   ========================================= */
.ql-section.ql-related-section {
    width: 100%; 
    max-width: 1280px; 
    margin: 40px auto; 
    padding: 0 15px; 
    box-sizing: border-box; 
    clear: both;
}

.ql-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC: 4 Columns Strict */
    gap: 20px;
    width: 100%;
}

/* 3D Card Container */
.ql-related-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Hover Effect: Lift Up */
.ql-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

.ql-rc-link { text-decoration: none; color: inherit; display: block; flex: 1; }

.ql-rc-image {
    position: relative;
    padding-top: 100%; /* Square Aspect Ratio 1:1 */
    overflow: hidden;
    background: #f9f9f9;
}

.ql-rc-image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease;
}

.ql-related-card:hover .ql-rc-image img { transform: scale(1.05); }

.ql-rc-badge {
    position: absolute; top: 10px; left: 10px;
    background: #d32f2f; color: #fff; font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 4px; z-index: 2;
}

.ql-rc-details { padding: 15px; text-align: center; }

.ql-rc-title {
    font-size: 15px; font-weight: 600; margin: 0 0 8px 0; color: #333;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    height: 38px; line-height: 1.3;
}

.ql-rc-price { font-weight: 700; color: #2e7d32; font-size: 16px; margin-bottom: 5px; }
.ql-rc-price del { color: #aaa; font-size: 13px; font-weight: 400; margin-right: 5px; }

/* Smart Button */
.ql-rc-action {
    padding: 0 15px 15px 15px;
    margin-top: auto;
}

.ql-rc-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px 0;
    background: #fff; color: #333;
    border: 1px solid #333; border-radius: 6px;
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    text-decoration: none; transition: all 0.2s;
    cursor: pointer;
}

.ql-rc-btn:hover {
    background: #333; color: #fff;
}

/* === MOBILE OPTIMIZATION (Smart 2-Column Fit) === */
@media (max-width: 767px) {
    .ql-section.ql-related-section {
        padding: 0 4px !important; /* Very tight edges */
        margin: 20px 0 !important;
    }
    
    .ql-section-title { padding-left: 5px; font-size: 18px; margin-bottom: 15px; }

    .ql-related-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 Columns */
        gap: 8px !important; /* Tight Gap */
    }

    .ql-related-card {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .ql-rc-details { padding: 10px 8px; }
    
    .ql-rc-title { 
        font-size: 13px; 
        height: 34px; /* Slightly smaller height */
        margin-bottom: 5px; 
        line-height: 1.3;
    }
    
    .ql-rc-price { font-size: 14px; }
    
    .ql-rc-action { padding: 0 8px 10px 8px; }
    
    .ql-rc-btn { 
        padding: 8px 0; 
        font-size: 11px; 
        border-radius: 4px; 
    }
    /* Hide icon on mobile to save space */
    .ql-rc-btn .dashicons { display: none; }
}


/* =========================================
   4. FAQ SECTION (Premium Accordion Card)
   ========================================= */
.ql-section.ql-faq-section {
    width: 100%;
    max-width: 1280px;
    margin: 40px auto; 
    padding: 0 15px;
    box-sizing: border-box;
    clear: both;
}

/* The Main Card Container */
.ql-faq-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* Green top accent line */
.ql-faq-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #43a047, #66bb6a);
}

.ql-faq-card .ql-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
}

/* The List */
.ql-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ql-faq-item {
    border: 1px solid #f0f4f8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ql-faq-item:hover {
    border-color: #dce3eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Active State styling */
.ql-faq-item.active {
    border-color: #43a047;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.08);
}

/* The Question Button */
button.ql-faq-question {
    width: 100%;
    background: #f9fafb; /* Light grey background */
    border: none;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: background 0.2s;
}

button.ql-faq-question:hover {
    background: #f0f2f5;
    color: #000;
}

.ql-faq-item.active button.ql-faq-question {
    background: #fff;
    color: #2e7d32; /* Green text when open */
    border-bottom: 1px solid #f0f0f0;
}

/* The Icon */
.ql-faq-icon {
    font-size: 18px;
    color: #999;
    transition: transform 0.3s ease;
}

.ql-faq-item.active .ql-faq-icon {
    transform: rotate(180deg);
    color: #2e7d32;
}

/* The Answer (Hidden by default) */
.ql-faq-answer {
    display: none; /* JS toggles this */
    background: #fff;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.ql-answer-inner {
    padding: 20px;
}

/* Mobile Tweaks for FAQ */
@media (max-width: 767px) {
    .ql-section.ql-faq-section {
        padding: 0 4px !important;
        margin: 20px 0 !important;
    }

    .ql-faq-card {
        padding: 20px 15px;
        border-radius: 10px;
    }

    .ql-faq-card .ql-section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    button.ql-faq-question {
        padding: 15px;
        font-size: 14px;
    }

    .ql-answer-inner {
        padding: 15px;
    }
}


/* =========================================
   5. REVIEWS SECTION (Premium Card & Toggle)
   ========================================= */

.ql-section.ql-reviews-section {
    width: 100%; max-width: 1280px; margin: 40px auto 60px auto; padding: 0 15px; box-sizing: border-box; clear: both;
}

.ql-reviews-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ql-reviews-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #43a047, #66bb6a);
    z-index: 2;
}

/* TOGGLE HEADER (Clickable Header) */
.ql-reviews-toggle-header {
    cursor: pointer;
    padding: 30px;
    background: #fff;
    transition: background 0.2s;
}

.ql-reviews-toggle-header:hover {
    background: #f9f9f9;
}

.ql-reviews-card .ql-section-title {
    font-size: 20px; font-weight: 700; margin: 0; 
    display: flex; justify-content: space-between; align-items: center;
    color: #222;
    border-bottom: none; /* Removed default border */
    padding-bottom: 0;
}

.ql-review-count {
    font-size: 13px; background: #f0f0f0; padding: 4px 10px; border-radius: 20px; color: #555; margin-left: 10px; font-weight: 500;
}

/* Toggle Icon Animation */
.ql-toggle-icon {
    font-size: 20px; color: #999; transition: transform 0.3s ease;
}
.ql-reviews-card.active .ql-toggle-icon {
    transform: rotate(180deg); color: #2e7d32;
}

/* BODY CONTENT (Collapsible) */
.ql-reviews-body {
    padding: 0 30px 30px 30px;
    /* When inactive, JS hides it */
}

/* LIST */
.ql-reviews-list { margin-bottom: 40px; border-top: 1px solid #eee; padding-top: 20px; }

.ql-review-item {
    display: flex; gap: 20px; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}
.ql-review-item:last-child { border-bottom: none; margin-bottom: 0; }

.ql-review-avatar img {
    border-radius: 50%; width: 50px; height: 50px; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ql-review-content { flex: 1; }

.ql-review-header { display: flex; justify-content: space-between; margin-bottom: 5px; align-items: center; }
.ql-review-author { font-size: 15px; color: #222; font-weight: 700; }
.ql-review-date { font-size: 12px; color: #999; }

.ql-star-rating { color: #fbc02d; font-size: 14px; margin-bottom: 8px; }
.ql-review-text p { font-size: 14px; color: #555; line-height: 1.6; margin: 0; }

/* PREMIUM IMAGE STYLING */
.ql-review-attachment {
    margin-top: 12px;
}
.ql-review-img-link {
    display: inline-block;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 3px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ql-review-img-link:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}
.ql-review-img-link img {
    max-width: 120px; /* Nice thumbnail size */
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Highlight Items with Images */
.ql-review-item.has-image {
    background: #fcfcfc; /* Slight bg to highlight premium reviews */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.ql-no-reviews { text-align: center; color: #777; font-style: italic; padding: 20px; background: #f9f9f9; border-radius: 8px; }

/* FORM */
.ql-review-form-wrapper {
    background: #fdfdfd; padding: 25px; border-radius: 8px; border: 1px solid #f0f0f0;
}

.ql-form-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: #333; text-transform: uppercase; }

/* Hide default junk */
.logged-in-as, .comment-notes { font-size: 12px; color: #888; margin-bottom: 10px; }

.ql-form-group { margin-bottom: 15px; }
.ql-form-group label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; color: #444; }

.ql-review-form-wrapper input[type="text"],
.ql-review-form-wrapper input[type="email"],
.ql-review-form-wrapper textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fff;
    transition: border 0.2s;
}

.ql-review-form-wrapper textarea:focus,
.ql-review-form-wrapper input:focus {
    border-color: #333; outline: none;
}

.ql-review-form-wrapper textarea { resize: vertical; min-height: 100px; }

/* File Input */
.ql-file-input {
    background: #fff; padding: 10px; border: 1px dashed #ccc; width: 100%; border-radius: 6px; cursor: pointer;
}

/* Submit Button */
.ql-submit-btn {
    background: #333 !important; color: #fff !important; border: none; padding: 12px 25px; border-radius: 6px; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.ql-submit-btn:hover { background: #000 !important; }

/* Mobile Tweaks */
@media (max-width: 767px) {
    .ql-section.ql-reviews-section { padding: 0 4px !important; margin: 20px 0 40px 0 !important; }
    .ql-reviews-card { border-radius: 10px; }
    .ql-reviews-toggle-header { padding: 20px 15px; } /* Updated */
    .ql-reviews-body { padding: 0 15px 20px 15px; } /* Updated */
    
    .ql-review-item { flex-direction: column; gap: 10px; }
    .ql-review-avatar { display: flex; align-items: center; gap: 10px; }
    .ql-review-avatar::after { content: "Verified Buyer"; font-size: 11px; color: #4caf50; font-weight: 600; }
    .ql-review-content { padding-left: 0; }
    .ql-review-form-wrapper { padding: 15px; }
}