/* Overrides for Spectral template */

/* Use custom hamburger icon */
#header nav > ul > li > a.menuToggle:after {
  background-image: url("/images/hamburger-icon-white.svg") !important;
  background-size: 1.25em 1.25em !important;
}

/* Make logo larger (fits within 3em header height) */
#header h1 img {
  height: 2.9em !important;
}

/* Make MENU label slightly larger and tighten letter spacing */
#header nav > ul > li > a.menuToggle {
  font-size: 0.9em !important;
  letter-spacing: 0.15em !important;
  padding-right: 1em !important;
}

/* Scale down the hamburger pseudo-element and align it better */
#header nav > ul > li > a.menuToggle:after {
  height: 3em !important;           /* match header height for centering */
  width: 1.75em !important;
  background-position: right center !important;
  margin-left: 0.25em !important;
  vertical-align: middle !important; /* override template's top alignment */
}

/* --------------------------------------------------
   Theme: Grounded Heart (Earth & Rose Merged)
   -------------------------------------------------- */

:root {
  /* Core Grounded Heart palette */
  --color-earth-deep: #5d4e52;        /* Deep earth for headers */
  --color-earth-warm: #8b7365;        /* Warm earth base */
  --color-earth-rose: #a8889a;        /* Earth with rose undertones */
  --color-rose-earth: #9c8577;        /* Rose with earth grounding */
  --color-heart-mauve: #b89aac;       /* Gentle heart mauve */
  --color-soft-rose: #c8a8b8;         /* Soft rose for lighter sections */
  --color-balanced-mauve: #b898a8;    /* Balanced earth-rose */
  --color-warm-accent: #8b6f7d;       /* Primary accent color */
  
  /* Text colors for optimal readability */
  --text-on-earth: #ffffff;
  --text-on-rose: #f8f6f7;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-soft: rgba(248, 246, 247, 0.85);
  
  /* Semantic assignments */
  --color-bg-header: var(--color-earth-deep);
  --color-bg-menu: var(--color-earth-deep);
  --color-bg-footer: var(--color-earth-deep);
  --color-primary: var(--color-warm-accent);
  --color-primary-hover: #7a5f6d;
  --color-link: #d4b8c4;
  --color-link-hover: #e8c8d8;
}

/* --------------------------------------------------
   Global Elements
   -------------------------------------------------- */

/* Header styling - deep earth for grounding */
#header:not(.alt) {
  background: var(--color-bg-header) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menu panel with gentle gradient */
#menu {
  background: linear-gradient(135deg, var(--color-bg-menu) 0%, #6b5b73 100%) !important;
  color: var(--text-on-earth) !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

/* Indent and subtly style nested submenu items (e.g., Spiritual Resources categories) */
#menu ul ul {
  margin: 0.35em 0 0.5em 0 !important;
  padding: 0.25em 0 0.25em 1.25em !important;
  border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
}

#menu ul ul > li {
  border-top: 0 !important;
  margin: 0.25em 0 0 0 !important;
}

#menu ul ul > li > a {
  display: block !important;
  line-height: 2.25em !important;
  font-size: 0.95em !important;
  color: rgba(255, 255, 255, 0.92) !important;
  position: relative !important;
  padding-left: 1.25em !important; /* ensures wrapped lines align */
}

#menu ul ul > li > a:before {
  content: '›' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1em !important;
  opacity: 0.85 !important;
}

/* Footer - matches header for consistency */
#footer {
  background: linear-gradient(135deg, var(--color-bg-footer) 0%, #6b5b73 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Primary buttons with warm accent */
input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary,
.button.primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a88898 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(139, 111, 125, 0.3) !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  background-clip: border-box !important;
}

input[type="submit"].primary:hover,
input[type="reset"].primary:hover,
input[type="button"].primary:hover,
button.primary:hover,
.button.primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #9d7a8a 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(139, 111, 125, 0.4) !important;
}

