/* Google Fonts Import - Optimized for performance */
/* Google Fonts moved to HTML for performance */

/* CSS Reset to prevent browser inconsistencies */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Global Styles */
:root {
    --primary-color: #00A99D; /* Teal */
    --primary-color-dark: #008C82; /* Darker Teal for hover states */
    --primary-color-light: #E6F7F5; /* Lighter Teal for backgrounds/borders */
    --accent-color: #FFD700; /* Bright Yellow as per brand guidelines */
    --accent-color-dark: #E6C200; /* Darker Yellow for hover states */
    --accent-color-light: #FFF9E0; /* Lighter Yellow for backgrounds */
    --text-color: #333333; /* Slightly softer than black for better readability */
    --text-color-light: #666666; /* For secondary text */
    --background-color: #FFFFFF; /* White */
    --background-light-grey: #F8F9FA; /* Light grey for alternate backgrounds */
    --border-color: #E5E5E5; /* Slightly lighter border color */
    --success-color: #4CAF50; /* Green for success messages */
    --error-color: #F44336; /* Red for error messages */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1); /* Medium shadow */
    --border-radius: 8px; /* Consistent border radius */
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent layout shift during font loading */
    font-display: swap;
    /* Improve rendering stability */
    text-rendering: optimizeLegibility;
}

/* Prevent layout shift for images */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Prevent flickering and layout shifts */
* {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    transform: translateZ(0);
}

/* Disable all animations on page load */
.preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
    animation: none !important;
}

/* Disable animations during scroll to prevent flickering */
body.scrolling * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
    animation: none !important;
}

