/* Using Google Fonts loaded via base.html.twig; local @font-face not needed now. */
/*
@font-face { ...existing code... }
@font-face { ...existing code... }
@font-face { ...existing code... }
*/

/* Design tokens (Google Fonts) */
:root{
  /* Set one site-wide font (switch to "PT Sans" to test it) */
  --font-body: "Open Sans";
  --font-headings: var(--font-body);
  --font-ui: var(--font-body);

  --fw-regular: 400;
  --fw-medium: 600;
  --fw-bold: 700;

  --btn-bg: #e8554e;
  --btn-bg-hover: #000;
  --btn-text: #fff;
  --btn-border: #e8554e;
  --btn-radius: .4rem;

  --accent: #e4572e;
}

/* To test PT Sans globally, temporarily switch the variable above to:
   --font-body: "PT Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
*/

/* Base typography overrides (override app.css defaults) */
body { font-family: var(--font-body) !important; line-height: 1.7; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-headings) !important; }

/* Heading sizes (override app.css) */
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
/* .home_posts_titles h2 {
    font-size: 2.625rem;
    font-weight: normal;
} */
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: .95rem; }
p { font-size: 1rem !important; }               /* e.g., 16px */
.entry-content p { font-size: 1rem !important; }

/* Match their larger breakpoint so your sizes win there too */
@media only screen and (min-width: 40.063em) {
  h1 { font-size: 2.4rem; }   /* app.css sets 2.75rem */
  h2 { font-size: 2rem; }     /* app.css sets 2.3125rem */
  h3 { font-size: 1.5rem; }   /* app.css sets 1.6875rem */
  h4 { font-size: 1.3rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  p { font-size: 1rem !important; }             /* set your desired size here too */
  .entry-content p { font-size: 1rem !important; }
}

/* Navigation text (app.css sets Fanwood on this selector) */
.top-bar-section ul li > a {
  font-family: var(--font-ui) !important;
  font-size: .875rem !important;
  font-weight: var(--fw-medium) !important;
}
@media only screen and (min-width: 40.063em) {
  .top-bar-section ul li > a {
    font-size: .95rem !important;
    font-weight: var(--fw-medium) !important;
  }
}

/* Mobile: add vertical space between collapsed navigation and the <hr> */
@media only screen and (max-width: 40em) {
  header.site-header .top-bar {
    margin-bottom: 1rem; /* space below menu */
  }
  header.site-header .stick > hr {
    margin-top: 0;       /* ensure no extra double space */
  }
}

/* Hero header title: Reddit Sans ExtraBold with Cabin Condensed fallback */
.home-header-bg .widget-title {
  font-family: "Reem Kufi" !important; /* "Reddit Sans"; var(--font-headings)*/
  letter-spacing: .03em;
}

.hero-widgets-wrap div.textwidget p {
  font-family: "PT Sans" !important;
}

/*changes on title and subtitle. font-size and weight*/
.hero-widgets-wrap h1.widget-title {
  color: #FFFFFF;
  font-weight: 700 !important;
  font-size: 7rem !important;
  margin-bottom: 0 !important;
}

.hero-widgets-wrap div.textwidget p {
  font-size: 1.7rem !important;
  line-height: 0.4 !important;
  margin: 0 0 5em 0 !important;
}

@media only screen and (max-width: 40em) {
  .hero-widgets-wrap h1.widget-title {
    font-size: 4rem !important;
  }
  .hero-widgets-wrap div.textwidget p {
    font-weight: 500 !important;
    font-size: 1.2rem !important;
    line-height: 0.4 !important;
  }
}
/* Buttons use the same single font */
.button,
button,
input[type="submit"],
a.button { font-family: var(--font-ui); font-weight: var(--fw-medium); }

/* Buttons (Foundation) */
.button,
button,
input[type="submit"],
a.button {
  background: var(--btn-bg);
  color: var(--btn-text) !important;
  border: 1px solid transparent !important;
  border-radius: var(--btn-radius) !important;
  text-transform: none; /* set to uppercase if desired */
  letter-spacing: .02em;
  padding: .7rem 1.1rem;
  line-height: 1.2;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
a.button:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-text) !important;
  border-color: var(--btn-bg-hover);
}
.button.is-transparent,
a.button.is-transparent {
  background: transparent;
  color: var(--btn-bg) !important;
  border: 1px solid var(--btn-border);
}
.button.is-transparent:hover,
a.button.is-transparent:hover {
  background: var(--btn-bg);
  color: var(--btn-text) !important;
}

