
/************************************************
   TopCoupons.ca – Global Style Guide (style.css)
   Authoritative, Modern, Trusted Coupon Resource
 ************************************************/

 /*---------------------------
     GOOGLE FONTS
 ----------------------------*/
@import url('https://fonts.googleapis.com/css?family=Manrope:400,600,700|Nunito:400,600,700|Roboto:400,500,700|Quicksand:400,500,700&display=swap');

/*---------------------------
    COLOR PALETTE
 ----------------------------*/
/* 
Primary Blue: #1976d2
Deep Navy: #132144
Clean White: #ffffff
Soft Gray: #f7f9fb
Accent Green: #2ecc71
Muted Silver: #e3e8ee
Dark Charcoal: #23272b
*/

/*---------------------------
    ROOT & RESET
 ----------------------------*/
:root {
  --primary-blue: #1976d2;
  --deep-navy: #132144;
  --clean-white: #fff;
  --soft-gray: #f7f9fb;
  --accent-green: #2ecc71;
  --muted-silver: #e3e8ee;
  --dark-charcoal: #23272b;

  --font-main: 'Manrope', 'Nunito', 'Roboto', 'Quicksand', Arial, sans-serif;
  --font-size-base: 1.13rem; /* ~18px */
  --font-size-large: 2.2rem;
  --font-size-medium: 1.4rem;
  --font-size-small: 0.98rem;
  --line-height-base: 1.68;
  --section-padding: 3.3rem;
  --section-padding-small: 2rem;
  --border-radius: 1.1rem;
  --shadow-soft: 0 4px 18px 0 rgba(25, 118, 210, 0.07);
  --shadow-hover: 0 6px 22px 0 rgba(25, 118, 210, 0.11);
}

/* Remove default link underline */
a, .btn, .dropdown-item {
  text-decoration: none !important;
  transition: color 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.15s;
}

/* Box-sizing for all */
*, *:before, *:after {
  box-sizing: border-box;
}

/*---------------------------
    TYPOGRAPHY
 ----------------------------*/
body {
  font-family: var(--font-main);
  background: var(--soft-gray);
  color: var(--deep-navy);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  margin: 0;
}

h1, h2, h3, h4, h5, h6, .section-title {
  font-family: var(--font-main);
  color: var(--deep-navy);
  font-weight: 700;
  margin-bottom: 1.1rem;
  line-height: 1.22;
}

.section-title {
  font-size: var(--font-size-large);
  letter-spacing: -1px;
  font-weight: 700;
}

p, ul, ol {
  color: var(--dark-charcoal);
  font-size: var(--font-size-base);
  margin-bottom: 1.1rem;
}

ul, ol {
  padding-left: 1.7em;
}

li {
  margin-bottom: 0.4em;
}

/* Logo Font */
.logo-font {
  font-family: var(--font-main);
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -1px;
}

/*---------------------------
    NAVIGATION
 ----------------------------*/
.header-main, .main-navbar {
  background: var(--clean-white);
  border-bottom: 1px solid var(--muted-silver);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.navbar-brand {
  font-size: 2.1rem;
  color: var(--primary-blue) !important;
  font-weight: 700;
  letter-spacing: -1px;
  padding-top: 0.18rem;
  padding-bottom: 0.18rem;
}

.navbar-nav .nav-link {
  color: var(--deep-navy) !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 2rem;
  transition: background 0.14s, color 0.13s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  background: var(--soft-gray);
  color: var(--primary-blue) !important;
}

.navbar .dropdown-menu {
  border-radius: var(--border-radius);
  border: 1px solid var(--muted-silver);
  background: var(--clean-white);
  margin-top: -3px !important;
  min-width: 12rem;
  box-shadow: var(--shadow-soft);
  padding: 0.6rem 0;
}

.dropdown-item {
  color: var(--deep-navy);
  font-size: 1.05rem;
  border-radius: 0.8rem;
  padding: 0.7rem 1.3rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--soft-gray);
  color: var(--primary-blue);
}

/*---------------------------
    HERO SECTION
 ----------------------------*/