/* Optimized rendering for smooth animations */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* Heading Hierarchy */
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h5 {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

/* Header */
.site-header {
    background-color: var(--background-color);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.site-header .logo a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Site Logo Image Styling */
.site-logo {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.site-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Large desktop - even bigger logo */
@media (min-width: 1200px) {
    .site-logo {
        height: 70px;
        max-width: 320px;
    }
}

/* Tablet sizing */
@media (max-width: 1024px) and (min-width: 769px) {
    .site-logo {
        height: 50px;
        max-width: 240px;
    }
}

/* Mobile sizing */
@media (max-width: 768px) {
    .site-logo {
        height: 40px;
        max-width: 180px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .site-logo {
        height: 32px;
        max-width: 150px;
    }
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #c7cece 0%, #16655f 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,215,0,0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.4;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.search-bar input[type="search"] {
    padding: 18px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px 0 0 50px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-color);
}

.search-bar input[type="search"]::placeholder {
    color: #999;
}

.search-bar input[type="search"]:focus {
    box-shadow: none;
}

.search-bar button {
    padding: 18px 30px;
    font-size: 1.1rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.search-bar button:hover {
    background-color: var(--accent-color-dark);
    transform: scale(1.05);
}

/* Main Content Area */
.main-content {
    padding: 40px 0;
}

.main-content section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.4rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-by-type {
    display: flex;
    gap: 10px;
}

.filter-button {
    background-color: var(--background-light-grey);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-button:hover:not(.active) {
    background-color: var(--primary-color-light);
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-by label {
    font-weight: 500;
}

.sort-by select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    cursor: pointer;
}

/* Offer Grid / List */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.offer-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: none; /* Remove transition to prevent flickering */
    min-height: 250px;
    position: relative;
    /* Remove will-change to prevent GPU layer issues */
}

.offer-card:hover {
    /* Remove all animations to prevent flickering */
    /* transform: translateY(-2px); */
    /* box-shadow: var(--shadow-md); */
    /* transition: transform 0.2s ease, box-shadow 0.2s ease; */
}

/* Offer Card Store Header */
.offer-store-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.offer-store-header .store-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: white;
    padding: 4px;
    flex-shrink: 0;
}

.offer-store-header .store-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
}

/* Legacy store logo styles for other cards */
.offer-card .store-logo {
    width: 100px; /* Adjust as needed */
    height: 50px; /* Adjust as needed */
    object-fit: contain;
    margin-bottom: 15px;
    align-self: center;
}

.offer-card h3 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
}

.offer-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.offer-card .offer-description {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.offer-card .promo-code {
    background-color: #e9f7f6; /* Light teal */
    border: 1px dashed var(--primary-color);
    padding: 8px;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.offer-card .cta-button-main {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.offer-card .cta-button-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.offer-card .cta-button-main:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.offer-card .cta-button-main:hover::before {
    left: 100%;
}

.offer-card .cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 10px 15px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.offer-card .cta-button:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.offer-meta {

    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.offer-meta .expiry-date,
.offer-meta .verification,
.offer-meta .used-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.offer-meta i {
    color: var(--primary-color);
}

.verification i {
    color: var(--success-color);
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.code-reveal {
    position: relative;
    width: 100%;
}

.code-hidden {
    display: none;
    background-color: var(--primary-color-light);
    border: 2px dashed var(--primary-color);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    position: relative;
}

.code-hidden.revealed {
    display: block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { border-color: var(--primary-color); }
    50% { border-color: var(--accent-color); }
    100% { border-color: var(--primary-color); }
}

/* Featured Offer Card Style */
.offer-card--featured {
    background-color: var(--primary-color-light); /* Lighter Teal */
    border: 1px solid var(--primary-color); /* Teal border */
    border-radius: 8px; /* Match or slightly increase from .offer-card if it has one */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    position: relative; /* For potential badge positioning */
    padding: 20px; /* Adjust padding if necessary */
    /* margin-bottom: 20px; Ensure spacing if it's in a grid/flex container - already handled by offer-grid gap */
}

/* Optional: A simple "Featured" badge using pseudo-elements */
/* Featured badge removed as requested */

/* Categories Section */
.categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.category-button {
    background: linear-gradient(135deg, white 0%, var(--background-light-grey) 100%);
    color: var(--text-color);
    padding: 20px 25px;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,169,157,0.1), transparent);
    transition: left 0.5s ease;
}

.category-button:hover::before {
    left: 100%;
}

.category-button i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.category-button:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    /* Remove transform to prevent flickering */
    /* transform: translateY(-5px); */
    /* box-shadow: 0 8px 25px rgba(0,169,157,0.3); */
    text-decoration: none;
}

.category-button:hover i {
    color: white;
}

.category-featured {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.category-featured h3 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.category-featured #featured-category-name {
    color: var(--primary-color);
}

.category-featured p {
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.category-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-tag {
    background-color: var(--accent-color-light);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background-color: var(--primary-color-dark);
    text-decoration: none;
    transform: translateX(5px);
}

.category-button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.category-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

/* FAQ Section */
#faq {
    padding: 40px 0;
    background-color: var(--background-light-grey);
}

.faq-list {
    max-width: 800px; /* Limit width for readability */
    margin: 0 auto;
}

.faq-item {
    background-color: var(--background-color); /* White background for each item */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    padding: 15px 20px;
    background-color: var(--background-light-grey);
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question i {
    margin-right: 10px;
    color: var(--primary-color);
}

.faq-question:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.faq-question.active {
    background-color: var(--primary-color-light);
}

.faq-question.active:after {
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color-light);
    padding: 15px 20px;
    border-top: 1px solid var(--border-color-light);
}

.faq-answer p {
    margin-bottom: 10px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Trending Stores Section */
#trending-stores {
    padding: 40px 0;
}

.trending-stores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 25px;
    row-gap: 80px;
    margin-bottom: 30px;
}

.trending-stores-grid .category-featured {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trending-stores-grid .category-featured .view-all-button {
    margin-top: auto;
    align-self: center;
}

.trending-stores-grid .featured-category-name {
    color: var(--primary-color);
}

/* Media queries for responsive trending stores grid */
@media (max-width: 992px) {
    .trending-stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trending-stores-grid {
        grid-template-columns: 1fr;
    }
}

/* Recently Added Stores Section */
#recent-stores {
    padding: 20px 0 40px; /* Adjusted padding */
}

.store-logo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)); /* Fixed 5 columns with minmax for proper sizing */
    gap: 20px; /* Consistent gap between items */
    justify-items: stretch; /* Make items fill their grid cells */
    align-items: start; /* Align items to top */
    margin: 30px 0;
    width: 100%; /* Ensure grid takes full container width */
}

@media (max-width: 992px) {
    .store-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns on medium screens */
        gap: 15px; /* Smaller gap on medium screens */
    }
}

@media (max-width: 576px) {
    .store-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns on small screens */
        gap: 10px; /* Even smaller gap on small screens */
    }
    
    .store-logo-item {
        padding: 15px; /* Less padding on mobile */
        min-height: 220px; /* Adjusted height for mobile */
        max-height: 220px;
    }
}

