/*
Theme Name: Avada Child LE
Theme URI: http://example.com
Description: Child theme for Avada
Author: Lady Evelynn
Template: Avada
Version: 1.0.0
*/

/* ==========================================================
   Custom CSS for 6-random-items page and full-list page
   Paste the combined CSS below this line
========================================================== */


/* ==========================================================
   6-Random-Items Page Styles
   ========================================================== */

/* Names in h5 */
.item-name {
    font-size: 1em;        /* h5 size */
    color: #FFFFFD;        /* white names */
	margin-bottom: 0.1em;
	margin-top:0.2em;
}

/* Descriptions under names */
.item-desc {
    font-size: 0.75em;
    color: #FFFFFD;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
	    transform: translateY(-2px);

}

.item-desc.show {
    max-height: 500px; /* more flexible for longer text */
    opacity: 1;
	    transform: translateY(0);

}

/* Buttons shared by toggle and reload */
.terms-buttons {
    background-color: #640000;
    color: #FFFFFD;
    font-family: 'Alegreya Sans', sans-serif;
    border: none;
    padding: 0.5em 1em;
	border-radius:8px;
    margin-right: 0.5em;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Hover, focus, active states */
.terms-buttons:hover {
    background-color: #741a1a;
}

.terms-buttons:focus {
    background-color: #741a1a;
    outline: none;
}
.terms-buttons:focus:not(:hover) {
    background-color: #640000; /* reset to default */
}

.terms-buttons:active {
    background-color: #500000;
}

/* Responsive container for two-column layout */
.responsive-container {
    display: flex;
    flex-wrap: wrap;
	   max-width: 500px;   /* 👈 controls total width */
    margin: 0 ;    
	margin-left:0.5em;
	justify-content: flex-start;
    gap: 0.5em;          /* tighter gap between columns */
    align-items: flex-start; /*  polish #1: align columns nicely at top */
}

.responsive-container ul {
    flex: 0 0 48%;
    max-width: 48%;
    list-style: none; /* 👈 also fixes bullets */
    padding-left: 0;
}

.responsive-container li {
    margin-bottom: 0.15em;
	    line-height: 1.2;
}

/* Button container */
.button-block {
    margin-top: 0.5em;
	margin-left:0.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

/* ==========================================================
   Full Alphabetical List Page Styles
   ========================================================== */

/* Outer list with bullets */
.full-list {
    list-style: disc;
    margin-left: 1em;
    font-family: inherit;   /* standard body font */
}

/* Names in the list items */
.full-list-item {
    margin-bottom: 0.5em;
    color: #FFFFFD;         /* text color for names */
}

/* Bullet color only */
.full-list-item::marker {
    color: #640000;         /* dark red bullets */
}

/* Nested description list */
.desc-list {
    list-style: none;
    margin: 0;
    padding-left: 1em;      /* indent for descriptions */
}

/* Description item */
.desc-item {
    font-size: 0.75em;      /* small font */
    color: #FFFFFD;
    margin-top: 0.2em;
	margin-bottom:0.2em;
}

/* Error messages for both shortcodes */
.error-msg {
    color: red;
}

/* ==========================================================
   Responsive adjustments for mobile
   ========================================================== */
@media (max-width: 768px) {
    /* Stack lists vertically */
    .responsive-container {
        flex-direction: column;
  gap: 0 !important;		
    }

    .responsive-container ul {
        flex: 1 1 100%;
		max-width: 100%;
		   margin: 0 !important;
        padding: 0 !important;
		
    }
	    .responsive-container ul + ul {
        margin-top: 0 !important;
    }


    /* Stack buttons but don’t stretch full width */
    .button-block {
        flex-direction: column;
        gap: 0.5em;
        align-items: flex-start;
    }

    .button-block .terms-buttons {
        width: auto;           /* fit content */
        min-width: 120px;      /* optional */
    }
}
/*end terms code*/

/*start testimonials code*/
/* ==========================================
   TESTIMONIAL TOGGLES - COMPLETE STYLESHEET
   ========================================== */

/* 1. CONTAINER & LAYOUTS */
.testimonial-toggles-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 15px;
}

/* Grid Layout Mode */
.tt-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tt-grid-layout .testimonial-toggle-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.tt-grid-layout .testimonial-toggle-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.tt-grid-layout .testimonial-toggle-body {
    padding: 15px;
}

/* List Layout Mode (Default) */
.testimonial-toggle-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: #fff;
}

/* ==========================================
   TESTIMONIAL HEADER STYLING (COMPLETE FIX)
   ========================================== */

/* Header Container */
.testimonial-toggle-header {
    display: flex;
    align-items: center; /* Vertically center all items */
    gap: 12px; /* Space between Avatar, Info, Groups, Icon */
    padding: 12px 15px !important;
    cursor: pointer;
    background-color: #640000;
    border: 1px solid #500000;
    border-bottom: none;
    transition: background-color 0.2s ease;
    position: relative;
    margin: 0 !important;
    line-height: 1 !important;
    overflow: visible !important; /* Ensure badges aren't clipped */
}


.testimonial-toggle-header:hover {
    background-color: #700000;
}

/* Avatar */
.testimonial-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}


.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #383838;
    border: 1px solid #161616;
}

/* Info Container (Name + Excerpt) */
.testimonial-info {
    flex-grow: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    min-width: 0; /* Prevents flex items from overflowing */
}

.testimonial-name {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Alegreya Sans SC', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fffffd;
    line-height: 1.1 !important;
    display: block;
    margin-bottom: 0 !important;
}

