/*
Theme Name: OceanWP_Child
Author: BlackStarWeb
Description: Your description goes here
Version: 1.0
Template: oceanwp
*/

/* =========================================================
   🎨  BRAND COLOURS & GLOBAL VARIABLES
   ========================================================= */
:root {
  --brand-red: #ec0000;
  --brand-red-light: #fca5a5;
  --brand-red-dark: #991b1b;
  --brand-red-extra-light: #fff5f5;


  --sky-blue: #3b82f6;
  --sky-blue-light: #93c5fd;
  --sky-blue-dark: #1e40af;

  --forest-green: #16a34a;
  --forest-green-light: #4ade80;
  --forest-green-dark: #14532d;

  --light-gray: #f3f4f6;
  --medium-gray: #9ca3af;
  --dark-gray: #1f2937;
  --white: #ffffff;

  --font-main: 'Poppins', sans-serif;
  --font-alt: Arial, sans-serif;
}



/* =========================================================
   🧰  GLOBAL ELEMENT STYLES
   ========================================================= */
body {
  font-family: var(--font-main);
  background-color: var(--light-gray);
  color: var(--dark-gray);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-gray);
  margin-top: 0;
}

a {
  text-decoration: none;
  color: var(--sky-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--brand-red-light); /* UPDATED */
}

/* =========================================================
   🟥 MAIN BANNER (formerly .solutions-banner-accent)
   ========================================================= */
.banner-accent {
  background-color: var(--light-gray);
  border: 1px solid var(--medium-gray);
  color: var(--dark-gray);
  padding: 40px 30px;
  border-radius: 8px;
  font-family: var(--font-alt);
  text-align: center;
  border-top: 8px solid var(--brand-red);
  margin: 20px 0;
}

.banner-accent h2 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--dark-gray);
}