/* Regular buttons - white text and white borders */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px #ffffff !important;
  border: none !important;
  box-sizing: border-box !important;
  background-clip: padding-box !important;
  position: relative !important;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 0 0 2px #ffffff !important;
}

/* Links with soft rose tones */
a { 
  color: var(--color-link);
  transition: color 0.3s ease;
}
a:hover { 
  color: var(--color-link-hover);
}

/* --------------------------------------------------
   Hero Section - Gentle and Welcoming
   -------------------------------------------------- */

/* Soft hero background that doesn't compete with content */
#banner:after {
  background: linear-gradient(135deg, var(--color-earth-warm) 0%, var(--color-earth-rose) 100%) !important;
  opacity: 0.85 !important;
  mix-blend-mode: multiply !important;
}

/* Very subtle texture for depth */
#banner:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 150px 150px;
}

/* Hero text with gentle presence */
#banner h2 {
  color: var(--text-on-earth) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1) !important;
  position: relative;
  z-index: 2;
}

#banner h2:before,
#banner h2:after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) !important;
  height: 1px !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2) !important;
}

#banner p {
  color: var(--text-light) !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1) !important;
  position: relative;
  z-index: 2;
}

/* Keep all hero content above overlays so buttons remain bright/outlined */
#banner .inner {
  position: relative !important;
  z-index: 2 !important;
}

/* Hero section button fixes - banner specific */
#banner .button {
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px #ffffff !important;
  background-color: transparent !important;
}

#banner .button:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: inset 0 0 0 2px #ffffff !important;
}

#banner .button.primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a88898 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#banner .button.primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #9d7a8a 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* --------------------------------------------------
   Section Progression - Spiritual Journey
   -------------------------------------------------- */

/* First Section: Spiritual Discovery (Gentle Earth) */
.wrapper.style1 {
  background: linear-gradient(135deg, var(--color-rose-earth) 0%, var(--color-heart-mauve) 100%) !important;
  color: var(--text-on-rose) !important;
  position: relative;
  overflow: hidden;
}

.wrapper.style1:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.wrapper.style1 header.major h2,
.wrapper.style1 header.major h3,
.wrapper.style1 header.major h4,
.wrapper.style1 header.major h5,
.wrapper.style1 header.major h6 {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.wrapper.style1 header p { 
  color: var(--text-soft) !important; 
}

.wrapper.style1 header.major p { 
  color: var(--text-on-rose) !important; 
}

/* Equalize box heights in section #one */
#one .row > * {
  display: flex;
  flex-direction: column;
}

#one .row > * > .box {
  flex: 1 1 auto;
}

/* Timer Meditations page (style5) – restore contrast on light background */
.wrapper.style5 input[type="submit"],
.wrapper.style5 input[type="reset"],
.wrapper.style5 input[type="button"],
.wrapper.style5 button,
.wrapper.style5 .button {
  color: #2E3842 !important;
  box-shadow: inset 0 0 0 2px #2E3842 !important;
  background-color: transparent !important;
}

.wrapper.style5 input[type="submit"]:hover,
.wrapper.style5 input[type="reset"]:hover,
.wrapper.style5 input[type="button"]:hover,
.wrapper.style5 button:hover,
.wrapper.style5 .button:hover {
  color: #2E3842 !important;
  box-shadow: inset 0 0 0 2px #2E3842 !important;
  background-color: rgba(0, 0, 0, 0.0375) !important;
}

/* --------------------------------------------------
   Category grids (style5) – uniform cards and full-tile link
   -------------------------------------------------- */

/* Equalize card heights by stretching boxes to fill columns */
.wrapper.style5 .row.gtr-uniform > * {
  display: flex !important;
}

.wrapper.style5 .row.gtr-uniform > * > .box {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  position: relative !important; /* needed for stretched link */
  overflow: hidden !important;
  flex: 1 1 auto !important; /* stretch to equalize heights per row */
}

/* Standardize card imagery heights */
.wrapper.style5 .row.gtr-uniform > * > .box .image.fit img {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  object-fit: cover !important;
}