.testimonial-summary {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 16px;
    color: #fffffd;
    line-height: 1.3 !important;
    display: block;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Groups: Ensure they are visible and don't shrink */
.testimonial-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.testimonial-group-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border-radius: 16px;
    background-color: #500000;
    color: #fffffd;
    border: 1px solid #080808;
}


/* Icon */
.testimonial-toggle-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fffffd;
    margin-left: 5px; /* Small gap before icon */
}

.testimonial-toggle-icon i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.testimonial-toggle-header.active .testimonial-toggle-icon i {
    transform: rotate(180deg);
}


/* Testimonial Date Styling */
.testimonial-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonial-date i {
    color: #640000; /* Match your theme accent color */
}

/* ==========================================
   CONTENT BOX STYLING (Dark Theme + Quote Style)
   ========================================== */

.testimonial-toggle-body {
    display: none; /* Hidden by default */
    background: #333333; 
    border: 1px solid #500000; 
    border-top: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 8px 8px;
    position: relative;
    z-index: 10;
    
    /* Simple Fade In Animation */
    animation: fadeIn 0.4s ease forwards;
}

/* When active, just show it. No height limits! */
.testimonial-toggle-header.active + .testimonial-toggle-body {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-toggle-header.active + .testimonial-toggle-body {
    /* Padding applied here */
    padding: 25px 30px 40px 30px; 
}


/* Quote Styling */
.testimonial-content {
    position: relative;
    line-height: 1.8;
    color: #fffffd;
    font-size: 16px;
    font-family: 'Alegreya Sans', sans-serif;
    font-style: italic;
    padding-left: 35px; 
    padding-top: 10px;
    padding-bottom: 10px;
    border-left: 3px solid #640000;
    margin: 0;
}

/* Decorative Quote Mark */
.testimonial-content::before {
    content: """;
    font-family: Georgia, serif;
    font-size: 60px;
    line-height: 0.5;
    color: #640000;
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
    z-index: 0;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Date Styling */
.testimonial-date {
    font-size: 13px;
    color: #aaaaaa;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-style: normal;
}

.testimonial-date i {
    color: #ffcccc; 
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}
/* ==========================================
   FIX: OFF-WHITE LINES UNDER CORNERS
   ========================================== */

/* Ensure the parent item has the SAME background as the body */
.testimonial-toggle-item {
    background: #333333 !important; /* Match the body background exactly */
    border-bottom: 1px solid #161616 !important; /* Match page background */
    overflow: hidden; /* Clip any stray pixels */
}

/* Ensure the header blends seamlessly */
.testimonial-toggle-header {
    background: #640000;
    border: 1px solid #500000;
    border-bottom: none;
    /* Ensure no gap between header and body */
    margin-bottom: -1px; 
}

/* If using Grid Layout, ensure no gaps */
.tt-grid-layout .testimonial-toggle-item {
    background: #333333 !important;
    border: 1px solid #500000;
    border-radius: 8px; /* Round all corners for grid */
    overflow: hidden;
}

.tt-grid-layout .testimonial-toggle-header {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.tt-grid-layout .testimonial-toggle-body {
    border-radius: 0 0 8px 8px;
    border-top: none;
}

/* ==========================================
   NO RESULTS MESSAGE (Dark Theme)
   ========================================== */

.testimonial-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #aaaaaa;
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 16px;
    font-style: italic;
    
    /* NEW: Match the content box background */
    background: #333333; 
    
    border: 1px solid #500000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.testimonial-no-results::before {
    content: """;
    font-family: Georgia, serif;
    font-size: 40px;
    color: #640000;
    opacity: 0.2;
    display: block;
    margin-bottom: 10px;
}
/* Target the bottom border of the list items to match page background */
.testimonial-toggle-item {
    border-bottom: 1px solid #161616 !important; /* Match page background */
}

/* If you are using Grid layout, ensure gaps don't show white */
.tt-grid-layout .testimonial-toggle-item {
    border-bottom: none; /* Grid items usually don't need bottom borders */
    border-right: 1px solid #161616; /* Optional: Side borders for grid */
}

/* ==========================================
   FILTER BUTTONS (Select All + Group Rows)
   ========================================== */

.testimonial-filter-container {
    display: block;
    margin-bottom: 40px;
}

.filter-row--all {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

.filter-row--groups {
    display: block;
    text-align: center;
}

.filter-row--groups .filter-checkbox-wrapper {
    display: inline-block;
    margin: 0 6px 8px 6px;
}

.filter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.filter-toggle-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: #2a2a2a;
    color: #aaaaaa;
    border: 2px dashed #555555;
}

.filter-toggle-all-btn:hover {
    background-color: #333333;
    color: #fffffd;
    border-color: #640000;
    transform: translateY(-2px);
}

.filter-toggle-all-btn.active {
    background-color: #640000;
    color: #ffffff;
    border: 2px solid #640000;
    box-shadow: 0 4px 12px rgba(100, 0, 0, 0.4);
    transform: translateY(-2px);
}

.filter-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: #333333;
    color: #fffffd;
    border: 1px solid #500000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.filter-label:hover {
    background-color: #444444;
    border-color: #640000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.filter-checkbox:checked + .filter-label {
    background-color: #640000;
    color: #ffffff;
    border-color: #640000;
    box-shadow: 0 4px 12px rgba(100, 0, 0, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .filter-row--groups .filter-checkbox-wrapper {
        display: block;
        margin: 0 0 8px 0;
    }

    .filter-toggle-all-btn,
    .filter-label {
        width: 100%;
        justify-content: center;
    }
}