/* Store card link styling */
a.store-logo-item {
    text-decoration: none !important;
    color: inherit;
    display: block;
    position: relative;
    z-index: 10;
}

.store-logo-item {
    text-align: center;
    border: 2px solid #e8ecef;
    padding: 20px;
    border-radius: 12px;
    background-color: var(--background-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
    align-items: center;
    min-height: 260px; /* Increased height to show button properly */
    max-height: 260px; /* Fixed maximum height to prevent variations */
    width: 100%; /* Take full width of grid cell */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

/* Add a subtle gradient overlay on hover */
.store-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,169,157,0.05) 0%, rgba(0,169,157,0) 100%);
    opacity: 0;
    z-index: 1;
    pointer-events: none; /* Don't block clicks */
    transition: opacity 0.3s ease;
}

.store-logo-item:hover {
    /* Enhanced hover effect */
    box-shadow: 0 12px 24px rgba(0, 169, 157, 0.2);
    transform: translateY(-4px);
    border-color: rgba(0, 169, 157, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
}

.store-logo-item:hover::before {
    opacity: 1;
}

/* Add a border glow effect on hover */
.store-logo-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), #00d4c1);
    border-radius: var(--border-radius);
    opacity: 0;
    z-index: -1;
    pointer-events: none; /* Don't block clicks */
    transition: opacity 0.3s ease;
}

.store-logo-item:hover::after {
    opacity: 0.3;
}

.store-logo-wrapper {
    width: 100%;
    height: 60px; /* Fixed height for logo area */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through to parent link */
}

.store-logo-item img {
    max-width: 100px; /* Maximum width for logos */
    max-height: 50px; /* Maximum height for logos */
    width: auto;
    height: auto;
    object-fit: contain; /* Ensure logo aspect ratio is maintained */
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.store-logo-item:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.store-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    position: relative;
    z-index: 2;
    pointer-events: none; /* Allow clicks to pass through to parent link */
}

.store-logo-item .store-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1d20;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 1;
    padding-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    text-align: center;
    /* Limit to 2 lines max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6rem; /* Reserve space for 2 lines */
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

.store-logo-item:hover .store-name {
    color: var(--primary-color);
}

/* Focus state for accessibility */
.store-logo-item:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Active state for feedback */
.store-logo-item:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Store card styling for category pages - similar to store-logo-item */
a.store-card {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.store-card {
    text-align: center;
    border: 2px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 220px;
    max-height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.store-card:hover {
    box-shadow: 0 8px 16px rgba(0, 169, 157, 0.15);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #e6f7f5 100%);
}

.store-card .store-logo-wrapper {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.store-card img {
    max-width: 100px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.store-card:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.store-card .store-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px 0;
    transition: color 0.3s ease;
}

.store-card:hover .store-name {
    color: var(--primary-color);
}

.store-card .store-category {
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin: 0 0 10px 0;
    opacity: 0.8;
}

.store-card .store-actions {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    width: 100%;
}

.store-card .cta-button-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 5px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
    pointer-events: none;
}

.store-card:hover .cta-button-small {
    background-color: #00877A;
    transform: scale(1.05);
}

.store-card:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.store-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-sm);
}

.store-category {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0 0 12px 0;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.store-logo-item .store-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.store-logo-item:hover .store-name::after {
    width: 30px;
}

/* Remove old view-deals hover effect as entire card is clickable now */
/* Legacy .view-deals styling removed - entire card is now clickable */

/* Store Featured Deal in Recently Added Stores */
.store-featured-deal {
    margin-top: auto; /* Push to bottom */
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.04); /* Even softer separator line */
    width: 100%; /* Ensure it takes full width of the item */
    position: relative;
    z-index: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.store-logo-item:hover .store-featured-deal {
    border-top-color: rgba(0,169,157,0.2);
}

.deal-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 8px 0;
    line-height: 1.4;
    /* Ensure text wraps and doesn't overflow */
    white-space: normal; 
    word-wrap: break-word;
    font-weight: 400;
    transition: color 0.3s ease;
    overflow-wrap: break-word; /* Modern property for word breaking */
    transition: color 0.3s ease;
}

.store-logo-item:hover .deal-description {
    color: var(--primary-color);
}