.hero-section {
  background: linear-gradient(90deg, #f7f9fb 0%, #fff 100%);
  padding-top: 4.3rem;
  padding-bottom: 3.7rem;
  text-align: center;
}

.custom-hero-logo {
  font-size: 3.2rem;
  color: var(--primary-blue);
  font-weight: 800;
}

.custom-hero-tagline {
  color: var(--deep-navy);
  font-size: 1.38rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.9rem;
  letter-spacing: 0.1px;
}

.custom-btn-cta.btn,
.custom-featured-offer-btn.btn {
  background: var(--primary-blue);
  color: var(--clean-white);
  border-radius: 2.8rem;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 0.77rem 2.1rem;
  box-shadow: var(--shadow-soft);
  border: none;
  transition: background 0.16s, box-shadow 0.18s;
}

.custom-btn-cta.btn:hover, .custom-featured-offer-btn.btn:hover,
.custom-btn-cta.btn:focus, .custom-featured-offer-btn.btn:focus {
  background: var(--accent-green);
  color: var(--clean-white);
  box-shadow: var(--shadow-hover);
}

/*---------------------------
    CATEGORY NAVIGATION PANEL
 ----------------------------*/
.category-nav-section {
  background: var(--soft-gray);
  padding-top: var(--section-padding-small);
  padding-bottom: var(--section-padding-small);
}

.category-nav-btn {
  background: var(--clean-white);
  border: 2px solid var(--muted-silver);
  border-radius: var(--border-radius);
  color: var(--deep-navy);
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 0.3rem;
  transition: border-color 0.16s, box-shadow 0.16s, color 0.14s, background 0.15s;
  box-shadow: var(--shadow-soft);
}

.category-nav-btn:hover,
.category-nav-btn:focus {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
  color: var(--primary-blue);
  background: #f0f8ff;
}

.category-nav-icon {
  color: var(--primary-blue);
  font-size: 2.1rem;
  margin-bottom: 0.3rem;
  display: block;
}

.category-nav-label {
  font-size: 1.01rem;
  color: var(--deep-navy);
}

/*---------------------------
    FEATURED OFFERS SECTION
 ----------------------------*/
.featured-offers-section {
  background: var(--clean-white);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-bottom: 1.5px solid var(--muted-silver);
}

.featured-offer-card {
  background: var(--clean-white);
  border: 1.5px solid var(--muted-silver);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 1.5rem 1.7rem 1.5rem;
  margin-bottom: 1.4rem;
  min-height: 16.5rem;
  display: block;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.featured-offer-card:hover, .featured-offer-card:focus-within {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-hover);
}

.custom-featured-offer-icon {
  color: var(--primary-blue);
  font-size: 2.2rem;
}

.custom-featured-offer-retailer {
  font-size: 1.2rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-left: 0.1rem;
}

.custom-featured-offer-summary {
  color: var(--dark-charcoal);
  font-size: 1.09rem;
  margin-top: 0.5rem;
  margin-bottom: 1.1rem;
}

.custom-featured-offer-btn {
  background: var(--accent-green);
  color: var(--clean-white);
  font-weight: 700;
  border-radius: 2rem;
  padding: 0.53rem 1.4rem;
  font-size: 1.09rem;
  border: none;
  box-shadow: none;
}

.custom-featured-offer-btn:hover, .custom-featured-offer-btn:focus {
  background: var(--primary-blue);
  color: var(--clean-white);
}

/*---------------------------
    BROWSE BY STORE GRID/CAROUSEL
 ----------------------------*/
.store-grid-section {
  background: var(--soft-gray);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-bottom: 1.5px solid var(--muted-silver);
}

.store-tile {
  background: var(--clean-white);
  border: 1.5px solid var(--muted-silver);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  color: var(--deep-navy);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  margin-bottom: 1.1rem;
}

.store-tile:hover, .store-tile:focus {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
  transform: scale(1.035);
}

.custom-store-tile-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-store-tile-label {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--deep-navy);
  margin-top: 0.3rem;
}

/*---------------------------
    QUICK ACCESS CATEGORY BLOCKS
 ----------------------------*/
.quick-access-section {
  background: var(--clean-white);
  padding-top: var(--section-padding-small);
  padding-bottom: var(--section-padding-small);
  border-bottom: 1.5px solid var(--muted-silver);
}

