/* ==========================================================================
   Rec TV APK (rectvindir.com) - Main Stylesheet
   Optimized for Core Web Vitals, Accessibility, SEO, and Brand Identity
   ========================================================================== */

:root {
  --brand-red: #eb1c24;
  --brand-red-dark: #a60d14;
  --brand-red-deep: #6b003e;
  --brand-red-bright: #ff2b33;
  --brand-gold: #fffa00;
  --bg-body: #222222;
  --bg-surface: #2e2d2d;
  --bg-surface-dark: #232222;
  --bg-surface-card: #262525;
  --text-primary: #ffffff;
  --text-body: #f1f1f4;
  --text-muted: #c2c2cc;
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-brand: rgba(235, 28, 36, 0.45);
  --shadow-brand: 0 -7px 19px 3px #eb1c24;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --container-max: 1200px;

  /* FAQ Accordion Variables */
  --inbrmfa-border-color: rgba(235, 28, 36, 0.55);
  --inbrmfa-border-width: 1px;
  --inbrmfa-border-radius: 6px;
  --inbrmfa-question-font-size: 18px;
  --inbrmfa-question-color: #ffffff;
  --inbrmfa-question-bg-color: #eb1c24;
  --inbrmfa-answer-font-size: 16px;
  --inbrmfa-answer-color: #18181b;
  --inbrmfa-answer-bg-color: #ffffff;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-body);
  font-size: 17px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

a {
  color: #ff5c63;
  text-decoration: underline;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-gold);
}

:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 18px;
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  text-shadow: 2px 2px 4px #000000;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin-top: 28px;
}

h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

p {
  margin: 0 0 1.35em;
}

ol, ul {
  margin: 0 0 1.5em 1.5em;
  padding: 0 0 0 0.75em;
}

li {
  margin-bottom: 0.5em;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(235, 28, 36, 0.55), transparent);
  margin: 34px 0;
}

.has-text-align-center {
  text-align: center;
}

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

.screen-reader-text:focus {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  clip: auto !important;
  clip-path: none;
  color: #111111;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 8px;
  padding: 12px 18px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
}

/* Layout Grid */
.grid-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* Header & Navigation */
.site-header {
  background: linear-gradient(180deg, var(--brand-red), var(--bg-surface));
  color: var(--text-primary);
  position: relative;
  z-index: 100;
}

.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 32px;
}

.site-branding-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header .header-image {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.main-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
}

.main-title a,
.main-title a:hover {
  color: var(--text-primary);
  text-decoration: none;
  text-shadow: 2px 2px 4px #000000;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-block;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav li.current-menu-item > a {
  background-color: rgba(0, 0, 0, 0.28);
  color: var(--brand-gold);
}

.main-nav a.nav-cta {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-left: 6px;
}

.main-nav a.nav-cta:hover {
  background: #ffffff;
  color: var(--brand-red);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-bars {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Main Content Container */
.site.grid-container {
  padding: 0;
}

.inside-article {
  background-color: var(--bg-surface);
  color: var(--text-body);
  padding: 0 24px 44px;
  box-shadow: var(--shadow-brand);
}

.entry-content > p:last-child {
  margin-bottom: 0;
}

/* Hero Cover */
.wp-block-cover.alignwide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  padding: 36px 24px;
  margin-left: -24px;
  margin-bottom: 28px;
  width: calc(100% + 48px);
  max-width: calc(100% + 48px);
  border-bottom: 2px solid var(--brand-red);
}

.wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.wp-block-cover__background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20, 18, 18, 0.68) 0%, rgba(16, 16, 16, 0.85) 100%);
  z-index: 1;
}

.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  text-align: center;
}

.hero-logo {
  width: 129px;
  height: auto;
  border-radius: 28px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #f4f4f6;
  margin-bottom: 24px;
}

.brand-domain-highlight {
  color: #ff4249;
  font-weight: 700;
}

/* Brand Gradient Buttons */
.wp-block-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
}

.wp-block-button__link,
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgb(254, 205, 165) 0%, rgb(254, 45, 45) 50%, rgb(107, 0, 62) 100%);
  color: #ffffff !important;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(235, 28, 36, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.btn-brand:hover,
.btn-brand:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(235, 28, 36, 0.65);
  filter: brightness(1.08);
  color: #ffffff !important;
}

/* Table of Contents (#toc_container) */
#toc_container {
  background-color: var(--bg-surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  margin: 0 auto 28px;
  max-width: 680px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

#toc_container .toc_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(235, 28, 36, 0.24), rgba(46, 45, 45, 0.95));
  border-bottom: 1px solid var(--border-subtle);
}