.banner-accent ul {
  list-style-type: disc;
  padding-left: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.banner-accent li {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* =========================================================
   🧭 PRODUCT SHOWCASE BOX
   ========================================================= */
.product-showcase-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 950px;
  margin: 2rem auto;
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border-left: 10px solid var(--brand-red);
}

.product-showcase-left {
  flex: 0 0 220px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.product-showcase-left .product-image-link {
  display: block;
  margin-bottom: 20px;
}

.product-showcase-left img {
  width: 200px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-showcase-left img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-showcase-buy-button {
  display: inline-block;
  background-color: var(--brand-red);
  color: var(--white);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 5px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease; /* Added color to transition */
  border: none;
  cursor: pointer;
}

.product-showcase-buy-button:hover {
  background-color: var(--brand-red-light); /* UPDATED */
  color: var(--dark-gray); /* ADDED for readability */
}

/* Optional: make SVG arrows align nicely in the button */
.product-showcase-buy-button svg {
  margin-left: 6px;
  vertical-align: middle;
}

.product-showcase-right {
  flex: 1 1 auto;
  padding: 25px;
  color: var(--dark-gray);
}

.product-showcase-right h2 {
  font-size: 26px;
  color: var(--brand-red);
  margin-top: 0;
  line-height: 1.3;
}

.product-showcase-right h3 {
  font-size: 20px;
  color: var(--brand-red);
  margin-top: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 5px;
}

.product-showcase-right p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.product-showcase-right ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-showcase-right li {
  position: relative;
  padding-left: 25px;
  line-height: 1.6;
}

.product-showcase-right li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-red);
  font-weight: bold;
}

@media (max-width: 768px) {
  .product-showcase-container {
    flex-direction: column;
  }
  .product-showcase-left img {
    width: 180px;
  }
  .product-showcase-right ul {
    grid-template-columns: 1fr;
  }
  .product-showcase-right h2 {
    font-size: 22px;
  }
}

/* =========================================================
   🎨 PRODUCT SHOWCASE THEME VARIATIONS
   ========================================================= */

/* 🟦 BLUE THEME (for GCSE-A Level Transition) */
.product-showcase-container.showcase-theme-blue {
  border-left-color: var(--sky-blue-dark);
}
.product-showcase-container.showcase-theme-blue .product-showcase-right h2,
.product-showcase-container.showcase-theme-blue .product-showcase-right h3 {
  color: var(--sky-blue-dark);
}
.product-showcase-container.showcase-theme-blue .product-showcase-right li::before {
  color: var(--sky-blue);
}
.product-showcase-container.showcase-theme-blue .product-showcase-buy-button {
  background-color: var(--sky-blue);
}

/* 🟩 GREEN THEME (for A Level Further Maths) */
.product-showcase-container.showcase-theme-green {
  border-left-color: var(--forest-green-dark);
}
.product-showcase-container.showcase-theme-green .product-showcase-right h2,
.product-showcase-container.showcase-theme-green .product-showcase-right h3 {
  color: var(--forest-green-dark);
}
.product-showcase-container.showcase-theme-green .product-showcase-right li::before {
  color: var(--forest-green);
}
.product-showcase-container.showcase-theme-green .product-showcase-buy-button {
  background-color: var(--forest-green);
}

/* NOTE: All product showcase buttons now share a common hover state defined above */

/* =========================================================
   🧩 PUZZLES & GAMES CONTAINER
   ========================================================= */
.puzzle-game-container {
  background-color: var(--sky-blue-light);
  border: 1px solid var(--sky-blue);
  border-left: 10px solid var(--sky-blue-dark);
  border-radius: 8px;
  padding: 30px;
  max-width: 950px;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.puzzle-game-container h2 {
  color: var(--sky-blue-dark);
  font-size: 26px;
  margin-bottom: 15px;
}

.puzzle-game-container p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
}

/* =========================================================
   🎲 INTERACTIVE CARDS GRID
   ========================================================= */
  .interactives-container{
    max-width:1200px;
    margin:2rem auto;
    display:grid;
    grid-template-columns:repeat(2, 1fr);   /* ← 2 columns. Change 2 to 3 for three. */
    gap:30px;
    align-items:start;                        /* cards align to top, don't stretch to tallest */
  }

  /* let each card fill its column instead of capping at its max-width */
  .interactives-container > *{min-width:0;}    /* stops wide images blowing the column out */
  .interactives-container .wfps-cards{width:100%;}
  .interactives-container .wfps-card{width:100%;max-width:none;}

  /* stack to a single column on small screens */
  @media (max-width:900px){
    .interactives-container{grid-template-columns:1fr;}
  }

.interactive-card {
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 10px solid var(--brand-red);
}

.interactive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.interactive-card .card-image-link {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--light-gray);
  overflow: hidden;
}

.interactive-card .card-image-link img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.interactive-card-content {
  padding: 20px;
  flex: 1;
}

.interactive-card-content h2 {
  font-size: 22px;
  color: var(--brand-red);
  margin-bottom: 12px;
}

.interactive-card-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Reusable button style for cards */
.card-button {
  display: inline-block;
  color: var(--white);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease; /* Added color to transition */
  background-color: var(--brand-red);
}

.card-button:hover {
  background-color: var(--brand-red-light); /* UPDATED */
  color: var(--dark-gray); /* ADDED for readability */
}
/* =========================================================
   🏅 THEME OVERRIDES (Bronze & Silver)
   ========================================================= */

/* --- BRONZE THEME --- */
.interactive-card.theme-bronze {
  border-left-color: #cd7f32; /* Bronze border */
}

.interactive-card.theme-bronze .interactive-card-content h2 {
  color: #cd7f32; /* Bronze text */
}

.interactive-card.theme-bronze .card-button {
  background-color: #cd7f32;
}

.interactive-card.theme-bronze .card-button:hover {
  background-color: #b0651d; /* Darker bronze on hover */
  color: #fff;
}

/* --- SILVER THEME --- */
.interactive-card.theme-silver {
  border-left-color: #71797E; /* Steel/Silver border */
}

.interactive-card.theme-silver .interactive-card-content h2 {
  color: #586066; /* Dark Silver text for readability */
}

.interactive-card.theme-silver .card-button {
  background-color: #71797E;
}

.interactive-card.theme-silver .card-button:hover {
  background-color: #4f575c; /* Darker silver on hover */
  color: #fff;
}

/* =========================================================
   🏠 HOME PAGE BANNER
   ========================================================= */
