html {
    scroll-behavior: smooth;
  }
/* Scoped CSS for Plato_TasPlates module */
.tasplates-module {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-top: 16px;
}

/* HERO SECTION */
.tasplates-module.mp-hero {
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../media/hero-desktop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    
    /* LEFT ALIGN */
    text-align: left;           /* aligns text to left */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;    /* left-aligns content horizontally */
    color: #fff;
    margin: 16px auto;             /* center container in page */
}

.tasplates-module.mp-hero .mp-hero__title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: left;          
}

.tasplates-module.mp-hero .mp-hero__sub {
    font-size: 1.2rem;
    max-width: 700px;
    text-align: left;
}

.tasplates-module.mp-hero .mp-hero__cta {
    background-color: #223E0E;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 16px;
}

.tasplates-module.mp-hero .mp-hero__cta:hover {
    background-color: #1b2d0c;
}

/* RESPONSIVE HERO IMAGE */
@media screen and (max-width: 767px) {
    .tasplates-module.mp-hero {
        background-image: url('../media/hero-mobile.jpg');
        padding: 60px 15px;
    }

    .tasplates-module.mp-hero .mp-hero__title {
        font-size: 1.8rem;
    }

    .tasplates-module.mp-hero .mp-hero__sub {
        font-size: 1rem;
        padding: 0 10px;
    }
}

/* Partner line directly under promo banner */
.tasplates-module.mp-partnerline {
    background-color: #f5f5f5;        /* light background */
    color: #223E0E;                   /* dark text for contrast */
    font-size: 20px;
    text-align: center;
    padding: 15px 20px;               /* spacing above/below */
    margin-top: 20px;                  /* separation from promo banner */
    margin-bottom: 40px;               /* separation from next section */
}

.tasplates-module.mp-partnerline .container {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;                  /* wrap on small screens */
    justify-content: center;
}

.tasplates-module.mp-partnerline span {
    font-weight: 400;
}

.tasplates-module.mp-partnerline strong {
    font-weight: 700;
}

/* How It Works Section */
.tasplates-module.mp-how {
    background-color: #0b1220; /* bg-ink */
    color: #fff;
    border-radius: 1rem;       /* rounded-xl */
    padding: 3rem 1rem;
    margin-top: 1.5rem;
}

.tasplates-module.mp-how .container {
    margin: 0 auto;
    padding-left: 8px;
    padding-right: 8px;
}

