/* ==============================
   Global Styles
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ==============================
   Body
============================== */
body {
  background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
  color: #1f2937;
  font-family: "Poppins", sans-serif;
}

/* ==============================
   Header
============================== */
.header {
  text-align: center;
  margin-top: 80px; /* adjust as needed */
  padding: calc(4rem + 60px) 1rem 3rem;
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.2;
}

.header p {
  color: #f3f4f6;
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   Container
============================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.875rem;
  }
}

/* ==============================
   Contact Information Card
============================== */
.contact-card {
  background: linear-gradient(135deg, #f3f4f6 0%, #f3f4f6 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 20px;
  border: 1px solid #d1d5db;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  width: 100%;
}

@media (max-width: 768px) {
  .contact-card {
    border-radius: 15px;
    margin-bottom: 2rem;
  }
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.contact-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f2937; /* replaced var(--gov-text) */
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.contact-card h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #007cfe; /* replaced var(--gov-accent) */
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: 3px;
}

/* ==============================
   Info Grid
============================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.info-box {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 15px;
  padding: clamp(1.25rem, 3vw, 1.5rem);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  width: 100%;
}

@media (max-width: 480px) {
  .info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
    gap: 0.75rem;
  }
  
  .info-content {
    width: 100%;
  }
}

.info-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ==============================
   Icons (Added Colors Only)
============================== */
.icon {
  width: clamp(40px, 8vw, 45px);
  height: clamp(40px, 8vw, 45px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  .icon {
    margin: 0 auto;
  }
}

/* Icon Colors */
.red { background: #e74c3c; }
.green { background: #27ae60; }
.blue { background: #3498db; }
.purple { background: #9b59b6; }
.orange { background: #f39c12; }
.darkblue { background: #2c3e50; }

/* ==============================
   Info Content
============================== */
.info-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937; /* replaced var(--gov-text) */
}

.info-content p {
  font-size: 0.9rem;
  color: #6b7280; /* replaced var(--gov-subtext) */
}

/* ==============================
   Facebook Button
============================== */
.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: #007cfe;
  border: 1px solid #d1d5db;
  background: #e0f2ff;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: fit-content;
}

@media (max-width: 480px) {
  .fb-btn {
    width: 100%;
    padding: 10px 16px;
    margin-top: 0.75rem;
  }
}

.fb-btn:hover {
  background: #007cfe; /* replaced var(--gov-accent) */
  color: #fff;
}

/* ==============================
   Emergency Hotlines Section
============================== */
.emergency-section {
  background: linear-gradient(135deg, #f3f4f6 0%, #f3f4f6 100%);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.emergency-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.emergency-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
  position: relative;
}

.emergency-section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #e74c3c;
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: 3px;
}

.emergency-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.emergency-category {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.emergency-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.emergency-category h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.hotline-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hotline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.hotline-item:hover {
  background: #f3f4f6;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hotline-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hotline Icon Colors */
.hotline-icon.police { background: #e74c3c; }
.hotline-icon.fire { background: #ff6b35; }
.hotline-icon.water { background: #3498db; }
.hotline-icon.power { background: #f39c12; }
.hotline-icon.disaster { background: #e67e22; }
.hotline-icon.health { background: #27ae60; }
.hotline-icon.hospital { background: #9b59b6; }
.hotline-icon.traffic { background: #2c3e50; }

.hotline-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.3rem;
}

.hotline-number {
  font-size: 0.9rem;
  color: #e74c3c;
  font-weight: 600;
  margin: 0.2rem 0;
  font-family: 'Courier New', monospace;
}

.hotline-description {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* ==============================
   Map Section
============================== */
.map-section {
  background: linear-gradient(135deg, #f3f4f6 0%, #f3f4f6 100%);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 20px;
  border: 1px solid #d1d5db;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  width: 100%;
}

@media (max-width: 768px) {
  .map-section {
    border-radius: 15px;
    margin-bottom: 1.5rem;
  }
  
  .map-section iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .map-section iframe {
    height: 250px;
  }
}

.map-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.map-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f2937; /* replaced var(--gov-text) */
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
  position: relative;
}

.map-section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: #007cfe; /* replaced var(--gov-accent) */
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: 3px;
}

.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 15px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #FF3AAE 0%, #FF73C3 100%);
    color: white;
    padding: 3rem 0 1rem;
    text-align: center;
    font-size: 14px;
    margin-top: auto;
    width: 100%;
}

.footer .container {
    justify-content: center;  /* Center content horizontally */
    flex-direction: column;   /* Stack elements vertically */
    align-items: center;
    text-align: center;
}

/* ==============================
   Loader Screen
============================== */
#loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-text {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    #973BED,
    #007CFF,
    #FFC800,
    #00E0ED,
    #973BED
  );
  background-size: 400%;
  animation: gradientMove 4s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* ==============================
   Responsive Design for Emergency Section
============================== */
@media (max-width: 768px) {
  .emergency-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .emergency-section {
    padding: 2rem;
  }
  
  .emergency-category {
    padding: 1.25rem;
  }
  
  .hotline-item {
    padding: 0.875rem;
  }
  
  .hotline-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .hotline-info h4 {
    font-size: 0.9rem;
  }
  
  .hotline-number {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .emergency-section {
    padding: 1.5rem;
  }
  
  .emergency-category {
    padding: 1rem;
  }
  
  .hotline-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .hotline-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .emergency-section h2 {
    font-size: 1.2rem;
  }
  
  .emergency-category h3 {
    font-size: 1rem;
  }
}