.home-banner {
  background-color: var(--brand-red);
  color: var(--white);
  padding: 60px 30px;
  text-align: center;
  font-family: var(--font-main);
}

.home-banner h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}

.home-banner p {
  font-size: 20px;
  margin-top: 0;
}

/* =========================================================
   🟥 HOMEPAGE BUTTONS
   ========================================================= */
.home-button {
  display: inline-block;
  background-color: var(--brand-red);
  color: var(--white);
  padding: 15px 25px;
  font-size: 18px;
  font-weight: 600;
  margin: 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; /* Added color to transition */
}

.home-button:hover {
  background-color: var(--brand-red-light); /* UPDATED */
  color: var(--dark-gray); /* ADDED for readability */
  transform: translateY(-2px);
}

.home-buttons-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}


/* =========================================================
   🔄 FLIP-CARD IMAGE EFFECT
   ========================================================= */

/* The container for the flip card, which sits inside the card-image-link */
.flip-card-container {
  width: 100%;
  height: 100%;
  perspective: 1000px; /* Gives the 3D effect depth */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

/* When you hover over the main card, the inner container flips */
.interactive-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* The front and back panels */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* For Safari */
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The back is hidden and pre-rotated */
.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-container img {
  max-width: 90%;  /* Slightly smaller to look better */
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	
	
	
}


/* =========================================================
   🔗 HOMEPAGE OVERVIEW LINKS
   ========================================================= */
.overview-links-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 2rem auto;
}

.overview-link-box {
  display: block; /* Ensures the <a> tag behaves like a container */
  flex: 1 1 300px; /* Grow, shrink, and have a base width */
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-link-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.overview-link-box h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.overview-link-box p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-gray);
  margin-bottom: 0;
}

/* --- THEMES --- */
.overview-link-box.theme-red {
  border-top: 6px solid var(--brand-red);
}
.overview-link-box.theme-red h3 {
  color: var(--brand-red);
}
.overview-link-box.theme-blue {
  border-top: 6px solid var(--sky-blue-dark);
}
.overview-link-box.theme-blue h3 {
  color: var(--sky-blue-dark);
}

/* =========================================================
   🌟 FEATURED STUDY AID
   ========================================================= */

/* A wrapper to hold the heading and the featured card */
.featured-aid-wrapper {
  text-align: center;
  margin-bottom: 30px; /* Adds space below the featured item */
}

/* The "Featured Study Aid" heading */
.featured-aid-heading {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-red-dark);
  margin-bottom: 15px;
}

/* The modifier class to make a card "featured" */
.interactive-card.featured-aid {
  position: relative; /* Needed for the glimmer effect */
  border: 5px solid var(--brand-red-light); /* Subtle full border */
  border-left-width: 2px; /* Overrides the default thick left border */
  box-shadow: 0 8px 25px rgba(153, 27, 27, 0.1); /* A soft red shadow */
  overflow: hidden; /* Keeps the glimmer inside the card */
}

/* The glimmer effect using a pseudo-element */
.interactive-card.featured-aid::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen */
  width: 75%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: glimmer-sheen 4s infinite linear;
}

/* The animation that moves the glimmer across the card */
@keyframes glimmer-sheen {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

/* Footer links: white text, override theme hover */
.footer-links a {
    color: #FFFFFF !important;       /* normal text color */
    text-decoration: none;           /* remove default underline */
    position: relative;              /* needed for underline animation */
}

/* Hover effect: underline appears like a swipe, text stays white */
.footer-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;                     /* underline thickness */
    bottom: 0;
    left: 0;
    background-color: #FFFFFF;       /* underline color */
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #FFFFFF !important;       /* force white on hover */
}

.footer-links a:hover::after {
    width: 100%;                     /* underline expands on hover */
}



 /* Login button in top bar */


/* Container for top-bar buttons */
.header-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* or center if you want centered buttons */
  gap: 12px;                   /* space between buttons */
}

/* Styles for the Live Timer Card Preview */
.timer-preview-box {
    width: 100%;
    height: 100%;
    background-color: #1f2937; /* Dark Grey Background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 10px;
    box-sizing: border-box;
}

