/* 
  Voces por Cristina - Design System & Stylesheet
  Theme: Rosado y Magenta Premium with Deep Plum/Eggplant highlights
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Colors */
  --primary: #c9184a;
  --primary-light: #ff758f;
  --primary-dark: #a4133c;
  --primary-glow: rgba(201, 24, 74, 0.15);
  
  --secondary: #8338ec;
  --secondary-light: #c77dff;
  
  --bg-soft: #fff0f3;
  --bg-white: #ffffff;
  --bg-dark: #1e0b14;
  --bg-card: rgba(255, 255, 255, 0.78);
  
  --text-main: #2b141e;
  --text-muted: #644b55;
  --text-light: #fff0f3;
  
  --border-light: rgba(255, 204, 213, 0.5);
  --border-glass: rgba(255, 255, 255, 0.45);
  
  --danger: #d90429;
  --danger-glow: rgba(217, 4, 41, 0.15);
  --success: #38b000;
  
  /* Fonts */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Layout & Animation */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 10px 30px rgba(43, 20, 30, 0.05);
  --shadow-lg: 0 20px 40px rgba(201, 24, 74, 0.08);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-soft);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 20%, rgba(255, 182, 193, 0.25) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(255, 117, 143, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-soft);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--bg-dark);
  font-weight: 700;
  line-height: 1.25;
}

p {
  font-size: 1.05rem;
  font-weight: 400;
}

/* Global Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 240, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

header.scrolled .nav-wrapper {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  gap: 10px;
  transition: var(--transition);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: bold;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-header-panic {
  background-color: var(--danger);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--danger-glow);
  transition: var(--transition);
  text-decoration: none;
}

.btn-header-panic:hover {
  background-color: #bd0320;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--danger-glow);
}

.btn-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Glassmorphism General Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 40px 0 80px 0; /* Compact vertical padding */
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  gap: 10px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 24, 74, 0.3);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background: var(--primary-glow);
  transform: translateY(-3px);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(43, 20, 30, 0.15);
  border: 4px solid var(--bg-white);
  transform: rotate(2deg);
  transition: var(--transition);
}

.hero-image-wrapper:hover {
  transform: rotate(0deg) scale(1.03);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.15;
  z-index: -1;
}

/* El Caso Section */
.case-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.case-story-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.case-story-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.case-story-highlight {
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--bg-dark);
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 30px 0;
}

/* Timeline Layout */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary), var(--bg-dark));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  opacity: 0.95;
  transition: var(--transition);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: var(--bg-white);
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 10;
  transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 15px var(--primary-light);
}

.timeline-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.timeline-item:hover .timeline-card {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.timeline-date {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: block;
}

.timeline-card h4 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Abuse Quiz Section (Web App Widget) */
.quiz-section {
  background-color: rgba(255, 230, 235, 0.3);
}

.quiz-container {
  max-width: 760px;
  margin: 0 auto;
}

.quiz-progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 204, 213, 0.4);
  border-radius: 50px;
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  border-radius: 50px;
  transition: width 0.4s ease;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.quiz-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.quiz-question-container {
  margin: auto 0;
}

.quiz-question-text {
  font-family: var(--font-title);
  font-size: 1.8rem;
  text-align: center;
  color: var(--bg-dark);
  margin-bottom: 40px;
  animation: fadeInQuestion 0.4s ease;
}

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

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.quiz-options.has-three-buttons {
  grid-template-areas: 
    "yes no"
    "help help";
}

.quiz-options.has-three-buttons #btn-yes {
  grid-area: yes;
}

.quiz-options.has-three-buttons #btn-no {
  grid-area: no;
}

.quiz-options.has-three-buttons .option-help {
  grid-area: help;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
}

.quiz-options.has-three-buttons .option-help:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 24, 74, 0.3);
}

