@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #f8f9fa;
  color: #003049;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
.nav-logo img{
  height:80px;
  width:auto;
  display:block;
}
/* ===== Colors ===== */
:root {
  --primary: #d62828;
  --primary-fg: #ffffff;
  --secondary: #003049;
  --secondary-fg: #ffffff;
  --accent: #fcbf49;
  --accent-fg: #003049;
  --emergency: #f77f00;
  --trust: #2d9f6f;
  --bg: #f8f9fa;
  --bg-muted: #eef0f3;
  --text: #003049;
  --text-muted: #5a6a78;
  --border: #e2e5ea;
  --card: #ffffff;
  --radius: 0.75rem;
  --shadow: 0 4px 24px -4px rgba(0,48,73,0.08);
  --shadow-hover: 0 12px 32px -8px rgba(0,48,73,0.15);
  --hero-gradient: linear-gradient(135deg, #003049 0%, #004666 50%, #d62828 100%);
  --emergency-gradient: linear-gradient(135deg, #d62828 0%, #f77f00 100%);
  --blue-gradient: linear-gradient(135deg, #003049 0%, #0a5a7a 100%);
}

/* ===== Layout ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.min-h-screen { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ===== Top Emergency Bar ===== */
.top-bar {
  background: var(--emergency-gradient);
  color: var(--primary-fg);
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}
.top-bar .container { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.nav-brand-icon { height: 40px; width: 40px; border-radius: var(--radius); background: var(--primary); display: flex; align-items: center; justify-content: center; color: var(--primary-fg); }
.nav-brand-text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--text); line-height: 1.2; }
.nav-brand-sub { font-size: 10px; color: var(--text-muted); display: block; }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500;
  color: var(--text); transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: var(--primary); color: var(--primary-fg); }

.nav-toggle { display: flex; padding: 0.5rem; border-radius: 0.5rem; background: transparent; color: var(--text); }
.nav-toggle:hover { background: var(--bg-muted); }
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--card); padding: 0 1rem 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500;
  color: var(--text); transition: background 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { background: var(--primary); color: var(--primary-fg); }

@media(min-width:1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ===== Page Sections (show/hide) ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== Hero ===== */
.hero {
  background: 
    
    url("img/ambulance-banner.jpg"),var(--hero-gradient);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--primary-fg);
  padding: 5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 48rem; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.2); font-size: 0.875rem; font-weight: 500;
  padding: 0.375rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem;
}
.hero h1 { font-size: 2rem; font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem; }
.hero p { font-size: 1.125rem; opacity: 0.8; max-width: 40rem; line-height: 1.7; margin-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary-fg); color: var(--secondary); font-weight: 600;
  padding: 0.75rem 1.25rem; border-radius: var(--radius); font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.hero-btn:hover { background: var(--accent); color: var(--accent-fg); }

@media(min-width:768px) { .hero { padding: 8rem 0; } .hero h1 { font-size: 3rem; } }
@media(min-width:1024px) { .hero h1 { font-size: 3.5rem; } }

/* ===== Page Header ===== */
.page-header {
  background:url("img/about-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--primary-fg);
  padding: 5rem 0 5rem;
  text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.page-header p { font-size: 1.125rem; opacity: 0.8; max-width: 40rem; margin: 0 auto; }
@media(min-width:768px) { .page-header { padding: 7rem 0; } .page-header h1 { font-size: 3rem; } }

/* ===== Section ===== */
.section { padding: 4rem 0; }
.section.muted { background: var(--bg-muted); }
@media(min-width:768px) { .section { padding: 6rem 0; } }

/* ===== Section Title ===== */
.section-title { margin-bottom: 3rem; }
.section-title.center { text-align: center; }
.section-title h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.section-title p { color: var(--text-muted); font-size: 1.125rem; max-width: 40rem; margin: 0 auto; }
.section-title .bar { margin-top: 1rem; height: 4px; width: 4rem; background: var(--primary); border-radius: 9999px; }
.section-title.center .bar { margin-left: auto; margin-right: auto; }
@media(min-width:768px) { .section-title h2 { font-size: 2rem; } }

/* ===== Cards ===== */
.card {
  background: var(--card); border-radius: 1rem; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.card-body { padding: 1.5rem; }

/* ===== Grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media(min-width:640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ===== Icon Box ===== */
.icon-box {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: rgba(214,40,40,0.1); display: flex; align-items: center; justify-content: center;
  color: var(--primary); margin: 0 auto 1rem;
}
.icon-box.sm { width: 3rem; height: 3rem; border-radius: 0.75rem; }
.icon-box.secondary { background: rgba(0,48,73,0.1); color: var(--secondary); }
.icon-box.trust { background: rgba(45,159,111,0.1); color: var(--trust); }

/* ===== Service Card ===== */
.service-card { text-align: center; }
.service-card h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--text); }
.service-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* ===== Stat Card ===== */
.stat-card { text-align: center; }
.stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.875rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }

/* ===== Emergency Banner ===== */
.emergency-banner {
  background: var(--emergency-gradient); color: var(--primary-fg); padding: 3rem 0;
}
.emergency-banner .container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.emergency-banner h2 { font-size: 1.5rem; font-weight: 700; }
.emergency-banner p { opacity: 0.8; }
.emergency-banner .btn-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--card); color: var(--primary); font-weight: 700;
  padding: 1rem 2rem; border-radius: var(--radius); font-size: 1.125rem;
  transition: background 0.2s; animation: pulse-glow 2s infinite;
}
.emergency-banner .btn-call:hover { background: var(--bg-muted); }
@media(min-width:768px) {
  .emergency-banner .container { flex-direction: row; justify-content: space-between; text-align: left; }
  .emergency-banner h2 { font-size: 1.875rem; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(255,255,255,0.2); }
}