/* Make span look like button when inside store card */
.store-logo-item .cta-button-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 8px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: none; /* Prevent separate click - parent link handles it */
    box-shadow: 0 2px 4px rgba(0, 169, 157, 0.2);
    letter-spacing: 0.3px;
}

.store-logo-item:hover .cta-button-small {
    background-color: #00877A;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 169, 157, 0.3);
}

/* Keep original button styles for other uses */
a.cta-button-small {
    padding: 6px 12px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 5px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.cta-button-small:hover {
    background-color: #00877A;
}

/* Breadcrumbs */
.breadcrumb {
    list-style: none;
    padding: 10px 0;
    margin-bottom: 20px;
    display: flex;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    padding: 0 8px;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Single Store Page Specific Styles */
/* Style for the main store-hero container */
.store-hero {
    background: linear-gradient(135deg, var(--primary-color-light) 0%, #ffffff 100%);
    padding: 30px; /* Increased padding for more spacious feel */
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="50" height="50" fill="%2300A99D10"/></svg>');
    opacity: 0.2;
    z-index: 1;
}

.store-hero-main-content {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 20px;
    /* No padding here, parent .store-hero handles it */
}

.store-hero-logo img {
    max-width: 100px; /* Adjusted logo size */
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.store-hero-info {
    flex-grow: 1;
}

.store-hero-info h1 {
    font-size: 2.4rem; /* Largest heading */
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
}

.store-hero-info .store-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.store-category-tags {
    margin-top: 10px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 169, 157, 0.2);
    box-shadow: var(--shadow-xs);
    position: relative;
    cursor: pointer;
}

.category-tag-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.category-tag-link::before {
    content: '#';
    margin-right: 4px;
    opacity: 0.7;
}

.category-tag-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 1px;
    background-color: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-tag-link:hover::after {
    opacity: 0.7;
}

.store-trust-signals {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px; /* Reduced gap */
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 20px;
}

.trust-signal-item {
    background-color: #e6f7f4; /* Light teal */
    padding: 6px 12px; /* Adjusted padding */
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex; /* To align icon and text if an icon is added */
    align-items: center;
}

/* Styles for the new Store Stats Widget in Sidebar */
.store-stats-widget {
    background-color: var(--background-color); /* White background for the widget */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px; /* Space below this widget */
}

.store-stats-widget .sidebar-title {
    font-size: 1.4rem; /* Slightly larger title for this widget */
    color: var(--text-color);
    margin-bottom: 5px;
}

.stats-last-updated {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

.stat-card {
    display: flex;
    align-items: center;
    background-color: var(--background-light-grey); /* Light grey for individual cards */
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-card:last-child {
    margin-bottom: 0;
}

.stat-icon {
    font-size: 1.8rem; /* Adjust icon size as needed */
    margin-right: 15px;
    color: var(--primary-color); /* Teal icon color */
}

.stat-details {
    flex-grow: 1;
}

.stat-value {
    font-size: 1.6rem; /* Prominent value */
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: #555;
}

/* Styles for the main offer listing on the store page */
#store-active-offers {
    margin-top: 30px;
}

.how-to-use {
    /* background-color: var(--secondary-color); */ /* Yellow background removed */
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.how-to-use h2 {
    /* Uses .section-title styling by default if class is applied in HTML */
    margin-top: 0; /* Remove top margin if .section-title is directly on h2 */
}

.how-to-use ol {
    padding-left: 20px;
    margin-bottom: 0;
}

.how-to-use li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.about-store {
    padding: 20px 0;
}

.about-store p {
    margin-bottom: 15px;
}


/* Detailed Offer Card Styles (New) */
.detailed-offer-card {
    display: grid; /* Using grid for more complex layout */
    grid-template-columns: 120px 1fr auto; /* Left, Middle (flexible), Right */
    grid-template-rows: auto auto; /* Content row, Footer row */
    grid-template-areas:
        "type content action"
        "type footer footer"; /* Type spans two rows on the left */
    gap: 15px 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--background-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.07);
    text-align: left; /* Override any centered text from simpler cards */
}

.detailed-offer-card .offer-card-type {
    grid-area: type;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid var(--border-color);
}

.detailed-offer-card .offer-strength {
    font-size: 1.8rem; /* e.g., 25% */
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.1;
}

.detailed-offer-card .offer-tag {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 5px;
    text-transform: uppercase;
}

.detailed-offer-card .offer-tag-code {
    background-color: #fff0cc; /* Light orange/yellow */
    color: #d68900;
}

.detailed-offer-card .offer-tag-deal {
    background-color: #e0efff; /* Light blue */
    color: #0069d9;
}

.detailed-offer-card .offer-tag-reward {
    background-color: #d4edda; /* Light green */
    color: #155724;
}

.detailed-offer-card .offer-tag-top {
    background-color: var(--accent-color); /* Bright Yellow */
    color: var(--text-color);
    margin-top: 10px;
}

.detailed-offer-card .offer-card-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detailed-offer-card .offer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 8px;
}

.detailed-offer-card .offer-exclusive-tag {
    background-color: #f5c6cb; /* Light red/pink for exclusive */
    color: #721c24;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    margin-right: 8px;
    text-transform: uppercase;
}

.detailed-offer-card .offer-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.detailed-offer-card .offer-additional-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.detailed-offer-card .works-with-sale {
    color: #555;
    display: flex;
    align-items: center;
}
.detailed-offer-card .works-with-sale img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.detailed-offer-card .verified-badge-new {
    background-color: #e6f7f4; /* Light teal */
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.detailed-offer-card .offer-card-action {
    grid-area: action;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Call-to-Action Button Style */
.cta-button-main {
    background-color: var(--primary-color); /* Teal */
    color: #ffffff; /* White text */
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
    width: 100%;
}

.cta-button-main:hover {
    background-color: #00877A; /* Darker Teal */
}

/* Secondary Call-to-Action Button Style (e.g., Get Deal) */
.cta-button-deal:hover {
    background-color: #E6A700; /* Darker Amber */
}

/* Removing/Commenting out .cta-button-yellow as it's replaced by .cta-button-main for primary CTAs */
/*
.cta-button-yellow {
    background-color: var(--accent-color); 
    color: var(--text-color); 
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.cta-button-yellow:hover {
    background-color: #edd000; 
}
*/

.detailed-offer-card .offer-card-footer {
    grid-column: 1 / -1; /* Span all columns of the main card grid */
    display: grid;
    grid-template-columns: 1fr auto auto; /* Stats | Terms | Added By */
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #555;
    gap: 15px; /* Gap between footer columns */
}

.detailed-offer-card .offer-stats {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Space between stat items */
}

.detailed-offer-card .stat-item {
    font-size: 0.75rem;
    color: #333;
}

.detailed-offer-card .terms-dropdown {
    justify-self: center; /* Center in its grid cell */
    cursor: pointer;
}

.detailed-offer-card .added-by {
    justify-self: end; /* Align to the end of its grid cell */
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 120px;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, white, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
}

.detailed-offer-card .off {
    font-size: 0.8rem;
    color: #555;
    gap: 15px; /* Gap between footer columns */
}

.detailed-offer-card .offer-card-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detailed-offer-card .offer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 8px;
}

.detailed-offer-card .offer-exclusive-tag {
    background-color: #f5c6cb; /* Light red/pink for exclusive */
    color: #721c24;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    margin-right: 8px;
    text-transform: uppercase;
}

.detailed-offer-card .offer-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.detailed-offer-card .offer-additional-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.detailed-offer-card .works-with-sale {
    color: #555;
    display: flex;
    align-items: center;
}
.detailed-offer-card .works-with-sale img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.detailed-offer-card .verified-badge-new {
    background-color: #e6f7f4; /* Light teal */
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.detailed-offer-card .offer-card-action {
    grid-area: action;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Call-to-Action Button Style */
.cta-button-main {
    background-color: var(--primary-color); /* Teal */
    color: #ffffff; /* White text */
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
    width: 100%;
}

.cta-button-main:hover {
    background-color: #00877A; /* Darker Teal */
}

/* Secondary Call-to-Action Button Style (e.g., Get Deal) */
.cta-button-deal {
    background-color: var(--accent-color); /* Bright Yellow */
    color: var(--text-color); /* Black text */
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
    width: 100%;
}

.cta-button-deal:hover {
    background-color: #E6A700; /* Darker Amber */
}

/* Removing/Commenting out .cta-button-yellow as it's replaced by .cta-button-main for primary CTAs */
/*
.cta-button-yellow {
    background-color: var(--accent-color); 
    color: var(--text-color); 
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.cta-button-yellow:hover {
    background-color: #edd000; 
}
*/

.detailed-offer-card .offer-card-footer {
    grid-column: 1 / -1; /* Span all columns of the main card grid */
    display: grid;
    grid-template-columns: 1fr auto auto; /* Stats | Terms | Added By */
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #555;
    gap: 15px; /* Gap between footer columns */
}

.detailed-offer-card .offer-stats {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Space between stat items */
}

.detailed-offer-card .stat-item {
    font-size: 0.75rem;
    color: #333;
}

.detailed-offer-card .terms-dropdown {
    justify-self: center; /* Center in its grid cell */
    cursor: pointer;
}

.detailed-offer-card .added-by {
    justify-self: end; /* Align to the end of its grid cell */
}

/* This section is now handled by the main FAQ styles at the top of the file */

/* Moved to main FAQ section */

/* Page Layout with Sidebar */
.page-layout-container {
    display: flex;
    gap: 30px; /* Space between main column and sidebar */
}

.main-column {
    flex: 3; /* Takes up 3 parts of the space */
    min-width: 0; /* Prevents flex items from overflowing */
}

.sidebar {
    flex: 1; /* Takes up 1 part of the space */
    min-width: 0; /* Prevents flex items from overflowing */
    /* Consider a max-width for the sidebar if needed, e.g., max-width: 300px; */
}

.sidebar-widget {
    background-color: var(--background-color); /* Changed from --secondary-color (yellow) to white */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.3rem;
    color: var(--text-color); /* Black as per recent changes */
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget ul li:last-child {
    margin-bottom: 0;
}

.sidebar-widget ul li a {
    color: var(--primary-color); /* Teal for links */
    text-decoration: none;
    font-size: 0.95rem;
}

.sidebar-widget ul li a:hover {
    text-decoration: underline;
}

/* Newsletter Form in Sidebar */
.newsletter-form p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.newsletter-form .cta-button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}

/* Moved to main FAQ section at the top of the file */


/* Responsive adjustments for sidebar */
@media (max-width: 992px) { /* Adjust breakpoint as needed */
    .page-layout-container {
        flex-direction: column;
    }

    .main-column,
    .sidebar {
        flex: none; /* Reset flex sizing */
        width: 100%;
    }

    .sidebar {
        margin-top: 30px;
    }
}

/* Footer */
.site-footer {
    background-color: var(--primary-color-dark);
    color: rgba(255,255,255,0.9);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

.footer-newsletter {
    display: flex;
    margin-top: 15px;
}

.footer-newsletter input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.footer-newsletter button {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 0 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: var(--accent-color-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 5px 0;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav li {
    margin: 0 10px;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.site-footer p {
    margin: 5px 0;
}
/* Secondary border-style deal button */
.cta-button-deal-secondary {
    background-color: transparent;
    color: var(--text-color);
    padding: 9px 19px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: 2px solid var(--accent-color); /* Yellow border (#FFD700) */
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 120px;
    width: 80%;
}

.cta-button-deal-secondary:hover {
    background-color: rgba(255, 215, 0, 0.1); /* Very light yellow background */
    border-color: var(--accent-color-dark); /* Darker yellow border on hover */
}

/* Import Stores Archive Styles */
@import url('stores-archive.css');

/* Offer Card Button Styles */
.offer-card .cta-button-main,
.offer-card .cta-button-deal,
.offer-card .cta-button-deal-secondary {
    display: block;
    width: 80%;
    padding: 12px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-decoration: none;
}

.offer-card .cta-button-main {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.offer-card .cta-button-deal {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
}

.offer-card .cta-button-deal-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.offer-card .cta-button-main:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.offer-card .cta-button-deal:hover {
    background-color: var(--accent-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.offer-card .cta-button-deal-secondary:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .search-bar {
        margin-bottom: 40px;
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-bar input[type="search"] {
        border-radius: 16px 16px 0 0;
        padding: 16px 20px;
    }
    
    .search-bar button {
        border-radius: 0 0 16px 16px;
        padding: 16px 20px;
    }
    
    .hero-stats {
        gap: 20px;
        margin-top: 30px;
    }
    
    .hero-stat {
        padding: 15px;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .main-content {
        padding: 60px 0;
    }
    
    .main-content section {
        margin-bottom: 80px;
    }
    
    .categories-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .category-button {
        padding: 15px 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-stat {
        width: 200px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .categories-list {
        grid-template-columns: 1fr;
    }
}

/* Import Stores Archive Styles */
@import url('stores-archive.css');
