/**
 * Utbynäs SK — Blue-Yellow Sports Club Web System v1.1.0
 *
 * Bilder: stora foton konverterade till WebP. Kvar som PNG: sponsorlogotyper + logo.png.
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue-deep: #0A1F44;
  --blue-primary: #123A7A;
  --blue-bright: #1F5FBF;
  --yellow-primary: #F5C400;
  --yellow-bright: #FFD84D;
  --white: #FFFFFF;
  --light-gray: #F2F4F7;
  --medium-gray: #6B7280;
  --dark-gray: #1F2937;
  --black: #0A0A0A;

  --hero-overlay: linear-gradient(180deg, rgba(10,31,68,0.75) 0%, rgba(10,31,68,0.95) 100%);
  --blue-section-gradient: linear-gradient(90deg, #0A1F44 0%, #1F5FBF 100%);
  --accent-stripe: linear-gradient(90deg, #F5C400 0%, #FFD84D 100%);
  --card-overlay: rgba(18, 58, 122, 0.9);

  --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --display-xl: clamp(48px, 8vw, 96px);
  --display-l: clamp(36px, 5vw, 64px);
  --heading-m: clamp(24px, 3vw, 36px);
  --heading-s: clamp(18px, 2.5vw, 24px);
  --body-size: 17px;
  --small-size: 14px;

  --max-width: 1260px;
  --gutter: 24px;
  --section-spacing: clamp(60px, 8vw, 120px);
  --card-spacing: 28px;
  --nav-height: 80px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: 200ms ease-in-out;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  color: var(--blue-deep);
  background: var(--white);
  margin: 0;
  min-height: 100vh;
}

/* Typography */
.display-xl {
  font-family: var(--font-heading);
  font-size: var(--display-xl);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.display-l {
  font-family: var(--font-heading);
  font-size: var(--display-l);
  line-height: 1;
  text-transform: uppercase;
}

.heading-m { font-size: var(--heading-m); font-weight: 700; line-height: 1.2; }
.heading-s { font-size: var(--heading-s); font-weight: 700; line-height: 1.3; }
.text-small { font-size: var(--small-size); line-height: 1.4; }

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 100;
  transition: background var(--transition);
}

.nav.scrolled { background: rgba(10, 31, 68, 0.98); }

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  height: 48px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  text-transform: capitalize;
  transition: color var(--transition);
}

.nav__link:hover { color: var(--yellow-primary); }

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__link--trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--blue-primary);
  list-style: none;
  margin: 0;
  padding: 12px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 10;
}

.nav__dropdown:hover .nav__submenu,
.nav__dropdown.open .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav__sublink {
  display: block;
  padding: 10px 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

.nav__sublink:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow-primary);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

.btn--primary {
  background: var(--yellow-primary);
  color: var(--blue-deep);
}

.btn--primary:hover { background: var(--yellow-bright); }

.btn--secondary {
  background: var(--blue-bright);
  color: var(--white);
}

.btn--secondary:hover { filter: brightness(1.1); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--gutter)) var(--gutter) var(--gutter);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--blue-deep) url('images/hero.webp') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero__content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__headline { color: var(--white); margin: 0 0 16px; }
.hero__tagline { color: var(--white); opacity: 0.95; margin: 0 0 24px; font-size: var(--heading-s); }
.hero__intro { color: var(--white); opacity: 0.9; margin: 0 0 32px; max-width: 42ch; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: var(--small-size);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.hero__scroll:hover {
  color: var(--yellow-primary);
}

.hero__scroll-icon {
  width: 28px;
  height: 28px;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Image Section */
.img-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--section-spacing) var(--gutter);
}

.img-section__bg {
  position: absolute;
  inset: 0;
  background: var(--blue-deep) url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=1920&q=80') center/cover no-repeat;
}

.img-section__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.img-section__content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  color: var(--white);
}

/* Sections */
.section {
  padding: var(--section-spacing) var(--gutter);
}

.section--light { background: var(--white); }
.section--gray { background: var(--light-gray); }
.section--nyheter {
  background: linear-gradient(180deg, #0A1F44 0%, #123a6e 50%, #0A1F44 100%);
}

/* Nyheter-sidan – en nyhet per horisontell rad (text vänster, bild höger) */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.news-row:first-child {
  padding-top: 0;
}

.news-row:last-of-type {
  border-bottom: none;
}

.news-row__date {
  display: block;
  font-size: var(--small-size);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

.news-row__title {
  margin: 0 0 12px;
  font-size: var(--heading-m);
  color: var(--white);
  line-height: 1.25;
}

.news-row__excerpt {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 50ch;
}

.news-row__link {
  display: inline-block;
}

.news-row__image {
  overflow: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.news-row__image img {
  width: 100%;
  max-width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.news-row__cta {
  display: inline-block;
  margin-top: 32px;
  border: 1px solid var(--yellow-primary);
  background: transparent;
  color: var(--yellow-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
}

.news-row__cta:hover {
  background: var(--yellow-primary);
  color: var(--blue-deep);
}

@media (max-width: 900px) {
  .news-row {
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .news-row__image {
    order: -1;
  }

  .news-row__image img {
    height: 240px;
  }
}
.section--blue {
  background: var(--blue-section-gradient);
  color: var(--white);
}

.section__title {
  text-align: center;
  margin: 0 0 48px;
  text-transform: uppercase;
}

.container { max-width: var(--max-width); margin: 0 auto; }

/* Value Cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--card-spacing);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--blue-section-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow-primary);
  font-size: 1.75rem;
}

.value-card__title { margin: 0 0 8px; color: var(--blue-deep); }
.value-card__text { margin: 0; color: var(--dark-gray); }

/* Activity Cards */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gutter);
}

.activity-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: transform var(--transition);
}

.activity-card:hover { transform: translateY(-4px); }

.activity-card__img {
  position: absolute;
  inset: 0;
  background: var(--blue-primary) center/cover no-repeat;
}

.activity-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--card-overlay);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
}

.activity-card__title {
  color: var(--white);
  margin: 0;
  font-size: var(--heading-s);
}

.activity-card__meta {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--small-size);
  margin: 4px 0 0;
}

/* CTA Block */
.cta-block {
  background: var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 48px;
  text-align: center;
  color: var(--white);
}

.cta-block__title { margin: 0 0 16px; }
.cta-block__text { margin: 0 0 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-block__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sports Grid (Våra idrotter) */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.sport-card {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--blue-primary) center/cover no-repeat;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.sport-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
  pointer-events: none;
}

.sport-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.sport-card--fotboll { background-image: url('images/sports/fotboll.1.webp'); }
.sport-card--innebandy { background-image: url('images/sports/innebandy.1.webp'); }
.sport-card--padel { background-image: url('images/sports/padel.3.webp'); }

.sport-card__img {
  aspect-ratio: 16/10;
  opacity: 0;
  pointer-events: none;
}

.sport-card__content {
  position: relative;
  padding: var(--gutter);
}

.sport-card__title {
  margin: 0 0 8px;
  font-size: var(--heading-m);
  color: var(--white);
}

.sport-card__desc {
  margin: 0 0 12px;
  font-size: var(--small-size);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.sport-card__link {
  font-weight: 600;
  font-size: var(--small-size);
  color: var(--yellow-primary);
}

.sport-card:hover .sport-card__link { color: var(--white); }

.sport-card__badge {
  display: inline-block;
  font-size: var(--small-size);
  font-weight: 600;
  background: var(--yellow-primary);
  color: var(--blue-deep);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  vertical-align: middle;
}

/* Om Utbynäs SK – fullbredd, direkt på sidan med mörkblå overlay */
.about-block {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--blue-deep);
  padding: var(--section-spacing) 0;
}

.about-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 31, 68, 0.96) 0%, rgba(10, 31, 68, 0.88) 50%, rgba(18, 58, 122, 0.6) 100%);
  z-index: 1;
}

.about-block__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 480px;
}

.about-block__text {
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(48px, 6vw, 80px) max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
}

.about-block__title {
  margin: 0 0 16px;
  color: var(--white);
}

.about-block__intro {
  font-size: var(--heading-s);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.4;
}

.about-block__text p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.about-block__text p strong {
  color: var(--yellow-primary);
}

.about-block__text .btn {
  margin-top: 12px;
}

.about-block__image {
  position: relative;
  min-height: 480px;
}

.about-block__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(10, 31, 68, 0.3), transparent 40%);
  pointer-events: none;
}

.about-block__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .about-block__content {
    grid-template-columns: 1fr;
  }
  .about-block__image {
    min-height: auto;
    order: -1;
    padding: 0 var(--gutter);
  }
  .about-block__img {
    height: 280px;
    border-radius: var(--radius-md);
  }
  .about-block__image::after {
    inset: 0 var(--gutter);
    border-radius: var(--radius-md);
    background: linear-gradient(to top, rgba(10, 31, 68, 0.5), transparent);
  }
  .about-block__text {
    padding: 40px var(--gutter) 56px;
  }
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  max-width: 900px;
  margin: 0 auto;
}

.news-grid--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
}

.news-grid--archive {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
}

