:root {
  --accent: #0066a2;
  --gold: #c79c4b;
  --max-width: 1100px;
  --light: #f9fafb;
  --bg: #eef4f7;
}
* {
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  color: #222;
}
.slideshow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 0.5;
}

header {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 8px 18px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.logo {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.org-info {
  flex: 1;
  text-align: right;
}
.org-info h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--accent);
}
.org-info .meta {
  font-size: 12px;
  color: #333;
  margin-top: 6px;
}

nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 30;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}
.nav-links {
  display: flex;
  gap: 14px;
}
.nav-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
}
.nav-links a:hover {
  background: color-mix(in srgb, currentColor 10%, white 90%); /* rgba(6, 51, 84, 0.06); */
}

main {
  max-width: var(--max-width);
  margin: 26px auto;
  padding: 0 18px;
}
section {
  background: white;
  padding: 24px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(12, 20, 30, 0.08);
  position: relative;
}
h2 {
  color: var(--accent);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}
h2 i {
  color: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  position: relative; /* ✅ needed to position arrow */
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(12, 20, 30, 0.04);
  background: #fefefe;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card h3 {
  color: var(--accent);
}

.card:hover {
  transform: translateY(-3px);
}

/* ✅ bottom-right arrow icon */
.card .more-arrow {
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
}

.card .more-arrow img {
  width: 100%;
  height: 100%;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.card:hover .more-arrow img {
  opacity: 1;
}

.board-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.board-item {
  flex: 0 0 48%;
  padding: 10px;
  border-radius: 6px;
  background: #f7fbff;
  border: 1px solid rgba(6, 51, 84, 0.06);
}

.more-link {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.more-link:hover {
  text-decoration: underline;
}

form {
  display: grid;
  gap: 10px;
}
input,
textarea,
select {
  padding: 10px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  font-size: 14px;
}
button {
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  background: #005c92;
}

footer {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 12px 18px;
  text-align: center;
  font-size: 13px;
  color: #444;
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .org-info {
    text-align: center;
  }
  .logo {
    width: 72px;
    height: 72px;
  }
  .board-item {
    flex: 0 0 100%;
  }
}
/* === Announcement Tabs === */
.tab-container {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
}

.tab {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 6px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.tab:hover {
  background: rgba(0, 102, 162, 0.06);
}

.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(0, 102, 162, 0.25);
}
/* === Fade animation for announcement list === */
.fade-list {
  opacity: 1;
  transition: opacity 0.4s ease;
  list-style-type: none;
  padding-left: 0;
}

.fade-list li {
  background: #fefefe;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

.fade-list li:hover {
  transform: translateX(3px);
}

/* Small icon color tweaks */
.fade-list li i {
  color: var(--gold);
  margin-right: 6px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--accent);
  cursor: pointer;
}

.brand {
  font-weight: 700;
  color: var(--accent);
}

/* Mobile / Tablet nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    display: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-links a {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-links.show {
    display: flex;
  }
}
.tab,
button,
.nav-links a {
  min-height: 44px; /* Apple/Google recommended */
}
@media (max-width: 640px) {
  .fade-list li {
    font-size: 14px;
    line-height: 1.5;
  }
}
input,
textarea,
select {
  font-size: 16px; /* prevents iOS zoom on focus */
}
@media (max-width: 900px) {
  section {
    padding: 18px;
  }
}
.visitor-counter {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ecwa-blue);
  text-align: center;
}
