/* Emergency Hero Section */
.emergency-hero {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  /* padding: 4rem 0; */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.emergency-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.emergency-hero .container {
  position: relative;
  z-index: 2;
}

.emergency-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.emergency-hero h1::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  margin: 1rem auto;
  border-radius: 2px;
}

.emergency-hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Emergency Alert Box */
.emergency-alert {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
  }
}

.alert-icon {
  font-size: 2.5rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.alert-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #fbbf24;
}

.alert-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.alert-content a {
  color: #fbbf24;
  text-decoration: underline;
  font-weight: 600;
}

.alert-content a:hover {
  color: #f59e0b;
}

/* Emergency Approach Section */
.emergency-approach {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.emergency-approach h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.emergency-subtitle {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.emergency-text {
   font-size: 1rem;
 /* margin: 0;
 
  */
   margin-bottom: 0.5rem;
color: var(--text-dark); 

  margin: 0;          /* remove default top/bottom margins */
  text-indent: 0;     /* make sure no first-line indentation */
  padding-left: 0; 
}

.emergency-approach h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 1rem auto;
  border-radius: 2px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.approach-card {
  background: white;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.approach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #991b1b);
}

.approach-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.approach-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.approach-card:hover .approach-icon {
  transform: scale(1.1) rotate(5deg);
}

.approach-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.approach-card p {
  color: var(--text-color);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Current Response Section */
.current-response {
  padding: 4rem 0;
  background: white;
}

.current-response h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.current-response h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #991b1b);
  margin: 1rem auto;
  border-radius: 2px;
}

.current-emergency {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.emergency-info {
  background: #f8fafc;
  border-radius: 15px;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
}

.emergency-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.emergency-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0;
}

.emergency-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emergency-status.active {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

.emergency-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.emergency-meta span {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  border: 1px solid #e2e8f0;
}

.emergency-details p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.response-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.response-stats .stat-item {
  text-align: center;
  background: white;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

.response-stats .stat-item:hover {
  transform: translateY(-3px);
}

.response-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #dc2626;
  display: block;
  margin-bottom: 0.5rem;
}

.response-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 500;
}

.emergency-image {
  position: relative;
}

.emergency-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.emergency-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Emergency Types Section */
.emergency-types {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.emergency-types h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.emergency-types h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 1rem auto;
  border-radius: 2px;
}

.emergency-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.emergency-type {
  background: white;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.emergency-type::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.emergency-type:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.type-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.emergency-type:hover .type-icon {
  transform: scale(1.1);
}

.emergency-type h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.emergency-type ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.emergency-type li {
  padding: 0.5rem 0;
  color: var(--text-color);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.emergency-type li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Past Responses Timeline */
.past-responses {
  padding: 4rem 0;
  background: white;
}

.past-responses h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.past-responses h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #991b1b);
  margin: 1rem auto;
  border-radius: 2px;
}

.responses-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.responses-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-date {
  flex: 0 0 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 2rem;
  height: fit-content;
  position: relative;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  background: #f8fafc;
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-content p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.response-impact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.response-impact span {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  border: 1px solid var(--accent-color);
}

/* Emergency Preparedness Section */
.emergency-preparedness {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.emergency-preparedness h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.emergency-preparedness h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 1rem auto;
  border-radius: 2px;
}

.preparedness-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}

.preparedness-text h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.preparedness-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.preparedness-text ul {
  list-style: none;
  padding: 0;
}

.preparedness-text li {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  padding-left: 2rem;
}

.preparedness-text li:last-child {
  border-bottom: none;
}

.preparedness-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.preparedness-text strong {
  color: var(--primary-color);
  font-weight: 600;
}

.preparedness-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Emergency Partners Section */
.emergency-partners {
  padding: 4rem 0;
  background: white;
}

.emergency-partners h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.emergency-partners h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #991b1b);
  margin: 1rem auto;
  border-radius: 2px;
}

.partners-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.partner-category {
  background: #f8fafc;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease;
}

.partner-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partner-category h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.partner-category ul {
  list-style: none;
  padding: 0;
}

.partner-category li {
  padding: 0.5rem 0;
  color: var(--text-color);
  font-size: 0.95rem;
  border-bottom: 1px solid #e2e8f0;
}

.partner-category li:last-child {
  border-bottom: none;
}

/* Emergency Donate Section */
.emergency-donate {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
}

.emergency-donate h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.emergency-donate h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  margin: 1rem auto;
  border-radius: 2px;
}

.emergency-donate p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.donation-option {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.donation-option:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.donation-option h3 {
  font-size: 2.5rem;
  color: #fbbf24;
  margin-bottom: 1rem;
  font-weight: 700;
}

.donation-option p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.donate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design for Emergency Pages */
@media (max-width: 768px) {
  .emergency-hero h1 {
    font-size: 2.5rem;
  }

  .emergency-hero p {
    font-size: 1.1rem;
  }

  .emergency-alert {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .current-emergency {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .emergency-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .response-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: center;
  }

  .timeline-date {
    margin: 0 0 1rem 0;
  }

  .responses-timeline::before {
    display: none;
  }

  .preparedness-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .donation-options {
    grid-template-columns: 1fr;
  }

  .donate-actions {
    flex-direction: column;
    align-items: center;
  }
}