/* AZTRS Site CSS */
/* Color palette: navy #271E59 (brand), teal #3aaa88 (accent), dark-teal #2a8870 (hover) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  color: #444;
  line-height: 1.7;
  background: #fff;
}

/* Language switcher */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 9999;
  background: rgba(255,255,255,0.95);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.lang-current { color: #271E59; margin-right: 4px; }
.lang-sep { color: #aaa; }
.lang-other { color: #271E59; text-decoration: none; margin-left: 4px; }
.lang-other:hover { text-decoration: underline; }

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.site-logo img {
  height: 55px;
  width: auto;
  display: block;
}

/* Nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  align-items: center;
}
.main-nav a {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #271E59;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.main-nav a:hover { border-bottom-color: #3aaa88; }
.main-nav li.active > a { border-bottom-color: #3aaa88; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #271E59;
  border-radius: 2px;
}

/* Mobile nav */
@media (max-width: 900px) {
  .lang-switch { right: 52px; top: 28px; }
  .burger { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 16px 24px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    border-right: none;
  }
  .main-nav li:last-child a { border-bottom: none; }
}

/* Main */
main { min-height: 60vh; padding-bottom: 60px; }

/* Page container */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Page title */
.page-title {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 2px;
  color: #271E59;
  margin-bottom: 32px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #3aaa88;
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn:hover { background: #2a8870; color: #fff; }
.btn-sm { padding: 5px 14px; font-size: 0.75em; }

/* Footer */
footer {
  background: #271E59;
  color: #fff;
  padding: 40px 24px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-desc p { font-size: 0.92em; line-height: 1.7; }
.footer-contact p { font-size: 0.92em; line-height: 1.7; }
.footer-sdsn p { font-size: 0.85em; line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.footer-sdsn img { display: block; }
.footer-copy {
  text-align: center;
  font-size: 0.8em;
  opacity: 0.7;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-members-link {
  display: inline-block;
  margin-bottom: 8px;
  color: #6fe0bf;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-members-link:hover { color: #fff; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Alert banner */
.alert-banner {
  background: #e8f0fe;
  border-left: 4px solid #3aaa88;
  padding: 14px 48px 14px 20px;
  position: relative;
  font-size: 0.9em;
}
.alert-title { font-weight: 700; display: block; margin-bottom: 4px; }
.alert-dismiss {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  font-size: 1em;
  cursor: pointer;
  color: #271E59;
  line-height: 1;
  opacity: 0.6;
}
.alert-banner.hidden { display: none; }

/* Hero */
.hero { background: #f8f9fc; padding: 60px 24px; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 2.2em;
  font-weight: 700;
  color: #271E59;
  line-height: 1.4;
}
.hero h2 {
  font-size: 1.1em;
  font-weight: 400;
  color: #3aaa88;
  margin-top: 12px;
}
.hero-img img { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
}

/* Welcome text */
.welcome-text {
  text-align: center;
  font-style: italic;
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
  color: #555;
}

/* Feature sections */
.feature-section { padding: 48px 24px; }
.feature-section.alt-bg { background: #f8f9fc; }
.feature-inner { max-width: 1200px; margin: 0 auto; }
.feature-section h3 {
  font-size: 1.4em;
  font-weight: 700;
  color: #271E59;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.feature-section p { margin-bottom: 20px; color: #444; }

/* Intro box */
.intro-box {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 20px;
  background: #f8f9fc;
  border-radius: 8px;
}
.intro-box h2 {
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 2px;
  color: #271E59;
  margin-bottom: 16px;
}
.intro-box p {
  font-size: 1em;
  line-height: 1.7;
  color: #444;
  max-width: 700px;
  margin: 0 auto 20px;
}

/* Member grid */
.member-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px 16px;
  align-items: start;
}
@media (max-width: 1024px) { .member-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .member-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .member-grid { grid-template-columns: repeat(2, 1fr); } }

.member-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.member-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: #e0e0e0;
  flex-shrink: 0;
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-name {
  font-size: 0.72em;
  font-weight: 700;
  color: #271E59;
  margin: 0 0 8px;
  line-height: 1.4;
}
.member-quote {
  font-size: 0.75em;
  color: #555;
  line-height: 1.5;
  font-style: italic;
  flex-grow: 1;
  margin: 0 0 10px;
}
.member-cv {
  display: inline-block;
  background: #3aaa88;
  color: #fff;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.2s;
}
.member-cv:hover { background: #2a8870; }

/* Organi grid */
.organi-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 30px 16px;
  align-items: start;
}
@media (max-width: 1024px) { .organi-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .organi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .organi-grid { grid-template-columns: repeat(2, 1fr); } }
.member-position {
  font-size: 0.68em;
  font-weight: 600;
  color: #3aaa88;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.4;
}

/* Tabs */
.tabs-widget { display: flex; gap: 0; }
.tabs-nav {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid #e0e0e0;
}
.tab-btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85em;
  font-weight: 600;
  color: #271E59;
  transition: background 0.2s, color 0.2s;
}
.tab-btn.active { background: #3aaa88; color: #fff; }
.tab-btn:hover:not(.active) { background: #f0f4f8; }
.tabs-content { flex: 1; padding: 0 0 0 32px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

@media (max-width: 768px) {
  .tabs-widget { flex-direction: column; }
  .tabs-nav { width: 100%; border-right: none; border-bottom: 1px solid #e0e0e0; }
  .tabs-content { padding: 24px 0 0; }
}

/* Video */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 24px;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) { .media-grid { grid-template-columns: 1fr; } }
.media-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.media-card h3 {
  font-size: 1em;
  font-weight: 700;
  color: #271E59;
  margin-bottom: 8px;
}
.media-card p {
  font-size: 0.88em;
  color: #555;
  flex-grow: 1;
  margin-bottom: 16px;
}
.media-card .btn { align-self: flex-start; margin-top: auto; }

/* Document list */
.doc-list { list-style: none; padding: 0; }
.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  gap: 20px;
}
.doc-info { flex: 1; }
.doc-title { font-weight: 700; color: #271E59; display: block; }
.doc-subtitle { font-size: 0.85em; color: #555; margin-top: 4px; display: block; }

/* Statement list */
.statement-list { list-style: none; padding: 0; }
.statement-item {
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.statement-info { flex: 1; }
.statement-tag {
  font-size: 0.75em;
  font-weight: 700;
  color: #3aaa88;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.statement-title {
  font-size: 1.05em;
  font-weight: 700;
  color: #271E59;
  margin-bottom: 0;
  display: block;
}

/* Prose */
.prose {
  max-width: 800px;
  line-height: 1.8;
  font-size: 1.05em;
}
.prose p { margin-bottom: 1.2em; }

/* Tab content typography */
.tab-panel p { margin-bottom: 1em; }
.tab-panel ul, .tab-panel ol { margin: 1em 0 1em 1.5em; }
.tab-panel li { margin-bottom: 0.4em; }
.tab-panel h4 { color: #271E59; margin-top: 1.5em; margin-bottom: 0.5em; }
.tab-panel strong { color: #271E59; }
.tab-panel img { max-width: 100%; height: auto; margin: 8px 4px; }
.tab-panel blockquote { border-left: 3px solid #3aaa88; padding-left: 16px; margin: 16px 0; color: #555; font-style: italic; }

/* Announcement popup (modal) */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(39, 30, 89, 0.55);
  animation: popup-fade 0.15s ease-out;
}
.popup-box {
  position: relative;
  background: #fff;
  color: #333;
  max-width: 480px;
  width: 100%;
  border-radius: 10px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-top: 5px solid #3aaa88;
  animation: popup-rise 0.2s ease-out;
}
.popup-title {
  margin: 0 0 12px;
  color: #271E59;
  font-size: 1.3em;
  line-height: 1.3;
}
.popup-text {
  margin: 0 0 20px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.popup-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.popup-btn { display: inline-block; }
.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.popup-close:hover { color: #271E59; }
@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Inline announcement block on the home page */
.announcement-block {
  max-width: 1000px;
  margin: 24px auto;
  padding: 24px 28px;
  background: #f4f7f6;
  border-left: 5px solid #3aaa88;
  border-radius: 8px;
}
.announcement-title { margin: 0 0 10px; color: #271E59; font-size: 1.25em; line-height: 1.3; }
.announcement-text { margin: 0 0 16px; line-height: 1.6; color: #333; white-space: pre-wrap; }
.announcement-actions { display: flex; flex-wrap: wrap; gap: 10px; }
