/* Cosmos Parents demo – shared styles (index.html + videos.html) */

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    html, body {
      min-height: 100%;
      overflow-x: hidden;
    }

    body {
      font-family: 'Outfit', sans-serif;
      position: relative;
    }

    .bg-wrap {
      position: fixed;
      inset: 0;
      z-index: 0;
    }

    .bg-video {
      position: absolute;
      top: 50%;
      left: 50%;
      min-width: 100%;
      min-height: 100%;
      width: auto;
      height: auto;
      transform: translate(-50%, -50%);
      object-fit: cover;
    }

    .bg-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(14, 28, 14, 0.5) 0%,
        rgba(14, 28, 14, 0.35) 40%,
        rgba(14, 28, 14, 0.6) 100%
      );
      pointer-events: none;
    }


    .content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 2rem 1.5rem 3rem;
    }

    .hero {
      min-height: 100vh;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 2rem 1rem 2rem;
      box-sizing: border-box;
    }

    @media (min-width: 768px) {
      .hero {
        min-height: 100vh;
        padding: 8vh 1.5rem 4rem;
        justify-content: flex-start;
      }
      .hero .title {
        margin-bottom: 0;
      }
    }

    .title {
      font-weight: 600;
      font-size: clamp(2rem, 8vw, 4.5rem);
      letter-spacing: 0.02em;
      color: #fff;
      text-align: center;
      text-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 2px 20px rgba(0, 0, 0, 0.4);
      animation: titleIn 1.2s ease-out;
    }

    .title span {
      display: block;
      font-weight: 300;
      font-size: 0.45em;
      letter-spacing: 0.35em;
      text-transform: uppercase;
      opacity: 0.95;
      margin-bottom: 0.15em;
    }

    @keyframes titleIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .petition-section {
      width: 100%;
      display: flex;
      justify-content: center;
      padding: 3rem 1.5rem;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .petition-section.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .petition-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.8rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      transition: color 0.2s;
    }

    .petition-link:hover {
      color: #fff;
    }

    .petition-link svg {
      width: 14px;
      height: 14px;
      flex-shrink: 0;
      opacity: 0.9;
    }

    .scroll-hint {
      margin-top: 1.5rem;
      color: rgba(255, 255, 255, 0.9);
      animation: bounce 2s ease-in-out infinite;
    }

    @media (min-width: 768px) {
      .scroll-hint {
        margin-top: 2rem;
      }
    }

    .scroll-hint svg {
      display: block;
      width: 36px;
      height: 36px;
      margin: 0 auto;
      filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    }

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

    .hero-tagline {
      font-family: 'Lora', Georgia, serif;
      font-style: italic;
      font-size: clamp(1.15rem, 3.5vw, 1.6rem);
      font-weight: 400;
      color: rgba(255, 255, 255, 0.95);
      text-align: center;
      margin-top: 0.75rem;
      padding: 0 1rem;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
      max-width: 28em;
      line-height: 1.5;
    }

    @media (min-width: 768px) {
      .hero-tagline {
        font-size: clamp(1.35rem, 2vw, 1.65rem);
        margin-top: 1rem;
      }
    }

    .message-box {
      width: 100%;
      max-width: 640px;
      margin-top: 4rem;
      padding: 2rem;
      background: rgba(255, 255, 255, 0.45);
      backdrop-filter: blur(10px);
      border-radius: 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .message-box.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    .lang-switch {
      display: flex;
      justify-content: flex-end;
      gap: 0;
      margin-bottom: 1.25rem;
    }

    .lang-switch button {
      padding: 0.4rem 0.85rem;
      font-family: inherit;
      font-size: 0.85rem;
      font-weight: 500;
      border: 1px solid rgba(0, 0, 0, 0.15);
      background: rgba(255, 255, 255, 0.9);
      color: #333;
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
    }

    .lang-switch button:first-child {
      border-radius: 8px 0 0 8px;
    }

    .lang-switch button:last-child {
      border-radius: 0 8px 8px 0;
      border-left: none;
    }

    .lang-switch button.active {
      background: #2d4a2d;
      color: #fff;
      border-color: #2d4a2d;
    }

    .lang-switch button:hover:not(.active) {
      background: rgba(0, 0, 0, 0.06);
    }

    .message-text {
      font-size: 0.95rem;
      line-height: 1.75;
      color: #1a1a1a;
    }

    .message-text p {
      margin-bottom: 1em;
    }

    .message-text p:last-child {
      margin-bottom: 0;
    }

    .message-text .sign-off {
      margin-top: 1.5em;
      font-weight: 500;
    }

    .message-text [data-lang="en"] {
      display: none;
    }

    .message-text.lang-en [data-lang="bg"] {
      display: none;
    }

    .message-text.lang-en [data-lang="en"] {
      display: block;
    }

    .articles-section {
      width: 100%;
      max-width: 720px;
      margin-top: 2rem;
      padding: 0 1.5rem 4rem;
      opacity: 1;
      transform: translateY(0);
    }

    .articles-section .section-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.25rem;
      font-weight: 600;
      color: #fff;
      text-align: center;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
      margin-bottom: 1rem;
      padding: 0 0.25rem;
    }

    .article-date-group {
      margin-bottom: 2rem;
      padding: 1.25rem 1.25rem 1.5rem;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(12px);
      border-radius: 16px;
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    }

    .article-date-group:last-child {
      margin-bottom: 0;
    }

    .article-date-heading {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.1rem;
      font-weight: 600;
      color: #fff;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .article-list {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .article-card {
      display: block;
      text-decoration: none;
      color: inherit;
      background: rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(8px);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .article-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    }

    .article-card-text {
      padding: 1rem 1.25rem 0.75rem;
    }

    .article-card-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.35rem;
      font-weight: 600;
      line-height: 1.35;
      color: #1a1a1a;
      margin-bottom: 0.35rem;
    }

    .article-card-date {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 0.8rem;
      font-weight: 500;
      color: #1a1a1a;
    }

    .article-card-image-wrap {
      display: block;
      overflow: hidden;
      background: rgba(0, 0, 0, 0.06);
    }

    .article-card-image-wrap img {
      width: 100%;
      height: auto;
      display: block;
      vertical-align: top;
    }

    .article-card-image-wrap img[data-src] {
      min-height: 120px;
      background: rgba(0, 0, 0, 0.04);
    }

    .hero-nav {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.65rem;
      margin-top: 1.25rem;
      flex-wrap: wrap;
    }

    @media (min-width: 768px) {
      .hero-nav {
        margin-top: 1.5rem;
      }
    }

    .hero-nav a {
      font-family: 'Plus Jakarta Sans', sans-serif;
      display: inline-block;
      padding: 0.7rem 1.45rem;
      font-size: clamp(1.08rem, 3.4vw, 1.38rem);
      font-weight: 600;
      color: #fff;
      text-decoration: none;
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(38, 102, 72, 0.55);
      border-radius: 999px;
      box-shadow: 0 6px 28px rgba(10, 52, 36, 0.38);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    }

    .hero-nav a:hover {
      background: rgba(255, 255, 255, 0.28);
      border-color: rgba(45, 115, 80, 0.75);
      color: #fff;
      box-shadow: 0 8px 32px rgba(8, 42, 28, 0.48);
    }

    .hero-nav a:focus-visible {
      outline: 2px solid rgba(255, 255, 255, 0.95);
      outline-offset: 3px;
    }

    .hero-nav-sep {
      color: rgba(255, 255, 255, 0.38);
      font-weight: 300;
      user-select: none;
      font-size: 0.85rem;
      align-self: center;
    }

    .poziciya-section {
      width: 100%;
      max-width: 720px;
      margin-top: 2rem;
    }

    .poziciya-section .section-title {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 1.25rem;
      font-weight: 600;
      color: #fff;
      text-align: center;
      text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
      margin-bottom: 1rem;
      padding: 0 0.25rem;
    }

    .poziciya-section .poziciya-content {
      font-family: 'Plus Jakarta Sans', sans-serif;
      padding: 2.5rem 1.75rem 3rem;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
      color: #1a3d1a;
      font-size: 0.95rem;
      line-height: 1.75;
    }

    .poziciya-section .poziciya-content p {
      margin-bottom: 1em;
    }

    .poziciya-section .poziciya-content p:last-child {
      margin-bottom: 0;
    }

    .poziciya-section .poziciya-content ul {
      margin: 0.75em 0 1em 1.5em;
      padding: 0;
    }

    .poziciya-section .poziciya-content li {
      margin-bottom: 0.5em;
    }

    .petition-cta-section {
      width: 100%;
      max-width: 720px;
      margin-top: 2rem;
      padding: 3rem 1.5rem 4rem;
      text-align: center;
    }

    .petition-cta-section .petition-cta-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: #fff;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
      margin-bottom: 0.5rem;
    }

    .petition-cta-section .petition-cta-text {
      font-size: 0.95rem;
      color: rgba(255, 255, 255, 0.95);
      margin-bottom: 1.25rem;
    }

    .petition-cta-section .petition-cta-link {
      display: inline-block;
      padding: 0.65rem 1.5rem;
      background: rgba(255, 255, 255, 0.9);
      color: #1a3d1a;
      font-weight: 600;
      text-decoration: none;
      border-radius: 8px;
      transition: background 0.2s, transform 0.2s;
    }

    .petition-cta-section .petition-cta-link:hover {
      background: #fff;
      transform: translateY(-1px);
    }

    .petition-cta-section .petition-cta-logo-link {
      display: inline-block;
      margin: 1rem 0;
      line-height: 0;
    }

    .petition-cta-section .petition-cta-logo-link img {
      display: block;
      height: 42px;
      width: auto;
      max-width: 200px;
      object-fit: contain;
    }

    .petition-cta-section .petition-cta-footer {
      margin-top: 2.5rem;
      padding-top: 1.5rem;
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.75);
      line-height: 1.5;
    }

