/* Color Palette & Global Variables */
:root {
  --primary-dark: rgb(18, 31, 54);
  --primary-color: rgb(28, 51, 64);
  --primary-light: rgb(42, 72, 89);
  --bg-light: #f4f6f8;
  --accent-gold: rgb(217, 119, 6);
  --accent-gold-hover: rgb(180, 83, 9);
  --card-bg: #ffffff;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --border-color: #d1d5db;
	--link-light: #91f5fb;
	--link-light-other: rgb(237, 169, 76);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
	display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Header Navigation Bar */
header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand-title h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-title p {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.brand-title a {
  color: inherit;
  text-decoration: none;
}

/* Desktop Navigation List */
nav > ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

/* Main Navigation Items */
nav li {
  position: relative;
}

nav li > a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease-in-out;
}

/* Desktop Hover Trigger for Parent Link & Dropdown Menu */
nav li:hover > a {
  color: var(--accent-gold);
}

/* Absolute Positioned Sub-Menu (Hidden by Default) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  min-width: 220px;
  list-style: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-top: 3px solid var(--accent-gold);
  padding: 0.5rem 0;
  z-index: 1100;
}

.dropdown-menu li a {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  display: block;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: var(--primary-light);
  color: #ffffff;
}

/* Open Sub-menu on Hover (Desktop) */
@media (min-width: 769px) {
  nav li:hover > .dropdown-menu {
    display: block;
  }
}

/* Hide Mobile Controls on Desktop */
.nav-toggle,
.hamburger-label {
  display: none;
}

/* Main Content Layout Container */
.container {
  max-width: 1140px;
  margin: 2rem auto;
  padding: 0 1rem;
	flex: 1;
}

/* ICTM-Style Hero Announcement Banner */
.hero-banner {
  background-color: var(--card-bg);
  border-left: 8px solid var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.hero-banner h2 {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.hero-banner p {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* Page Banner Title */
.page-header {
  background-color: var(--card-bg);
  border-left: 8px solid var(--primary-dark);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-header h2 {
  color: var(--primary-dark);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Section Container & Tables */
.section-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.section-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 0.5rem;
}

/* Responsive Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.officers-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.officers-table th {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.officers-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.officers-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.officers-table tr:hover {
  background-color: #f1f5f9;
}

.officers-table a {
  color: var(--primary-light);
  font-weight: 500;
  text-decoration: none;
}

.officers-table a:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

.role-badge {
  display: inline-block;
  background-color: #e2e8f0;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

.btn-secondary {
  background-color: var(--accent-gold);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--accent-gold-hover);
}

/* 3-Column Portal Feature Grid */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.badge {
  display: inline-block;
  background-color: #e2e8f0;
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-top: 1rem;
  align-self: flex-start;
}

/* Photo Gallery */
.responsive-photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 16px; /* 24px vertical gap to give room for text, 16px horizontal */
  width: 100%;
}

.responsive-photo-gallery .gallery-item {
  flex: 1 1 calc(25% - 16px);
  min-width: 200px;
	max-width: 240px;
  display: flex;
  flex-direction: column;
}

.responsive-photo-gallery .image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1; /* Forces a perfect square */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 8px; /* Spacing between image and text */
}

.responsive-photo-gallery .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Uniformly crops without stretching */
  display: block;
}

.responsive-photo-gallery .photo-title {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #333;
  margin: 0;
  padding: 0 4px;
  /* Truncates long filenames with an ellipsis (...) if they overflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .responsive-photo-gallery .gallery-item {
			flex: 0 1 calc(50% - 16px);
			max-width: 100%;
  }
}

@media (max-width: 480px) {
  .responsive-photo-gallery .gallery-item {
			flex: 0 1 100%;
			max-width: 100%;
  }
}

/*************/

/* History & Speaker Highlights Section */
.info-section {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 1.75rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.info-section h3 {
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-section p {
  font-size: 0.95rem;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}

.info-section ul {
  list-style: square inside;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.info-section a {
  color: #93c5fd;
  text-decoration: underline;
}

/* Grounded Footer Section */
footer {
  background-color: var(--primary-color);
  color: #e2e8f0;
  padding: 2.5rem 1rem 1.5rem;
  font-size: 0.88rem;
  border-top: 4px solid var(--accent-gold);
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h2 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.4rem;
}

.footer-col p, .footer-col ul {
  margin-bottom: 0.5rem;
  list-style: none;
}

.footer-col a {
  color: var(--link-light);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: var(--link-light);
  text-decoration: none;
}

/* Mobile Responsive Breakpoints & Clean Stacked Sub-menus */
@media (max-width: 768px) {
  .hamburger-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
  }

  .hamburger-label span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
  }

  nav {
    width: 100%;
  }

  nav > ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-toggle:checked ~ nav > ul {
    display: flex;
  }

  /* Display Sub-menus Stacked on Mobile when Main Link is Hovered or Focused */
  nav li:hover > .dropdown-menu,
  nav li:focus-within > .dropdown-menu {
    display: block;
    position: static;
    background-color: var(--primary-light);
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--accent-gold);
    margin-left: 0.5rem;
    padding: 0.25rem 0;
  }

  .dropdown-menu li a {
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
  }

  .portal-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
}
