/**
 * Theatricool Custom Styles
 * 
 * Shared CSS that can be reused across templates and shortcodes
 * 
 * @package Theatricool_Custom
 * @author Lee Carter - Digital Plumber
 */

/* ============================================
   Shared CSS Variables (Reusable across all templates)
   ============================================ */

:root {
  --tac-gold: #f5c84c;
  --tac-white: #ffffff;
  --tac-purple-900: #3a0b64;
  --tac-purple-800: #4b0f7b;
  --tac-purple-700: #5a1490;
  --tac-panel: rgba(255, 255, 255, 0.06);
  --tac-panel2: rgba(255, 255, 255, 0.08);
  --tac-stroke: rgba(255, 255, 255, 0.14);
  --tac-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  --tac-shadow-light: 0 10px 30px rgba(0, 0, 0, 0.18);
  
  /* Font families - use Elementor globals */
  --tac-font-primary: var(--e-global-typography-primary-font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --tac-font-text: var(--e-global-typography-text-font-family, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

/* ============================================
   Shared Component Styles (Used by all templates)
   ============================================ */

/* Shared Typography */
.tac-h1,
.tac-daytime-hire .tac-h1 {
  font-family: var(--tac-font-primary);
  margin: 8px 0;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: clamp(26px, 3.6vw, 44px);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  color: var(--tac-white);
}

.tac-h2,
.tac-daytime-hire .tac-h2 {
  font-family: var(--tac-font-primary);
  margin: 0 0 6px;
  font-size: clamp(17px, 2.3vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  color: var(--tac-white);
}

.tac-sub,
.tac-daytime-hire .tac-sub {
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(15px, 2.1vw, 24px);
  opacity: 0.95;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  color: var(--tac-white);
}

.tac-tag,
.tac-daytime-hire .tac-tag {
  display: inline-block;
  font-weight: 800;
  font-style: italic;
  color: var(--tac-gold);
  font-size: clamp(13px, 1.7vw, 20px);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Shared Card Component */
.tac-card,
.tac-daytime-hire .tac-card {
  background: var(--tac-panel);
  border: 1px solid var(--tac-stroke);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.tac-card h3,
.tac-daytime-hire .tac-card h3 {
  font-family: var(--tac-font-primary);
  margin: 0 0 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 18px;
  color: var(--tac-white);
}

/* Shared Price Component */
.tac-price,
.tac-daytime-hire .tac-price {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 950;
  color: var(--tac-gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.tac-price small,
.tac-daytime-hire .tac-price small {
  font-size: 16px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.95);
}

/* Shared CTA Section */
.tac-cta,
.tac-daytime-hire .tac-cta {
  text-align: center;
  padding: 18px 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.10);
  position: relative;
  z-index: 1;
}

.tac-fine,
.tac-daytime-hire .tac-fine {
  margin: 0 0 14px;
  font-weight: 700;
  opacity: 0.95;
  color: var(--tac-white);
}

.tac-cta-row,
.tac-daytime-hire .tac-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Shared Button Styles - All buttons use .tac-btn class */
.tac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  margin: 10px 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd86a, #f0b730);
  color: #3b2352 !important;
  font-family: var(--tac-font-primary);
  font-size: 20px;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: none !important;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 22px 40px;
  transition: transform 0.15s ease, filter 0.15s ease;
  box-sizing: border-box;
}

.tac-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  text-decoration: none !important;
}

/* Tablet button adjustments (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  .tac-btn {
    padding: 11px 20px;
    font-size: 15px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 14px 24px;
  }
}

/* Mobile button adjustments (< 768px) */
@media (max-width: 767px) {
  .tac-btn {
    padding: 12px 24px;
    font-size: 16px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 14px 24px;
    margin: 8px 0;
  }
}

/* Small mobile adjustments (< 480px) */
@media (max-width: 480px) {
  .tac-btn {
    padding: 11px 20px;
    font-size: 15px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 12px 20px;
  }
}

/* Shared Panel Background */
.tac-panel {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--tac-shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(1200px 700px at 30% -10%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(0, 0, 0, 0.18), transparent 60%),
    linear-gradient(180deg, var(--tac-purple-700), var(--tac-purple-800) 45%, var(--tac-purple-900));
}

/* Shared Header Styles */
.tac-header {
  text-align: center;
  padding: 24px 18px 18px;
  position: relative;
  z-index: 1;
}

.tac-section-title {
  text-align: center;
  padding: 18px 18px 12px;
  position: relative;
  z-index: 1;
}

.tac-note {
  margin: 0;
  font-weight: 700;
  opacity: 0.9;
  color: var(--tac-white);
}

/* ============================================
   Tiny Stage Stars - Full Page Styles
   ============================================ */

.tac-tiny-stars {
  --purple-900: var(--tac-purple-900);
  --purple-800: var(--tac-purple-800);
  --purple-700: var(--tac-purple-700);
  --gold: var(--tac-gold);
  --white: var(--tac-white);
  --shadow: var(--tac-shadow-light);
  --flyer: url('https://theatricool.co.uk/wp-content/uploads/2026/01/bcde5854-a358-4ecd-90be-0639b0355e76-md.jpeg');

  color: var(--white);
  font-family: var(--tac-font-text);
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.tac-tiny-stars,
.tac-tiny-stars * {
  box-sizing: border-box;
}

.tac-tiny-stars p {
  margin: 0;
}

/* Tiny Stage Stars specific panel stars animation */

.tac-panel::before,
.tac-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tac-tiny-stars {
  --star-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F5C84C' d='M12 2l2.9 6 6.6.6-5 4.3 1.5 6.4L12 16l-6 3.3 1.5-6.4-5-4.3 6.6-.6z'/%3E%3C/svg%3E");
  --star-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFFFFF' fill-opacity='.9' d='M12 2l2.9 6 6.6.6-5 4.3 1.5 6.4L12 16l-6 3.3 1.5-6.4-5-4.3 6.6-.6z'/%3E%3C/svg%3E");
}

.tac-panel::before {
  background:
    var(--star-gold) 6% 12% / 14px no-repeat,
    var(--star-white) 18% 20% / 10px no-repeat,
    var(--star-gold) 32% 14% / 12px no-repeat,
    var(--star-white) 48% 18% / 8px no-repeat,
    var(--star-gold) 64% 12% / 10px no-repeat,
    var(--star-white) 78% 20% / 8px no-repeat,
    var(--star-gold) 92% 14% / 12px no-repeat,
    var(--star-white) 12% 78% / 10px no-repeat,
    var(--star-gold) 30% 88% / 12px no-repeat,
    var(--star-white) 56% 82% / 8px no-repeat,
    var(--star-gold) 74% 90% / 10px no-repeat,
    var(--star-white) 90% 84% / 12px no-repeat;
  animation: twinkleA 4.8s ease-in-out infinite;
  opacity: 0.85;
}

.tac-panel::after {
  background:
    var(--star-white) 10% 16% / 6px no-repeat,
    var(--star-white) 40% 12% / 6px no-repeat,
    var(--star-white) 70% 18% / 6px no-repeat,
    var(--star-white) 22% 66% / 6px no-repeat,
    var(--star-white) 62% 70% / 6px no-repeat,
    var(--star-white) 86% 64% / 6px no-repeat;
  animation: twinkleB 6.2s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes twinkleA {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0.95; }
}

@keyframes twinkleB {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.6; }
}

.tac-header {
  text-align: center;
  padding: 28px 18px 12px;
  position: relative;
  z-index: 1;
}

.tac-h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 6px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.tac-sub {
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.tac-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gold);
  font-weight: 800;
}

.tac-section-title {
  text-align: center;
  padding: 8px 18px 18px;
  position: relative;
  z-index: 1;
}

.tac-h2 {
  margin: 0 0 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: clamp(17px, 2.3vw, 28px);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.tac-note {
  margin: 0;
  font-weight: 700;
  opacity: 0.95;
}

.tac-body {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  padding: 14px;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tiny Stage Stars specific card styles */

.tac-classes {
  display: grid;
  gap: 14px;
}

.tac-class {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px;
}

.tac-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 14px;
  align-items: start;
}

.tac-row--left {
  grid-template-columns: 150px 1fr;
}

.tac-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}

.tac-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tac-time {
  font-weight: 900;
}

.tac-desc {
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.98;
}

/* ===== CIRCULAR PHOTOS (desktop/tablet default zoom) ===== */
.tac-photo {
  width: 150px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background-image: var(--flyer);
  background-repeat: no-repeat;
  background-size: 270% auto; /* desktop/tablet zoom */
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  align-self: center;
  justify-self: end;
}

.tac-row--left .tac-photo {
  justify-self: start;
}

.tac-photo--mumchild {
  background-position: 9% 8%;
}

.tac-photo--wand {
  background-position: 90% 6%;
}

.tac-photo--baby {
  background-position: 50% 80%;
}

.tac-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.tac-side h3 {
  margin: 0 0 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 18px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.tac-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-weight: 650;
  opacity: 0.98;
}

.tac-side li::before {
  content: "• ";
  font-weight: 900;
  color: var(--gold);
}

.tac-offer {
  text-align: center;
}

/* Tiny Stage Stars specific price styling */
.tac-tiny-stars .tac-price {
  margin: 8px 0 10px;
  line-height: 1.15;
}

.tac-tiny-stars .tac-price small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  opacity: 0.95;
}

.tac-site {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--tac-white);
}

/* ===============================
   TABLET: 1 COLUMN + PHOTO LEFT OF TEXT (768–1024)
   =============================== */
@media (max-width: 1024px) and (min-width: 768px) {
  .tac-body {
    grid-template-columns: 1fr;
  }

  .tac-row,
  .tac-row--left {
    grid-template-columns: 150px 1fr;
    grid-template-areas: "photo text";
    align-items: center;
  }

  .tac-row > .tac-photo {
    grid-area: photo;
    justify-self: start;
  }

  .tac-row > div:not(.tac-photo) {
    grid-area: text;
  }
}

/* ===============================
   MOBILE: PHOTO ABOVE TEXT (<768)
   - centre class name/time
   - reduce zoom inside circles
   =============================== */
@media (max-width: 767px) {
  .tac-body {
    grid-template-columns: 1fr;
  }

  .tac-row,
  .tac-row--left {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Force photo first + smaller circle */
  .tac-row > .tac-photo {
    order: 0;
    width: 120px;
    margin: 0 auto;
    /* Mobile zoom fix (less zoom than 270%) */
    background-size: 250% auto;
  }

  .tac-row > div:not(.tac-photo) {
    order: 1;
  }

  /* Mobile photo positioning adjustments */
  .tac-photo--mumchild {
    background-position: 9% 8%;
  }

  .tac-photo--wand {
    background-position: 88% 8%;
  }

  .tac-photo--baby {
    background-position: 50% 89%;
  }

  /* Centre pill + time */
  .tac-meta {
    justify-content: center;
    text-align: center;
  }

  .tac-pill {
    text-align: center;
  }

  .tac-time {
    width: 100%;
    text-align: center;
  }

  .tac-panel::before {
    opacity: 0.70;
  }

  .tac-panel::after {
    opacity: 0.35;
  }

  .tac-price {
    font-size: 24px;
  }
}

/* ============================================
   Home-Ed Drama - Full Page Styles
   Template: page-templates/home-ed-drama.php
   ============================================ */

.tac-hed-drama {
  --gold: var(--tac-gold);
  --white: var(--tac-white);
  --panel: var(--tac-panel);
  --panel2: var(--tac-panel2);
  --stroke: var(--tac-stroke);
  --shadow: var(--tac-shadow);
  --font-primary: var(--tac-font-primary);
  --font-text: var(--tac-font-text);

  color: var(--white);
  font-family: var(--font-text);
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
}

.tac-hed-drama,
.tac-hed-drama * {
  box-sizing: border-box;
}

.tac-hed-drama h1,
.tac-hed-drama h2,
.tac-hed-drama h3,
.tac-hed-drama p {
  margin: 0;
}

.tac-hed-drama ul {
  margin: 0;
}

/* Main Panel - Flyer background */
.tac-hed-panel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg,
      rgba(58, 11, 100, 0.78) 0%,
      rgba(58, 11, 100, 0.58) 34%,
      rgba(58, 11, 100, 0.70) 70%,
      rgba(58, 11, 100, 0.88) 100%
    ),
    url("https://theatricool.co.uk/wp-content/uploads/2026/01/e64eda2c-28d2-48da-adda-18cd5f288adf-md.jpeg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Header */
.tac-hed-header {
  text-align: center;
  padding: 26px 18px 10px;
  position: relative;
  z-index: 2;
}

.tac-hed-logo {
  display: block;
  width: 200px;
  max-width: 70vw;
  height: auto;
  margin: 0 auto 10px;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.tac-hed-title {
  font-family: var(--font-primary);
  font-size: clamp(26px, 4.2vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.tac-hed-sub {
  font-family: var(--font-text);
  color: var(--gold);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(14px, 2vw, 22px);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

/* Hero - full image + seamless blend */
.tac-hed-hero {
  max-width: 980px;
  margin: 10px auto 0;
  padding: 0 18px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* "Fog" that matches flyer background, sits BEHIND hero edges */
.tac-hed-hero::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 10px;
  height: 78%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 55%, rgba(138, 90, 190, 0.22) 0%, rgba(138, 90, 190, 0) 70%),
    radial-gradient(85% 70% at 50% 50%, rgba(40, 10, 70, 0.22) 0%, rgba(40, 10, 70, 0) 72%);
  filter: blur(10px);
  opacity: 0.95;
}

.tac-hed-heroImg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border: none !important;
  box-shadow: none !important;
  filter:
    saturate(1.03)
    brightness(1.02)
    drop-shadow(0 16px 28px rgba(0, 0, 0, 0.18))
    drop-shadow(0 0 60px rgba(130, 75, 190, 0.22));
  -webkit-mask-image:
    radial-gradient(140% 110% at 50% 50%,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 56%,
      rgba(0, 0, 0, 0.55) 74%,
      rgba(0, 0, 0, 0) 100%);
  mask-image:
    radial-gradient(140% 110% at 50% 50%,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 56%,
      rgba(0, 0, 0, 0.55) 74%,
      rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Extra "edge softener": sits ABOVE the hero, fades the borders further */
.tac-hed-hero::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(120% 100% at 50% 50%,
      rgba(58, 11, 100, 0) 55%,
      rgba(58, 11, 100, 0.18) 78%,
      rgba(58, 11, 100, 0.32) 100%);
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.tac-hed-hero h2 {
  position: relative;
  z-index: 3;
  margin-top: -22px;
  padding: 0 10px;
  font-family: var(--font-primary);
  font-size: clamp(17px, 2.4vw, 30px);
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

/* Subjects row */
.tac-hed-subjects {
  max-width: 980px;
  margin: 14px auto 0;
  padding: 10px 18px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  z-index: 2;
}

.tac-hed-pill {
  background: var(--panel2);
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  font-family: var(--font-primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* Strapline */
.tac-hed-strap {
  text-align: center;
  margin: 12px auto 0;
  padding: 0 18px;
  position: relative;
  z-index: 2;
}

.tac-hed-strap span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-primary);
  font-weight: 850;
}

/* Info grid */
.tac-hed-info {
  max-width: 980px;
  margin: 14px auto 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.tac-box {
  background: var(--panel);
  border: 1px solid var(--stroke);
  padding: 16px;
  border-radius: 0;
}

.tac-box h3 {
  font-family: var(--font-primary);
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.tac-box ul {
  padding-left: 18px;
  display: grid;
  gap: 7px;
  font-family: var(--font-text);
  font-weight: 600;
  line-height: 1.35;
}

.tac-box p {
  font-family: var(--font-text);
  font-weight: 600;
  line-height: 1.35;
}

/* CTA */
.tac-hed-cta {
  text-align: center;
  padding: 22px 18px 30px;
  position: relative;
  z-index: 2;
}

/* All buttons now use consistent styling - no override needed */

.tac-hed-footer {
  margin-top: 14px;
  color: var(--gold);
  font-style: italic;
  font-weight: 900;
  font-family: var(--font-primary);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
  .tac-hed-subjects {
    grid-template-columns: repeat(2, 1fr);
  }

  .tac-hed-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tac-hed-logo {
    width: 180px;
  }

  .tac-hed-subjects {
    grid-template-columns: 1fr;
  }

  .tac-hed-hero h2 {
    margin-top: -14px;
  }

  /* Stronger feather on mobile */
  .tac-hed-heroImg {
    -webkit-mask-image:
      radial-gradient(155% 120% at 50% 50%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 52%,
        rgba(0, 0, 0, 0.50) 74%,
        rgba(0, 0, 0, 0) 100%);
    mask-image:
      radial-gradient(155% 120% at 50% 50%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 52%,
        rgba(0, 0, 0, 0.50) 74%,
        rgba(0, 0, 0, 0) 100%);
  }
}

/* ============================================
   Home-Ed Drama - Banner Shortcode Styles
   ============================================ */

.tac-hed-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--tac-shadow-light);
  background:
    linear-gradient(180deg,
      rgba(58, 11, 100, 0.78) 0%,
      rgba(58, 11, 100, 0.58) 34%,
      rgba(58, 11, 100, 0.70) 70%,
      rgba(58, 11, 100, 0.88) 100%
    ),
    url("https://theatricool.co.uk/wp-content/uploads/2026/01/e64eda2c-28d2-48da-adda-18cd5f288adf-md.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 24px 18px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tac-hed-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
}

/* Middle content wrapper - centers content vertically */
.tac-hed-banner-content > h2 {
  flex-shrink: 0;
}

.tac-hed-banner-content > .tac-hed-sub {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tac-hed-banner h2 {
  font-family: var(--tac-font-primary);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 8px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  color: var(--tac-white);
}

.tac-hed-banner p {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  margin: 0 0 16px;
  opacity: 0.95;
  color: var(--tac-white);
}

.tac-hed-banner .tac-hed-sub {
  margin-bottom: 16px;
}

/* ============================================
   Daytime Hire - Full Page Styles
   Template: page-templates/daytime-hire.php
   ============================================ */

.tac-daytime-hire {
  --purple-900: var(--tac-purple-900);
  --purple-800: var(--tac-purple-800);
  --purple-700: var(--tac-purple-700);
  --gold: var(--tac-gold);
  --white: var(--tac-white);
  --shadow: var(--tac-shadow-light);
  --radius: 18px;

  color: var(--white);
  font-family: var(--tac-font-text);
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.tac-daytime-hire .tac-panel {
  background:
    radial-gradient(1200px 700px at 30% -10%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(0, 0, 0, 0.18), transparent 60%),
    linear-gradient(180deg, var(--purple-700), var(--purple-800) 45%, var(--purple-900));
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Daytime Hire specific header decoration */
.tac-daytime-hire .tac-header::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 16px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

/* Image strip */
.tac-daytime-hire .tac-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.tac-daytime-hire .tac-img {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.tac-daytime-hire .tac-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Daytime Hire specific card grid */
.tac-daytime-hire .tac-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 12px 18px;
}

.tac-daytime-hire .tac-card {
  text-align: center;
  padding: 16px 14px 14px;
}

.tac-daytime-hire .tac-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-weight: 650;
  opacity: 0.95;
}

.tac-daytime-hire .tac-card li::before {
  content: "• ";
  font-weight: 900;
}

/* Responsive */
@media (max-width: 1024px) {
  .tac-daytime-hire .tac-images {
    grid-template-columns: 1fr;
  }

  .tac-daytime-hire .tac-img:nth-child(n+2) {
    display: none;
  }

  .tac-daytime-hire .tac-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .tac-daytime-hire .tac-img {
    aspect-ratio: 18 / 9;
  }
}

/* ============================================
   Daytime Hire - Banner Shortcode Styles
   ============================================ */

.tac-daytime-hire-banner {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--tac-shadow-light);
  background:
    radial-gradient(1200px 700px at 30% -10%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(0, 0, 0, 0.18), transparent 60%),
    linear-gradient(180deg, var(--tac-purple-700), var(--tac-purple-800) 45%, var(--tac-purple-900));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
  padding: 24px 18px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tac-daytime-hire-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
}

/* Middle content wrapper - centers content vertically */
.tac-daytime-hire-banner-content > h2 {
  flex-shrink: 0;
}

.tac-daytime-hire-banner-content > p,
.tac-daytime-hire-banner-content > .tac-tag {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tac-daytime-hire-banner h2 {
  font-family: var(--tac-font-primary);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 8px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  color: var(--tac-white);
}

.tac-daytime-hire-banner p {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  margin: 0 0 16px;
  opacity: 0.95;
  color: var(--tac-white);
}

.tac-daytime-hire-banner .tac-tag {
  margin-bottom: 16px;
}

/* ============================================
   Elementor Container Support for Banners
   (Only affects containers with our shortcodes)
   ============================================ */

/* Target the parent container that holds all three banners */
.e-con-inner:has(.tac-tiny-stars):has(.tac-hed-drama):has(.tac-daytime-hire),
.e-con-inner:has(.tac-tiny-stars),
.e-con-inner:has(.tac-hed-drama),
.e-con-inner:has(.tac-daytime-hire) {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
}

/* Ensure child containers fill height - don't set height, let flexbox handle it */
.e-con.e-child:has(.tac-tiny-stars),
.e-con.e-child:has(.tac-hed-drama),
.e-con.e-child:has(.tac-daytime-hire) {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* Ensure Elementor widget containers fill height */
.elementor-widget-shortcode:has(.tac-tiny-stars),
.elementor-widget-shortcode:has(.tac-hed-drama),
.elementor-widget-shortcode:has(.tac-daytime-hire) {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* Ensure Elementor shortcode divs fill height */
.elementor-shortcode:has(.tac-tiny-stars),
.elementor-shortcode:has(.tac-hed-drama),
.elementor-shortcode:has(.tac-daytime-hire) {
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

/* ============================================
   Tiny Stage Stars - Banner Shortcode Styles
   ============================================ */

.tac-banner {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(1200px 700px at 30% -10%, rgba(255, 255, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(0, 0, 0, 0.18), transparent 60%),
    linear-gradient(180deg, var(--purple-700), var(--purple-800) 45%, var(--purple-900));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 24px 18px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tac-banner::before,
.tac-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tac-banner::before {
  background:
    var(--star-gold) 6% 12% / 14px no-repeat,
    var(--star-white) 18% 20% / 10px no-repeat,
    var(--star-gold) 32% 14% / 12px no-repeat,
    var(--star-white) 48% 18% / 8px no-repeat,
    var(--star-gold) 64% 12% / 10px no-repeat,
    var(--star-white) 78% 20% / 8px no-repeat,
    var(--star-gold) 92% 14% / 12px no-repeat;
  animation: twinkleA 4.8s ease-in-out infinite;
  opacity: 0.85;
}

.tac-banner::after {
  background:
    var(--star-white) 10% 16% / 6px no-repeat,
    var(--star-white) 40% 12% / 6px no-repeat,
    var(--star-white) 70% 18% / 6px no-repeat;
  animation: twinkleB 6.2s ease-in-out infinite;
  opacity: 0.4;
}

.tac-banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
}

/* Middle content wrapper - centers content vertically */
.tac-banner-content > h2 {
  flex-shrink: 0;
}

.tac-banner-content > p,
.tac-banner-content > .tac-tag,
.tac-banner-content > .tac-hed-sub {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tac-banner h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 8px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  color: var(--white);
}

.tac-banner p {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
  margin: 0 0 16px;
  opacity: 0.95;
  color: var(--white);
}

.tac-banner .tac-btn {
  margin-top: 8px;
}

/* Banner button wrapper - ensures button is on its own line and at bottom */
.tac-banner-button {
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 16px;
}

.tac-banner-button .tac-btn {
  margin: 0;
}

/* Responsive banner adjustments for narrow columns */
@media (max-width: 600px) {
  .tac-banner,
  .tac-hed-banner,
  .tac-daytime-hire-banner {
    padding: 20px 16px;
    min-height: 180px;
  }
  
  .tac-banner h2,
  .tac-hed-banner h2,
  .tac-daytime-hire-banner h2 {
    font-size: clamp(18px, 4vw, 28px);
  }
  
  .tac-banner p,
  .tac-hed-banner .tac-hed-sub,
  .tac-daytime-hire-banner p {
    font-size: clamp(13px, 2.5vw, 16px);
  }
}
