:root {
  --navy: #1b2331;
  --navy-deep: #131b26;
  --slate: #373b47;
  --blue: #4db3f6;
  --coral: #f26b54;
  --grey: #efefef;
  --line: #dcdcdc;
  --text: #3a3f4a;
  --muted: #5b616d;
  --white: #ffffff;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 18px; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.25; }

/* Hero */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(rgba(27, 35, 49, 0.86), rgba(19, 27, 38, 0.92)),
    url("../images/pic-06.jpg") center 35% / cover no-repeat;
  min-height: 640px;
}
.hero-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 22px; }
.logo img { height: 92px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 14.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { padding: 6px 0; opacity: 0.92; }
.nav a:hover, .nav a.on { opacity: 1; color: var(--blue); }
.nav .mob-only { display: none; }
.contact-box { justify-self: end; border: 1px solid rgba(255, 255, 255, 0.5); padding: 10px 22px; font-size: 14.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-box:hover { border-color: var(--blue); color: var(--blue); }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: var(--white); font: inherit; padding: 6px 12px; cursor: pointer; }

.hero-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-top: 96px; padding-bottom: 150px; }
.hero-copy { max-width: 600px; padding-top: 24px; }
.hero-copy h1 { color: var(--white); font-size: 52px; font-weight: 400; line-height: 1.2; text-transform: uppercase; }
.hero-copy h1 b { font-weight: 800; }
.hero-copy p { margin-top: 20px; font-size: 21px; color: #e6e9ee; font-weight: 300; max-width: 520px; }
.rule { display: block; width: 90px; height: 3px; margin-top: 22px; background: linear-gradient(to right, var(--coral) 45%, rgba(255,255,255,0.35) 45%); }

.hero-panel { width: 310px; flex: none; background: rgba(19, 27, 38, 0.92); padding: 8px 22px 20px; margin-top: 10px; }
.hero-panel a.item { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.hero-panel a.item strong { display: block; font-size: 17px; font-weight: 600; color: var(--white); }
.hero-panel a.item span { display: block; font-size: 14.5px; color: #9aa1ad; margin-top: 3px; line-height: 1.5; }
.hero-panel a.item:hover strong { color: var(--blue); }
.more { display: inline-block; margin-top: 14px; font-size: 14.5px; color: var(--coral); }

/* Latest events */
.events-bar { position: relative; margin-top: -90px; }
.events-inner { display: flex; background: var(--white); box-shadow: 0 4px 24px rgba(0,0,0,0.18); }
.events-label { background: var(--navy); color: var(--white); width: 54px; flex: none; position: relative; }
.events-label span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.events-list { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; padding: 24px 30px; }
.ev { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.ev .date { flex: none; width: 46px; text-align: center; border: 1px solid var(--line); padding: 3px 0; font-size: 14px; line-height: 1.2; text-transform: uppercase; color: var(--muted); }
.ev .date b { display: block; font-size: 21px; color: var(--navy); font-weight: 600; }
.ev h4 { font-size: 15.5px; font-style: italic; font-weight: 600; color: var(--navy); }
.ev p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.ev p i { display: inline-block; vertical-align: middle; width: 26px; height: 2px; background: var(--coral); margin-left: 6px; }
.tour { position: relative; width: 320px; flex: none; color: var(--white); background: linear-gradient(rgba(19,27,38,0.1), rgba(19,27,38,0.1) 45%, rgba(19,27,38,0.75)), url("../images/pic-04.jpg") 50% 0% / cover; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 18px; gap: 10px; text-align: center; }
.tour .play { width: 38px; height: 38px; border: 1px solid var(--white); border-radius: 50%; position: relative; }
.tour .play::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 11px solid var(--white); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tour b { font-size: 19.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }

/* Info bar */
.info-bar { background: var(--grey); margin-top: 30px; padding: 24px 0; }
.info-inner { display: flex; align-items: center; gap: 16px; }
.info-inner > p { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.4; width: 190px; flex: none; }
.info-inner input, .info-inner select { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--line); background: var(--white); padding: 0 12px; font: inherit; font-size: 14.5px; color: var(--text); }
.btn-blue { flex: none; height: 44px; padding: 0 28px; background: var(--blue); color: var(--white); border: 0; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.btn-blue:hover { background: #3aa3ea; }

/* About */
.about { padding: 56px 0 60px; }
.about-grid { display: grid; grid-template-columns: 1fr 240px; gap: 24px; }
.about h2 { font-size: 19.5px; text-transform: uppercase; letter-spacing: 0.02em; }
.about-row { display: flex; gap: 22px; margin-top: 20px; }
.about-row img { width: 180px; height: 120px; object-fit: cover; flex: none; }
.about-row p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 10px; }
.about-row a.read, .item-more { color: var(--coral); font-size: 14px; }
.outline-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.outline-btns a { display: block; text-align: center; border: 1px solid var(--line); padding: 11px 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.outline-btns a:hover { border-color: var(--blue); color: var(--blue); }
.box { border: 1px solid var(--line); padding: 22px 22px 18px; }
.box h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.box li { padding: 9px 0; font-size: 14.5px; color: var(--text); border-bottom: 1px solid transparent; }
.box li a:hover { color: var(--blue); }
.box ul { margin-top: 10px; }
.box .more { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); display: block; }

/* News */
.news { background: linear-gradient(rgba(60,64,76,0.82), rgba(40,44,56,0.82)), url("../images/pic-03.jpg") center / cover; padding: 56px 0 70px; }
.news h2 { color: var(--white); font-size: 28.5px; font-weight: 400; margin-bottom: 18px; }
.news-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 0; background: var(--slate); }
.news-grid > .card { position: relative; color: var(--white); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.card.big { background: linear-gradient(rgba(19,27,38,0.15), rgba(19,27,38,0.7)), url("../images/pic-01.jpg") 50% 0% / cover; padding: 22px; }
.card.big h3 { color: var(--white); font-size: 15.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.card.small { background: var(--slate); border-left: 1px solid rgba(255,255,255,0.06); }
.card.small .pic { flex: 1; min-height: 150px; background-size: cover; background-position: center; }
.card.small .txt { padding: 16px 18px 20px; }
.card.small h3 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.card.small p { font-size: 14px; color: #aeb3bd; margin: 6px 0 8px; line-height: 1.6; }
.card.small a { color: var(--coral); font-size: 14px; }
.card.small .p1 { background-image: url("../images/pic-05.jpg"); background-position: 30% 8%; }
.card.small .p2 { background-image: url("../images/pic-07.jpg"); background-position: 50% 0%; }

/* Connect */
.connect { padding: 60px 0 56px; }
.connect h2 { font-size: 18px; text-transform: uppercase; margin-bottom: 26px; }
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.notes b { display: block; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.notes p { font-size: 14px; color: var(--text); line-height: 1.7; }
.notes small { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
.notes small::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); margin-right: 8px; vertical-align: middle; }

/* Stay connected */
.stay { background: var(--grey); }
.stay-inner { display: flex; align-items: stretch; }
.stay-blue { width: 230px; flex: none; background: var(--blue); color: var(--white); padding: 22px 20px; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.stay-title { flex: 1; align-self: flex-end; padding: 0 0 18px 24px; font-size: 18px; font-weight: 700; color: var(--navy); text-transform: uppercase; }
.news-form { width: 500px; flex: none; padding: 20px 0 20px 40px; }
.news-form h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.news-form form { display: flex; }
.news-form input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line); padding: 0 12px; font: inherit; font-size: 14px; }
.btn-coral { height: 42px; padding: 0 22px; background: var(--coral); color: var(--white); border: 0; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); height: 190px; }
.strip div { background-size: cover; }
.strip div:nth-child(1) { background-image: url("../images/pic-02.jpg"); background-position: 0% 20%; }
.strip div:nth-child(2) { background-image: url("../images/pic-09.jpg"); background-position: 50% 15%; }
.strip div:nth-child(3) { background-image: url("../images/pic-03.jpg"); background-position: 40% 20%; }
.strip div:nth-child(4) { background-image: url("../images/pic-06.jpg"); background-position: 80% 50%; }
.strip div:nth-child(5) { background-image: url("../images/pic-08.jpg"); background-position: 50% 10%; }

/* Footer */
footer { padding: 44px 0 30px; }
.fcols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.fcols h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 12px; }
.fcols li { font-size: 14px; line-height: 1.95; color: var(--text); }
.fcols li a:hover { color: var(--blue); }
.fbottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; text-align: center; font-size: 14px; color: var(--text); }
.fbottom nav { font-weight: 700; margin-bottom: 8px; }
.fbottom nav a { padding: 0 10px; }
.fbottom nav a + a { border-left: 1px solid var(--line); }

@media (max-width: 900px) {
  .hero-body { flex-direction: column; padding-bottom: 130px; }
  .hero-panel { width: 100%; }
  .hero-copy h1 { font-size: 39px; }
  .events-inner { flex-direction: column; }
  .events-label { width: auto; height: 38px; }
  .events-label span { transform: translate(-50%, -50%); }
  .events-list { grid-template-columns: 1fr; padding: 18px; }
  .tour { width: 100%; min-height: 160px; }
  .info-inner { flex-wrap: wrap; }
  .info-inner input, .info-inner select { flex: 1 1 45%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-row { flex-direction: column; }
  .about-row img { width: 100%; height: 180px; }
  .outline-btns { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr 1fr; }
  .stay-inner { flex-direction: column; }
  .stay-blue { width: 100%; }
  .stay-title { padding: 16px 20px 0; }
  .news-form { width: 100%; padding: 16px 20px; }
  .strip { grid-template-columns: repeat(2, 1fr); height: auto; }
  .strip div { height: 110px; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .hero-head { display: flex; justify-content: space-between; }
  .contact-box { display: none; }
  .nav .mob-only { display: block; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100px; left: 0; right: 0; flex-direction: column; background: var(--navy-deep); padding: 16px 20px; z-index: 5; align-items: flex-start; }
  .nav.open { display: flex; }
}

/* ==========================================================================
   Inner pages: legacy component classes in the template look
   ========================================================================== */
:root {
  --primary: #1b2331;
  --primary-light: #373b47;
  --secondary: #1b2331;
  --accent: #4db3f6;
  --botswana-blue: #4db3f6;
  --text-main: #3a3f4a;
  --text-muted: #5b616d;
  --border: #dcdcdc;
  --border-strong: #bdbdbd;
  --bg-light: #efefef;
  --danger: #f26b54;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 0;
  --shadow-sm: none;
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.12);
}
html { font-size: 112.5%; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
main.container { padding-top: 56px; }

.sub-banner { padding: 70px 20px 90px; }
.sub-banner h1 { color: var(--white); font-size: 46px; font-weight: 400; line-height: 1.2; text-transform: uppercase; max-width: 820px; }
.sub-banner p { margin-top: 18px; font-size: 20px; color: #e6e9ee; font-weight: 300; max-width: 700px; }
.hero.sub { min-height: 0; }

h1, h2, h3, h4 { color: var(--navy); }
main h2, .section-header h2 { font-size: 26px; text-transform: uppercase; letter-spacing: 0.01em; }
.section-header { margin-bottom: 28px; }
.section-header p { color: var(--text-muted); font-size: 16px; margin-top: 8px; max-width: 760px; }
main p { font-size: 16px; }
main a:not(.btn) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
main a:not(.btn):hover { color: var(--blue); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.news-grid > .card { border: 0; padding: 0; }
.news-grid > .card.big { padding: 22px; }
.card-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #3aa3ea; color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--slate); color: var(--white); }
.btn-outline { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-block { width: 100%; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-label .required { color: var(--coral); }
.form-control { width: 100%; padding: 11px 14px; font: inherit; font-size: 16px; border: 1px solid var(--border-strong); background: var(--white); color: var(--text); }
.form-control:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-text { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.file-upload-box { border: 2px dashed var(--border-strong); padding: 24px; text-align: center; background: var(--grey); cursor: pointer; }

.badge { display: inline-block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: none; color: var(--navy); padding: 0; }
.badge-warning, .badge-danger { color: var(--coral); }
.badge-neutral { color: var(--text-muted); }
.badge[style*="background"] { background: none !important; color: var(--navy) !important; }

.table-responsive { width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table th { background: var(--grey); font-weight: 700; color: var(--navy); }
.table tr:last-child td { border-bottom: none; }

.alert { padding: 18px 22px; margin-bottom: 24px; border: 1px solid var(--line); border-left: 4px solid var(--blue); background: var(--grey); color: var(--text); font-size: 16px; }
.alert-warning { border-left-color: var(--coral); }

.breadcrumbs, .section-tag { display: none; }

@media (max-width: 992px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .sub-banner { padding: 50px 20px 60px; }
  .sub-banner h1 { font-size: 32px; }
}
.portal-nav .user-pill div { color: var(--white) !important; }
.portal-nav .btn-outline { background: none; color: var(--white); border-color: rgba(255,255,255,0.5); }
.portal-nav .btn-outline:hover { color: var(--blue); border-color: var(--blue); }
.user-avatar { display: none !important; }

/* About page */
.about-main section { margin-bottom: 64px; }
.about-main h2 { margin-bottom: 20px; }
.ab-intro, .ab-sec { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: center; }
.ab-intro img, .ab-sec img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 15%; }
.ab-intro .lead { font-size: 21px; color: var(--navy); font-weight: 500; line-height: 1.5; margin-bottom: 16px; }
.ab-intro p, .ab-sec p { color: var(--text-muted); line-height: 1.7; }
.obj-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.obj-row div { border-top: 3px solid var(--navy); padding-top: 14px; }
.obj-row i { font-style: normal; font-size: 34px; font-weight: 300; color: var(--coral); }
.obj-row p { margin-top: 6px; color: var(--text); line-height: 1.55; }
.ab-band { min-height: 260px; display: flex; align-items: flex-end; padding: 32px; background: linear-gradient(rgba(19,27,38,0.7), rgba(19,27,38,0.92)), url("../images/pic-01.jpg") 50% 30% / cover; }
.ab-band h3 { color: var(--white); font-size: 26px; text-transform: uppercase; font-weight: 400; }
.ab-band p { color: #e6e9ee; margin-top: 6px; font-size: 18px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.person { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.person b { display: block; font-size: 19px; color: var(--navy); }
.person span { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); margin: 4px 0 8px; }
.person p { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.ab-sec { grid-template-columns: 6fr 5fr; }
.ab-sec img { order: 2; height: 320px; object-position: 50% 30%; }
.policy { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding: 18px 0; }
.policy:last-child { border-bottom: 1px solid var(--line); }
.policy b { font-size: 18px; color: var(--navy); }
.policy p { color: var(--text-muted); font-size: 15px; margin-top: 2px; }
.policy span { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
@media (max-width: 900px) {
  .ab-intro, .ab-sec { grid-template-columns: 1fr; gap: 24px; }
  .ab-sec img { order: 0; }
  .ab-intro img, .ab-sec img { height: 240px; }
  .obj-row { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .policy { grid-template-columns: 1fr; gap: 6px; }
  .about-main section { margin-bottom: 44px; }
}
@media (max-width: 560px) { .obj-row, .people { grid-template-columns: 1fr; } .ab-band { min-height: 200px; padding: 22px; } }

/* Mobile fixes */
@media (max-width: 768px) {
  .doc-item { flex-direction: column !important; align-items: flex-start !important; }
  .doc-item > *:last-child { align-self: stretch; }
  .doc-item .btn, .card .btn { white-space: normal; text-align: center; max-width: 100%; }
  .card { padding: 20px; }
  .card .btn-primary, .card .btn-outline { max-width: 100%; }
  .portal-nav-inner { flex-wrap: wrap; gap: 10px; }
  .portal-nav .logo img { height: 52px !important; }
  .portal-nav .user-pill { gap: 10px; }
  .portal-nav .user-pill > div:not(.user-avatar) { max-width: 150px; }
  .table-responsive .table { min-width: 560px; }
  .table-responsive { -webkit-overflow-scrolling: touch; }
  .table-responsive .table td, .table-responsive .table th { word-break: normal; }
  .strip > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stay-title { text-align: left; }
  .section-header[style*="flex"] { flex-direction: column; align-items: flex-start !important; gap: 12px; }
  form[style*="flex"] > * { flex: 1 1 100%; }
  .card [style*="display: flex"][style*="space-between"] { flex-wrap: wrap; gap: 6px; }
}
.member-card-badge h2 { color: var(--white); }
@media (max-width: 768px) {
  .member-card-badge { grid-column: auto !important; padding: 22px !important; }
  .member-card-badge > div { flex-wrap: wrap; gap: 10px; }
  .member-card-badge [style*="gap: 2rem"] { flex-direction: column; gap: 8px !important; }
  .table-responsive .table th:first-child, .table-responsive .table td:first-child { min-width: 240px; }
  .table-responsive .table { min-width: 720px; }
}
