/* General Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #1a1a1a;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 3px solid #EFBF04;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

header h1 {
  font-size: 1.75rem;
  color: #0047AB;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

nav ul li {
  display: inline-block;
  position: relative;
}

nav ul li a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

nav ul li a:hover {
  background-color: #EFBF04;
  color: #000;
}

/* Dropdown Menu */
ul li ul.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}

ul li ul.dropdown li {
  display: block;
}

ul li ul.dropdown li a {
  padding: 0.75rem 1.25rem;
  border-radius: 0;
}

ul li:hover ul.dropdown {
  display: block;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 71, 171, 0.9), rgba(0, 71, 171, 0.7)),
    url('https://images.pexels.com/photos/747784/pexels-photo-747784.jpeg?cs=srgb&dl=pexels-freestocks-747784.jpg&fm=jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 1rem;
  position: relative;
}

.hero-text {
  max-width: 700px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: #EFBF04;
  color: #000;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid #EFBF04;
}

.btn:hover {
  background-color: #0047AB;
  color: #fff;
  border-color: #0047AB;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
}

/* Main Content */
main {
  padding: 3rem 0;
}

.intro {
  text-align: left;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.intro h2 {
  color: #0047AB;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.intro p {
  font-size: 1.1rem;
  color: #555;
}

/* Cards Section */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-top: 4px solid #EFBF04;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card h3 {
  color: #0047AB;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.card p {
  margin-bottom: 1rem;
  color: #555;
  line-height: 1.7;
}

.link {
  color: #0047AB;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.link:hover {
  color: #EFBF04;
}

.link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.link:hover::after {
  transform: translateX(4px);
}

/* Form Styles */
.form-container {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 2rem auto;
}

.form-container h2 {
  color: #0047AB;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-group label {
  flex: 0 0 120px;
  /* Fixed width for labels */
  margin-bottom: 0;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
  flex: 1;
  /* Input takes remaining space */
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #EFBF04;
  box-shadow: 0 0 0 3px rgba(239, 191, 4, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Stack on small screens */
@media (max-width: 600px) {
  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .form-group label {
    flex: none;
    width: 100%;
    text-align: left;
  }
}

.contact-info {
  text-align: center;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
  color: #0047AB;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 4rem;
}

footer p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

footer a {
  color: #EFBF04;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #fff;
}

/* Accessibility */
:focus {
  outline: 3px solid #EFBF04;
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 3px solid #EFBF04;
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1.875rem;
  }

  nav ul {
    width: 100%;
    justify-content: center;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  /* Use min-height to allow expansion for content, utilizing proper responsive units */
  min-height: 60vh;
  overflow: hidden;
  background-color: #000;
  display: flex;
  /* Centers the track logic */
}

.carousel-track {
  display: grid;
  grid-template-areas: "slide";
  /* Stack slides on top of each other */
  width: 100%;
  height: 100%;
}

.carousel-slide {
  grid-area: slide;
  /* All slides occupy the same grid cell */
  width: 100%;
  height: 100%;
  /* Fill the container/track */
  min-height: 60vh;
  /* Ensure consistency with container */
  opacity: 0;
  /* Hidden by default */
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  /* Flexbox for centering text content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  /* Add padding to prevent text touching edges on small screens */
  pointer-events: none;
  /* Allow clicking through invisible slides */
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  /* Enable clicks on the active slide */
}

/* Ensure hero text inside carousel is styled similarly to original hero */
.carousel-slide .hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  /* Limit width for readability */
  margin: 0 auto;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  padding: 2.5rem;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-slide .hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-slide .hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(239, 191, 4, 0.8);
  /* Brand yellow */
  color: #000;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: #EFBF04;
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .carousel-container,
  .carousel-slide {
    min-height: 50vh;
    /* Allow slightly shorter on mobile but still substantial */
  }

  .carousel-slide .hero-text {
    padding: 1.5rem;
    /* Reduced padding on mobile */
  }

  .carousel-slide .hero-text h2 {
    font-size: 2rem;
    /* Smaller heading on mobile */
  }

  .carousel-slide .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .carousel-btn {
    padding: 0.5rem;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .carousel-slide .hero-text {
    padding: 1.25rem;
  }

  .carousel-slide .hero-text h2 {
    font-size: 1.75rem;
  }

  .carousel-btn {
    display: none;
    /* Hide arrows on very small screens to give more space to text? Or keep them small. */
  }
}

/* Board of Directors Styles */
.section-title {
  text-align: center;
  margin: 3rem 0 2rem;
  color: #0047AB;
  font-size: 2rem;
  border-bottom: 2px solid #EFBF04;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Executive Grid */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.exec-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border-top: 4px solid #EFBF04;
}

.exec-card:hover {
  transform: translateY(-5px);
}

.exec-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #f0f0f0;
}

.exec-card h3 {
  color: #0047AB;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.exec-card p {
  color: #666;
  font-weight: 500;
}

/* Directors Grid */
.directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.director-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  border-left: 4px solid #0047AB;
}

.director-card h3 {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.director-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Responsive Board */
@media (max-width: 992px) {
  .exec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .exec-grid {
    grid-template-columns: 1fr;
  }

  .directors-grid {
    grid-template-columns: 1fr;
  }
}