:root {
    --bg-dark: #16233a;       /* deep navy */
    --bg-mid: #1f3047;        /* slate blue */
    --bg-light: #2a3e5c;      /* lighter navy */
    --overlay: rgba(0,0,0,0.55);
    --text-light: #f2f2f2;
    --accent: #f18f43;        /* muted orange */
    --accent-hover: #d6782d;  /* burnt orange */
    --max-width: min(80vw, 1800px);
    --text-width: 1200px;
    --ooter-max-width: 1000px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(90deg, var(--bg-mid), var(--bg-dark));
}

.container {
    max-width: var(--ooter-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

header, footer {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(90deg, var(--bg-mid), var(--bg-dark));
    position: relative;
    z-index: 2;
}

header h1, footer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}
header p, footer p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.cta-form input[type="email"] {
    padding: 0.75rem;
    font-size: 1rem;
    flex: 1 1 250px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.15);
    color: var(--text-light);
}
.cta-form input[type="email"]::placeholder {
    color: #ccc;
}
.cta-form button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cta-form button:hover {
    background: var(--accent-hover);
}

/* Feature sections */
section:not(.hero-cover) {
    position: relative;
    /*min-height: 800px;*/
    min-height: 400px;
    height: min(calc(100vw * .45), 800px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--text-light);
    max-width: var(--max-width);
    margin: 0 auto;
    margin-bottom: 40px;
}

section video {
    position: absolute;
    top: 0;
    left: 0;
    inset: 0;
    object-fit: cover;
    z-index: 0;
}
section img {
    position: absolute;
    object-fit: cover;
    z-index: 0;
}

section .content {
    position: relative;
    z-index: 2;
    max-width: var(--text-width, 600px);
    background: rgba(0, 0, 0, 0.55);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem;
    /*padding: 2rem;*/
    align-self: flex-start; /* align to top by default */
    
}
section .content h2 {
    font-size: 2rem;
    color: var(--accent);
}
section .content p {
    font-size: 1.1rem;
    max-width: 700px;
}

/* Left variant */
.feature-left {
    justify-content: flex-start;
}
.feature-left .content {
    /*text-align: left;*/
}
.feature-left img,
.feature-left video {
    object-position: right center;
    left: auto;
    right: 0;
    height: 100%;
}

/* Right variant */
.feature-right {
    justify-content: flex-end;
}
.feature-right .content {
    /*text-align: right;*/
}
.feature-right video {
    object-position: left center;
    height: 100%;
}
.feature-right img {
    height: 100%;
}

/* Left text overlay: darken left, fade to right */
.feature-left::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 50%; /* cover only text side */
height: 100%;
z-index: 1;
background: linear-gradient(to right, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

/* Right text overlay: darken right, fade to left */
.feature-right::before {
content: "";
position: absolute;
top: 0;
right: 0;
width: 50%;
height: 100%;
z-index: 1;
background: linear-gradient(to left, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

/* Pause button */
.pause-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
}

footer {
    margin-top: 0;
}       

    /* Mobile responsiveness */
@media (max-width: 768px) {
  section:not(.hero-cover) {
    /* Stack vertically on mobile */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;         /* override desktop height */
    min-height: unset;    /* allow natural height */
    text-align: center;
    max-width: none;
    margin: 0;
    margin-bottom: 40px;
  }

  /* Ensure content appears before media */
  section:not(.hero-cover) .content {
    order: -1;
    align-self: stretch;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.55);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin: 10px auto;
    text-align: left;
  }

  /* Reset media to be in normal flow below content */
  section:not(.hero-cover) > img,
  section:not(.hero-cover) > video {
    position: static;
    inset: auto;
    width: 100%;
    height: 300px;
    object-fit: cover;
    transform: none;
    transform-origin: center;
  }

  .feature-left::before,
  .feature-right::before { display: none; }

  .pause-btn {
    order: 1;
    position: absolute;
    top: auto;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
  }

  .feature-right img,
  .feature-right video,
  .feature-left img,
  .feature-left video {
    left: auto; right: auto; top: auto;
    transform: none;
    height: 300px;
  }

  .content-top { align-self: flex-start; }
}

    /* ===== FAQ Section ===== */
#faq { 
    /*background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.12) 100%);*/
    /*padding: clamp(2rem, 5vw, 4rem) 1rem;*/
    height: auto;
}
#faq .container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}
#faq h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.25rem;
    color: var(--accent);
    text-align: center;
}
#faq p.kicker {
    text-align: center;
    opacity: .9;
    margin-bottom: 1.75rem;
}
.faq-ul {
    margin-left:2em;
}
.faq-list {
    display: grid;
    gap: 1rem;
    max-width: var(--text-width);
    margin: 0 auto;
}
.faq-q {
    width: 100%;
    text-align: left;
    background: var(--bg-mid);
    color: var(--text-light);
    border: none;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
    cursor: pointer;
    position: relative;
    line-height: 1.35;
    transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
    font-size: inherit;
}
.faq-q:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 14px 28px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
}
.faq-q[aria-expanded="true"] { 
    background: var(--bg-light); 
}
.faq-q .chev {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform .2s ease;
}
.faq-q[aria-expanded="true"] .chev {
    transform: translateY(-50%) rotate(180deg);
}
.faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
    margin: .25rem .5rem 0 .5rem;
    border-left: 3px solid var(--accent);
}
.faq-a .inner {
    padding: 1rem 1.25rem 1.25rem 1rem;
    text-align: left;
}