#toc_container .toc_title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

#toc_container .toc_toggle_btn {
  background: #ffffff;
  color: #111111;
  border: none;
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#toc_container .toc_toggle_btn:hover {
  background: var(--brand-gold);
}

#toc_container ul.toc_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#toc_container.contracted ul.toc_list {
  display: none;
}

#toc_container li {
  margin: 0;
}

#toc_container li a {
  display: block;
  width: 100%;
  color: #ff575e;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#toc_container li:first-child a {
  border-top: 0;
}

#toc_container li a:hover {
  background-color: rgba(235, 28, 36, 0.14);
  color: #ffffff;
}

/* Info Box & Blockquote */
.box,
.wp-block-quote {
  border: 1px solid var(--brand-red);
  border-left: 5px solid var(--brand-red);
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(253, 154, 154, 0.12);
  font-style: normal;
}

.wp-block-quote p:last-child {
  margin-bottom: 0;
}

/* Screenshots Gallery */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}

.wp-block-gallery figure {
  margin: 0;
  text-align: center;
  background: var(--bg-surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-gallery figure:hover {
  transform: translateY(-4px);
  border-color: var(--brand-red);
  box-shadow: 0 10px 24px rgba(235, 28, 36, 0.3);
}

.wp-block-gallery img {
  border-radius: 16px;
  max-height: 520px;
  width: auto;
  cursor: zoom-in;
}

/* Feature Headings & Icons */
h3.feature-banner {
  background: linear-gradient(180deg, rgb(235, 28, 36) 0%, rgb(46, 45, 45) 100%);
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  padding: 14px 20px;
  margin: 0 -24px 22px;
  width: calc(100% + 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-icon-wrap {
  text-align: center;
  margin-bottom: 18px;
}

.feature-icon-wrap img {
  width: 125px;
  height: 125px;
  object-fit: contain;
  border-radius: 28px;
}

/* App Specs Table (#dl) */
.app-icon-center {
  text-align: center;
  margin: 34px 0 18px;
}

.app-icon-center img {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(235, 28, 36, 0.35);
}

.wp-block-table {
  overflow-x: auto;
  margin: 18px 0 22px;
}

.wp-block-table table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: var(--bg-surface-dark);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wp-block-table td,
.wp-block-table th {
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.wp-block-table tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}

.wp-block-table tr td:first-child {
  font-weight: 700;
  color: #ffffff;
  width: 42%;
}

.version-pill {
  display: inline-block;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

/* Rank Math FAQ Accordion */
#rank-math-faq {
  margin: 18px 0 32px;
}

#rank-math-faq .rank-math-list-item {
  border: var(--inbrmfa-border-width) solid var(--inbrmfa-border-color);
  border-radius: var(--inbrmfa-border-radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#rank-math-faq .rank-math-question {
  display: block;
  font-size: var(--inbrmfa-question-font-size);
  font-weight: 700;
  line-height: 1.4;
  color: var(--inbrmfa-question-color);
  background: linear-gradient(90deg, #eb1c24, #c9141b);
  margin: 0;
  position: relative;
}

#rank-math-faq .rm-faq-question-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: transparent;
  color: inherit;
  border: none;
  font: inherit;
  text-align: left;
  padding: 15px 18px;
  cursor: pointer;
}

#rank-math-faq .rm-faq-question-btn::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  line-height: 1;
}

#rank-math-faq .rank-math-question.rm-faq-question-active .rm-faq-question-btn::after {
  content: "−";
}

#rank-math-faq .rank-math-answer {
  font-size: var(--inbrmfa-answer-font-size);
  line-height: 1.55;
  color: var(--inbrmfa-answer-color);
  background-color: var(--inbrmfa-answer-bg-color);
  padding: 16px 18px;
  display: none;
}

#rank-math-faq .rank-math-answer.rm-faq-answer-active {
  display: block;
}

#rank-math-faq .rank-math-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Encrypted Download Page & Brand-Colored Timer Button
   ========================================================================== */
.download-page-hero {
  padding: 32px 0 18px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 26px;
}