/* Make entire tile clickable via stretched-link technique on the title link */
.wrapper.style5 .row.gtr-uniform > * > .box h3 a {
  position: static !important; /* allow pseudo-element to be relative to .box */
  z-index: auto !important;
}

.wrapper.style5 .row.gtr-uniform > * > .box h3 a::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;           /* cover entire box (relative to positioned ancestor) */
  z-index: 2 !important;
}

/* Reserve a bit of space so titles align even when they wrap */
.wrapper.style5 .row.gtr-uniform > * > .box h3 {
  min-height: 2.6em !important;
}

/* Hide per-card Read buttons on category grids */
.wrapper.style5 .row.gtr-uniform > * > .box .actions {
  display: none !important;
}

/* Restore actions on the birth chart page */
.birthchart-page .wrapper.style5 .row.gtr-uniform > * > .box .actions {
  display: flex !important;
}

/* Keep the original rule that hides Read buttons on category grids */
/* (This is already defined above, just commenting for clarity) */

/* Only show actions for timer meditation controls specifically */
.wrapper.style5 .box .timer-actions {
  display: flex !important;
}

/* Page-specific rule for timer meditations page - match exact specificity */
.timer-meditations-page .wrapper.style5 .row.gtr-uniform > * > .box .actions {
  display: flex !important;
}

/* Specific rule for timer meditation controls */
.timer-actions {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 0.5em !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 1.5em 0 !important;
}

.timer-actions .button {
  display: inline-block !important;
  visibility: visible !important;
}

/* Keep primary CTA styled */
.wrapper.style5 input[type="submit"].primary,
.wrapper.style5 input[type="reset"].primary,
.wrapper.style5 input[type="button"].primary,
.wrapper.style5 button.primary,
.wrapper.style5 .button.primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a88898 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.wrapper.style5 input[type="submit"].primary:hover,
.wrapper.style5 input[type="reset"].primary:hover,
.wrapper.style5 input[type="button"].primary:hover,
.wrapper.style5 button.primary:hover,
.wrapper.style5 .button.primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #9d7a8a 100%) !important;
}

/* Style5 boxes: visible borders on white background */
.wrapper.style5 .box {
  border-color: #dfdfdf !important;
}

/* Ensure form fields have dark text on style5 (light) background */
.wrapper.style5 input,
.wrapper.style5 select,
.wrapper.style5 textarea {
  color: #2E3842 !important;
}

/* --------------------------------------------------
   Timer Meditations Page Styling Improvements
   -------------------------------------------------- */

/* Better spacing for timer boxes */
.wrapper.style5 .box {
  padding: 2.5em 2em !important;
  margin-bottom: 2em !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  background: #ffffff !important;
  transition: box-shadow 0.3s ease !important;
}

.wrapper.style5 .box:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Timer box titles */
.wrapper.style5 .box h3 {
  margin-bottom: 1.5em !important;
  color: var(--color-primary) !important;
  text-align: center !important;
  font-size: 1.4em !important;
  border-bottom: 2px solid var(--color-primary) !important;
  padding-bottom: 0.5em !important;
  display: inline-block !important;
  width: 100% !important;
}

/* Timer display */
.wrapper.style5 .box .meta {
  font-size: 1.2em !important;
  font-weight: 600 !important;
  text-align: center !important;
  margin: 1.5em 0 !important;
  padding: 1em !important;
  background: rgba(139, 111, 125, 0.1) !important;
  border-radius: 6px !important;
  color: var(--color-primary) !important;
}

/* Main control buttons spacing */
.wrapper.style5 .box .actions {
  margin: 2em 0 !important;
  text-align: center !important;
}