.quick-access-block {
  background: var(--soft-gray);
  border: 2px solid var(--muted-silver);
  border-radius: var(--border-radius);
  color: var(--deep-navy);
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 0.3rem;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.18s;
  box-shadow: var(--shadow-soft);
}

.quick-access-block:hover,
.quick-access-block:focus {
  border-color: var(--primary-blue);
  background: #eaf4fd;
  color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
}

.quick-access-block i {
  color: var(--primary-blue);
  font-size: 2.1rem;
  margin-bottom: 0.2rem;
  display: block;
}

.quick-access-block .fw-bold {
  color: var(--deep-navy);
  margin-top: 0.4rem;
}

/*---------------------------
    SEO/INFORMATIONAL CONTENT
 ----------------------------*/
.seo-content-section {
  background: var(--soft-gray);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.seo-content-wrapper {
  background: var(--clean-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 2.3rem 2rem 2.2rem 2rem;
  border: 1.5px solid var(--muted-silver);
}

.custom-seo-content-title {
  font-size: 1.8rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.custom-seo-content-subheading {
  font-size: 1.32rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-top: 2.1rem;
  margin-bottom: 0.6rem;
}

.seo-content-list {
  margin-bottom: 1.4rem;
  padding-left: 1.3em;
}

.seo-content-list li {
  margin-bottom: 0.5em;
  color: var(--dark-charcoal);
}

.custom-internal-link {
  color: var(--primary-blue);
  border-bottom: 1.5px dotted var(--primary-blue);
  transition: color 0.14s, border-color 0.13s;
  font-weight: 600;
}

.custom-internal-link:hover, .custom-internal-link:focus {
  color: var(--accent-green);
  border-bottom: 1.5px solid var(--accent-green);
}

/*---------------------------
    HOW TO SAVE / STEP GUIDE
 ----------------------------*/
.how-to-save-section {
  background: var(--clean-white);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-bottom: 1.5px solid var(--muted-silver);
}

.save-step-card {
  background: var(--soft-gray);
  border: 2px solid var(--muted-silver);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 2.1rem 1.3rem 1.4rem 1.3rem;
  margin-bottom: 1.3rem;
  transition: border-color 0.16s, box-shadow 0.15s;
  min-height: 17rem;
  position: relative;
}

.save-step-card:hover, .save-step-card:focus-within {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
}

.save-step-number {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--primary-blue);
  color: var(--clean-white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem auto;
}

.save-step-icon {
  color: var(--primary-blue);
  font-size: 2.1rem;
  margin-bottom: 0.7rem;
}

.save-step-desc {
  color: var(--dark-charcoal);
  font-size: 1.02rem;
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
}

.custom-save-step-link {
  color: var(--accent-green);
  font-weight: 700;
  border-bottom: 1.5px dotted var(--accent-green);
  transition: color 0.14s, border-color 0.13s;
}

.custom-save-step-link:hover,
.custom-save-step-link:focus {
  color: var(--primary-blue);
  border-bottom: 1.5px solid var(--primary-blue);
}

/*---------------------------
    TOOLS & RESOURCES
 ----------------------------*/
.tools-section {
  background: var(--soft-gray);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-bottom: 1.5px solid var(--muted-silver);
}

.tool-card {
  background: var(--clean-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border: 1.5px solid var(--muted-silver);
  padding: 2.2rem 1.4rem 1.8rem 1.4rem;
  margin-bottom: 1.2rem;
  min-height: 18rem;
  transition: box-shadow 0.14s, border-color 0.13s;
}

.tool-card:hover, .tool-card:focus-within {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
}

.tool-heading {
  font-size: 1.18rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.tool-desc {
  color: var(--dark-charcoal);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.coupon-calc-form .form-control {
  font-size: 1.12rem;
  border: 1.5px solid var(--muted-silver);
  border-radius: 0.8rem;
  padding: 0.7rem 1.1rem;
  transition: border-color 0.14s, box-shadow 0.13s;
  background: var(--soft-gray);
  margin-bottom: 0.5rem;
}

.coupon-calc-form .form-control:focus {
  border-color: var(--primary-blue);
  background: #f0f8ff;
  outline: none;
  box-shadow: none;
}

.custom-calc-btn,
.btn.custom-calc-btn {
  background: var(--accent-green);
  color: var(--clean-white);
  font-weight: 700;
  border-radius: 2rem;
  font-size: 1.05rem;
  border: none;
  margin-top: 0.3rem;
  transition: background 0.15s;
}

.custom-calc-btn:hover, .custom-calc-btn:focus {
  background: var(--primary-blue);
  color: var(--clean-white);
}

.tool-result {
  font-size: 1.13rem;
  color: var(--accent-green);
  font-weight: 700;
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
}

.tool-link {
  color: var(--primary-blue);
  font-size: 1.02rem;
  font-weight: 600;
  border-bottom: 1.2px dotted var(--primary-blue);
  transition: color 0.13s, border-color 0.13s;
}

.tool-link:hover, .tool-link:focus {
  color: var(--accent-green);
  border-bottom: 1.5px solid var(--accent-green);
}

/*---------------------------
    RELATED GUIDES & PAGES
 ----------------------------*/
.related-guides-section {
  background: var(--clean-white);
  padding-top: var(--section-padding-small);
  padding-bottom: var(--section-padding-small);
  border-bottom: 1.5px solid var(--muted-silver);
}

.related-guides-list {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.guide-item {
  display: inline-block;
  background: var(--soft-gray);
  border: 1.5px solid var(--muted-silver);
  border-radius: var(--border-radius);
  margin-right: 1.1rem;
  margin-bottom: 0.5rem;
  min-width: 12.5rem;
  padding: 0.7rem 1rem;
  transition: border-color 0.13s, background 0.13s, box-shadow 0.13s;
  vertical-align: middle;
}

.guide-link {
  display: flex;
  align-items: center;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 1.03rem;
  transition: color 0.13s;
}

.guide-icon {
  font-size: 1.28rem;
  color: var(--primary-blue);
  margin-right: 0.8rem;
  transition: color 0.13s;
}

.guide-item:hover, .guide-item:focus-within {
  border-color: var(--accent-green);
  background: #eaf4ed;
  box-shadow: var(--shadow-soft);
}

.guide-item:hover .guide-icon, .guide-item:focus-within .guide-icon {
  color: var(--accent-green);
}

.guide-item:last-child {
  margin-right: 0 !important;
}

/*---------------------------
    INTERNAL LINKS PANEL (FOOTER NAVIGATION)
 ----------------------------*/
.internal-links-panel {
  background: var(--soft-gray);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  border-top: 1.8px solid var(--muted-silver);
}

.custom-internal-links-heading {
  font-size: 1.19rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.internal-links-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.internal-links-list li {
  margin-bottom: 0.6rem;
}

.internal-links-list a {
  color: var(--deep-navy);
  font-size: 1.06rem;
  font-weight: 600;
  border-bottom: 1.2px dotted var(--primary-blue);
  padding-bottom: 0.07rem;
  transition: color 0.14s, border-color 0.14s;
}

.internal-links-list a:hover, .internal-links-list a:focus {
  color: var(--primary-blue);
  border-bottom: 1.5px solid var(--primary-blue);
}

/*---------------------------
    FOOTER
 ----------------------------*/
.footer-main {
  background: var(--deep-navy);
  color: var(--clean-white);
  padding-top: 2.3rem;
  padding-bottom: 2.3rem;
  border-top: 2px solid var(--muted-silver);
  font-size: var(--font-size-small);
}

.custom-footer-logo {
  font-family: var(--font-main);
  color: var(--primary-blue);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.8px;
}

.footer-contact a,
.footer-links-list a {
  color: var(--clean-white);
  font-weight: 600;
  font-size: 1.01rem;
  border-bottom: 1px dotted var(--primary-blue);
  transition: color 0.13s, border-color 0.13s;
  padding-bottom: 0.05rem;
}

.footer-links-list a:hover, .footer-links-list a:focus,
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--accent-green);
  border-bottom: 1.5px solid var(--accent-green);
}

.footer-links-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links-list li {
  margin-bottom: 0.5rem;
}

.custom-footer-copy {
  color: var(--muted-silver);
  font-size: 0.97rem;
  margin-top: 2.3rem;
}

.footer-main .row > div {
  padding-bottom: 1.1rem;
}

/*---------------------------
    AD SENSE BLOCK (PLACEHOLDER)
 ----------------------------*/
.adsense-block,
.adsense-placeholder {
  background: var(--soft-gray);
  border: 2px dashed var(--muted-silver);
  border-radius: var(--border-radius);
  min-height: 110px;
  margin: 2.3rem auto 2.3rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-charcoal);
  font-size: 1.16rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-shadow: var(--shadow-soft);
}

/*---------------------------
    GENERAL UTILS & BOOTSTRAP OVERRIDES
 ----------------------------*/

/* Section padding helpers */
.section-title, .custom-section-title {
  margin-bottom: 1.7rem;
}

/* Remove focus outline for buttons but keep for accessibility */
.btn:focus, .btn:active {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--primary-blue, #1976d2)33;
}

/* Button transitions */
.btn, .custom-btn-cta, .custom-calc-btn {
  transition: background 0.14s, color 0.13s, box-shadow 0.14s;
}

/* Hide horizontal scroll on related guides, ensure responsive wrap */
.related-guides-list::-webkit-scrollbar {
  height: 8px;
  background: var(--muted-silver);
}
.related-guides-list::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
}
.related-guides-list {
  scrollbar-color: var(--primary-blue) var(--muted-silver);
  scrollbar-width: thin;
}

/* Strong for headlines */
.fw-bold, .fw-semibold {
  font-weight: 700 !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .custom-hero-logo { font-size: 2.2rem; }
  .featured-offer-card, .tool-card, .save-step-card {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
@media (max-width: 768px) {
  .hero-section { padding-top: 2.3rem; padding-bottom: 1.7rem; }
  .seo-content-wrapper, .tool-card, .featured-offer-card, .save-step-card {
    padding: 1.4rem 0.9rem !important;
  }
  .category-nav-btn,
  .quick-access-block,
  .store-tile,
  .guide-item {
    font-size: 1.02rem;
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
  }
}
@media (max-width: 576px) {
  .footer-main .row > div { padding-bottom: 1.8rem; }
  .section-title, .custom-section-title { font-size: 1.35rem; }
  .seo-content-section, .internal-links-panel, .tools-section, .featured-offers-section, .store-grid-section, .how-to-save-section, .quick-access-section, .related-guides-section { 
    padding-left: 0.5rem !important; 
    padding-right: 0.5rem !important;
  }
}

/* Remove border-radius from elements with colored borders */
.category-nav-btn[style*="border-color"], .quick-access-block[style*="border-color"], .store-tile[style*="border-color"], .save-step-card[style*="border-color"], .tool-card[style*="border-color"], .featured-offer-card[style*="border-color"] {
  border-radius: 0 !important;
}

/*---------------------------
    BOOTSTRAP FORM OVERRIDES
 ----------------------------*/
.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: none;
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none;
  margin: 0;
}

/*---------------------------
    MISCELLANEOUS
 ----------------------------*/
/* Prevent overflow-x */
body {
  overflow-x: hidden;
}

/* Ensure all columns have spacing */
.col-12, .col-md-4, .col-md-3, .col-md-2, .col-lg-2, .col-lg-3, .col-lg-4 {
  padding-bottom: 1.2rem !important;
}

/* Bootstrap icon sizing for clarity */
.bi {
  vertical-align: middle;
  font-size: 1.2em;
}

.display-4 {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--primary-blue);
}

/* Ensure page-content wrapper has side padding */
.page-content {
  padding-left: 1.3rem;
  padding-right: 1.3rem;
}

/* No additional max-widths are set; all elements fill their container */


/*====================================================================
    COUPON CARD GRID & COUPON CARD STYLES
====================================================================*/

/* Coupon card grid wrapper */
.coupon-list-section {
  background: var(--soft-gray);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.4rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 1200px) {
  .coupon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .coupon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .coupon-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem 0.7rem;
  }
}

/* Coupon Card Base Styles */
.coupon-card {
  background: var(--clean-white);
  border: 1.5px solid var(--muted-silver);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 1.7rem 1.2rem 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 15rem;
  transition: border-color 0.16s, box-shadow 0.16s;
  position: relative;
}

.coupon-card:hover, .coupon-card:focus-within {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
}

.coupon-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
}

.coupon-type-label {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.22em 0.8em;
  border-radius: 1rem;
  margin-right: 0.8em;
  background: var(--primary-blue);
  color: var(--clean-white);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
}
.coupon-type-grocery { background: var(--primary-blue); color: #fff; }
.coupon-type-retail { background: #a259d9; color: #fff; }
.coupon-type-digital { background: var(--accent-green); color: #fff; }
.coupon-type-printable { background: #fbc02d; color: #23272b; }
.coupon-type-instore, .coupon-type-in-store { background: #6ec6ff; color: #132144; }

/* Coupon discount amount */
.coupon-discount {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 0.2rem;
  margin-right: 0.8rem;
  letter-spacing: -1px;
}

.coupon-title {
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.2rem;
}

.coupon-desc {
  font-size: 1.01rem;
  color: var(--dark-charcoal);
  margin-bottom: 0.6rem;
}

/* Coupon Expiry */
.coupon-expiry {
  margin-top: 0.5rem;
  font-size: 0.97rem;
  color: #b71c1c;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Show More Button Style */
.coupon-show-more-btn {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--clean-white);
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 2rem;
  border: none;
  margin-top: 1rem;
  padding: 0.65rem 1.6rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.16s, color 0.14s, box-shadow 0.13s;
  cursor: pointer;
  text-align: center;
}

.coupon-show-more-btn:hover, .coupon-show-more-btn:focus {
  background: var(--accent-green);
  color: var(--clean-white);
  box-shadow: var(--shadow-hover);
  outline: none;
}

/* Optional: visually separate expired coupons */
.coupon-card.coupon-expired {
  opacity: 0.7;
  border-style: dashed;
  border-color: #ffcdd2;
}

/* Responsive padding for coupon cards */
@media (max-width: 992px) {
  .coupon-card {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}
@media (max-width: 600px) {
  .coupon-card {
    padding: 1.1rem 0.7rem 1rem 0.7rem;
  }
}


/* BEST BUY COUPONS PAGE â€“ PAGE SPECIFIC STYLES */
.custom-best-buy-coupons-content .custom-hero-section {
  background: linear-gradient(93deg, #e3f0fd 0%, #f7f9fb 100%);
  border-bottom: 1.5px solid #d1e3f6;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.custom-best-buy-coupons-content .custom-hero-section h1 {
  color: #1565c0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.custom-best-buy-coupons-content .custom-hero-section .btn {
  background: #1565c0;
  color: #fff;
  font-weight: 700;
  border-radius: 2.2rem;
  box-shadow: 0 4px 18px rgba(21,101,192,0.13);
  font-size: 1.13rem;
  padding: 0.73rem 2.1rem;
  transition: background .14s, color .14s;
}
.custom-best-buy-coupons-content .custom-hero-section .btn:hover,
.custom-best-buy-coupons-content .custom-hero-section .btn:focus {
  background: #00bcd4;
  color: #fff;
}
.custom-best-buy-coupons-content .coupon-list-section {
  background: #f9fbfd;
  border-bottom: 1.5px solid #d1e3f6;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.4rem;
}
@media (max-width: 1200px) {
  .coupon-grid { grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 900px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 600px) {
  .coupon-grid { grid-template-columns: 1fr; gap: 1.1rem 0.7rem; }
}
.coupon-card {
  background: #fff;
  border: 1.7px solid #1565c0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  padding: 1.7rem 1.2rem 1.3rem 1.2rem;
  min-height: 14rem;
  transition: border-color 0.16s, box-shadow 0.16s;
  position: relative;
}
.coupon-type-label {
  display: inline-block;
  font-size: 0.99rem;
  font-weight: 700;
  padding: 0.22em 0.8em;
  border-radius: 1rem;
  margin-right: 0.8em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  border: none;
}
.coupon-type-retail {
  background: #1976d2;
  color: #fff;
}

/* METRO COUPONS PAGE â€“ PAGE SPECIFIC STYLES */
.custom-metro-coupons-content .custom-hero-section {
  background: linear-gradient(96deg, #f2f7ed 0%, #f8fbf3 100%);
  border-bottom: 1.5px solid #cee5ce;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.custom-metro-coupons-content .custom-hero-section h1 {
  color: #43a047;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.custom-metro-coupons-content .custom-hero-section .btn {
  background: #43a047;
  color: #fff;
  font-weight: 700;
  border-radius: 2.2rem;
  box-shadow: 0 4px 18px rgba(67,160,71,0.13);
  font-size: 1.13rem;
  padding: 0.73rem 2.1rem;
  transition: background .14s, color .14s;
}
.custom-metro-coupons-content .custom-hero-section .btn:hover,
.custom-metro-coupons-content .custom-hero-section .btn:focus {
  background: #5ec576;
  color: #fff;
}
.custom-metro-coupons-content .coupon-list-section {
  background: #f7fbf5;
  border-bottom: 1.5px solid #cee5ce;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* Coupon Card Styles Metro */
.coupon-type-grocery {
  background: #43a047;
  color: #fff !important;
}
.custom-metro-coupons-content .coupon-card {
  border: 1.7px solid #43a047;
  border-radius: var(--border-radius);
  min-height: 12rem;
}
.custom-metro-coupons-content .coupon-type-label.coupon-type-grocery {
  background: #43a047;
  color: #fff;
}
.custom-metro-coupons-content .coupon-discount {
  font-size: 2.0rem;
  font-weight: 800;
  color: #43a047;
  margin-bottom: 0.2rem;
  margin-right: 0.8rem;
  letter-spacing: -1px;
}
.custom-metro-coupons-content .coupon-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #263238;
  margin-bottom: 0.17rem;
}
.custom-metro-coupons-content .coupon-desc {
  font-size: 1.01rem;
  color: #37474f;
  margin-bottom: 0.5rem;
}
.custom-metro-coupons-content .coupon-expiry {
  margin-top: 0.3rem;
  font-size: 0.96rem;
  color: #b71c1c;
  font-weight: 600;
}
.coupon-show-more-btn {
  display: inline-block;
  background: #43a047;
  color: #fff;
  font-size: 1.07rem;
  font-weight: 700;
  border-radius: 2rem;
  border: none;
  margin-top: 1rem;
  padding: 0.66rem 1.65rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s, color 0.13s, box-shadow 0.13s;
  cursor: pointer;
  text-align: center;
}
.coupon-show-more-btn:hover, .coupon-show-more-btn:focus {
  background: #5ec576;
  color: #fff;
  box-shadow: var(--shadow-hover);
  outline: none;
}

/* Accordion Styles Metro */
.custom-metro-coupons-content .accordion-item {
  border-radius: var(--border-radius);
  border: 1.2px solid #cee5ce;
  margin-bottom: 0.6rem;
  background: #f8fbf3;
  box-shadow: var(--shadow-soft);
}
.custom-metro-coupons-content .accordion-button {
  background: #e8f5e9;
  font-weight: 700;
  color: #43a047;
  font-size: 1.09rem;
  border-radius: var(--border-radius);
}
.custom-metro-coupons-content .accordion-button:not(.collapsed) {
  background: #43a047;
  color: #fff;
}
.custom-metro-coupons-content .accordion-body {
  color: #263238;
  font-size: 1.01rem;
}

/* Tips Card Styles Metro */
.expert-tips-section .tips-card {
  background: #f8fbf3;
  border: 1.2px solid #cee5ce;
  border-radius: 1.1rem;
  box-shadow: 0 2px 10px rgba(67,160,71,0.09);
  transition: box-shadow .14s, border-color .14s;
  font-size: 1.01rem;
}
.expert-tips-section .tips-card:hover {
  box-shadow: 0 6px 24px rgba(67,160,71,0.18);
  border-color: #43a047;
}

/* FAQ accordion for Metro */
.faq-section .accordion-item {
  border-radius: var(--border-radius);
  border: 1.2px solid #cee5ce;
  background: #f8fbf3;
  box-shadow: var(--shadow-soft);
}
.faq-section .accordion-button {
  background: #e8f5e9;
  font-weight: 700;
  color: #43a047;
  font-size: 1.07rem;
  border-radius: var(--border-radius);
}
.faq-section .accordion-button:not(.collapsed) {
  background: #43a047;
  color: #fff;
}
.faq-section .accordion-body {
  color: #263238;
  font-size: 1.01rem;
}

/* Related Savings Card Metro */
.related-savings-section .related-card {
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px rgba(67,160,71,0.08);
  background: #fff;
  border: 1.2px solid #cee5ce;
  transition: box-shadow .14s, border-color .14s;
}
.related-savings-section .related-card .btn {
  border-radius: 1.5rem;
  font-size: 1.01rem;
}
.related-savings-section .related-card:hover {
  box-shadow: 0 6px 24px rgba(67,160,71,0.18);
  border-color: #43a047;
}

/* General Spacing for Metro Page */
.custom-metro-coupons-content .section-title {
  font-size: 1.37rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
@media (max-width: 768px) {
  .custom-metro-coupons-content .custom-hero-section h1 { font-size: 2.0rem; }
  .custom-metro-coupons-content .coupon-card { padding-left: 0.8rem; padding-right: 0.8rem;}
}

/* General Utility */
.text-success { color: #388e3c !important; }
.text-info { color: #0097a7 !important; }
.text-warning { color: #ef6c00 !important; }
.text-secondary { color: #616161 !important; }
.text-muted { color: #888 !important; }

a, .btn { text-decoration: none; }

@media (max-width: 540px) {
    .custom-section-title { font-size: 1.31rem !important; }
    .display-5 { font-size: 1.42rem !important; }
    .coupon-card { padding: 14px 11px 8px 11px; }
    .comparison-table th, .comparison-table td { padding: 7px 4px; font-size: .99rem;}
}

/* Coupon Calculator Custom Styles */
.coupon-calc-widget {
    min-width: 0;
}

.explanation-panel {
    font-size: 1.01rem;
    min-width: 0;
}

.bg-success-subtle {
    background: #eafce7 !important;
}
.bg-info-subtle {
    background: #e3f4fc !important;
}
.tool-result.custom-tool-result {
    font-size: 1.08rem;
}
@media (max-width: 900px) {
    .coupon-calc-hero-section .row.align-items-center {
        flex-direction: column !important;
    }
    .coupon-calc-widget, .explanation-panel {
        margin-bottom: 1.5rem;
    }
}
@media (max-width: 600px) {
    .coupon-calc-widget, .explanation-panel {
        padding: 12px 7px !important;
    }
}

/* FAQ Accordion Styles */
.custom-faq-accordion .accordion-item {
    border: 1.2px solid #c6dee5;
    border-radius: 0;
    margin-bottom: 8px;
    background: #f7fafc;
}
.custom-faq-accordion .accordion-header {
    border-radius: 0;
}
.custom-faq-accordion .accordion-button {
    background: #e0f7fa;
    font-weight: 600;
    font-size: 1.09rem;
    color: #1b5e20;
    border-radius: 0 !important;
    outline: none;
    box-shadow: none;
    padding: 13px 17px;
    border-bottom: 1.2px solid #c6dee5;
    transition: background .13s;
}
.custom-faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-radius: 0 !important;
}
.custom-faq-accordion .accordion-button:not(.collapsed) {
    background: #b2f0e7;
    color: #00796b;
}
.custom-faq-accordion .accordion-body {
    background: #fff;
    color: #222;
    font-size: 1.03rem;
    padding: 19px 17px 14px 17px;
    border-radius: 0 !important;
}
.custom-faq-accordion .accordion-item:last-child {
    margin-bottom: 0;
}

/* Related Links/Tools */
.comparison-related-links-section {
    background: #f7fafc;
    border-top: 1.5px solid #c6dee5;
    margin-top: 2.5rem;
    padding-top: 1.7rem;
    padding-bottom: 1.7rem;
}
.comparison-related-links-section .tool-link {
    font-weight: 600;
    font-size: 1.06rem;
    color: #00796b;
    text-decoration: none;
}
.comparison-related-links-section .tool-link:hover {
    color: #1b5e20;
    text-decoration: underline;
}
.comparison-related-links-section .small.text-muted {
    font-size: .93rem;
    margin-left: 2px;
}