.download-card {
  background: var(--bg-surface-dark);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 22px auto;
  max-width: 760px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.download-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.download-meta-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.download-meta-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.download-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

/* REUSABLE DOWNLOAD BUTTON CONTAINER — Rec TV APK Brand Colors */
.download-container {
  text-align: center;
  margin: 26px 0;
  padding: 28px 20px;
  background: linear-gradient(180deg, rgba(235, 28, 36, 0.16) 0%, rgba(28, 27, 27, 0.92) 100%);
  border: 1px solid var(--brand-red);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 24px rgba(235, 28, 36, 0.25);
}

.timer-button {
  background: linear-gradient(135deg, #eb1c24 0%, #9b0b12 55%, #2e2d2d 100%);
  color: #ffffff !important;
  padding: 16px 34px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 22px rgba(235, 28, 36, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.timer-button:hover,
.timer-button:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(235, 28, 36, 0.7);
  text-decoration: none;
  color: #ffffff !important;
}

.timer-display {
  display: none;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  background: #1b1a1a;
  border: 1px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 15px 24px;
  margin: 12px auto;
  max-width: 460px;
  box-shadow: 0 4px 18px rgba(235, 28, 36, 0.3);
}

.timer-display .seconds {
  color: var(--brand-gold);
  font-size: 22px;
  font-weight: 800;
  margin: 0 4px;
}

.download-style {
  background: linear-gradient(135deg, rgb(254, 45, 45) 0%, #eb1c24 50%, rgb(107, 0, 62) 100%);
  border: 2px solid var(--brand-gold);
  box-shadow: 0 8px 28px rgba(235, 28, 36, 0.68);
}

.download-style:hover,
.download-style:focus-visible {
  background: linear-gradient(135deg, #ff3d44 0%, #eb1c24 60%, #8e004f 100%);
  color: #ffffff !important;
}

/* ==========================================================================
   Subpages (AdSense Pages: About, Contact, Privacy, Terms, Legal)
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 20px 0 8px;
}

.breadcrumb a {
  color: #ff6b72;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-header-banner {
  background: linear-gradient(180deg, rgba(235, 28, 36, 0.25), rgba(46, 45, 45, 0.1));
  border-bottom: 2px solid var(--brand-red);
  margin: 0 -24px 28px;
  padding: 28px 24px;
}

.page-meta-date {
  font-size: 14px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.legal-section {
  background: var(--bg-surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.legal-section h2 {
  margin-top: 0;
  font-size: 1.35rem;
  color: #ffffff;
  border-left: 4px solid var(--brand-red);
  padding-left: 12px;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  margin-top: 20px;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #ffffff;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #1b1a1a;
  color: #ffffff;
  font-size: 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand-red);
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
  font-weight: 600;
}

.form-status.success {
  display: block;
  background: rgba(40, 167, 69, 0.18);
  border: 1px solid #28a745;
  color: #b7f5c4;
}

.form-status.error {
  display: block;
  background: rgba(235, 28, 36, 0.2);
  border: 1px solid var(--brand-red);
  color: #ffd0d2;
}

/* Footer */
.site-info {
  color: var(--brand-gold);
  background: linear-gradient(180deg, var(--brand-red), #313131);
  font-size: 15px;
}

.inside-site-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 32px;
}

.copyright-bar {
  font-weight: 600;
}

.footer-bar .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bar .menu li {
  margin: 0;
}

.footer-bar .menu a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-bar .menu a:hover,
.footer-bar .menu a:focus-visible {
  color: var(--brand-gold);
  text-decoration: underline;
}

/* Back to Top */
.generate-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background-color: rgba(235, 28, 36, 0.85);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}

.generate-back-to-top.generate-back-to-top__show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.generate-back-to-top:hover {
  background-color: var(--brand-red);
  color: #ffffff;
}

.generate-back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Lightbox Modal for Screenshots */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-modal img {
  max-height: 90vh;
  max-width: 92vw;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(235, 28, 36, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--brand-red);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

/* Cookie Banner (AdSense / KVKK) */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 780px;
  margin: 0 auto;
  background: #1b1a1a;
  color: #f4f4f6;
  border: 1px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  z-index: 950;
  font-size: 14px;
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  background: var(--brand-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn:hover {
  background: var(--brand-red-bright);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .wp-block-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .inside-header {
    padding: 12px 18px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-navigation {
    width: 100%;
  }
  .main-navigation:not(.toggled) .main-nav {
    display: none;
  }
  .main-navigation.toggled .main-nav {
    display: block;
    width: 100%;
    padding-top: 10px;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 10px 12px;
  }
  .main-nav a.nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }
  .inside-article {
    padding: 0 18px 34px;
  }
  .wp-block-cover.alignwide,
  .page-header-banner {
    margin-left: -18px;
    width: calc(100% + 36px);
    max-width: calc(100% + 36px);
  }
  h3.feature-banner {
    margin-left: -18px;
    width: calc(100% + 36px);
  }
  .wp-block-gallery {
    grid-template-columns: 1fr;
  }
  .inside-site-info {
    flex-direction: column;
    text-align: center;
    padding: 20px 18px;
  }
  .footer-bar .menu {
    justify-content: center;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