.news-card--archive {
  flex-direction: column;
  padding: 0;
}

.news-card--archive .news-card__thumb {
  width: 100%;
  min-width: unset;
  height: 160px;
  border-radius: 0;
}

.news-card--archive .news-card__content {
  padding: var(--gutter);
}

.news-archive {
  text-align: center;
  margin-top: 32px;
}

/* News Cards */

.news-card {
  display: flex;
  gap: 20px;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--gutter);
  overflow: hidden;
  transition: transform var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.news-grid--three .news-card {
  flex-direction: column;
  padding: 0;
}

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

.news-card__thumb {
  min-width: 120px;
  height: 90px;
  background: var(--blue-bright);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}

.news-grid--three .news-card__thumb {
  width: 100%;
  min-width: unset;
  height: 260px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.2);
}

.news-grid--three .news-card__content {
  padding: var(--gutter);
}

.news-card--mobile-only {
  display: none;
}

.news-card__content { flex: 1; min-width: 0; }
.news-card__meta { font-size: var(--small-size); opacity: 0.9; }
.news-card__title { margin: 4px 0; font-size: var(--heading-s); color: var(--white); }
.news-card__excerpt { margin: 0; font-size: var(--small-size); opacity: 0.95; }

/* Sponsor Grid */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.sponsor-card {
  background: var(--light-gray);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.sponsor-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-card);
}

.sponsor-grid--main {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.sponsor-card--link {
  text-decoration: none;
  color: var(--blue-deep);
}

.sponsor-card--link:hover {
  color: var(--blue-primary);
}

.sponsor-card__name {
  font-weight: 600;
  font-size: var(--small-size);
}

.sponsor-archive {
  text-align: center;
  margin-top: 32px;
}

/* Huvudsponsorer – rullande marquee */
.sponsor-marquee {
  overflow: hidden;
  margin: 24px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.sponsor-marquee__track {
  display: flex;
  gap: var(--gutter);
  width: max-content;
  animation: sponsor-marquee 40s linear infinite;
}

.sponsor-marquee__track:hover {
  animation-play-state: paused;
}

@keyframes sponsor-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sponsor-marquee__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 120px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  color: var(--blue-deep);
  transition: transform var(--transition), box-shadow var(--transition);
}

a.sponsor-marquee__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--yellow-primary);
}

.sponsor-marquee__item--no-link {
  cursor: default;
}

.sponsor-marquee__logo {
  width: 64px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 8px;
}

.sponsor-marquee__name {
  font-size: var(--small-size);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Sponsor logo boxes (sponsorer-sidan) */
.sponsor-section {
  margin-bottom: 48px;
}

.sponsor-section__title {
  margin: 0 0 12px;
  color: var(--blue-deep);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--yellow-primary);
}

.sponsor-section__info {
  margin: 0 0 24px;
  font-size: var(--small-size);
  color: var(--medium-gray);
  max-width: 640px;
}

.sponsor-grid--logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
}

.sponsor-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 120px;
  text-decoration: none;
  color: var(--blue-deep);
  transition: transform var(--transition), box-shadow var(--transition);
}

a.sponsor-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--yellow-primary);
}

.sponsor-box--no-link {
  cursor: default;
}

.sponsor-box__logo {
  width: 80px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
}

.sponsor-box__name {
  font-size: var(--small-size);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.sponsor-box__name small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--medium-gray);
}

/* När bild inte finns: visa endast namn */
.sponsor-box__logo[src] {
  display: block;
}

.sponsor-box:not(.sponsor-box--no-logo):has(.sponsor-box__logo:not([src])) .sponsor-box__name,
.sponsor-box .sponsor-box__logo[src=""] + .sponsor-box__name {
  margin-top: 0;
}

/* Lagsponsorer */
.sponsor-lag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.sponsor-lag-card {
  background: var(--light-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.sponsor-lag-card__team {
  margin: 0 0 16px;
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sponsor-lag-card .sponsor-box {
  margin: 0 auto;
}

/* Värdefulla samarbeten - med roll */
.sponsor-box--partner .sponsor-box__role {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--medium-gray);
  margin-top: 2px;
}

.sponsor-box--partner {
  min-height: 140px;
}

.sponsor-grid--partners .sponsor-box {
  min-height: 140px;
}

/* Offer card (Nordic Wellness etc.) */
.offer-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.offer-card--nordic {
  background: linear-gradient(135deg, #0A1F44 0%, #1a3a6e 50%, #0d2d5a 100%);
  border: 1px solid rgba(245, 196, 0, 0.3);
  color: var(--white);
}

.offer-card__badge {
  display: inline-block;
  background: var(--yellow-primary);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  margin: 20px 20px 0;
  border-radius: 20px;
}

.offer-card__content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 24px 28px;
}

.offer-card__logo-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.offer-card__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.offer-card__logo-fallback {
  display: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-deep);
  text-align: center;
}

.offer-card__logo-wrap img[style*="display: none"] + .offer-card__text,
.offer-card__logo[src]:empty ~ .offer-card__text {
  flex: 1;
}

.offer-card__text {
  flex: 1;
  min-width: 0;
}

.offer-card__title {
  margin: 0 0 8px;
  font-size: var(--heading-s);
  color: var(--yellow-primary);
}

.offer-card__desc {
  margin: 0 0 12px;
  font-size: var(--small-size);
  line-height: 1.5;
  opacity: 0.9;
}

.offer-card__link {
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--yellow-primary);
}