/* Section background gradient only */
.bg-gradient-brand {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        linear-gradient(90deg, #223E0E, #66BC29);
}

/* Optional translucent step cards */
.bg-white\/10 {
    background: rgba(255, 255, 255, 0.1); /* keeps text readable */
}

/* White text for numbers and description */
.text-white {
    color: #ffffff;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

/* Grid */
.tasplates-module.mp-how > .container > .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tasplates-module.mp-how > .container > .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Step cards */
.tasplates-module.mp-how .rounded-xl {
    background: rgba(255, 255, 255, 0.05); /* translucent card */
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Number */
.tasplates-module.mp-how .text-aqua {
    color: #00ffff;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .tasplates-module.mp-how .text-aqua {
        font-size: 3.5rem;
    }
}

/* Title */
.tasplates-module.mp-how h3 {
    margin-top: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .tasplates-module.mp-how h3 {
        font-size: 1.5rem;
    }
}

/* Description */
.tasplates-module.mp-how p {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.5;
}

/* =======================
   TAS Listings Grid
   ======================= */

.tasplates-module.mp-listings {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.tasplates-module.mp-listings .container {
    margin: 0 auto;
    padding: 0;
}

/* Section Intro */
.tasplates-module .tas-grid-intro {
    text-align: center;
    margin-bottom: 40px;
}

.tasplates-module .tas-grid-intro h3 {
    color: #223E0E;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tasplates-module .tas-grid-intro p {
    color: #223E0E;
    font-size: 18px;
    opacity: 0.85;
}

/* Grid Layout */
.tasplates-module .tas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Plate Cards */
.tasplates-module .plate-card {
    background: 
        /* black overlay at 25% opacity */
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
        /* lighter green gradient */
        linear-gradient(90deg, #3a5e19, #8fd35f);
    color: #fff; /* high contrast text */
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hover effect */
.tasplates-module .plate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Plate Image */
.tasplates-module .plate-card .plate-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #223E0E; /* dark background for images */
}

.tasplates-module .plate-card .plate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tasplates-module .plate-card:hover .plate-img img {
    transform: scale(1.05);
}

/* Plate Number */
.tasplates-module .plate-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Plate Price */
.tasplates-module .plate-price {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
    color: #fff;
}

/* Title & Category */
.tasplates-module .plate-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: left;
}

.tasplates-module .plate-category {
    font-size: 1.1rem;
    color: #fff; /* visible on green */
    margin-bottom: 10px;
    text-align: left;
}

/* CTA Button */
.tasplates-module .cta-button,
.tasplates-module .btn-primary {
    background-color: #223E0E; /* solid dark green */
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: background-color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.tasplates-module .cta-button:hover,
.tasplates-module .btn-primary:hover {
    background-color: #1a2f0a;
    transform: translateY(-2px);
}

/* Sold / On Hold Badges */
.tasplates-module .under-offer-badge,
.tasplates-module .sold-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    z-index: 10;
}

.tasplates-module .under-offer-badge {
    background-color: #223E0E;
}

.tasplates-module .sold-ribbon {
    background-color: #222;
}

/* Tooltip for Under Offer */
.tasplates-module .under-offer-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -28px;
    left: 0;
    background: #223E0E;
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 20;
}

/* Responsive Grid */
@media screen and (max-width: 768px) {
    .tasplates-module .tas-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .tasplates-module .plate-card .plate-img {
        height: 140px;
    }
}

/* Force equal-height grid items */
.tasplates-module .plate-item {
    height: 100%;
}

/* Make the actual card fill the grid cell */
.tasplates-module .plate-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* FAQs */
.tasplates-module.mp-faqs h2 {
    color: #223E0E;
    font-size: 36px;
}

.tasplates-module.mp-faqs details.faq {
    border: 2px solid #223E0E; /* brand color border */
    border-radius: 0.75rem;
    background-color: #ffffff; /* keep white for high contrast */
    padding: 1.25rem; /* slightly larger padding */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    font-size: 1.125rem; /* 18px base for readability */
    line-height: 1.75;  /* more line spacing for older demographics */
}

.tasplates-module.mp-faqs details.faq:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Summary / question styling */
.tasplates-module.mp-faqs details.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem; /* 20px for readability */
    color: #223E0E;
    cursor: pointer;
    list-style: none;
}

/* Remove default marker */
.tasplates-module.mp-faqs details.faq summary::-webkit-details-marker {
    display: none;
}

/* Toggle icon rotation */
.tasplates-module.mp-faqs details.faq svg {
    width: 1.5rem; /* larger for visibility */
    height: 1.5rem;
    transition: transform 0.3s ease;
}

.tasplates-module.mp-faqs details.faq[open] svg {
    transform: rotate(45deg); /* "+" becomes "×" */
}

/* Answer styling */
.tasplates-module.mp-faqs .faq__answer {
    margin-top: 0.75rem;
    color: #1F2937; /* darker gray for readability */
    font-size: 1.125rem; /* 18px readable font */
    line-height: 1.75;
}

/* Emphasis inside answer */
.tasplates-module.mp-faqs .faq__answer strong {
    color: #223E0E; /* brand color */
}

/* Tap-to-call links styling */
.tasplates-module.mp-faqs .faq__answer a[href^="tel:"] {
    color: #223E0E;
    font-weight: 700;
    text-decoration: underline;
}

/* T&Cs line */
.tasplates-module.mp-faqs .faq__terms {
    margin-top: 2rem;
    font-size: 1rem; /* larger for readability */
    color: #374151; /* slightly darker gray */
}

#tc-modal {
    display: none; /* Hidden by default */
}

#tc-modal.flex {
    display: flex;
}

#tc-modal .rounded-lg {
    max-height: 90vh;
    overflow-y: auto;
}

#tc-modal .text-[#223E0E] {
    color: #223E0E; /* high contrast brand color */
}

#tc-modal a {
    font-weight: 700;
    text-decoration: underline;
}

#tc-modal button {
    font-size: 2rem; /* larger close button */
    padding: 0.25rem 0.5rem;
}

.tasplates-module.mp-faqs .faq__terms a {
    color: #223E0E;
    text-decoration: underline;
    font-weight: 600;
}

.tasplates-module.mp-tcs {
    font-size: 0.875rem; /* small text */
    color: #4b5563; /* gray-700 */
    background-color: #f9fafb; /* gray-50 */
    border-top: 1px solid #e5e7eb; /* gray-200 */
    padding: 1rem 0;
    text-align: center;
}

