/* NEDP Custom Styles */
:root {
  --nedp-primary: #1A2B3C;
  --nedp-blue: #4A90A4;
  --nedp-red: #8B4558;
  --nedp-bg-light: #F8FAFC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Helvetica, Arial, sans-serif; margin: 0; background: var(--nedp-bg-light); color: #1e293b; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--nedp-blue); border-radius: 3px; }
::selection { background: var(--nedp-blue); color: #fff; }

/* Typography */
.font-serif { font-family: Georgia, 'Times New Roman', serif; }

/* Nav */
.nav-link { position: relative; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px; border-radius: 4px; text-decoration: none; color: var(--nedp-primary); transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--nedp-blue); background: rgba(74,144,164,0.07); }
.nav-link.active { color: var(--nedp-red); background: rgba(139,69,88,0.06); }
.nav-link::after { content:''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--nedp-red); transition: width 0.2s; border-radius: 1px; }
.nav-link:hover::after { width: 75%; }

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; margin-top: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; min-width: 210px; box-shadow: 0 10px 25px rgba(0,0,0,0.12); overflow: hidden; z-index: 100; }
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: block; }
.dropdown-label { background: rgba(26,43,60,0.05); padding: 8px 16px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; color: #64748b; font-weight: 700; border-bottom: 1px solid #f1f5f9; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 14px; font-weight: 500; color: var(--nedp-primary); text-decoration: none; border-bottom: 1px solid #f8fafc; transition: background 0.15s, color 0.15s; }
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(74,144,164,0.06); color: var(--nedp-blue); }
.dropdown-menu a.active { color: var(--nedp-red); background: rgba(139,69,88,0.05); }
.dropdown-btn { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px; border-radius: 4px; border: none; background: none; color: var(--nedp-primary); cursor: pointer; display: flex; align-items: center; gap: 4px; transition: color 0.2s, background 0.2s; }
.dropdown-btn:hover { color: var(--nedp-blue); background: rgba(74,144,164,0.07); }
.dropdown-btn.active { color: var(--nedp-red); }

/* Header accent stripe */
.header-accent { height: 3px; background: linear-gradient(90deg, var(--nedp-primary), var(--nedp-blue), var(--nedp-red)); }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--nedp-red), #a0314a); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; padding: 12px 24px; border-radius: 8px; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; box-shadow: 0 4px 12px rgba(139,69,88,0.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,69,88,0.35); background: linear-gradient(135deg, #a0314a, var(--nedp-primary)); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; padding: 12px 24px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-blue { background: var(--nedp-blue); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s; }
.btn-blue:hover { background: #3d7d91; }

/* Hero */
.hero { background: var(--nedp-primary); position: relative; overflow: hidden; min-height: 680px; display: flex; align-items: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,43,60,1) 0%, rgba(26,43,60,0.93) 60%, rgba(74,144,164,0.4) 100%); }
.hero-skew { position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: rgba(74,144,164,0.08); transform: skewX(-12deg) translateX(25%); }

/* Ticker */
.ticker-bar { background: var(--nedp-red); color: #fff; padding: 8px 0; font-size: 13px; }

/* Cards */
.card { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: rgba(74,144,164,0.3); transform: translateY(-2px); }

/* Section label */
.section-label { display: inline-block; background: rgba(74,144,164,0.12); color: var(--nedp-blue); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; padding: 4px 12px; border-radius: 4px; margin-bottom: 16px; }

/* Mobile nav */
.mobile-nav { display: none; background: #fff; border-top: 1px solid #f1f5f9; position: absolute; width: 100%; left: 0; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 40; }
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav button { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nedp-primary); border-bottom: 1px solid #f8fafc; text-decoration: none; width: 100%; background: none; border-left: none; border-right: none; border-top: none; cursor: pointer; }
.mobile-nav a.active { color: var(--nedp-red); }
.mobile-nav-sub { background: rgba(26,43,60,0.03); }
.mobile-nav-sub a { padding-left: 36px; font-size: 13px; }

/* Gallery grid */
.gallery-grid { columns: 2; column-gap: 12px; }
@media (min-width: 640px) { .gallery-grid { columns: 3; } }
@media (min-width: 1024px) { .gallery-grid { columns: 4; } }
.gallery-item { break-inside: avoid; margin-bottom: 12px; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { display: block; width: 100%; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .overlay { position: absolute; inset: 0; background: rgba(26,43,60,0); transition: background 0.3s; display: flex; align-items: center; justify-content: center; }
.gallery-item:hover .overlay { background: rgba(26,43,60,0.4); }
.gallery-item .overlay span { color: #fff; font-size: 28px; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .overlay span { opacity: 1; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: fixed; top: 20px; right: 24px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; background: none; border: none; }

/* Constitution TOC */
.toc-item { display: block; width: 100%; text-align: left; padding: 8px 16px; font-size: 11px; border-left: 2px solid transparent; color: #64748b; text-decoration: none; transition: all 0.15s; background: none; border-right: none; border-top: none; border-bottom: none; cursor: pointer; }
.toc-item:hover { color: var(--nedp-primary); background: #f8fafc; border-left-color: rgba(26,43,60,0.2); }
.toc-item.active { color: var(--nedp-blue); background: rgba(74,144,164,0.06); border-left-color: var(--nedp-blue); font-weight: 600; }

/* Form */
.form-input { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; background: #fff; color: #1e293b; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-input:focus { border-color: var(--nedp-blue); box-shadow: 0 0 0 3px rgba(74,144,164,0.12); }
.form-label { font-size: 13px; font-weight: 600; color: var(--nedp-primary); margin-bottom: 6px; display: block; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* Fade in */
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 1023px) { .desktop-nav { display: none !important; } }
@media (min-width: 1024px) { .mobile-toggle { display: none !important; } }

/* Top bar */
.top-bar { background: var(--nedp-primary); color: rgba(255,255,255,0.9); font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Footer */
footer { background: var(--nedp-primary); color: #fff; border-top: 6px solid var(--nedp-red); }