.preview-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b9292e; /* Your brand red */
    font-weight: 700;
    margin-bottom: 5px;
}

.preview-time {
    font-size: 2.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums; /* Keeps numbers from jumping */
    line-height: 1.1;
    color: #ffffff;
}

.preview-labels {
    font-size: 0.7rem;
    color: #9ca3af; /* Light grey text */
    margin-top: 5px;
}

/* =========================================
   ⭐ SITE REVIEWS: WRAPPER FIX (FINAL)
   ========================================= */

/* 1. THE MAIN CARD */
.rating-hero-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    max-width: 500px;
    margin: 30px auto;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid #ec0000 !important;
}

/* 2. THE WRAPPER FIX (The element you found!) */
/* We force this outer wrapper to center the inner summary box */
.glsr-summary-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Forces the inner box to the middle */
    width: 100% !important;
}

/* 3. THE SUMMARY ROW (4.8 + Stars) */
.glsr-summary {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    
    /* GAP INCREASED: 30px compensates for the star zoom */
    gap: 30px !important; 
    
    width: auto !important;
    margin-bottom: 5px !important;
}
/* The Number */
.glsr-summary-rating {
    color: #ec0000 !important;
    font-size: 35px !important;
    font-weight: 800;
    line-height: 1;
    margin: 0 !important;
}

/* The Stars */
.glsr-summary .glsr-star-rating {
    display: flex !important;
    margin: 0 !important;
    transform: scale(1.3) !important; 
    transform-origin: center !important;
}

/* 4. THE TEXT LABELS */
.glsr-summary-text, 
.glsr-field-label {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 5px 0 10px 0 !important;
    color: #666;
    font-size: 14px;
}

/* 5. THE FORM STACK (Voting Area) */
/* This centers the Big Stars and the Button */
.glsr-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* CRITICAL: Centers the button */
    width: 100% !important;
}

/* The Voting Stars */
.glsr-form .glsr-star-rating {
    display: flex !important;
    justify-content: center !important;
    transform: scale(2.0) !important;
    transform-origin: center !important;
    margin: 20px 0 20px 0 !important;
    gap: 5px;
}

/* 6. THE SUBMIT BUTTON */
.glsr-submit {
    margin-top: 10px !important;
    background-color: #ec0000 !important;
    color: white !important;
    font-weight: bold;
    font-size: 18px !important;
    padding: 12px 40px !important;
    border-radius: 50px !important;
    border: none !important;
    width: auto !important;
    min-width: 200px;
    cursor: pointer;
}


/* =========================================================
   🗂️ M4TH5 A LEVEL FLASHCARDS PAGE
   ========================================================= */

/* Add this to your :root section at the top of your file */


.m4th5-container {
  max-width: 950px;
  margin: 0 auto;
}

/* Headings */
.m4th5-container h1 {
  text-align: center;
  color: var(--brand-red);
  margin-bottom: 10px;
}

/* h2 is already var(--dark-gray) from your global styles, 
   so we only need to style the section title variant */
.m4th5-section-title {
  border-bottom: 2px solid var(--brand-red-light);
  padding-bottom: 10px;
  display: inline-block;
}

/* Intro text */
.m4th5-intro {
  text-align: center;
  font-size: 18px;
  max-width: 850px;
  margin: 0 auto 30px auto;
}

/* Card styling */
.m4th5-card {
  background: var(--white);
  padding: 35px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  font-size: 18px;
}

/* Two-column grid */
.m4th5-two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

/* Banner accent sections */
.m4th5-banner {
  background: #fff5f5; /* Or use var(--brand-red-extra-light) if added to root */
  padding: 30px;
  border-radius: 8px;
  margin-top: 30px;
}

.m4th5-banner h2 {
  color: var(--brand-red);
}

/* Iframe */
#m4th5-flashcards-frame {
  width: 100%;
  border: none;
  background: var(--white);
  overflow: hidden;
  transition: height 0.2s ease;
}

/* Links inside this container override the global blue links */
.m4th5-container a {
  color: var(--brand-red);
  font-weight: 600;
}

.m4th5-container ul {
  margin-left: 20px;
}