@media (max-width: 640px) {
  .offer-card__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Nordic Wellness-sida */
.page-hero--nordic {
  background: linear-gradient(180deg, #0A1F44 0%, #1a3a6e 100%);
}

.offer-intro {
  margin: 0 0 32px;
  font-size: var(--body-size);
  line-height: 1.6;
}

.offer-contact {
  margin: 16px 0 0;
}

.offer-contact__link {
  color: var(--blue-bright);
  text-decoration: none;
}

.offer-contact__link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--blue-deep);
  color: var(--white);
  padding: 80px var(--gutter) 32px;
}

.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.footer__column h4 {
  font-size: var(--heading-s);
  text-transform: uppercase;
  margin: 0 0 16px;
}

.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--yellow-primary); }

.footer__newsletter {
  background: var(--blue-primary);
  padding: 32px;
  border-radius: var(--radius-md);
}

.footer__newsletter h4 { margin: 0 0 16px; }
.footer__newsletter p { margin: 0 0 16px; opacity: 0.9; }

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--small-size);
  opacity: 0.8;
}

/* ===== Medlemsavgifter-sida ===== */
.page-hero {
  padding: calc(var(--nav-height) + 48px) var(--gutter) 48px;
  background: var(--light-gray);
}

.page-hero__content {
  max-width: 720px;
  margin: 0 auto;
}

.page-hero__back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--small-size);
  transition: color var(--transition);
}

.page-hero__back:hover { color: var(--blue-primary); }

.page-hero__title {
  margin: 0 0 16px;
  color: var(--blue-deep);
}

.page-hero__intro {
  margin: 0;
  font-size: var(--heading-s);
  line-height: 1.5;
  color: var(--dark-gray);
}

.page-content {
  padding: var(--section-spacing) var(--gutter);
}

.fees-section {
  margin-bottom: 48px;
}

.fees-section__title {
  margin: 0 0 20px;
  color: var(--blue-deep);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--yellow-primary);
}

.fees-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fees-roles li {
  padding: 12px 16px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: var(--small-size);
}

.fees-section--highlight {
  background: var(--light-gray);
  padding: var(--gutter);
  border-radius: var(--radius-md);
}

.fees-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fees-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fees-list li:last-child { border-bottom: none; }

.fees-list__label {
  flex: 1;
}

.fees-list__label--emph {
  font-weight: 700;
  color: var(--blue-deep);
}

.fees-list__value {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--blue-primary);
}

.fees-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fees-info li {
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid var(--light-gray);
}

.fees-info li:last-child { border-bottom: none; }

.fees-info li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--yellow-primary);
  font-weight: 700;
}

.fees-info--white li { color: var(--white); }
.fees-info--white li::before { color: var(--yellow-primary); }

.fees-section--blue {
  background: var(--blue-section-gradient);
  color: var(--white);
  padding: var(--gutter);
  border-radius: var(--radius-md);
  margin-bottom: 48px;
}

.fees-section--blue .fees-section__title {
  color: var(--white);
  border-bottom-color: var(--yellow-primary);
}

.fees-notice {
  margin: 20px 0 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  font-size: var(--small-size);
}

.age-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gutter);
}

.age-group-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  padding: var(--gutter);
  transition: box-shadow var(--transition);
}

.age-group-card:hover {
  box-shadow: var(--shadow-card);
}

.age-group-card__title {
  margin: 0 0 12px;
  font-size: var(--heading-s);
  color: var(--blue-deep);
}

.age-group-card__text {
  margin: 0;
  font-size: var(--small-size);
  color: var(--dark-gray);
  line-height: 1.5;
}

.fees-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--light-gray);
}