/* ===== News Card ===== */
.news-thumb {
  height: 12rem; background: var(--blue-gradient);
  display: flex; align-items: center; justify-content: center;
  border-radius: 1rem 1rem 0 0;
}
.news-thumb svg { width: 3rem; height: 3rem; opacity: 0.2; color: var(--secondary-fg); }
.news-meta { font-size: 0.75rem; color: var(--primary); font-weight: 500; }
.news-card h3 { font-weight: 700; color: var(--text); margin: 0.25rem 0 0.5rem; }
.news-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== Forms ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 0.375rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card); padding: 0.75rem 1rem; font-size: 0.875rem; font-family: inherit;
  transition: box-shadow 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { box-shadow: 0 0 0 3px rgba(214,40,40,0.15); }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media(min-width:640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.btn-primary {
  display: inline-block; width: 100%; background: var(--primary); color: var(--primary-fg);
  font-weight: 600; padding: 0.75rem; border-radius: var(--radius); text-align: center;
  font-size: 0.875rem; transition: opacity 0.2s; border: none;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--primary-fg); font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 0.875rem;
  transition: opacity 0.2s;
}
.btn-outline:hover { opacity: 0.9; }
.btn-trust {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--trust); color: #fff; font-weight: 600;
  padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 0.875rem;
  transition: opacity 0.2s;
}

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.table-wrap thead { background: var(--secondary); color: var(--secondary-fg); }
.table-wrap th { padding: 0.75rem 1.5rem; text-align: left; font-weight: 600; }
.table-wrap td { padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--border); }
.table-wrap tbody tr:hover { background: rgba(238,240,243,0.5); }
.badge { display: inline-block; padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.badge-open { background: rgba(45,159,111,0.1); color: var(--trust); }
.badge-limited { background: rgba(247,127,0,0.1); color: var(--emergency); }

/* ===== Event Type Badges ===== */
.badge-charity { background: var(--accent); color: var(--accent-fg); }
.badge-launch { background: rgba(45,159,111,0.1); color: var(--trust); }
.badge-disaster { background: rgba(214,40,40,0.1); color: var(--primary); }
.badge-training { background: var(--secondary); color: var(--secondary-fg); opacity: 0.8; }
.badge-standby { background: rgba(247,127,0,0.1); color: var(--emergency); }
.badge-community { background: var(--bg-muted); color: var(--text-muted); }
.badge-default { background: rgba(214,40,40,0.1); color: var(--primary); }

/* ===== Branch Card ===== */
.branch-card h3 { font-weight: 700; font-size: 1.125rem; color: var(--text); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.branch-card .info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.branch-card .info-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.branch-card .info-row svg { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.125rem; opacity: 0.5; }

/* ===== Contact Grid ===== */
.contact-grid { display: grid; gap: 3rem; }
@media(min-width:1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.contact-info-item .icon-box { margin: 0; flex-shrink: 0; }
.contact-info-item .label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.contact-info-item .value { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.map-embed { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); height: 16rem; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ===== Donation Bank ===== */
.bank-details {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border-radius: 1rem; padding: 1.5rem; max-width: 28rem; margin: 0 auto; text-align: left;
}
.bank-details p { margin-bottom: 0.5rem; }

/* ===== Flex helpers ===== */
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.gap-4 { gap: 1rem; }
.items-center { align-items: center; }

/* ===== Footer ===== */
.footer { background: var(--secondary); color: var(--secondary-fg); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
@media(min-width:768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 2rem 0; } }
@media(min-width:1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; margin-bottom: 1rem; }
.footer p, .footer a { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--accent); }
.footer .links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer .services-list { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.footer .contact-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.footer .contact-list div { display: flex; gap: 0.5rem; align-items: flex-start; }
.footer .contact-list svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.footer .social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer .social a {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer .social a:hover { background: var(--primary); }
.footer .social a svg { width: 1rem; height: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* ===== Role Card ===== */
.role-card { display: flex; gap: 1rem; }
.role-card .icon-box { margin: 0; flex-shrink: 0; }
.role-card h3 { font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.role-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== Donation Card ===== */
.donation-card { text-align: center; }
.donation-card h3 { font-weight: 700; font-size: 1.25rem; color: var(--text); margin-bottom: 0.5rem; }
.donation-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }

/* ===== Service Detail ===== */
.service-detail { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.service-detail .icon-box { margin: 0; flex-shrink: 0; }
.detail-grid { display: grid; gap: 1.5rem; }
@media(min-width:768px) { .detail-grid { grid-template-columns: repeat(3, 1fr); } }
.detail-grid h4 { font-weight: 600; font-size: 0.875rem; color: var(--primary); margin-bottom: 0.25rem; }
.detail-grid p { font-size: 0.875rem; color: var(--text-muted); }

/* EVENTS GRID */
/* EVENT GALLERY */

.event-gallery{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:4px;
padding:10px;
}

.event-gallery img{
width:100%;
height:120px;
object-fit:cover;
border-radius:6px;
transition:0.3s;
}

.event-gallery img:hover{
transform:scale(1.05);
}


/* EVENT CARD */

.event-card{
overflow:hidden;
}

.event-card .card-body{
padding-bottom:0;
}

.even-gallery{
display:grid;
grid-template-columns:repeat(1,1fr);
gap:4px;
padding:10px;
}

.even-gallery img{
width:100%;
height:auto;
object-fit:cover;
border-radius:6px;
transition:0.3s;
}

.even-gallery img:hover{
transform:scale(1.05);
}