/* Videos (videos.html + #roditelite on index) */
body.page-videos {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

    .videos-embed-section {
      font-family: 'Plus Jakarta Sans', sans-serif;
      scroll-margin-top: 1.5rem;
    }

    /* Full width like standalone videos.html (main.content uses align-items: center) */
    .content > .videos-embed-section {
      align-self: stretch;
      width: 100%;
      box-sizing: border-box;
    }

    .page {
      position: relative;
      z-index: 1;
      padding: 2rem 1.25rem 3rem;
      max-width: 1100px;
      margin: 0 auto;
    }

    .page-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .page-header h1,
    .page-header h2 {
      font-size: clamp(1.15rem, 3.2vw, 1.65rem);
      font-weight: 600;
      color: #fff;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
      margin-bottom: 0.75rem;
      line-height: 1.35;
      max-width: 36rem;
      margin-left: auto;
      margin-right: auto;
    }

    .page-header h1 .title-bg,
    .page-header h2 .title-bg {
      display: block;
      font-size: 0.88em;
      font-weight: 500;
      opacity: 0.92;
      margin-top: 0.35em;
    }

    .page-header a {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.9rem;
      text-decoration: underline;
    }

    /* Full-width embed above thumbnail grid (same row width as .page) */
    .video-featured {
      width: 100%;
      margin: 0 0 1.5rem;
    }

    .video-featured-embed {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 16px;
      overflow: hidden;
      background: #0d120d;
      box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.2);
    }

    .video-featured-embed iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
    }

    .video-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

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

    @media (min-width: 480px) and (max-width: 768px) {
      .video-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .video-card {
      border: none;
      padding: 4px;
      cursor: pointer;
      border-radius: 16px;
      overflow: hidden;
      background: linear-gradient(145deg, #ffffff 0%, #f0f3f0 45%, #ffffff 100%);
      box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      display: block;
      width: 100%;
      text-align: left;
    }

    .video-card:hover {
      transform: translateY(-4px);
      box-shadow:
        0 8px 12px rgba(0, 0, 0, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    }

    .video-card:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 4px;
    }

    .video-card-inner {
      display: block;
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 12px;
      overflow: hidden;
      background: #1a1f1a;
    }

    .video-card-inner img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
      transform: scale(1.05);
      transform-origin: center center;
    }

    .video-card-play {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.25);
      transition: background 0.2s;
      pointer-events: none;
    }

    .video-card:hover .video-card-play {
      background: rgba(0, 0, 0, 0.4);
    }

    .video-card-play svg {
      width: 64px;
      height: 64px;
      filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }

    .video-modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
      background: rgba(0, 0, 0, 0.82);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s, visibility 0.25s;
    }

    .video-modal.is-open {
      opacity: 1;
      visibility: visible;
    }

    .video-modal-dialog {
      position: relative;
      width: 100%;
      max-width: 960px;
      padding: 4px;
      background: linear-gradient(145deg, #ffffff 0%, #e8ece8 50%, #ffffff 100%);
      border-radius: 16px;
      overflow: hidden;
      box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .video-modal-dialog .video-modal-embed {
      position: relative;
      aspect-ratio: 16 / 9;
      border-radius: 12px;
      overflow: hidden;
      background: #000;
    }

    .video-modal-close {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      z-index: 2;
      width: 44px;
      height: 44px;
      border: none;
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.65);
      color: #fff;
      font-size: 1.5rem;
      line-height: 1;
      cursor: pointer;
      transition: background 0.2s;
    }

    .video-modal-close:hover {
      background: rgba(0, 0, 0, 0.85);
    }

    .video-modal-embed iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }