/* Arba Minch City Administration — public site styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #fff; color: #1a1a1a; overflow-x: hidden; line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1360px; margin: 0 auto; padding: 0 28px; }

:root {
  --forest: #1A3A28;
  --forest-2: #2D6A4F;
  --gold: #C8952A;
  --gold-light: #E5B84A;
  --cream: #F5F0E8;
  --muted: #6B7280;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--forest); }

/* ── Animations ── */
@keyframes fadeUpIn { from { opacity:0; transform:translateY(18px);} to { opacity:1; transform:translateY(0);} }
@keyframes pulseGold { 0%,100% { background:#B8841F; } 50% { background:#D4A030; } }
@keyframes tickerSlide { 0% { transform:translateX(100vw); } 100% { transform:translateX(-100%); } }
@keyframes slideInRight { from { transform:translateX(100%); } to { transform:translateX(0); } }
.anim { animation: fadeUpIn 0.6s both; }

/* ── Alert bar ── */
#alert-bar { background:#7B1C1C; color:#fff; height:44px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; position:relative; z-index:1010; overflow:hidden; }
#alert-bar .badge { background:#C8952A; color:#fff; font-size:10px; font-weight:700; padding:2px 9px; border-radius:2px; letter-spacing:0.1em; white-space:nowrap; flex-shrink:0; animation:pulseGold 2.4s ease-in-out infinite; }
#alert-bar .ticker-wrap { overflow:hidden; flex:1; min-width:0; }
#alert-bar .ticker { white-space:nowrap; animation:tickerSlide 28s linear infinite; font-size:13px; }
#alert-bar button { background:none; border:none; color:rgba(255,255,255,0.65); cursor:pointer; font-size:20px; line-height:1; padding:4px 8px; margin-left:10px; }

/* ── Nav ── */
#main-nav { position:fixed; top:44px; left:0; right:0; z-index:1000; transition:top .35s ease, background .35s ease, box-shadow .35s ease; background:transparent; }
#main-nav.no-alert { top:0; }
#main-nav.scrolled { background:rgba(10,24,14,0.97); backdrop-filter:blur(18px); box-shadow:0 2px 24px rgba(0,0,0,0.35); }
#main-nav .nav-inner { max-width:1360px; margin:0 auto; padding:0 28px; height:76px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:13px; text-decoration:none; flex-shrink:0; }
.brand-mark { width:50px; height:50px; border-radius:50%; border:2px solid var(--gold); overflow:hidden; flex-shrink:0; background:var(--forest); display:flex; align-items:center; justify-content:center; }
.brand-name { font-family:'Playfair Display',serif; font-size:16px; font-weight:700; color:#fff; line-height:1.1; text-shadow:0 1px 6px rgba(0,0,0,0.6); }
.brand-sub { font-size:10px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:rgba(229,184,74,0.9); text-shadow:0 1px 4px rgba(0,0,0,0.5); }
.desk-nav { display:flex; align-items:center; gap:4px; }
.nav-lnk { position:relative; transition:color 0.2s; font-size:13.5px; font-weight:500; color:#fff; text-decoration:none; padding:6px 13px; }
.nav-lnk::after { content:''; position:absolute; bottom:-3px; left:13px; right:13px; height:2px; background:var(--gold); transition:width 0.3s ease; width:0; }
.nav-lnk:hover::after, .nav-lnk.active::after { width:calc(100% - 26px); }
.nav-lnk:hover { color:var(--gold) !important; }
.nav-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.lang-switch button { background:none; border:none; cursor:pointer; padding:3px 6px; font-size:12px; font-weight:700; font-family:'DM Sans',sans-serif; }
.icon-btn { background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.18); color:#fff; border-radius:8px; padding:7px 11px; font-size:15px; cursor:pointer; }
.cta-btn { transition:transform 0.2s ease, box-shadow 0.2s ease; }
.cta-btn:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,0.28) !important; }
.gamo-line { height:2px; overflow:hidden; opacity:0; transition:opacity .35s; }
#main-nav.scrolled .gamo-line { opacity:1; }
.mob-menu-btn { display:none; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); border-radius:8px; padding:9px 11px; cursor:pointer; flex-direction:column; gap:5px; align-items:center; justify-content:center; }
.mob-menu-btn span { display:block; width:22px; height:2px; background:#fff; border-radius:1px; }

/* Mobile menu overlay */
#mobile-menu { position:fixed; inset:0; z-index:2000; display:none; flex-direction:column; }
#mobile-menu.open { display:flex; }
#mobile-menu .backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.55); backdrop-filter:blur(3px); }
#mobile-menu .panel { position:absolute; top:0; right:0; bottom:0; width:82%; max-width:340px; background:#0d2518; display:flex; flex-direction:column; overflow-y:auto; animation:slideInRight .32s cubic-bezier(.22,1,.36,1); }
#mobile-menu .panel-header { display:flex; align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid rgba(200,149,42,0.2); }
#mobile-menu nav a { display:block; padding:14px 24px; font-size:15px; font-weight:500; color:#fff; text-decoration:none; border-bottom:1px solid rgba(255,255,255,0.07); }

/* ── Hero ── */
#hero { position:relative; min-height:100vh; }
.hero-slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition:opacity 1.4s ease; z-index:1; }
.hero-slide.active { opacity:1; z-index:2; }
.hero-overlays > div { position:absolute; inset:0; pointer-events:none; }
.hero-bottom-bar { position:absolute; bottom:28px; left:48px; right:48px; z-index:30; display:flex; align-items:center; justify-content:space-between; }
.hero-content-wrap { position:absolute; inset:0; z-index:2; display:flex; align-items:center; padding:120px 48px 60px; overflow:hidden; }
.hero-inner { max-width:1360px; margin:0 auto; display:flex; align-items:flex-start; justify-content:space-between; gap:48px; width:100%; }
.hero-left { flex:1; min-width:0; }
.hero-eyebrow { font-size:11px; font-weight:600; letter-spacing:0.22em; text-transform:uppercase; color:var(--gold); }
.hero-title { font-size:clamp(56px,6.5vw,100px); font-weight:800; color:#fff; line-height:0.94; margin-bottom:10px; text-shadow:0 2px 20px rgba(0,0,0,0.7); }
.hero-sub { font-size:clamp(26px,3vw,50px); font-weight:400; color:rgba(229,184,74,0.95); line-height:1.1; margin-bottom:30px; font-style:italic; text-shadow:0 2px 12px rgba(0,0,0,0.6); }
.hero-desc { font-size:16.5px; color:rgba(255,255,255,0.8); line-height:1.78; max-width:500px; margin-bottom:42px; }
.hero-ctas { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:48px; }
.hero-ctas a { display:inline-flex; align-items:center; gap:9px; font-weight:600; font-size:14px; padding:14px 26px; border-radius:9px; text-decoration:none; }
.btn-gold { background:var(--gold); color:#fff; box-shadow:0 4px 24px rgba(200,149,42,0.45); }
.btn-ghost { background:rgba(255,255,255,0.1); color:#fff; border:1.5px solid rgba(255,255,255,0.28); backdrop-filter:blur(8px); }
.hero-right-col { flex:0 0 300px; display:flex; flex-direction:column; gap:16px; }
.mayor-card { background:rgba(8,28,18,0.92); border:1px solid rgba(200,149,42,0.32); border-radius:18px; padding:24px; display:flex; flex-direction:column; gap:16px; box-shadow:0 12px 48px rgba(0,0,0,0.5); backdrop-filter:blur(20px); }
.hero-arrow { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.1); border:1.5px solid rgba(255,255,255,0.25); display:flex; align-items:center; justify-content:center; cursor:pointer; backdrop-filter:blur(6px); }
.hero-dot { height:8px; border-radius:4px; border:none; cursor:pointer; padding:0; }

/* ── Quick actions ── */
.quick-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.quick-tile { display:flex; flex-direction:column; align-items:center; gap:11px; padding:22px 14px; border:1.5px solid #e4dfd6; border-radius:12px; text-decoration:none; background:#fff; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.quick-tile:hover { transform:translateY(-3px); border-color:var(--gold); box-shadow:0 8px 24px rgba(200,149,42,0.12); }
.quick-tile .icon { width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.quick-tile span.label { font-size:13px; font-weight:600; color:#1a2218; text-align:center; line-height:1.25; }

/* ── Sections ── */
section { padding:76px 28px; }
.section-eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.section-eyebrow .rule { width:30px; height:2px; background:var(--gold); }
.section-eyebrow span { font-size:11px; font-weight:600; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:24px; margin-bottom:40px; }

/* News */
#news { background:var(--cream); }
.news-tabs { display:flex; gap:3px; background:#fff; border-radius:10px; padding:4px; border:1px solid #e0dad2; }
.news-tabs button { font-size:13px; font-weight:500; padding:7px 14px; border-radius:7px; border:none; cursor:pointer; background:transparent; color:#6B7280; }
.news-tabs button.active { background:var(--forest); color:#fff; }
.news-grid { display:grid; grid-template-columns:1.55fr 1fr; gap:22px; }
.news-card { background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 2px 16px rgba(0,0,0,0.06); transition:transform .22s ease, box-shadow .22s ease; text-decoration:none; display:block; color:inherit; }
.news-card:hover { transform:translateY(-3px); box-shadow:0 12px 36px rgba(0,0,0,0.1); }
.news-featured-img { height:308px; position:relative; overflow:hidden; display:flex; align-items:flex-end; padding:24px; background-size:cover; background-position:center; }
.news-side-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,0.05); display:flex; text-decoration:none; color:inherit; }
.news-side-thumb { width:96px; min-height:96px; flex-shrink:0; background-size:cover; background-position:center; }
.pill { background:#EEF3EE; color:var(--forest); font-size:11px; font-weight:600; padding:3px 11px; border-radius:20px; white-space:nowrap; }
.dashed-link { display:flex; align-items:center; justify-content:center; gap:8px; padding:18px; border:2px dashed #d8d2c8; border-radius:12px; font-size:14px; font-weight:600; color:#6B7280; text-decoration:none; }

/* Videos */
.tour-grid, .video-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.video-card { border-radius:14px; overflow:hidden; position:relative; cursor:pointer; aspect-ratio:16/9; display:flex; align-items:center; justify-content:center; background-size:cover; background-position:center; text-decoration:none; }
.play-btn { width:56px; height:56px; border-radius:50%; background:rgba(200,149,42,0.85); display:flex; align-items:center; justify-content:center; position:relative; z-index:2; box-shadow:0 4px 20px rgba(0,0,0,0.35); }

/* Tourism */
#tourism { background:#171e14; }
.tour-card { border-radius:16px; overflow:hidden; position:relative; min-height:272px; background-size:cover; background-position:center; text-decoration:none; display:block; }
.tour-card .overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,0.78) 0%,rgba(0,0,0,0.18) 55%,transparent 100%); }
.tour-card .badge { position:absolute; top:14px; left:14px; background:rgba(200,149,42,0.88); color:#fff; font-size:9.5px; font-weight:700; padding:3px 10px; border-radius:20px; letter-spacing:0.07em; text-transform:uppercase; }
.tour-card .info { position:absolute; bottom:0; left:0; right:0; padding:22px 20px; color:#fff; }

/* Services */
.svc-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.svc-card { background:#fff; border:1.5px solid #ece7de; border-radius:16px; padding:26px 22px; display:flex; flex-direction:column; gap:14px; box-shadow:0 2px 10px rgba(0,0,0,0.04); transition:transform .25s ease, box-shadow .25s ease; text-decoration:none; color:inherit; }
.svc-card:hover { transform:translateY(-5px); box-shadow:0 16px 48px rgba(0,0,0,0.12); }
.svc-icon { width:50px; height:50px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* Dashboard */
#dashboard { background:linear-gradient(148deg,#0c2018 0%,#1A3A28 55%,#0b3048 100%); position:relative; overflow:hidden; color:#fff; }
.dash-stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:32px; }
.dash-stat-card { background:rgba(255,255,255,0.07); border:1px solid rgba(200,149,42,0.2); border-radius:16px; padding:30px 22px; text-align:center; backdrop-filter:blur(10px); }
.dash-stat-value { font-family:'Playfair Display',serif; font-size:clamp(34px,4vw,50px); font-weight:700; color:#fff; }
.dash-panels { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.dash-panel { background:rgba(255,255,255,0.07); border:1px solid rgba(200,149,42,0.18); border-radius:16px; padding:30px; backdrop-filter:blur(10px); }
.budget-bar { background:rgba(255,255,255,0.1); border-radius:100px; height:6px; overflow:hidden; }
.budget-bar > div { height:100%; background:linear-gradient(to right,var(--gold),var(--gold-light)); border-radius:100px; }

/* Events + Offices */
.events-offices { display:grid; grid-template-columns:1fr 1.15fr; gap:52px; }
.event-card { background:#fff; border-radius:12px; padding:18px; display:flex; gap:16px; align-items:flex-start; box-shadow:0 2px 8px rgba(0,0,0,0.05); }
.event-date { background:var(--forest); color:#fff; border-radius:10px; padding:10px 13px; text-align:center; flex-shrink:0; min-width:54px; }
.offices-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.office-card { background:#fff; border-radius:12px; padding:18px 16px; box-shadow:0 2px 8px rgba(0,0,0,0.05); text-decoration:none; color:inherit; display:block; }

/* Footer */
footer { background:#0c1a0f; color:#fff; padding:60px 28px 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.3fr; gap:44px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,0.08); }
footer h4 { font-size:11px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); margin-bottom:18px; font-family:'DM Sans',sans-serif; }
footer a { font-size:13.5px; color:rgba(255,255,255,0.55); text-decoration:none; }
.footer-bottom { padding:18px 0; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.newsletter-form { display:flex; gap:8px; }
.newsletter-form input { flex:1; min-width:0; background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.14); border-radius:8px; padding:10px 13px; font-size:13px; color:#fff; }
.newsletter-form button { background:var(--gold); color:#fff; border:none; border-radius:8px; padding:10px 16px; font-size:12.5px; font-weight:700; cursor:pointer; white-space:nowrap; }

/* Forms / flash */
.flash { padding:12px 18px; border-radius:10px; margin-bottom:16px; font-size:14px; }
.flash-success { background:#dcf5e8; color:#1a6b3c; }
.flash-error { background:#fde8e8; color:#8b1a1a; }

/* Video embed modal */
.video-modal { position:fixed; inset:0; z-index:3000; display:none; align-items:center; justify-content:center; padding:28px; }
.video-modal.open { display:flex; }
.video-modal-backdrop { position:absolute; inset:0; background:rgba(6,12,9,0.88); backdrop-filter:blur(4px); }
.video-modal-body { position:relative; width:100%; max-width:960px; z-index:1; }
.video-modal-frame { position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:14px; overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,0.6); }
.video-modal-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:none; }
.video-modal-close { position:absolute; top:-42px; right:0; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.25); color:#fff; width:34px; height:34px; border-radius:50%; font-size:20px; cursor:pointer; line-height:1; }

/* ── Dark mode ── */
body[data-dark] { background:#0e1a14 !important; color:#e8e0d0 !important; }
body[data-dark] #news { background:#101e18 !important; }
body[data-dark] .news-card, body[data-dark] .news-side-card { background:#1a2e22 !important; color:#e8e0d0; }
body[data-dark] #services { background:#0e1a14 !important; }
body[data-dark] .svc-card { background:#1a2e22 !important; color:#e8e0d0; }
body[data-dark] #events-offices { background:#0e1a14 !important; }
body[data-dark] .event-card, body[data-dark] .office-card { background:#1a2e22 !important; color:#e8e0d0; }
body[data-dark] footer { background:#060f0a !important; }

/* ── Simple inner-page sections (news detail, tourism, services, events, offices as full pages) ── */
.page-hero { background:linear-gradient(148deg,#0c2018 0%,#1A3A28 55%,#0b3048 100%); color:#fff; padding:180px 28px 60px; }
.page-hero h1 { color:#fff; font-size:clamp(32px,5vw,52px); }
.breadcrumb { font-size:13px; color:rgba(255,255,255,0.6); margin-bottom:16px; }
.breadcrumb a { color:var(--gold); text-decoration:none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .desk-nav { display:none !important; }
  .mob-menu-btn { display:flex !important; }
  .hero-inner { flex-direction:column !important; gap:28px !important; }
  .hero-right-col { flex:unset !important; width:100% !important; max-width:100% !important; }
  .quick-grid { grid-template-columns:repeat(3,1fr) !important; }
  .news-grid { grid-template-columns:1fr !important; }
  .tour-grid, .video-grid { grid-template-columns:1fr 1fr !important; }
  .svc-grid { grid-template-columns:1fr 1fr !important; }
  .dash-stat-grid { grid-template-columns:1fr 1fr !important; }
  .dash-panels { grid-template-columns:1fr !important; }
  .events-offices { grid-template-columns:1fr !important; }
  .footer-grid { grid-template-columns:1fr 1fr !important; }
}
@media (max-width: 600px) {
  .quick-grid { grid-template-columns:repeat(2,1fr) !important; }
  .tour-grid, .video-grid { grid-template-columns:1fr !important; }
  .svc-grid { grid-template-columns:1fr !important; }
  .dash-stat-grid { grid-template-columns:1fr !important; }
  .footer-grid { grid-template-columns:1fr !important; }
  .hero-right-col { display:none !important; }
  .news-tabs-row { flex-direction:column !important; align-items:flex-start !important; }
  .offices-grid { grid-template-columns:1fr !important; }
}