.wrapper.style5 .box .actions .button {
  margin: 0 0.5em 1em 0.5em !important;
  min-width: 100px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Preset buttons grid */
.wrapper.style5 .box .row.gtr-uniform {
  margin-top: 2em !important;
}

.wrapper.style5 .box .row.gtr-uniform .button {
  width: 100% !important;
  margin-bottom: 0.75em !important;
  font-size: 0.9em !important;
  padding: 0.75em 1em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 3.125em !important;
  line-height: 1.5 !important;
}

/* Custom input section */
.wrapper.style5 .box .row.gtr-uniform:last-child {
  margin-top: 1.5em !important;
  padding-top: 1.5em !important;
  border-top: 1px solid #dfdfdf !important;
}

.wrapper.style5 .box .row.gtr-uniform:last-child > * {
  display: flex !important;
  align-items: stretch !important;
}

.wrapper.style5 .box input[type="number"] {
  margin-bottom: 0.75em !important;
  text-align: center !important;
  height: 3.125em !important;
  line-height: 1.5 !important;
}

.wrapper.style5 .box .row.gtr-uniform:last-child .button {
  height: 3.125em !important;
  line-height: 3.125em !important;
  margin-bottom: 0.75em !important;
}

/* Stack custom minutes input and button on all sizes */
.wrapper.style5 .box .row.gtr-uniform:last-child > * {
  width: 100% !important;
}

.wrapper.style5 .box .row.gtr-uniform:last-child .button {
  width: 100% !important;
}

/* Progress bars and sliders */
.wrapper.style5 input[type="range"] {
  margin: 1em 0 !important;
  height: 8px !important;
  border-radius: 4px !important;
  background: #dfdfdf !important;
  outline: none !important;
}

.wrapper.style5 input[type="range"]::-webkit-slider-thumb {
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: var(--color-primary) !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.wrapper.style5 input[type="range"]::-moz-range-thumb {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: var(--color-primary) !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Responsive improvements */
@media screen and (max-width: 980px) {
  .wrapper.style5 .box {
    padding: 2em 1.5em !important;
  }
  
  .wrapper.style5 .box h3 {
    font-size: 1.2em !important;
  }
}

@media screen and (max-width: 736px) {
  .wrapper.style5 .box {
    padding: 1.5em 1em !important;
    margin-bottom: 1.5em !important;
  }
  
  .wrapper.style5 .box .actions .button {
    margin: 0.25em !important;
    min-width: auto !important;
  }
}

/* Second Section: Mindfulness & Wellness (Soft Rose Earth) */
/* .wrapper.style2 {
  background: linear-gradient(135deg, #a67c6c 0%, var(--color-soft-rose) 100%) !important;
  color: var(--text-on-rose) !important;
  position: relative;
} */

.wrapper.style2:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

/* Third Section: Spiritual Tools (Balanced Mauve) */
.wrapper.style3 {
  background: linear-gradient(135deg, #8d7b78 0%, var(--color-balanced-mauve) 100%) !important;
  color: var(--text-on-rose) !important;
  position: relative;
}

.wrapper.style3:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
  pointer-events: none;
}

.wrapper.style3 header.major h2,
.wrapper.style3 header.major h3,
.wrapper.style3 header.major h4,
.wrapper.style3 header.major h5,
.wrapper.style3 header.major h6 {
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* CTA Section: Ready to Begin (Heart-Grounded) */
/* .wrapper.style4 {
  background: linear-gradient(135deg, var(--color-warm-accent) 0%, #a88898 100%) !important;
  color: var(--text-on-rose) !important;
  position: relative;
  overflow: hidden;
}

.wrapper.style4:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

.wrapper.style4 header h2,
.wrapper.style4 header h3,
.wrapper.style4 header h4,
.wrapper.style4 header h5,
.wrapper.style4 header h6 {
  color: var(--text-on-earth) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.wrapper.style4 p { 
  color: var(--text-light) !important; 
} */

/* CTA buttons: prevent label truncation */
#cta .actions .button {
  max-width: none !important;
}

#cta .actions .button.fit {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 0.85em 2em !important;
}

/* --------------------------------------------------
   Birth Chart Calculator styling
   -------------------------------------------------- */
.birthchart-page .birthchart-grid .box {
  background: #ffffff !important;
  color: #2E3842 !important;
  border-color: #dfdfdf !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

.birthchart-page .birthchart-grid label {
  color: #2E3842 !important;
  display: inline-block !important;
  width: 10.5rem !important;
  margin-right: 0.75rem !important;
  vertical-align: middle !important;
}

.birthchart-page .birthchart-grid input,
.birthchart-page .birthchart-grid select,
.birthchart-page .birthchart-grid textarea {
  background: #f9fafb !important;
  color: #2E3842 !important;
  border: 1px solid #e6e8eb !important;
  display: inline-block !important;
  width: calc(100% - 11.75rem) !important;
  vertical-align: middle !important;
}

.birthchart-page .birthchart-grid .actions {
  clear: both !important;
  margin-top: 1.5em !important;
  text-align: left !important;
}

/* Undo global equal-height flex on this page so form rows stack naturally */
.birthchart-page .wrapper.style5 .row.gtr-uniform > * {
  display: block !important;
}

.birthchart-page .wrapper.style5 .row.gtr-uniform > * > .box {
  display: block !important;
  flex: none !important;
}

/* Ensure CTA list lays out correctly under the form */
.birthchart-page ul.actions {
  justify-content: flex-start !important;
}

.birthchart-page .birthchart-grid input:focus,
.birthchart-page .birthchart-grid select:focus,
.birthchart-page .birthchart-grid textarea:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(139, 111, 125, 0.2) !important;
}

.birthchart-page .birthchart-grid .hint {
  font-size: 0.9em !important;
  color: rgba(46, 56, 66, 0.8) !important;
  margin: 0.5em 0 1.5em 0 !important;
  max-width: 100% !important;
  clear: both !important;
}

.birthchart-page .chart-wrap {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1em !important;
  background: #ffffff !important;
  border: 1px solid #dfdfdf !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

.birthchart-page #birthchart-canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 520px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2) !important;
  background: transparent !important;
}

.birthchart-page #birthchart-legend {
  margin-top: 1em !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5em !important;
}

.birthchart-page .insights-grid .insight-card {
  min-height: 9.5em !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  color: #2E3842 !important;
  border-color: #dfdfdf !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

.birthchart-page article#main > header {
  background: linear-gradient(135deg, var(--color-rose-earth) 0%, var(--color-heart-mauve) 100%) !important;
  color: var(--text-on-rose) !important;
  padding: 2.5em 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
}

.birthchart-page article#main > header h2,
.birthchart-page article#main > header p {
  color: var(--text-on-rose) !important;
}