/* Föreningen idag – mörkblå overlay, text vänster, bilder höger */
.page-hero--foreningen,
.page-hero--kontakt,
.page-hero--nyheter {
  background: linear-gradient(180deg, #0A1F44 0%, #0d284d 100%);
}

.page-hero--foreningen .page-hero__back,
.page-hero--kontakt .page-hero__back,
.page-hero--nyheter .page-hero__back { color: rgba(255, 255, 255, 0.8); }
.page-hero--foreningen .page-hero__back:hover,
.page-hero--kontakt .page-hero__back:hover,
.page-hero--nyheter .page-hero__back:hover { color: var(--yellow-primary); }
.page-hero--foreningen .page-hero__title,
.page-hero--kontakt .page-hero__title,
.page-hero--nyheter .page-hero__title { color: var(--white); }
.page-hero--foreningen .page-hero__intro,
.page-hero--kontakt .page-hero__intro,
.page-hero--nyheter .page-hero__intro { color: rgba(255, 255, 255, 0.9); }

/* Kontakt-sidan – mörkblå overlay med plats för bild */
.kontakt-overlay {
  background: linear-gradient(180deg, #0A1F44 0%, #123a6e 50%, #0A1F44 100%);
  padding: var(--section-spacing) var(--gutter);
  min-height: 50vh;
}

.kontakt-overlay__inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.kontakt-overlay__heading {
  margin: 1.75em 0 0.5em;
  font-size: var(--heading-s);
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow-primary);
}

.kontakt-overlay__heading:first-of-type {
  margin-top: 0;
}

.kontakt-overlay__list {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.kontakt-overlay__list li {
  margin-bottom: 0.35em;
}

.kontakt-overlay__list--narrow {
  margin-bottom: 0;
}

.kontakt-overlay__link {
  color: var(--yellow-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.kontakt-overlay__link:hover {
  color: var(--yellow-bright);
  text-decoration: underline;
}

.kontakt-overlay__image {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.kontakt-overlay__img {
  width: 100%;
  min-height: 420px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
}

@media (max-width: 900px) {
  .kontakt-overlay__inner {
    grid-template-columns: 1fr;
  }
  .kontakt-overlay__image {
    order: -1;
    position: static;
  }
  .kontakt-overlay__img {
    min-height: 380px;
    max-height: none;
  }
}

.foreningen-overlay {
  background: linear-gradient(180deg, #0A1F44 0%, #123a6e 50%, #0A1F44 100%);
  padding: var(--section-spacing) var(--gutter);
  min-height: 50vh;
}

.foreningen-overlay__inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.foreningen-overlay__text {
  line-height: 1.7;
}

.foreningen-overlay__text p {
  margin: 0 0 1.25em;
  color: rgba(255, 255, 255, 0.92);
}

.foreningen-overlay__text p strong {
  color: var(--yellow-primary);
}

.foreningen-overlay__text p em {
  color: rgba(255, 255, 255, 0.95);
}

.foreningen-overlay__heading {
  margin: 2em 0 0.75em;
  font-size: var(--heading-s);
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow-primary);
}

.foreningen-overlay__heading:first-of-type {
  margin-top: 0;
}

.foreningen-overlay__cta {
  margin-top: 2em;
  padding-top: 1.5em;
}

.foreningen-overlay__images {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.foreningen-overlay__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

@media (max-width: 900px) {
  .foreningen-overlay__inner {
    grid-template-columns: 1fr;
  }
  .foreningen-overlay__images {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .foreningen-overlay__img {
    flex: 1 1 200px;
    min-width: 140px;
  }
}

/* Legacy article content (för andra sidor som använder article-content) */
.container--narrow {
  max-width: 720px;
}

.article-content {
  line-height: 1.7;
}

.article-content p {
  margin: 0 0 1.25em;
  color: var(--dark-gray);
}

.article-content__heading {
  margin: 2em 0 0.75em;
  font-size: var(--heading-s);
  color: var(--blue-deep);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--yellow-primary);
}

.article-content__heading:first-of-type {
  margin-top: 0;
}

.article-content__closing {
  margin-top: 2em;
  padding: var(--gutter);
  background: var(--light-gray);
  border-radius: var(--radius-md);
}

.article-content__closing .article-content__heading {
  margin-top: 0;
}

.article-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--light-gray);
}

.page-hero__intro--large {
  font-size: 1.125rem;
}

/* Venue gallery (Klubbstugan) */
.venue-gallery {
  margin-bottom: 48px;
}

.venue-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.venue-gallery__slot {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.venue-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-includes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.venue-includes li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid var(--light-gray);
}

.venue-includes li:last-child { border-bottom: none; }

.venue-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue-primary);
  font-weight: 700;
}

.price-block {
  margin-bottom: 28px;
  padding: var(--gutter);
  background: var(--light-gray);
  border-radius: var(--radius-md);
}

.price-block__title {
  margin: 0 0 16px;
  font-size: var(--heading-s);
  color: var(--blue-deep);
}

.price-block__note {
  margin: 16px 0 0;
  font-size: var(--small-size);
}

.venue-contact {
  margin: 0 0 12px;
  color: var(--white);
}

.venue-contact__link {
  color: var(--yellow-primary);
  text-decoration: underline;
}

.venue-contact__link:hover {
  color: var(--yellow-bright);
}

@media (max-width: 768px) {
  .venue-gallery__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Klubbstugan-sida (matchar Om Utbynäs SK) ===== */
.page-klubbstugan {
  background: var(--blue-deep);
}

.page-hero--klubbstugan {
  background: var(--blue-deep);
  padding-bottom: 16px;
}

.page-hero--klubbstugan .page-hero__content {
  max-width: var(--max-width);
}

.page-hero--klubbstugan .page-hero__back {
  color: var(--yellow-primary);
}

.page-hero--klubbstugan .page-hero__back:hover {
  color: var(--yellow-bright);
}

.page-hero--klubbstugan .page-hero__title {
  color: #ffffff;
  font-weight: 800;
}

.page-hero--klubbstugan .page-hero__intro {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
  max-width: 720px;
}

.page-content--klubbstugan {
  padding-top: 24px;
  background: var(--blue-deep);
}

.page-klubbstugan .calendar-container {
  max-width: 1200px;
  margin: 10px auto 40px;
  padding: 0 20px;
}

.page-klubbstugan .calendar-container__title {
  color: #ffffff;
  margin: 0 0 20px;
}

.page-klubbstugan .booking-info {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--gutter);
  margin-bottom: 24px;
}

.page-klubbstugan .booking-info__title {
  margin: 0 0 12px;
  color: #ffffff;
}

.page-klubbstugan .booking-info__text {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
  max-width: 72ch;
}

.page-klubbstugan .booking-info__btn {
  display: inline-block;
  font-size: 1rem;
  padding: 14px 28px;
}

.page-klubbstugan .calendar-scroll-hint {
  display: none;
  margin: -8px 0 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--small-size);
}

.page-klubbstugan .calendar-frame {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
}

.page-klubbstugan .calendar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  max-width: 100%;
  scrollbar-width: thin;
}