/* Focus visibility */
.button:focus,
button:focus,
input[type="submit"]:focus,
a.button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Blog content padding on tiny screens */
@media only screen and (max-width: 40em) {
  article.post.type-post.hentry .entry-header,
  article.post.type-post.hentry .entry-content,
  article.post.type-post.hentry .entry-footer {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
}


/* Two-photo footer block */
.blog-bottom-photos { margin-top: 2.5rem; }
.blog-bottom-photos .blog-bottom-row { display: flex; flex-wrap: wrap; }
.blog-bottom-photos .blog-bottom-photo { margin: 0; }
.blog-bottom-photos .blog-bottom-photo img {
  border-radius: 4px;
}

/* Two-photo block: add spacing on small screens */
@media only screen and (max-width: 40em) {
  /* keep each photo full-width and add left/right padding */
  .blog-bottom-photos .large-6.columns {
    width: 100% !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  /* compensate column padding so content aligns with container edges */
  .blog-bottom-photos .blog-bottom-row {
    gap: 1rem; /* vertical gap between stacked photos */
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  /* fallback gap for older browsers without flex gap */
  .blog-bottom-photos .blog-bottom-photo { margin-bottom: 1rem; }
  .blog-bottom-photos .blog-bottom-row > .large-6.columns:last-child .blog-bottom-photo {
    margin-bottom: 0;
  }
}

/* Optional: adjust weights/italics site-wide */
strong,b { font-weight: 700; }
em,i { font-style: italic; }

/* Ensure buttons are never italic */
.button,
button,
input[type="submit"],
a.button {
  font-style: normal !important;
}

/* If buttons contain <em> or <i> (e.g., icons), reset them too */
.button em, .button i,
button em, button i,
a.button em, a.button i,
.button .fa, a.button .fa, button .fa {
  font-style: normal !important;
}

/* Langswitch button (label) font, not the dropdown list */
nav.top-bar .langswitch__btn,
nav.top-bar .langswitch__btn .langswitch__name {
  font-family: var(--font-ui) !important;   /* or "Open Sans", ... */
  font-weight: 600;                          /* tweak as needed */
  font-style: normal !important;             /* ensure not italic */
  letter-spacing: .02em;
}

/* If your langswitch button is an <a> in the menu: */
nav.top-bar .langswitch__li > a.langswitch__btn {
  font-family: var(--font-ui) !important;
  font-weight: 600;
  font-style: normal !important;
}

/* If you also show it in the hero area */
.langswitch--hero .langswitch__btn {
  font-family: var(--font-ui) !important;
  font-weight: 600;
  font-style: normal !important;
}

.langswitch__btn { 
  display: inline-flex !important; 
  align-items: center !important;
  gap: 6px !important;
  padding-top: 0.625rem !important;
  padding-right: 0.625rem !important;
  padding-bottom: 0.625rem !important;
  padding-left: 0.625rem !important;
  font-size: 0.9rem !important;
  color: #666666 !important;
}

/* Home widget button */
.home-posts-btn-wrap { margin-top: 1rem; }
.home-posts-btn {
  /* fallback to global button tokens if Frontmatter vars not set */
  background-color: var(--hp-btn-bg, var(--btn-bg));
  color: var(--hp-btn-text, var(--btn-text)) !important;
  /* border: 1px solid var(--hp-btn-bg, var(--btn-border)); */
  font-style: normal; /* ensure not italic */
}
.home-posts-btn:hover,
.home-posts-btn:focus {
  background-color: var(--hp-btn-bg, var(--btn-bg-hover));
  /* border-color: var(--hp-btn-bg, var(--btn-bg-hover)); */
  color: var(--hp-btn-text, var(--btn-text)) !important;
}
/* ==== Footer: stack text-5 and text-6 vertically and center ==== */
/* Target the inner footer row that contains the widget columns */
.footer-wrap footer > .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;              /* space between the two widgets */
}

/* Make each widget column full width and neutralize Foundation floats */
.footer-wrap footer > .row > .large-4.columns {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
}

/* Center widget content */
.footer-wrap #text-5,
.footer-wrap #text-6 {
  text-align: center;
  width: 100%;
}

.footer-wrap #text-5 .textwidget,
.footer-wrap #text-6 .textwidget {
  margin: 0 auto;
}

/* Optional: space out social icons */
.footer-wrap #text-6 .textwidget a {
  display: inline-block;
  margin: 0 .5rem;
}

/* Reduce extra bottom space if any */
.footer-wrap .site-info {
  text-align: center;
  margin-top: 2rem;
}

/* Responsive (no change needed, but ensure no overrides restore floats) */
@media (min-width: 40em) {
  .footer-wrap footer > .row > .large-4.columns {
    width: 100% !important;
  }
}


/* Custom YouTube thumbnail preview on HOME Page*/
.yt-preview {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  transition: background .2s;
}
.yt-preview:hover::after { background: rgba(0,0,0,.4); }
.yt-play {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.9);
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  padding: .4rem .9rem .55rem;
  border-radius: 50%;
  cursor: pointer;
  font-style: normal;
  transition: transform .2s, background .2s;
}
.yt-play:hover { transform: scale(1.08); background: #fff; }

/* Red play button style reused for videos template (.video-thumb__play) */
.video-thumb .video-thumb__play,
.video-card .video-thumb__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: clamp(56px, 8vw, 88px);
  height: clamp(56px, 8vw, 88px);
  border: 0;
  border-radius: 50%;
  background: #e53935;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(229,57,53,.35), 0 2px 6px rgba(0,0,0,.2);
  display: grid;
  place-items: center;
  padding: 0;
  color: transparent;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

/* Triangle play icon */
.video-thumb .video-thumb__play::before,
.video-card .video-thumb__play::before {
  content: "";
  display: block;
  margin-left: 2px;
  border-left: calc(clamp(56px, 8vw, 88px) * 0.33) solid #fff;
  border-top:  calc(clamp(56px, 8vw, 88px) * 0.20) solid transparent;
  border-bottom: calc(clamp(56px, 8vw, 88px) * 0.20) solid transparent;
}

/* Hover */
.video-thumb:hover .video-thumb__play,
.video-card .video-thumb:hover .video-thumb__play,
.video-thumb .video-thumb__play:hover,
.video-card .video-thumb__play:hover {
  background: #d32f2f;
  transform: translate(-50%,-50%) scale(1.06);
  box-shadow: 0 10px 24px rgba(211,47,47,.45), 0 3px 8px rgba(0,0,0,.25);
}

/* Focus */
.video-thumb .video-thumb__play:focus-visible,
.video-card .video-thumb__play:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(229,57,53,.7),
    0 8px 20px rgba(229,57,53,.35);
  background: #c62828;
}

/* Optional overlay on hover */
.video-thumb::after,
.video-card .video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background .18s ease;
}
.video-thumb:hover::after,
.video-card .video-thumb:hover::after {
  background: rgba(0,0,0,.15);
}