.birthchart-page #birthchart-legend .legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5em !important;
  padding: 0.35em 0.6em !important;
  border-radius: 999px !important;
  background: rgba(46,56,66,0.06) !important;
  color: #2E3842 !important;
  border: 1px solid rgba(46,56,66,0.2) !important;
}

.birthchart-page #birthchart-legend .dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

/* --------------------------------------------------
   Secure Audio Player Styling
   -------------------------------------------------- */

/* Main audio player container */
.box .secure-audio-player,
.secure-audio-player {
  background: #ffffff !important;
  border: 2px solid #8b6f7d !important;
  border-radius: 12px !important;
  padding: 2em !important;
  margin: 0 !important;
  box-shadow: 0 4px 15px rgba(139, 111, 125, 0.2) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Audio info section */
.secure-audio-player .audio-info h4 {
  color: #8b6f7d !important;
  font-size: 1.4em !important;
  margin: 0 0 1.5em 0 !important;
  text-align: center !important;
  font-weight: 600 !important;
  border-bottom: 2px solid rgba(139, 111, 125, 0.2) !important;
  padding-bottom: 0.75em !important;
}

/* Audio controls layout */
.secure-audio-player .audio-controls {
  display: flex !important;
  align-items: center !important;
  gap: 1.5em !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* Play/Pause button */
.secure-audio-player .play-pause-btn {
  background: linear-gradient(135deg, #8b6f7d 0%, #a88898 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  width: 80px !important;
  height: 40px !important;
  color: #ffffff !important;
  cursor: pointer !important;
  font-size: 1.1em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 10px rgba(139, 111, 125, 0.3) !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* Ensure button text is white in all states */
.secure-audio-player .play-pause-btn,
.secure-audio-player .play-pause-btn:hover,
.secure-audio-player .play-pause-btn:focus,
.secure-audio-player .play-pause-btn:active {
  color: #ffffff !important;
}

.secure-audio-player .play-pause-btn:hover {
  background: linear-gradient(135deg, #7a5f6d 0%, #9d7a8a 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 15px rgba(139, 111, 125, 0.4) !important;
}

/* Progress container */
.secure-audio-player .progress-container {
  flex: 1 !important;
  margin: 0 1em !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75em !important;
}

/* Progress bar */
.secure-audio-player .progress-bar {
  width: 100% !important;
  height: 12px !important;
  background: rgba(139, 111, 125, 0.3) !important;
  border-radius: 6px !important;
  position: relative !important;
  cursor: pointer !important;
  border: 1px solid rgba(139, 111, 125, 0.4) !important;
  overflow: visible !important;
}

.secure-audio-player .progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #8b6f7d 0%, #a88898 100%) !important;
  border-radius: 5px !important;
  width: 0% !important;
  transition: width 0.2s ease !important;
  position: relative !important;
}

.secure-audio-player .progress-fill::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  width: 16px !important;
  height: 16px !important;
  background: #ffffff !important;
  border: 2px solid #8b6f7d !important;
  border-radius: 50% !important;
  transform: translate(50%, -50%) !important;
  box-shadow: 0 2px 6px rgba(139, 111, 125, 0.4) !important;
  cursor: pointer !important;
}

/* Time display */
.secure-audio-player .time-display {
  font-size: 0.95em !important;
  color: #8b6f7d !important;
  text-align: center !important;
  font-family: 'Courier New', monospace !important;
  font-weight: 600 !important;
  background: rgba(139, 111, 125, 0.1) !important;
  padding: 0.4em 1em !important;
  border-radius: 20px !important;
  letter-spacing: 0.5px !important;
}

/* Volume container */
.secure-audio-player .volume-container {
  display: flex !important;
  align-items: center !important;
  gap: 0.75em !important;
  flex-shrink: 0 !important;
}

.secure-audio-player .volume-btn {
  background: transparent !important;
  border: 2px solid #8b6f7d !important;
  border-radius: 6px !important;
  width: 40px !important;
  height: 40px !important;
  color: #8b6f7d !important;
  cursor: pointer !important;
  font-size: 1em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

.secure-audio-player .volume-btn:hover {
  background: #8b6f7d !important;
  color: white !important;
  transform: scale(1.05) !important;
}

/* Volume slider */
.secure-audio-player .volume-slider {
  width: 80px !important;
  height: 6px !important;
  background: rgba(139, 111, 125, 0.3) !important;
  border-radius: 3px !important;
  outline: none !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.secure-audio-player .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #8b6f7d !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(139, 111, 125, 0.3) !important;
  transition: all 0.3s ease !important;
}

.secure-audio-player .volume-slider::-webkit-slider-thumb:hover {
  background: #7a5f6d !important;
  transform: scale(1.2) !important;
  box-shadow: 0 3px 10px rgba(139, 111, 125, 0.4) !important;
}

.secure-audio-player .volume-slider::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #8b6f7d !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(139, 111, 125, 0.3) !important;
}

/* Mobile responsive */
@media screen and (max-width: 736px) {
  .secure-audio-player .audio-controls {
    flex-direction: column;
    gap: 1em;
  }
  
  .secure-audio-player .progress-container {
    order: 1;
    width: 100%;
    margin: 0;
  }
  
  .secure-audio-player .play-pause-btn {
    order: 2;
  }
  
  .secure-audio-player .volume-container {
    order: 3;
  }
}

/* --------------------------------------------------
   Clickable Box Links (Homepage)
   -------------------------------------------------- */

/* Make entire boxes clickable */
.box-link {
  display: block !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.3s ease !important;
  height: 100% !important;
}

.box-link:hover {
  text-decoration: none !important;
  color: inherit !important;
}

.box-link .box {
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  height: 100% !important;
  min-height: 200px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.box-link:hover .box {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(139, 111, 125, 0.2) !important;
}

.box-link h3 {
  color: var(--color-primary) !important;
  margin-bottom: 1em !important;
}

.box-link:hover h3 {
  color: var(--color-primary-hover) !important;
}

.box-link p {
  flex-grow: 1 !important;
  margin-bottom: 0 !important;
}

/* --------------------------------------------------
   Universal Button Sizing Fix
   -------------------------------------------------- */

/* Ensure all buttons have proper background-to-border alignment */
button, .button, input[type="submit"], input[type="reset"], input[type="button"] {
  /* Force consistent box model */
  box-sizing: border-box !important;
  
  /* Ensure background fills entire button area */
  background-origin: border-box !important;
  background-clip: border-box !important;
  
  /* Prevent background from being clipped by inset shadows */
  position: relative !important;
}

/* Fix for buttons with inset box-shadows */
button:not(.primary):not(.special), 
.button:not(.primary):not(.special), 
input[type="submit"]:not(.primary), 
input[type="reset"]:not(.primary), 
input[type="button"]:not(.primary) {
  /* Ensure hover background aligns with border */
  background-clip: padding-box !important;
}

button:not(.primary):not(.special):hover, 
.button:not(.primary):not(.special):hover, 
input[type="submit"]:not(.primary):hover, 
input[type="reset"]:not(.primary):hover, 
input[type="button"]:not(.primary):hover {
  /* Ensure hover background fills properly */
  background-clip: padding-box !important;
}

/* --------------------------------------------------
   Enhanced Visual Effects
   -------------------------------------------------- */

/* Subtle enhancement for section headings */
.wrapper header.major h2 {
  position: relative;
}

.wrapper header.major h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.5;
}

/* Improved button styling for all sections */
.wrapper input[type="submit"],
.wrapper input[type="reset"],
.wrapper input[type="button"],
.wrapper button,
.wrapper .button {
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 2px #ffffff !important;
}

.wrapper input[type="submit"]:hover,
.wrapper input[type="reset"]:hover,
.wrapper input[type="button"]:hover,
.wrapper button:hover,
.wrapper .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.1), inset 0 0 0 2px #ffffff !important;
  color: #ffffff !important;
}

/* Ensure primary buttons in sections keep their styling */
.wrapper input[type="submit"].primary,
.wrapper input[type="reset"].primary,
.wrapper input[type="button"].primary,
.wrapper button.primary,
.wrapper .button.primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a88898 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(139, 111, 125, 0.3) !important;
}

.wrapper input[type="submit"].primary:hover,
.wrapper input[type="reset"].primary:hover,
.wrapper input[type="button"].primary:hover,
.wrapper button.primary:hover,
.wrapper .button.primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, #9d7a8a 100%) !important;
  box-shadow: 0 6px 20px rgba(139, 111, 125, 0.4) !important;
}

/* Spotlight sections (if used) - gentle progression */
/* .spotlight:nth-child(odd) {
  background: linear-gradient(135deg, var(--color-rose-earth) 0%, var(--color-heart-mauve) 100%) !important;
}

.spotlight:nth-child(even) {
  background: linear-gradient(135deg, var(--color-heart-mauve) 0%, var(--color-soft-rose) 100%) !important;
} */

/* --------------------------------------------------
   Responsive Refinements
   -------------------------------------------------- */

@media screen and (max-width: 980px) {
  .wrapper:before {
    height: 50px;
  }
  
  #banner h2 {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.12) !important;
  }
}

@media screen and (max-width: 736px) {
  .wrapper:before {
    height: 30px;
  }
  
  .wrapper header.major h2:after {
    width: 35px;
  }
  
  /* Ensure good contrast on mobile */
  #banner p {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.15) !important;
  }
}