/* DSS ABU Zaria Old Students Association — public site styles */
:root {
  --navy: #0b2545; --navy-2: #13315c; --gold: #c9a227; --gold-2: #e0c35a;
  --ink: #1d2433; --muted: #6b7280; --cream: #f6f3ea; --line: #e5e7eb;
  --radius: 14px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--ink); font-size: 1.05rem; background: #fff; }
h1, h2, h3, .font-serif { font-family: var(--font-serif); }
h4, h5, h6 { font-family: var(--font-sans); font-weight: 700; }
a { color: var(--navy-2); }
a:hover { color: var(--gold); }
img { max-width: 100%; }
.skip-link { position: absolute; z-index: 2000; background: var(--gold); color: var(--navy); padding: .5rem 1rem; }
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-gold { background: var(--gold) !important; }
.min-w-0 { min-width: 0; }
.border-dashed { border-style: dashed !important; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons */
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.nav-pills .nav-link.active { background: var(--navy); }
.nav-pills .nav-link { color: var(--navy); }
.badge-soft { background: rgba(201,162,39,.15); color: #7a5f0a; font-weight: 600; }
.alert-gold { background: #fbf5e1; border: 1px solid #ecd78d; color: #4a3b07; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Top bar + nav */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); padding: .4rem 0; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.main-nav { background: #fff; box-shadow: 0 2px 14px rgba(11,37,69,.08); padding: .55rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top { font-family: var(--font-serif); font-weight: 800; color: var(--navy); font-size: 1.12rem; }
.brand-bottom { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.main-nav .nav-link { color: var(--navy); font-weight: 600; padding: .5rem .8rem !important; border-radius: 8px; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--gold); }
.main-nav .dropdown-menu { border: 0; box-shadow: 0 12px 30px rgba(11,37,69,.15); border-top: 3px solid var(--gold); border-radius: 0 0 10px 10px; }
.main-nav .dropdown-item:active { background: var(--navy); }
@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* Admin bar + frontend edit controls */
.admin-bar { background: #111827; color: #fff; font-size: .86rem; padding: .35rem 0; position: relative; z-index: 1040; }
.admin-bar a { color: #e5e7eb; text-decoration: none; margin-right: .6rem; }
.admin-bar a:hover { color: var(--gold); }
.cms-section { position: relative; }
.section-edit-controls { position: absolute; top: 10px; right: 10px; z-index: 20; display: flex; gap: .35rem; align-items: center; opacity: 0; transition: opacity .15s; flex-wrap: wrap; justify-content: flex-end; }
.cms-section:hover > .section-edit-controls, .section-edit-controls:focus-within { opacity: 1; }
.has-admin-bar .cms-section:hover { outline: 2px dashed rgba(201,162,39,.8); outline-offset: -2px; }
body.hide-edit .section-edit-controls, body.hide-edit .frontend-edit { display: none !important; }
body.hide-edit .cms-section:hover { outline: none; }
.preview-banner { background: #fff3cd; color: #664d03; text-align: center; padding: .5rem; font-size: .9rem; }

/* Sections */
.section-pad { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.section-pad-sm { padding-top: 3rem; padding-bottom: 3rem; }
@media (max-width: 767px) { .section-pad { padding-top: 3rem; padding-bottom: 3rem; } }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--gold); font-size: .8rem; margin-bottom: .4rem; }
.section-title { color: var(--navy); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.title-rule { display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin: .8rem auto 0; }
.section-dark { color: #e8ecf3; }
.section-dark .section-title, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .text-muted { color: rgba(255,255,255,.7) !important; }
.prose { line-height: 1.75; max-width: 860px; }
.prose img { border-radius: 10px; height: auto; }
.prose h2, .prose h3 { color: var(--navy); margin-top: 1.6rem; }
.prose blockquote { border-left: 4px solid var(--gold); padding-left: 1rem; font-style: italic; }

/* Hero */
.hero .hero-slide { min-height: clamp(460px, 78vh, 720px); background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.hero .hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,37,69,.93) 0%, rgba(11,37,69,.72) 45%, rgba(11,37,69,.25) 100%); }
.hero-caption { position: relative; color: #fff; max-width: 1140px; padding-top: 2rem; padding-bottom: 3rem; }
.hero-caption .lead { max-width: 620px; color: rgba(255,255,255,.9); }
.hero-title, .hero-caption h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; max-width: 760px; line-height: 1.1; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 4px; background: var(--gold); }

/* Page header */
.page-header { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); background-size: cover; background-position: center; color: #fff; padding: 4rem 0 3rem; position: relative; overflow: hidden; }
.page-header::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border: 30px solid rgba(201,162,39,.15); border-radius: 50%; }
.page-header h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); }
.page-header .lead { color: rgba(255,255,255,.85); max-width: 760px; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,.75); text-decoration: none; }
.page-header .breadcrumb-item.active { color: var(--gold); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* About / vision */
.vm-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 6px 20px rgba(11,37,69,.06); }
.vm-card > i { font-size: 1.8rem; color: var(--gold); }
.vm-card h3 { color: var(--navy); margin-top: .5rem; }
.vm-values { grid-column: 1 / -1; background: var(--navy); color: #fff; border: 0; }
.vm-values h3 { color: #fff; }
.value-pill { border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: .2rem .8rem; font-size: .9rem; font-weight: 600; }
@media (max-width: 575px) { .vm-grid { grid-template-columns: 1fr; } }

/* Welcome */
.president-photo { width: 240px; height: 280px; object-fit: cover; border-radius: 18px; box-shadow: 14px 14px 0 var(--gold); }
.welcome-quote { font-size: 1.08rem; position: relative; }
.welcome-quote::before { content: "\201C"; font-family: var(--font-serif); font-size: 5rem; color: var(--gold); position: absolute; left: -.2rem; top: -2.6rem; opacity: .35; }

/* Stats */
.stat { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.stat i { font-size: 2rem; color: var(--gold); }
.stat-num { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; }
.stat-label { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: rgba(255,255,255,.75); }
.cms-section:not(.section-dark) .stat-num { color: var(--navy); }
.cms-section:not(.section-dark) .stat-label { color: var(--muted); }

/* Cards */
.news-card, .event-card, .project-card { border: 0; border-radius: var(--radius); box-shadow: 0 8px 26px rgba(11,37,69,.08); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.news-card:hover, .event-card:hover, .project-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11,37,69,.14); }
.news-card .card-title { color: var(--navy); }
.read-more { color: var(--gold); font-weight: 700; }
.object-fit-cover { object-fit: cover; }
.event-card { position: relative; }
.event-date { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy); border-radius: 10px; text-align: center; padding: .3rem .7rem; line-height: 1; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.event-date span { display: block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 800; }
.event-date small { font-size: .7rem; text-transform: uppercase; font-weight: 700; }
.date-chip { background: var(--navy); color: #fff; border-radius: 8px; min-width: 52px; text-align: center; padding: .35rem; line-height: 1.05; }
.date-chip span { display: block; font-weight: 800; font-size: 1.2rem; }
.date-chip small { font-size: .7rem; text-transform: uppercase; color: var(--gold); }
.notice-list { background: #fff; }
.announce-banner { display: flex; align-items: center; gap: 1rem; background: linear-gradient(90deg, var(--navy), var(--navy-2)); color: #fff; padding: 1rem 1.3rem; border-radius: var(--radius); border-left: 6px solid var(--gold); }
.announce-banner:hover { color: var(--gold); }
.announce-label { background: var(--gold); color: var(--navy); font-weight: 700; font-size: .75rem; padding: .2rem .6rem; border-radius: 6px; text-transform: uppercase; white-space: nowrap; }
.announce-title { font-weight: 700; }
.announce-text { color: rgba(255,255,255,.75); font-size: .95rem; }

.set-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 22px rgba(11,37,69,.08); transition: transform .2s; }
.set-card:hover { transform: translateY(-4px); }
.set-photo { height: 150px; background-size: cover; background-position: center; position: relative; background-color: var(--navy); }
.set-year { position: absolute; bottom: -18px; left: 16px; background: var(--gold); color: var(--navy); font-family: var(--font-serif); font-weight: 800; font-size: 1.3rem; padding: .2rem .8rem; border-radius: 8px; }
.set-card .p-3 { padding-top: 1.6rem !important; }
.decade-title { border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: .2rem; color: var(--navy); }
.album-tile { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--navy); }
.album-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-tile:hover img { transform: scale(1.06); }
.album-caption { position: absolute; inset: auto 0 0 0; padding: .8rem 1rem; background: linear-gradient(transparent, rgba(11,37,69,.92)); color: #fff; display: flex; flex-direction: column; }
.album-caption small { color: var(--gold); }
.gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.exec-card { background: #fff; border-radius: var(--radius); padding: 1.4rem 1rem; box-shadow: 0 8px 22px rgba(11,37,69,.07); }
.exec-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); }
.member-card { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; height: 100%; transition: border-color .2s, box-shadow .2s; }
.member-card:hover { border-color: var(--gold); box-shadow: 0 8px 20px rgba(11,37,69,.08); }
.summary-tile { background: var(--cream); border-radius: var(--radius); padding: 1.4rem; color: var(--muted); }
.summary-tile span { display: block; font-family: var(--font-serif); font-size: 2rem; font-weight: 800; color: var(--navy); }
.cta-block .lead { color: rgba(255,255,255,.85); }
.cta-card { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border: 0; border-radius: var(--radius); }

/* Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head { background: var(--navy); color: #fff; text-align: center; padding: .5rem; font-weight: 700; border-radius: 6px; }
.cal-cell { min-height: 110px; border: 1px solid var(--line); border-radius: 6px; padding: .35rem; background: #fff; }
.cal-cell.empty { background: #f9fafb; }
.cal-cell.today { border: 2px solid var(--gold); }
.cal-day { font-weight: 700; color: var(--navy); font-size: .9rem; }
.cal-event { display: block; background: rgba(201,162,39,.18); color: var(--navy); font-size: .78rem; border-radius: 4px; padding: .15rem .3rem; margin-top: .25rem; text-decoration: none; }

/* Forms */
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.4rem; }
.form-section h2 { font-size: 1.15rem; color: var(--navy); font-family: var(--font-sans); font-weight: 700; border-bottom: 2px solid var(--gold); display: inline-block; padding-bottom: .25rem; margin-bottom: 1.1rem; }
.auth-card { max-width: 460px; margin: 0 auto; border: 0; border-radius: 18px; box-shadow: 0 20px 50px rgba(11,37,69,.14); }

/* Footer */
.site-footer { background: #071a31; color: rgba(255,255,255,.75); padding: 4rem 0 1.5rem; border-top: 5px solid var(--gold); }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-title { color: #fff; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .main-nav, .site-footer, .admin-bar, .no-print { display: none !important; } }

/* Layout safety & mobile refinements */
main, .cms-section { overflow-x: clip; }
@media (max-width: 767px) {
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
  .hero-caption { padding-left: 1.25rem; padding-right: 1.25rem; }
  .president-photo { width: 200px; height: 230px; }
}
