/*
Theme Name: Yottanext
Theme URI: https://yottanext.com
Author: Yottanext
Description: Bootstrap 5 theme with a tag bar, hero slider and latest-news grid. Rebuilt from archived markup. Add your own content in WordPress.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yottanext
*/

:root {
  --yn-bg: #000;
  --yn-accent: #ffc107;
  --yn-flare-1: #b8400b; /* rust orange, left edge */
  --yn-flare-2: #8a5010; /* golden brown, middle */
  --yn-flare-3: #3a1a05; /* dark brown, right edge */
  --yn-slide-tint: rgba(0, 0, 0, 0.8); /* dark overlay on slide images */
}

body {
  background: var(--yn-bg);
  color: #fff;
}

/* Orange-to-brown gradient used on the navbar and the news section */
.flare {
  background: linear-gradient(105deg, var(--yn-flare-1) 0%, var(--yn-flare-2) 50%, var(--yn-flare-3) 100%);
}

.btn-square {
  border-radius: 0;
}

.site-title {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.custom-logo {
  height: 48px;
  width: auto;
}

/* Slider */
/* Swiper keeps its default blue pagination and arrows, as on the original */
.swiper {
  width: 100%;
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  background-color: #111;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Dark tinted overlay on the slide image */
.swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yn-slide-tint);
}

.swiper-slide > * {
  position: relative;
  z-index: 1;
}

.swiper-slide h4 a {
  text-decoration: none;
  font-size: 1.75rem;
}

.swiper-slide h4 a:hover {
  text-decoration: underline;
}

/* News cards */
.card .post-thumbnail img {
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card .post-thumbnail img {
  border-radius: 0.25rem;
}

/* Footer */
.footer-widget-area .widget {
  margin-bottom: 1rem;
}

.footer-widget-area a:not(.wp-block-social-link-anchor) {
  color: var(--yn-accent);
}

/* Generic content (index.php) */
.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content a {
  color: var(--yn-accent);
}

/* No dividers, borders or separators inside footer widgets */
.footer-widget-area hr,
.footer-widget-area .wp-block-separator {
  display: none;
}

.footer-widget-area .widget,
.footer-widget-area .wp-block-group,
.footer-widget-area .wp-block-columns,
.footer-widget-area .wp-block-column {
  border: 0 !important;
  box-shadow: none !important;
}