.copyright{
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
}

.copyright a{
    color: var(--accent);
}

.copyright a:visited{
    color: var(--accent);
}

    /* ===== Fullscreen cover hero (first section) ===== */
.hero-cover {
  position: relative;
  height: 150vh;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  overflow: visible;
}
.hero-cover .hero-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  background:
    url("images/hero.webp") center/cover no-repeat;
  z-index: 0;
}
.hero-cover .hero-overlay {
  position: relative;
  height: 100vh;
  margin-top: -50vh;   /* overlap the sticky bg */
  /*display: grid;*/
  place-items: center;
  z-index: 1;
  pointer-events: none;
}

.hero-cover .hero-overlay .inner {
  pointer-events: auto;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 8px;
  max-width: min(92vw, 1100px);
  text-align: center;
  margin: 4rem;
}

.hero-cover .hero-overlay h1 {
  color: var(--accent);
  font-size: clamp(2rem, 6vw, 3rem);
  margin-bottom: .5rem;
}
.hero-cover .hero-overlay p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: .95;
}

@media (max-width: 768px) {
    /* keep hero unaffected by generic section mobile rules */
    .hero-cover { height: 200vh; }
    .hero-cover .hero-overlay .inner { max-width: 94vw; }

    section:not(.hero-cover) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: unset;
    text-align: center;
    max-width: none;
    margin: 0;
    margin-bottom: 40px;
    }
}

article.post {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.post {
    background: rgba(9, 17, 32, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(6px);
}

.post h2 {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.meta {
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    opacity: 0.8;
    margin-bottom: 1.25rem;
}

.meta span + span::before {
    content: "•";
    margin: 0 0.5rem;
    opacity: 0.6;
}

.excerpt {
    font-weight: 600;
    margin-bottom: 1rem;
    background-color: rgb(50,50,50);
    border-radius:4px;
    padding:5px;
}

.content {
    line-height: 1.7;
    font-size: 1.02rem;
}

.content p + p {
    margin-top: 1rem;
}

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

.empty {
    text-align: center;
    padding: 4rem 1rem;
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 18px;
    background: rgba(9, 17, 32, 0.45);
}

.comments-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.comments-block h3 {
    margin-top: 0;
}
.comments-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.comment {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.comment:last-child {
    border-bottom: none;
}
.comment-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.35rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.no-comments {
    margin-bottom: 1.5rem;
    color: #666;
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.comment-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}
.comment-form input[type="text"],
.comment-form textarea {
    padding: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font: inherit;
}
.comment-form button {
    align-self: flex-start;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.comment-form button:hover {
    opacity: 0.9;
}
.comment-feedback {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}
.comment-feedback ul {
    padding-left: 1.2rem;
    margin: 0;
}
.comment-feedback.error {
    background: #fff2f2;
    border: 1px solid #f5b5b5;
    color: #7a1a1a;
}
.comment-feedback.success {
    background: #e6f7ef;
    border: 1px solid #9bd8b5;
    color: #0f5132;
}