/*
Theme Name: My Freebie Finder
Theme URI: https://myfreebiefinder.co.uk/
Author: My Freebie Finder Team
Author URI: https://myfreebiefinder.co.uk/
Description: A vibrant, conversion-focused WordPress theme tailored for freebies, samples, and affiliate marketing. Designed for content-rich catalogues with built-in promo highlights, newsletter capture, and clear navigation.
Version: 1.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myfreebiefinder
Tags: blog, news, grid-layout, responsive-layout, custom-logo, custom-menu
*/

/* Root variables */
:root {
  --mff-primary: #ff5a88;
  --mff-primary-dark: #e64173;
  --mff-primary-bright: #ff7ea4;
  --mff-primary-pop: #ff2f71;
  --mff-accent: #ffce3b;
  --mff-dark: #1c1b2f;
  --mff-light: #ffffff;
  --mff-muted: #6a6c83;
  --mff-bg: #f3f6fb;
  --mff-success: #2cc9ad;
  --mff-radius: 18px;
  --mff-transition: 0.25s ease;
  font-size: 16px;

}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mff-dark);
  background: var(--mff-bg);
  font-family: "Poppins", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:hover,
a:focus {
  color: var(--mff-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--mff-radius) - 6px);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Layout */
.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.top-bar {
  background: var(--mff-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.45rem 0 0;
}

.top-navigation .top-menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-navigation a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.top-navigation a:hover,
.top-navigation a:focus {
  color: var(--mff-accent);
}

@media (max-width: 720px) {
  .top-bar .container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .top-navigation .top-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

.site-header {
  background: var(--mff-light);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(30, 27, 68, 0.08);
}

.site-header .branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header .branding .site-title {
  display: inline-flex;
  align-items: center;
}

.site-header .branding .site-logo {
  display: block;
  max-height: 60px;
  width: auto;
  border-radius: 18px;
  filter: drop-shadow(0 12px 28px rgba(57, 37, 113, 0.18));
}

.site-header .branding .tagline {
  font-size: 0.85rem;
  color: var(--mff-muted);
  margin: 0;
  line-height: 1.4;
}

.site-header .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 0 0.85rem;
}

.site-main {
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.site-main--inner {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.content-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.content-layout__main {
  display: grid;
  gap: clamp(1.75rem, 3.6vw, 2.5rem);
}

.content-layout__sidebar {
  display: grid;
  gap: clamp(1.35rem, 2.8vw, 2rem);
  align-content: start;
}

.content-layout__sidebar #secondary {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.9rem);
}

@media (min-width: 1024px) {
  .content-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .content-layout__main {
    grid-column: span 8;
  }

  .content-layout__sidebar {
    grid-column: span 4;
  }
}

.main-navigation ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-weight: 600;
  color: var(--mff-dark);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--mff-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--mff-dark);
}

.content-panel {
  background: var(--mff-light);
  border-radius: calc(var(--mff-radius) + 8px);
  box-shadow: 0 24px 56px rgba(30, 27, 68, 0.12);
  padding: clamp(1.85rem, 3.5vw, 2.75rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.content-panel > :first-child {
  margin-top: 0;
}

.content-panel > :last-child {
  margin-bottom: 0;
}

.content-panel .entry-header,
.content-panel .page-header {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.content-panel .entry-title,
.content-panel .page-title {
  margin: 0;
}

.content-panel .entry-content,
.content-panel .page-content {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.content-panel--collection .page-header {
  text-align: center;
}

.content-panel--collection .archive-description {
  color: var(--mff-muted);
}

.content-panel--collection .page-header > * {
  margin: 0;
}

.content-panel--collection .freebies-grid {
  margin: 0;
}

.content-panel--collection .navigation.pagination {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.no-results.not-found {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.error-404 {
  text-align: center;
}

.error-404 .page-content {
  display: grid;
  gap: 1.5rem;
}

.hero {
  display: grid;
  gap: 2rem;
  padding: 4rem 0;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 90, 136, 0.08), rgba(31, 215, 193, 0.12));
  border-radius: 32px;
  margin: 2rem auto 3rem;
  width: min(1080px, 92vw);
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
}

.hero-content h1 {
  font-size: clamp(2.25rem, 5vw, 3.3rem);
  margin-bottom: 1rem;
}

.hero-content p {
  margin-bottom: 2rem;
  color: var(--mff-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--mff-transition), box-shadow var(--mff-transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--mff-primary), var(--mff-primary-dark));
  color: var(--mff-light);
  box-shadow: 0 18px 30px rgba(255, 90, 136, 0.28);
}

.btn-outline {
  background: var(--mff-light);
  color: var(--mff-primary);
  border: 2px solid rgba(255, 90, 136, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--mff-primary-bright), var(--mff-primary-pop));
  box-shadow: 0 26px 38px rgba(255, 90, 136, 0.36);
}

.btn-outline:hover,
.btn-outline:focus {
  color: var(--mff-light);
  border-color: transparent;
  background: linear-gradient(135deg, var(--mff-primary), var(--mff-primary-dark));
  box-shadow: 0 18px 30px rgba(255, 90, 136, 0.24);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.8rem;
}

.section-title a {
  font-size: 0.95rem;
  font-weight: 600;
}

.latest-freebies {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.latest-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.latest-layout.has-sidebar {
  align-items: start;
}

@media (min-width: 900px) {
  .latest-layout.has-sidebar {
    grid-template-columns: minmax(220px, 0.3fr) minmax(0, 0.7fr);
  }
}

.freebies-column {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-content: start;
}

.freebies-grid {
  grid-template-columns: 1fr;
}

.freebies-grid {
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 1.75rem);
}

.home-sidebar {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-content: start;
  padding-bottom: clamp(1.25rem, 2.8vw, 1.9rem);
}

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

.home-sidebar .widget,
.home-newsletter {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(30, 27, 44, 0.08);
  box-shadow: 0 16px 34px rgba(30, 27, 44, 0.12);
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  margin: 0;
}

.home-sidebar .widget .widget-title {
  color: var(--mff-heading);
}

.home-sidebar .widget .widget-title::after {
  background: var(--mff-primary);
}

.home-newsletter {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.2rem);
}

.home-newsletter h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
}

