/*
Theme Name: Starkers Modernized
Theme URI: https://github.com/JoeyButler/starkers
Author: Joey Butler (Modernized by Gemini)
Author URI:
Description: A modernized, bare-bones WordPress theme with a modular file structure.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: classic-theme, accessibility-ready, custom-logo, post-formats
Text Domain: starkers-modernized
Requires at least: 6.0
Tested up to: 8.3
Requires PHP: 8.3
*/

:root {
  --bg-main: #fff; /* Whole page background (body) */
  --text-main: #494949; /* Paragraphs, descriptions, normal content */
  --text-secondary: #a00e0b; /* Headings, important text, titles */
  --speaker-card-bg: #f3f3f3; /* Card background color */
  --border: #c1c1c1; /* Card border */
  --accent: #2e8ad0;
  --emphasis: #d595cb;
  --font-family: "Inter", sans-serif;
}

/* ======================================
       Utility Classes
    ====================================== */

/* Headline Border top/bottom */
.headline {
  font-size: clamp(1.2rem, 3vw + 0.6rem, 1.5rem);
  align-self: stretch;
  text-align: center;
  color: var(--text-secondary);
  margin-block-end: var(--space-xl);
  font-weight: 300;
  text-transform: uppercase;
  /* Border */
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  row-gap: 10px;
  justify-content: center;
  justify-items: center;
}

/* Border */
.headline::before,
.headline::after {
  width: 120%;
  height: 2px;
  background: var(--text-secondary);
  content: "";
  border-radius: 50%;
}

/* Styles */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(
    var(--header-height) - var(--space-xl)
  ); /* already defined as 100px in menu.css */
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
}

.site-main > section:nth-of-type(even) {
  background-color: var(--menu-main-bg);
}

a {
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--text-secondary);
}

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

#main {
  /* margin to applied for the sticky header */
  /* --space-s is the section padding */
  /* + 1px is the header border */
  margin-top: calc((var(--header-height) - var(--space-xl)) + 1px);
}

/* ======================================
       Home Page - Hero Image Section
    ====================================== */

.front-page-hero {
  padding-bottom: 0;
}

.intro_wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.intro_wrapper + .intro_wrapper {
  margin-top: 2rem;
}

.intro_wrapper h3 {
  margin-bottom: 1rem;
}

.article-container {
  /* Keep display as default (block), or explicitly set: */
  display: block;
}

/* Floated Image */

.intro_wrapper .floated-image {
  float: left;
  margin-right: 20px;
  margin-bottom: 12px;
  max-width: clamp(12rem, 37.354vw + 0.07rem, 18rem);
  height: auto;
}

/* Modern fix: Prevents content below the article from breaking */
.intro_wrapper .article-container::after {
  content: "";
  display: table;
  clear: both;
}

@media (min-width: 320px) and (max-width: 510px) {
  .intro_wrapper .floated-image {
    max-width: 100%;
    float: none;
    margin-right: 0;
  }
}

.intro_wrapper p {
  /* text-align: center; */
  /* max-width: 90ch; */
  width: 100%;
  /* text-wrap: balance; */
}

/* ======================================
       Home Page - About Seminar Section
    ====================================== */

/* .event_overview p {
  max-width: 20ch;
  margin-inline: auto;
} */

.event-strip {
  display: flex;
  align-items: stretch;
  /* 1. Changed to space-between to push the outer elements to the edge */
  justify-content: space-between;
  gap: var(--space-m);
  background-color: var(--bg-main);
  padding: 20px;
  border-radius: 12px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  max-width: 1000px;
  margin-inline: auto;
  margin-block-end: var(--space-xl);
  border: 1px solid var(--border);
}

.info-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  /* 2. REMOVED 'flex: 1' so columns take only the space their text actually needs */
  /* 3. Prevents the long text inside this container from wrapping prematurely */
  white-space: nowrap;
}

.text-content {
  text-align: center;
  height: 100%;
}

.label {
  color: var(--text-secondary);
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.value {
  color: #000;
  font-size: 16px;
  /* 4. Optional slight adjustment for a cleaner read with breaks */
  line-height: 1.4;
}

.divider {
  width: 1px;
  background-color: var(--border);
  /* 5. Gives a clean spacing cushion on both sides of the vertical lines */
  margin-inline: 10px;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
  .event-strip {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .info-group {
    /* 6. Allows normal wrapping on mobile devices so text doesn't overflow the screen */
    white-space: normal;
  }
  .divider {
    width: 60%;
    height: 1px;
    margin-inline: auto;
  }
}

/* ======================================
       Home Page - Speakers Showcase
    ====================================== */

/* ======================================
       Home Page - Agenda
    ====================================== */
.front-page-agenda {
  padding-block-end: calc(var(--space-xl) + 2rem);
}

.front-page-agenda .headline {
  margin-block-end: calc(var(--space-xl) + 2rem);
}

/* ======================================
       Home Page - Sponsors
    ====================================== */
.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

/* Top logos */
.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(20px, 5vw, 50px);
  margin-bottom: var(--space-m);
}

.logos img {
  max-width: 12rem;
  height: auto;
}

.logos img:first-child {
  max-width: 16rem;
}

/* .logos img,
.cyprus img {
  filter: invert(1);
} */

/* Subtitle */
.splash .subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  padding-top: var(--space-m);
  line-height: 1.4;
  border-top: 1px solid var(--border);
}

.splash .subtitle a {
  color: var(--text-secondary);
}

/* Bottom section */
.cyprus {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cyprus img {
  width: clamp(80px, 20vw, 140px);
  margin-bottom: clamp(8px, 2vw, 16px);
  position: relative;
  top: -16px;
}

.cyprus p {
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1.1;
  font-weight: 500;
}

/* ======================================
       Home Page - Location
    ====================================== */

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 480px) {
  .map-embed {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* ======================================
       Home Page - Location
    ====================================== */
.footer_copyright {
  align-self: center;
}