.tasplates-module.mp-tcs a {
    color: #223E0E; /* module dark green */
    text-decoration: underline;
    font-weight: 600;
}

.tasplates-module.mp-tcs a:hover {
    color: #66BC29; /* optional hover highlight */
}

.tasplates-module.mp-cross-sell .plate-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease;
}

.tasplates-module.mp-cross-sell .plate-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tasplates-module.mp-cross-sell .plate-card img {
    border-radius: 0.5rem;
}

.tasplates-module.mp-cross-sell .btn {
    background-color: #66BC29; /* TAS green */
    color: #fff;
    font-weight: 600;
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    display: inline-block;
    text-decoration: none;
}

.tasplates-module.mp-cross-sell .btn:hover {
    background-color: #223E0E; /* Dark green hover */
}

.tasplates-module.mp-best-plates .plate-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
}

.tasplates-module.mp-best-plates .plate-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tasplates-module.mp-best-plates .plate-card img {
    border-radius: 0.5rem;
    object-fit: cover;
}

.tasplates-module.mp-best-plates .btn {
    background-color: #66BC29;
    color: #fff;
    font-weight: 600;
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    display: inline-block;
    text-decoration: none;
}

.tasplates-module.mp-best-plates .btn:hover {
    background-color: #223E0E;
}

/* Horizontal scroll for carousel */
.tasplates-module.mp-best-plates .flex {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #66BC29 #e5e7eb;
}

.tasplates-module.mp-best-plates .flex::-webkit-scrollbar {
    height: 6px;
}

.tasplates-module.mp-best-plates .flex::-webkit-scrollbar-thumb {
    background-color: #66BC29;
    border-radius: 3px;
}

/* Active filter button */
.tas-filter-btn.active {
    background-color: #223E0E; /* brand dark green */
    color: #fff; /* white text for high contrast */
    border-color: #223E0E;
    font-weight: 600; /* easier to read */
    font-size: 1.125rem; /* 18px for readability */
}

/* Filter buttons */
.tas-filter-btn {
    padding: 0.75rem 1.25rem; /* larger for easier click */
    border: 2px solid #223E0E; /* brand color border */
    border-radius: 0.5rem;
    background-color: #f3f3f3;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    color: #223E0E;
    font-size: 1rem;
}

/* Hover state */
.tas-filter-btn:hover {
    background-color: #223E0E; /* vibrant green on hover */
    color: #fff;
}

/* Clear button */
.tas-filter-btn.clear {
    background-color: #223E0E; /* vibrant green */
    color: #fff;
    border-color: #223E0E;
    font-weight: 600;
    font-size: 1rem;
}

.tas-filter-btn.clear:hover {
    background-color: #4CAF50; /* slightly darker green */
}

/* Plate item transitions */
.plate-item {
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

/* Hidden state for filtering */
.plate-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Filter bar */
.tas-filter-bar {
    margin: 0 auto 24px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* spacing between buttons */
    justify-content: center;
}
.tas-filter-bar {
    margin: 0 auto;
    margin-bottom: 24px;
    text-align: center;
}

/* Featured Picks Tiles */
.tasplates-module.mp-featured-picks h2 {
    font-size: 36px;
    color: #223E0E;
    margin: 0;
}

.tasplates-module.mp-featured-picks .featured-tile {
    border-radius: 12px;
    overflow: hidden;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.tasplates-module.mp-featured-picks .featured-tile.reverse {
    flex-direction: column-reverse;
}

@media (min-width: 768px) {
    .tasplates-module.mp-featured-picks .featured-tile {
        flex-direction: row;
    }

    .tasplates-module.mp-featured-picks .featured-tile.reverse {
        flex-direction: row-reverse;
    }
}

.tasplates-module.mp-featured-picks .tile-copy h3 {
    color: #223E0E;
}

.tasplates-module.mp-featured-picks .tile-copy p {
    color: #4b5563; /* dark gray */
}

.tasplates-module.mp-featured-picks .btn-primary {
    background-color: #223E0E;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
}

.tasplates-module.mp-featured-picks .btn-primary:hover {
    background-color: #1a2f0a;
    transform: translateY(-2px);
}

.tasplates-module.mp-featured-picks .tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tasplates-module.mp-featured-picks .tile-copy-inner {
    background-color: #fff; /* white background for readability */
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.08); /* subtle border */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tasplates-module.mp-featured-picks .tile-copy-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.5);
    }
    50% {
        box-shadow: 0 0 10px 4px rgba(255, 99, 71, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 1.5s infinite ease-in-out;
}
