/* ---------------------------------------
   GLOBAL VARIABLES & BASE STYLES
---------------------------------------- *

/* GLOBAL PAGE CONTAINER */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white); /* main page background */
  box-shadow: 0 0 20px rgba(0,0,0,0.10);
  overflow: hidden;
  border-radius: 14px;
}

:root {
  --dark: #002D62;
  --light: #99BADD;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(to bottom, #f1f3f7, #cddbf0);
  margin: 0;
  padding: 20px;
  color: var(--dark);
}

/* ---------------------------------------
   CLEAN, RESPONSIVE, RETINA, STICKY HEADER
---------------------------------------- */

.site-header {
  background: var(--light);
  border-bottom: 4px solid var(--dark);
  padding: 14px 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);

  /* fade-in effect */
  opacity: 0;
  transform: translateY(-10px);
  animation: headerFade 0.6s ease forwards;
}

@keyframes headerFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: padding 0.25s ease;
}

/* LOGO */
.header-logo {
  height: 55px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
  transition: height 0.25s ease, max-width 0.25s ease;
}

/* TITLE */
.header-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  transition: font-size 0.25s ease;
}

/* SHRINK HEADER ON SCROLL */
.site-header.shrink .header-logo {
  height: 42px;
  max-width: 150px;
}

.site-header.shrink .header-title {
  font-size: 20px;
}

.site-header.shrink {
  padding: 6px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* MOBILE OPTIMIZATION FOR HEADER */
@media (max-width: 600px) {
  .header-logo {
    height: 46px;
    max-width: 140px;
  }
  .header-title {
    font-size: 22px;
  }
  .site-header.shrink .header-logo {
    height: 38px;
    max-width: 120px;
  }
  .site-header.shrink .header-title {
    font-size: 19px;
  }
}

/* ---------------------------------------
   HERO SECTION
---------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 360px;
  background-image: url('https://images.unsplash.com/photo-1530143311094-34d807799e1a?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .hero {
    height: 240px;
  }
}

.hero-overlay {
  background: rgba(0, 45, 98, 0.55);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 20px;
}

.hero h2 {
  font-size: 44px;
  margin: 0 0 8px 0;
  font-weight: 600;
}
.hero p {
  font-size: 18px;
  max-width: 680px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .hero h2 {
    font-size: 30px;
  }
  .hero p {
    font-size: 15px;
  }
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--white);
  transition: 0.25s;
}
.btn:hover {
  background: transparent;
  color: var(--white);
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------------------------------------
   WAVE SEPARATOR
---------------------------------------- */
.wave {
  margin-top: -2px;
}

/* ---------------------------------------
   FADE-IN ANIMATION
---------------------------------------- */
.fade {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.8s ease-out;
}
.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------
   SERVICES SECTION (fixed width)
---------------------------------------- */

.services {
  background: var(--light);
  padding: 30px 0;
  border-bottom: 4px solid var(--dark);
}

.services .wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.services h2 {
  margin-top: 0;
  font-size: 28px;
  text-align: left;
}
.services p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 900px;
}

@media (max-width: 600px) {
  .services {
    padding: 20px 0;
  }
  .services h2 {
    font-size: 22px;
  }
  .services p {
    font-size: 14px;
  }
}

/* ---------------------------------------
   TRUSTED BY LOGOS
---------------------------------------- */

.testimonials {
  padding: 40px 20px;
  background: #f3f7ff;
}

.testimonials h2 {
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 26px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .logo-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.logo-item {
  background: var(--white);
  border: 1px solid #ccd6ea;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;  
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-item img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* ---------------------------------------
   PAGE WRAPPER
---------------------------------------- */

.wrapper {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .wrapper {
    padding: 14px;
  }
}

.section-container {
  margin-bottom: 32px;
}
.section-container h2 {
  margin-top: 0;
}

/* ---------------------------------------
   EVENTS TABLE + SEARCH
---------------------------------------- */

input[type="text"] {
  width: 100%;
  max-width: 360px;
  padding: 8px;
  border: 1px solid var(--dark);
  border-radius: 4px;
}
@media (max-width: 600px) {
  input[type="text"] {
    max-width: 100%;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
th, td {
  border: 1px solid #ccc;
  padding: 8px;
}
th {
  background: var(--dark);
  color: white;
}
tr:nth-child(even) {
  background: var(--light);
}

.no-results {
  font-size: 13px;
  color: #555;
}

/* ---------------------------------------
   LIVE RESULTS INDICATOR
---------------------------------------- */

.live-indicator {
  font-size: 12px;
  margin-left: 6px;
  color: #0a8a0a;
  font-weight: 600;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { opacity: .4; }
  50% { opacity: 1; }
  100% { opacity: .4; }
}

/* ---------------------------------------
   PAGINATION
---------------------------------------- */

.pagination {
  margin: 8px 0 24px 0;
}

.pagination button {
  padding: 6px 10px;
  margin: 2px;
  border: 1px solid var(--dark);
  background: var(--white);
  color: var(--dark);
  border-radius: 4px;
  cursor: pointer;
  transition: 0.25s;
}
.pagination button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.pagination button.active {
  background: var(--dark);
  color: var(--white);
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------
   MOBILE EVENT CARDS
---------------------------------------- */

.card-container {
  display: none;
}

@media (max-width: 700px) {
  table {
    display: none;
  }

  .card-container {
    display: block;
  }

  .card {
    background: var(--white);
    border: 1px solid var(--dark);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }
  .card h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
  }
  .card .meta {
    margin-bottom: 6px;
    font-size: 14px;
  }
  .card a {
    display: inline-block;
    margin-right: 10px;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
  }
}

/* ---------------------------------------
   MEET DIRECTORS CALLOUT
---------------------------------------- */

.callout {
  background: var(--dark);
  color: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
}

.callout h2 {
  margin: 0 0 10px 0;
}
.callout p {
  margin: 0 0 14px 0;
}

.callout a {
  padding: 10px 22px;
  display: inline-block;
  border-radius: 999px;
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  transition: 0.25s;
}
.callout a:hover {
  background: transparent;
  color: white;
}

/* ---------------------------------------
   FOOTER
---------------------------------------- */

footer {
  background: var(--light);
  color: white;
  padding: 22px;
  text-align: center;
  margin-top: 40px;
}
footer .address {
  margin-bottom: 6px;
  opacity: 0.9;
}