/* Responsive */
@media (max-width: 800px) {
  .m4th5-two-col-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   📰 MODERN BLOG GRID SYSTEM
   ========================================================= */
.blog-hub-container {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 20px;
}


.blog-hero {
  text-align: center;
  margin-bottom: 50px;
}

.blog-hero h1 {
  font-size: 3rem;
  color: var(--brand-red);
  margin-bottom: 10px;
}

.blog-grid {
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(236, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Red accent bar that grows on hover */
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--brand-red);
  transition: height 0.3s ease;
  z-index: 1;
}

.blog-card:hover::before {
  height: 8px;
}

.blog-card-image {
  height: 200px;
  background-color: var(--brand-red-extra-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.blog-card-image .category-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--brand-red);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.blog-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-content h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--dark-gray);
  transition: color 0.3s ease;
}

.blog-card:hover h2 {
  color: var(--brand-red);
}

.blog-card-content p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-read-more {
  font-weight: 700;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-grid > .blog-card {
  width: auto !important;
}

.card-infographic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top; /* 👈 crop from top-left */
}


.blog-read-more svg {
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(5px);
}

/* =========================================================
   🔘 HEADER BUTTONS — top bar pills
   Markup lives in the child theme functions.php:
   [mailing_list_button] / [login_account_button].
   Scoped to .header-buttons so the product-showcase buy
   buttons elsewhere keep their flat 5px style.
   ========================================================= */

.header-buttons {
  gap: 16px;
}

/* Shared shape for both pills */
.header-buttons .product-showcase-buy-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  border: none;
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.25s ease, transform 0.15s ease;
}

/* PRIMARY — Join Our Mailing List. Gradient runs bottom-right
   (dark) to top-left (light) for the shine. */
.header-buttons .product-showcase-buy-button {
  background: linear-gradient(to top left, var(--brand-red-dark), var(--brand-red));
  color: var(--white);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.header-buttons .product-showcase-buy-button:hover {
  background: linear-gradient(to top left, var(--brand-red), #ff2b2b);
  color: var(--white);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

/* SECONDARY — Log In / My Account. Same shape and gradient
   geometry, white material. inset shadow rather than border
   so it stays exactly the same size as the primary. */
.header-buttons .product-showcase-buy-button.login-btn,
.header-buttons .product-showcase-buy-button.login-btn:link,
.header-buttons .product-showcase-buy-button.login-btn:visited {
  background: linear-gradient(to top left, #ededed, #ffffff);
  color: var(--brand-red);
  box-shadow: inset 0 0 0 2px var(--brand-red),
              0 2px 5px rgba(0, 0, 0, 0.12);
}

.header-buttons .product-showcase-buy-button.login-btn:hover {
  background: linear-gradient(to top left, var(--brand-red-dark), var(--brand-red));
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--brand-red),
              0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* SVG icons inherit the text colour via fill="currentColor" */
.header-buttons .product-showcase-buy-button svg {
  margin-left: 0;
  flex-shrink: 0;
}

/* Labels: full by default, short on narrow screens (see functions.php) */
.header-buttons .btn-label-short { display: none; }
.header-buttons .btn-label-full,
.header-buttons .btn-label-short { white-space: nowrap; }

/* --- Mobile: two equal pills, nothing else ------------------------- */
@media only screen and (max-width: 600px) {

  .header-buttons {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: stretch;
    width: 100%;
  }

  /* Equal widths — content-sized buttons never match each other */
  .header-buttons > a,
  .header-buttons > .auth-button-wrapper {
    flex: 1 1 0;
    min-width: 0;
  }

  .header-buttons .auth-button-wrapper > a { width: 100%; }

  .header-buttons .product-showcase-buy-button {
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
    gap: 8px;
  }

  .header-buttons .btn-label-full  { display: none; }
  .header-buttons .btn-label-short { display: inline; }

  /* Trailing arrow is decoration; the width is better spent on the label */
  .header-buttons .product-showcase-buy-button svg:last-child { display: none; }

  /* Log Out is already on the account dashboard — drop the third item
     rather than let it wrap beside two pills. */
  .header-buttons .header-logout-link { display: none; }
}