.home-newsletter p {
  margin: 0;
  color: var(--mff-muted);
}

.home-newsletter .newsletter-form {
  display: grid;
  gap: 0.75rem;
}

.home-newsletter .newsletter-form input[type="email"] {
  border-radius: 999px;
  border: 1px solid rgba(30, 27, 44, 0.12);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  min-width: 0;
}

.home-newsletter .newsletter-form button {
  justify-self: start;
}

.home-newsletter--full {
  width: min(640px, 90vw);
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  justify-items: center;
  text-align: center;
}

.home-newsletter--full .newsletter-form {
  width: 100%;
}

.home-newsletter--full .newsletter-form input[type="email"] {
  width: 100%;
}

.home-newsletter--full .newsletter-form button {
  justify-self: center;
}

@media (max-width: 600px) {
  .home-newsletter .newsletter-form button {
    justify-self: stretch;
  }
}

.freebie-card {
  position: relative;
  z-index: 0;
  background: #ffffff;
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  border-radius: 22px;
  border: 1px solid rgba(30, 27, 44, 0.08);
  box-shadow: 0 18px 40px rgba(30, 27, 44, 0.12);
  display: grid;
  gap: clamp(0.75rem, 1.4vw, 1.1rem) clamp(1.1rem, 1.8vw, 1.6rem);
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items: start;
  transition: transform var(--mff-transition), box-shadow var(--mff-transition), background var(--mff-transition);
  height: 100%;
}

.freebie-card:hover,
.freebie-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(30, 27, 44, 0.16);
  background: linear-gradient(135deg, rgba(255, 90, 136, 0.05), rgba(31, 215, 193, 0.08));
  z-index: 2;
}

.freebie-card .freebie-thumb {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #f4f5fb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  aspect-ratio: 4 / 3;
}

.freebie-card .freebie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.freebie-body {
  display: grid;
  gap: clamp(0.65rem, 1.2vw, 0.95rem);
  align-content: start;
}

.freebie-header {
  display: grid;
  gap: 0.5rem;
}

.freebie-categories {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.freebie-categories a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(86, 40, 238, 0.12);
  color: var(--mff-primary);
}

.freebie-summary {
  display: grid;
  gap: 0.55rem;
}

.freebie-excerpt {
  margin: 0;
  color: var(--mff-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.freebie-read-more {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.freebie-read-more::after {
  content: "→";
  font-size: 1rem;
  transition: transform var(--mff-transition);
}

.freebie-read-more:hover::after,
.freebie-read-more:focus::after {
  transform: translateX(3px);
}

.freebie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--mff-muted);
}

.freebie-meta .freebie-expiry {
  color: var(--mff-primary);
  font-weight: 600;
}

.freebie-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--mff-primary), var(--mff-primary-bright));
  color: var(--mff-light);
  text-align: center;
  transition: transform var(--mff-transition), box-shadow var(--mff-transition);
  box-shadow: 0 18px 30px rgba(255, 90, 136, 0.28);
  align-self: start;
}

.freebie-cta:hover,
.freebie-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 26px 40px rgba(255, 90, 136, 0.38);
  background: linear-gradient(135deg, var(--mff-primary-bright), var(--mff-primary-pop));
}

@media (max-width: 860px) {
  .freebie-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .freebie-card .freebie-thumb {
    aspect-ratio: 16 / 9;
  }

  .freebie-cta {
    justify-self: stretch;
  }
}

@media (min-width: 720px) {
  .freebie-card {
    min-height: clamp(20rem, 26vw, 22.5rem);
  }
}

@media (min-width: 960px) {
  .latest-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
  }
}

.infinite-scroll-trigger {
  margin: 3rem auto 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: relative;
}

.infinite-scroll-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(86, 40, 238, 0.18);
  border-top-color: var(--mff-primary);
  animation: myff-spin 1s linear infinite;
  opacity: 0;
}