.page-klubbstugan .calendar-iframe {
  display: block;
  width: 100%;
  border: 0;
  height: 600px;
}

.page-klubbstugan .calendar-open-link {
  margin: 16px 0 0;
  text-align: center;
}

.page-klubbstugan .calendar-open-link a {
  color: var(--yellow-primary);
  text-decoration: none;
  font-size: var(--small-size);
  font-weight: 500;
}

.page-klubbstugan .calendar-open-link a:hover {
  color: var(--yellow-bright);
  text-decoration: underline;
}

.page-klubbstugan .fees-section__title {
  color: #ffffff;
}

.page-klubbstugan .fees-section,
.page-klubbstugan .fees-section p {
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .fees-section--highlight {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-klubbstugan .fees-section--highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .venue-includes li,
.page-klubbstugan .fees-info li {
  color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.page-klubbstugan .venue-includes li::before {
  color: var(--yellow-primary);
}

.page-klubbstugan .fees-info li strong {
  color: var(--yellow-primary);
}

.page-klubbstugan .price-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-klubbstugan .price-block__title {
  color: #ffffff;
}

.page-klubbstugan .price-block__note {
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .price-block__note strong {
  color: var(--yellow-primary);
}

.page-klubbstugan .price-block .fees-list li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.page-klubbstugan .price-block .fees-list__label {
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .price-block .fees-list__value {
  color: var(--yellow-primary);
}

.page-klubbstugan .fees-notice {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .fees-cta {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.page-klubbstugan .page-hero__intro strong {
  color: var(--yellow-primary);
}

.page-klubbstugan .fees-roles li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .fees-section--highlight .fees-list li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.page-klubbstugan .fees-section--highlight .fees-list__label {
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .fees-section--highlight .fees-list__label--emph {
  color: #ffffff;
}

.page-klubbstugan .fees-section--highlight .fees-list__value {
  color: var(--yellow-primary);
}

.page-klubbstugan .fees-info li::before {
  color: var(--yellow-primary);
}

.page-klubbstugan .age-group-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-klubbstugan .age-group-card__title {
  color: #ffffff;
}

.page-klubbstugan .age-group-card__text {
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .sponsor-section__title {
  color: #ffffff;
}

.page-klubbstugan .sponsor-section__info {
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .sponsor-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan a.sponsor-box:hover {
  border-color: var(--yellow-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.page-klubbstugan .sponsor-box__logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-klubbstugan .sponsor-box__name {
  color: rgba(255, 255, 255, 0.9);
}

.page-klubbstugan .sponsor-box__name small {
  color: rgba(255, 255, 255, 0.65);
}

.page-klubbstugan .sponsor-box--partner .sponsor-box__role {
  color: var(--yellow-primary);
}

.page-klubbstugan .sponsor-lag-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-klubbstugan .sponsor-lag-card__team {
  color: #ffffff;
}

.page-klubbstugan .sponsor-lag-card .sponsor-box {
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: auto;
  padding: 0;
}

.page-klubbstugan .sponsor-lag-card a.sponsor-box:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.page-klubbstugan .offer-card--nordic {
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .page-klubbstugan .calendar-scroll-hint {
    display: block;
  }

  .page-klubbstugan .calendar-container {
    padding: 0 12px;
  }

  .page-klubbstugan .calendar-frame {
    padding: 12px 8px 16px;
  }

  .page-klubbstugan .calendar-scroll {
    margin: 0 -4px;
    padding-bottom: 4px;
    background:
      linear-gradient(to right, #ffffff 0, transparent 16px) left center / 24px 100% no-repeat,
      linear-gradient(to left, #ffffff 0, transparent 16px) right center / 24px 100% no-repeat;
    background-color: #ffffff;
  }

  .page-klubbstugan .calendar-iframe {
    width: 1100px;
    min-width: 1100px;
    height: 620px;
  }

  .page-klubbstugan .price-block .fees-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .page-klubbstugan .price-block .fees-list__value {
    line-height: 1.4;
  }
}

/* ===== Historia-sida (Tidslinje) ===== */
.page-historia {
  background: var(--blue-deep);
}

.historia-hero {
  position: relative;
  padding: calc(var(--nav-height) + 48px) var(--gutter) 56px;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.historia-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.92) 0%, rgba(10, 31, 68, 0.98) 100%);
  z-index: 0;
}

.historia-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.historia-hero__back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--yellow-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--small-size);
  transition: color var(--transition);
}

.historia-hero__back:hover {
  color: var(--yellow-bright);
}

.historia-hero__title {
  margin: 0 0 12px;
  color: var(--white);
}

.historia-hero__intro {
  margin: 0;
  font-size: var(--heading-s);
  color: rgba(255, 255, 255, 0.9);
}

.historia-main {
  position: relative;
  padding: var(--section-spacing) var(--gutter);
  background: var(--blue-deep);
}

/* Tidslinje – text på båda sidor av den vertikala linjen */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-2px);
  width: 4px;
  background: var(--yellow-primary);
  border-radius: 2px;
  z-index: 0;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
  z-index: 1;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Årtalet ligger på linjen, vertikalt centrerat i höjd med textrutan */
.timeline__marker {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}

/* Udda: innehåll vänster om linjen */
.timeline__item:nth-child(odd) .timeline__content {
  grid-column: 1;
}

/* Jämna: innehåll höger om linjen */
.timeline__item:nth-child(even) .timeline__content {
  grid-column: 3;
}

/* Content block – lättare mörkblå/grå bakgrund */
.timeline__content {
  background: rgba(30, 50, 90, 0.6);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline__heading {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: var(--heading-s);
  color: var(--yellow-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline__image {
  min-height: 180px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.timeline__image:empty::after {
  content: 'Bild plats';
  font-size: var(--small-size);
  color: rgba(255, 255, 255, 0.4);
}

.timeline__image img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.timeline__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  font-size: 0.95rem;
}

.timeline__text strong {
  color: var(--yellow-primary);
}

/* Cirkulär år-marker – centrerad på den vertikala linjen */
.timeline__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
}

.timeline__year {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow-primary);
  color: var(--blue-deep);
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

.footer--historia {
  background: rgba(10, 31, 68, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .timeline__item {
    grid-template-columns: 56px 1fr;
  }

  .timeline::before {
    left: 26px;
    transform: none;
  }

  .timeline__item:nth-child(odd) .timeline__content,
  .timeline__item:nth-child(even) .timeline__content {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline__item:nth-child(odd) .timeline__marker,
  .timeline__item:nth-child(even) .timeline__marker {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .timeline__item {
    align-items: center;
  }

  .timeline__year {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

/* Focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--yellow-primary);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: 1fr; }
  .sports-grid { grid-template-columns: 1fr; }
  .news-grid--three,
  .news-grid--archive { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--blue-deep);
    flex-direction: column;
    padding: var(--gutter);
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__dropdown .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
    box-shadow: none;
    padding: 8px 0 8px 16px;
  }

  .nav__dropdown.open .nav__submenu {
    display: block;
  }

  .nav__sublink {
    padding: 8px 0;
  }

  .nav__toggle { display: block; }

  .news-grid,
  .news-grid--three,
  .news-grid--archive {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .news-grid--three .news-card__thumb,
  .news-card--archive .news-card__thumb {
    height: 120px;
  }

  .news-grid--three .news-card__content,
  .news-card--archive .news-card__content {
    padding: 12px;
  }

  .news-grid--three .news-card__title,
  .news-card--archive .news-card__title {
    font-size: 14px;
    line-height: 1.25;
  }

  .news-grid--three .news-card__meta,
  .news-card--archive .news-card__meta {
    font-size: 12px;
  }

  .news-card--mobile-only {
    display: flex;
  }
}

@media (max-width: 480px) {
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-grid--logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sponsor-box { min-height: 100px; padding: 12px; }
  .sponsor-box__logo { width: 60px; height: 45px; }
  .sponsor-lag-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===== Inge (Chat) ===== */
.corner-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.corner-actions__social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.corner-actions__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(10, 31, 68, 0.88);
  color: var(--white);
  box-shadow: var(--shadow-card);
  transition: color var(--transition), transform var(--transition), background var(--transition);
}

.corner-actions__link:hover {
  color: var(--yellow-primary);
  transform: translateY(-2px);
}

.corner-actions__icon {
  width: 22px;
  height: 22px;
}

.corner-actions .chat-toggle {
  position: static;
  bottom: auto;
  right: auto;
}

.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--yellow-primary);
  color: var(--blue-deep);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle:hover {
  background: var(--yellow-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.chat-icon {
  width: 24px;
  height: 24px;
}

.chat-icon--close { display: none; }
.chat-toggle.open .chat-icon--close { display: block; }
.chat-toggle.open .chat-icon:not(.chat-icon--close) { display: none; }

.chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 999;
  width: 90%;
  max-width: 384px;
  height: 480px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel[hidden] { display: none !important; }

.chat-panel__header {
  background: var(--blue-deep);
  color: var(--white);
  padding: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-panel__brand { display: flex; align-items: center; gap: 12px; }
.chat-panel__avatar {
  width: 40px;
  height: 40px;
  background: var(--yellow-primary);
  color: var(--blue-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.chat-panel__title { margin: 0; font-size: var(--heading-s); }
.chat-panel__status { margin: 2px 0 0; font-size: var(--small-size); opacity: 0.9; }
.chat-panel__close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.chat-panel__close:hover { color: var(--yellow-primary); }

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-msg--bot {
  align-self: flex-start;
  background: var(--light-gray);
  color: var(--blue-deep);
}

.chat-msg--user {
  align-self: flex-end;
  background: var(--blue-primary);
  color: var(--white);
  border-color: transparent;
}

.chat-msg p { margin: 0; font-size: 0.9rem; white-space: pre-line; line-height: 1.5; }

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}
.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--medium-gray);
  border-radius: 50%;
  animation: chat-bounce 0.6s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.1s; }
.chat-typing span:nth-child(3) { animation-delay: 0.2s; }

@keyframes chat-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-panel__input {
  display: flex;
  gap: 8px;
  padding: var(--gutter);
  border-top: 1px solid var(--light-gray);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}
.chat-input:focus {
  outline: none;
  border-color: var(--yellow-primary);
  box-shadow: 0 0 0 2px rgba(245, 196, 0, 0.3);
}
.chat-input:disabled { opacity: 0.6; cursor: not-allowed; }

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--yellow-primary);
  color: var(--blue-deep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.chat-send:hover:not(:disabled) {
  background: var(--yellow-bright);
  transform: translateY(-1px);
}
.chat-send:disabled { opacity: 0.6; cursor: not-allowed; }

.chat-panel__hint {
  padding: 0 var(--gutter) 12px;
  margin: 0;
  font-size: var(--small-size);
  color: var(--medium-gray);
}

@media (max-width: 480px) {
  .corner-actions {
    right: 12px;
    bottom: 16px;
    gap: 8px;
    max-width: calc(100vw - 24px);
  }

  .corner-actions__link {
    width: 44px;
    height: 44px;
  }

  .corner-actions__icon {
    width: 20px;
    height: 20px;
  }

  .chat-toggle {
    width: 48px;
    height: 48px;
  }

  .chat-panel { right: 12px; bottom: 88px; width: calc(100% - 24px); max-height: 70vh; }
}