.btn-option {
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.btn-option:hover {
  background: var(--bg-soft);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-option.option-yes:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-option.option-no:hover {
  border-color: var(--text-muted);
  color: var(--bg-dark);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Quiz Results Styling */
.quiz-result-card {
  text-align: center;
  animation: fadeInResult 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes fadeInResult {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.result-score {
  font-size: 4rem;
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 100px;
}

.result-score.score-danger {
  color: var(--danger);
  background: var(--danger-glow);
  border: 1px solid rgba(217, 4, 41, 0.2);
}

.result-score.score-warning {
  color: #ff9f1c;
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.2);
}

.result-score.score-safe {
  color: var(--success);
  background: rgba(56, 176, 0, 0.1);
  border: 1px solid rgba(56, 176, 0, 0.2);
}

.result-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.result-title.danger-title { color: var(--danger); }
.result-title.warning-title { color: var(--bg-dark); }
.result-title.safe-title { color: var(--success); }

.result-description {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.result-actions .btn {
  padding: 14px 28px;
}

/* Helplines Directory Section */
.directory-search-wrapper {
  max-width: 600px;
  margin: 0 auto 50px;
  position: relative;
}

.directory-search-input {
  width: 100%;
  padding: 18px 24px 18px 54px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border-radius: 50px;
  border: 2px solid var(--border-light);
  outline: none;
  transition: var(--transition);
  background: var(--bg-white);
  color: var(--text-main);
  box-shadow: var(--shadow);
}

.directory-search-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 15px var(--primary-glow);
}

.directory-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  pointer-events: none;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 30px;
}

.directory-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.directory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.directory-card-top {
  margin-bottom: 24px;
}

.directory-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.badge-emergency { background-color: var(--danger); }
.badge-support { background-color: var(--secondary); }
.badge-state { background-color: var(--text-muted); }

.directory-name {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.directory-phone {
  font-size: 1.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.directory-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.directory-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-card-call {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-card-call:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.btn-card-copy {
  background: var(--bg-soft);
  color: var(--text-main);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-card-copy:hover {
  background: var(--border-light);
  transform: scale(1.02);
}

/* Safety Plan (Consejos) Section */
.safety-section {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 30px;
}

.safety-card {
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.safety-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-white);
  box-shadow: var(--shadow);
}

.safety-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary);
  display: inline-block;
}

.safety-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.safety-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer Section */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
  border-top: 5px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-title);
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

.footer-info p {
  color: rgba(255, 240, 243, 0.7);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h5, .footer-disclaimer h5 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: rgba(255, 240, 243, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: white;
  padding-left: 5px;
}

.footer-disclaimer p {
  font-size: 0.85rem;
  color: rgba(255, 240, 243, 0.6);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 240, 243, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 240, 243, 0.5);
}

/* Floating Panic Button (Quick Exit) */
.btn-floating-panic {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  background-color: var(--danger);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(217, 4, 41, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  animation: pulsePanic 2s infinite;
}

@keyframes pulsePanic {
  0% { box-shadow: 0 8px 25px rgba(217, 4, 41, 0.4); }
  50% { box-shadow: 0 8px 35px rgba(217, 4, 41, 0.7), 0 0 0 10px rgba(217, 4, 41, 0.2); }
  100% { box-shadow: 0 8px 25px rgba(217, 4, 41, 0.4); }
}

.btn-floating-panic:hover {
  background-color: #bd0320;
  transform: translateY(-5px) scale(1.03);
}

.panic-shortcut-hint {
  font-size: 0.75rem;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Responsiveness (Media Queries) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-description {
    margin: 0 auto 30px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-container {
    order: -1;
  }
  
  .hero-image-wrapper {
    max-width: 320px;
  }
  
  .case-story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 80px;
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 30px !important;
    right: auto !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    display: none; /* In production JS, toggle mobile menu */
  }
  
  .btn-menu-toggle {
    display: block;
  }
  
  .quiz-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .quiz-question-text {
    font-size: 1.45rem;
  }
  
  .btn-floating-panic {
    padding: 12px 18px;
    font-size: 0.9rem;
    bottom: 20px;
    right: 20px;
  }
  
  .btn-floating-panic .panic-shortcut-hint {
    display: none !important; /* Hide keyboard shortcut on mobile/touch screens */
  }
}

/* Mobile Menu Active State */
.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  padding: 30px;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  z-index: 99;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* Emergency Top Banner */
.emergency-top-banner {
  background-color: rgba(217, 4, 41, 0.08);
  border-bottom: 1px solid rgba(217, 4, 41, 0.2);
  padding: 12px 0;
  margin-top: 80px; /* Offset for fixed header */
  font-weight: 500;
  position: relative;
  z-index: 10;
  animation: slideDownBanner 0.5s ease;
}

.emergency-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.emergency-banner-content span {
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emergency-banner-actions {
  display: flex;
  gap: 12px;
}

.btn-emergency-banner-call {
  background-color: var(--danger);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px var(--danger-glow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-emergency-banner-call:hover {
  background-color: #bd0320;
  transform: translateY(-1px);
}

.btn-emergency-banner-call.btn-secondary-phone {
  background-color: var(--bg-white);
  color: var(--danger);
  border: 1.5px solid var(--danger);
  box-shadow: none;
}

.btn-emergency-banner-call.btn-secondary-phone:hover {
  background-color: var(--danger-glow);
}

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

@media (max-width: 768px) {
  .emergency-top-banner {
    padding: 15px 0;
  }
  .emergency-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .emergency-banner-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Ribbon Callout Box */
.ribbon-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(201, 24, 74, 0.04);
  border: 1px dashed var(--primary-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 30px;
  transition: var(--transition);
}

.ribbon-callout:hover {
  background: rgba(201, 24, 74, 0.08);
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ribbon-icon-wrapper {
  font-size: 2.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatRibbon 3s ease-in-out infinite;
}

@keyframes floatRibbon {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.ribbon-text h4 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.ribbon-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Timeline Cards Upgrades */
.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.timeline-card-icon {
  font-size: 1.25rem;
  color: var(--primary-light);
  transition: var(--transition);
}

.timeline-item:hover .timeline-card-icon {
  color: var(--primary);
  transform: scale(1.15);
}

.timeline-item:nth-child(odd) .timeline-card {
  border-left: 4px solid var(--primary-light);
}

.timeline-item:nth-child(even) .timeline-card {
  border-left: 4px solid var(--primary-light);
}

/* Desktop layout: distinct border accents on left/right for alternating layout */
@media (min-width: 993px) {
  .timeline-item:nth-child(odd) .timeline-card {
    border-left: none;
    border-right: 4px solid var(--primary-light);
  }
  .timeline-item:nth-child(odd):hover .timeline-card {
    border-right-color: var(--primary);
  }
  .timeline-item:nth-child(even):hover .timeline-card {
    border-left-color: var(--primary);
  }
}

/* Scroll Offset for Fixed Header */
section[id] {
  scroll-margin-top: 30px;
}

/* Footer Bottom Link Styling */
.footer-bottom a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 1px dashed rgba(255, 117, 143, 0.4);
  padding-bottom: 2px;
}

.footer-bottom a:hover {
  color: white;
  border-bottom-color: white;
}

/* Narrow mobile and layout landscape fixes */
@media (max-width: 576px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    padding-left: 45px;
    padding-right: 0;
  }
  .timeline-dot {
    left: 10px !important;
  }
}

@media (max-width: 480px) {
  .quiz-options {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  
  .quiz-options.has-three-buttons {
    grid-template-areas: none !important;
    display: flex;
    flex-direction: column;
  }
  
  .quiz-options.has-three-buttons #btn-yes,
  .quiz-options.has-three-buttons #btn-no,
  .quiz-options.has-three-buttons .option-help {
    grid-area: auto !important;
    width: 100%;
  }
}

/* Logo resizing on very narrow screens */
@media (max-width: 375px) {
  .logo {
    font-size: 1.25rem;
  }
}

/* Floating Panic Button FAB behavior on narrow screens */
@media (max-width: 480px) {
  .btn-floating-panic span {
    display: none !important;
  }
  .btn-floating-panic {
    padding: 14px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    justify-content: center;
    bottom: 15px;
    right: 15px;
  }
}

/* ==========================================================================
   BLOG / ARTICLES SECTION
   ========================================================================== */
.blog-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, rgba(255, 240, 243, 0.5) 100%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(201, 24, 74, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 24, 74, 0.22);
  box-shadow: 0 12px 30px rgba(201, 24, 74, 0.08);
}

.blog-card-image {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-soft) 0%, rgba(201, 24, 74, 0.05) 100%);
  border-bottom: 1px solid rgba(201, 24, 74, 0.04);
  overflow: hidden;
}

/* Abstract glassmorphic background shapes for blog card headers */
.blog-card-image::before,
.blog-card-image::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.35;
  z-index: 1;
}

.blog-card-image::before {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  top: -20px;
  left: -20px;
}

.blog-card-image::after {
  width: 100px;
  height: 100px;
  background: rgba(201, 24, 74, 0.1);
  bottom: -30px;
  right: -30px;
}

.blog-card-icon-container {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(201, 24, 74, 0.06);
  border: 1px solid rgba(201, 24, 74, 0.03);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s;
}

.blog-card-icon {
  font-size: 1.8rem;
  color: var(--primary);
  opacity: 0.85;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-card-icon-container {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 24px rgba(201, 24, 74, 0.12);
}

.blog-card:hover .blog-card-icon {
  transform: rotate(-8deg);
  opacity: 1;
}

.blog-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  z-index: 2;
}

.badge-warning {
  background-color: #f77f00;
}

.badge-danger {
  background-color: var(--danger);
}

.badge-safe {
  background-color: #2a9d8f;
}

.badge-info {
  background-color: #457b9d;
}

.blog-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--text-dark);
  opacity: 0.6;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
  opacity: 0.8;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.8em;
}

.btn-read-more {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  transition: color 0.2s;
  font-family: var(--font-body);
}

.btn-read-more i {
  transition: transform 0.2s ease;
}

.blog-card:hover .btn-read-more {
  color: var(--primary-dark);
}

.blog-card:hover .btn-read-more i {
  transform: translateX(4px);
}

/* ==========================================================================
   BLOG READER MODAL
   ========================================================================== */
.blog-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-modal.active {
  opacity: 1;
  visibility: visible;
}

.blog-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 11, 20, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.blog-modal-wrapper {
  position: relative;
  width: 92%;
  max-width: 720px;
  max-height: 85vh;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(30, 11, 20, 0.18);
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.blog-modal.active .blog-modal-wrapper {
  transform: scale(1);
}

.blog-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(201, 24, 74, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  box-shadow: var(--shadow-sm);
}

.blog-modal-close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.blog-modal-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: visible;
}

.blog-modal-header {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(201, 24, 74, 0.08);
  padding-bottom: 20px;
}

.blog-modal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  margin-bottom: 15px;
}

.blog-modal-title {
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 800;
}

.blog-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
  font-size: 0.82rem;
  color: var(--text-dark);
  opacity: 0.65;
}

.blog-modal-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-modal-content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-dark);
  opacity: 0.95;
  font-family: var(--font-body);
}

.blog-modal-content p {
  margin-bottom: 18px;
}

.blog-modal-content h3, 
.blog-modal-content h4 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-modal-content h3 {
  font-size: 1.4rem;
}

.blog-modal-content h4 {
  font-size: 1.2rem;
}

.blog-modal-content ul, 
.blog-modal-content ol {
  padding-left: 20px;
  margin-bottom: 18px;
}

.blog-modal-content li {
  margin-bottom: 6px;
}

.blog-modal-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(201, 24, 74, 0.03);
  padding: 15px 20px;
  margin: 25px 0;
  font-style: italic;
  border-radius: 0 12px 12px 0;
}

.blog-modal-content strong {
  font-weight: 700;
  color: var(--text-dark);
}

.blog-modal-footer {
  margin-top: 35px;
  border-top: 1px solid rgba(201, 24, 74, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
}

/* Scroll Lock on Body when modal is active */
body.modal-open {
  overflow: hidden;
}

/* Responsive adjustments for Blog */
@media (max-width: 768px) {
  .blog-modal-body {
    padding: 30px 20px;
  }
  .blog-modal-title {
    font-size: 1.6rem;
  }
  .blog-modal-wrapper {
    width: 95%;
    max-height: 90vh;
  }
}