.infinite-scroll-trigger[data-state="loading"]::after {
  opacity: 1;
}

.infinite-scroll-trigger[data-state="complete"]::after,
.infinite-scroll-trigger[data-state="error"]::after {
  animation: none;
  border-color: rgba(30, 27, 44, 0.12);
  opacity: 1;
}

.newsletter {
  background: linear-gradient(135deg, #1fd7c1, #11a1d8);
  border-radius: 32px;
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  margin: 4rem auto;
  max-width: 880px;
  color: var(--mff-light);
  position: relative;
  overflow: hidden;
}

.newsletter::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.newsletter h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  position: relative;
  z-index: 1;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0.75rem auto 2rem;
  position: relative;
  z-index: 1;
}

.newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter input[type="email"] {
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  box-shadow: none;
}

.site-footer {
  background: linear-gradient(135deg, #1fd7c1, #11a1d8);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 3rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 206, 59, 0.18));
  opacity: 0.25;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--mff-light);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.widget-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--mff-light);
  position: relative;
}

.widget-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--mff-accent);
  margin-top: 0.5rem;
  border-radius: 999px;
}

.widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.widget-area ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.post-card,
.post,
.page {
  background: var(--mff-light);
  padding: 0;
  border-radius: var(--mff-radius);
  box-shadow: 0 18px 40px rgba(42, 35, 73, 0.08);
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--mff-muted);
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--mff-light);
  box-shadow: 0 12px 24px rgba(42, 35, 73, 0.08);
}

.pagination .current {
  background: var(--mff-primary);
  color: var(--mff-light);
}

/* Widgets */
.widget_search input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(115, 116, 140, 0.25);
}

.widget_search input[type="submit"] {
  margin-top: 0.75rem;
  width: 100%;
}

/* Forms */
form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(115, 116, 140, 0.25);
}

form button,
form input[type="submit"] {
  background: var(--mff-primary);
  color: var(--mff-light);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

form button:hover,
form input[type="submit"]:hover {
  background: var(--mff-primary-dark);
}

blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 5px solid var(--mff-primary);
  background: rgba(255, 90, 136, 0.08);
}

.single-freebie {
  background: var(--mff-light);
  border-radius: calc(var(--mff-radius) + 8px);
  box-shadow: 0 24px 60px rgba(42, 35, 73, 0.12);
  padding: clamp(2rem, 4vw, 3.25rem);
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  width: min(100%, 1080px);
}

.single-freebie__layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.single-freebie__sidebar {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  background: linear-gradient(135deg, rgba(255, 90, 136, 0.12), rgba(44, 201, 173, 0.18));
  border-radius: calc(var(--mff-radius) + 6px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 18px 42px rgba(28, 27, 47, 0.12);
  max-width: 360px;
  width: 100%;
}

.single-freebie__sidebar .btn {
  width: 100%;
  justify-content: center;
}

.single-freebie__media img {
  width: 100%;
  border-radius: calc(var(--mff-radius) + 4px);
  box-shadow: 0 18px 38px rgba(28, 27, 47, 0.16);
}

.single-freebie__expiry {
  color: var(--mff-accent);
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}

.single-freebie__main {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.single-freebie__header {
  display: grid;
  gap: 1.25rem;
}

.single-freebie__title {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  line-height: 1.2;
}

.single-freebie__excerpt {
  font-size: 1.05rem;
  margin: 0;
  color: var(--mff-muted);
}

.single-freebie__body {
  display: grid;
  gap: 1.75rem;
}

.single-freebie__body > *:first-child {
  margin-top: 0;
}

.single-freebie__body > *:last-child {
  margin-bottom: 0;
}

.single-freebie__footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.share-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.share-strip a {
  font-weight: 600;
  color: var(--mff-primary);
}

.post-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 4rem;
}

@keyframes myff-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .main-navigation ul {
    position: absolute;
    top: 80px;
    right: 0;
    background: var(--mff-light);
    flex-direction: column;
    width: min(320px, 86vw);
    padding: 1.5rem;
    border-radius: var(--mff-radius);
    box-shadow: 0 24px 50px rgba(42, 35, 73, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: var(--mff-transition);
  }

  .main-navigation.toggled ul {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .newsletter form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    font-size: 15px;
  }

  .freebie-card {
    padding: 1rem;
  }

  .post-card,
  .post,
  .page {
    padding: 0;
  }
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--mff-dark);
  color: var(--mff-light);
  padding: 0.75rem 1rem;
  z-index: 1000;
  transition: top var(--mff-transition);
}

.skip-link:focus {
  top: 10px;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.alignwide {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

@media (min-width: 880px) {
  .single-freebie__layout {
    grid-template-columns: minmax(240px, 0.32fr) minmax(0, 0.68fr);
    align-items: start;
  }

  .single-freebie__sidebar {
    position: sticky;
    top: clamp(5.5rem, 10vh, 7rem);
  }

  body.admin-bar .single-freebie__sidebar {
    top: clamp(7.25rem, 14vh, 8.5rem);
  }
}
