/* General Styles */
/* General Styles */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background: url('images/PageBackgrounds/background.jpg') no-repeat center center fixed; 
  background-size: cover;
  color: #333;
  line-height: 1.6;
}

/* Header */
.site-header {
  background-color: #1a237e; /* Dark blue */
  color: #fff;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.search-container {
  margin: 1em 0;
  text-align: center;
}

#search-input {
  padding: 0.5em 1em;
  width: 60%;
  max-width: 500px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}


.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.orca-logo {
  height: 40px;
  width: 40px;
  filter: invert(1); /* Make placeholder SVG white */
}

.logo-text .title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.logo-text .subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

/* Navigation */
.site-nav .page-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 25px;
}

.site-nav .page-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.site-nav .page-menu a:hover,
.site-nav .page-menu a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; /* Hidden by default, shown on small screens */
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle .bar {
  width: 24px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hamburger animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.page-menu.mobile-menu {
  display: none; /* Hidden by default */
  flex-direction: column;
  position: absolute;
  top: 100%; /* Position below the header */
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.page-menu.mobile-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.page-menu.mobile-menu li {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-menu.mobile-menu li:last-child {
  border-bottom: none;
}

.page-menu.mobile-menu a {
  display: block;
  padding: 18px 25px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
}

.page-menu.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px);
  color: #e8eaf6;
}

.page-menu.mobile-menu a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
}

.page-menu.mobile-menu a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #3f51b5;
}

/* Hero Sections */
.hero-section {
  background-color: #3f51b5; /* Medium blue */
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 30px;
  background-image: url("/public/images/PageBackgrounds/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.9;
}

/* Main Content Sections */
.site-main {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.content-section {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.section-heading {
  font-size: 32px;
  color: #1a237e;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #3f51b5;
  border-radius: 2px;
}

.paragraph {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

.inline-link {
  color: #3f51b5;
  text-decoration: none;
  font-weight: bold;
}

.inline-link:hover {
  text-decoration: underline;
}

.button-container {
  text-align: center;
  margin-top: 30px;
}

.button {
  display: inline-block;
  background-color: #3f51b5;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
  background-color: #303f9f;
  transform: translateY(-2px);
}

/* Contact Page Specific */
.contact-details-section .contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-details-section .contact-info {
  font-size: 18px;
  color: #444;
  text-align: left;
}

.contact-details-section .contact-info a {
  color: #3f51b5;
  text-decoration: none;
}

.contact-details-section .contact-info a:hover {
  text-decoration: underline;
}

/* Links Page Specific */
.links-list-section .links-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.links-list-section .link-item {
  display: block;
  background-color: #e8eaf6; /* Lighter blue */
  color: #1a237e;
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.links-list-section .link-item:hover {
  background-color: #c5cae9; /* Even lighter blue */
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Events Page Specific */
.events-section {
  padding: 20px;
  /*background-color: #f0f2f5;*/
}

.tabs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.tab-button {
  background-color: #e0e0e0;
  color: #555;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent wrapping */
}

.tab-button:hover {
  background-color: #d0d0d0;
}

.tab-button.active {
  background-color: #3f51b5; /* Active tab color */
  color: #fff;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.event-card {
  background-color: rgba(255, 255, 255, 0.7); /* White background with 70% opacity */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.event-type-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Color coding for event types */
.tag-akc-coursing {
  background-color: #4285f4;
} /* Blue */
.tag-cabt {
  background-color: #34a853;
} /* Green */
.tag-cwa-wra-lgra {
  background-color: #9c27b0;
} /* Purple */
.tag-orca-fcat {
  background-color: #ea4335;
} /* Red */
.tag-asfa-coursing {
  background-color: #00bcd4;
} /* Cyan/Teal */

.event-date {
  font-size: 14px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-date svg {
  width: 16px;
  height: 16px;
  fill: #777;
}

.event-title {
  font-size: 22px;
  font-weight: bold;
  color: #1a237e;
  margin-bottom: 8px;
}

.event-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto; /* Pushes links to the bottom */
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ff9800; /* Orange */
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.event-link:hover {
  background-color: #fb8c00;
  transform: translateY(-1px);
}

.event-link svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Footer */
.site-footer {
  background-color: #1a237e;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 50px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Hide the desktop navigation menu on mobile */
  .site-nav .page-menu:not(.mobile-menu) {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-heading {
    font-size: 28px;
  }

  .paragraph {
    font-size: 16px;
  }

  .tabs-container {
    flex-direction: column;
    align-items: center;
  }

  .tab-button {
    width: 100%;
    max-width: 300px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    padding: 20px;
  }

  .event-title {
    font-size: 20px;
  }

  .event-description {
    font-size: 15px;
  }

  .event-link {
    width: 100%;
    justify-content: center;
  }

  .links-list-section .links-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px 15px;
  }

  .logo-text .title {
    font-size: 20px;
  }

  .logo-text .subtitle {
    font-size: 12px;
  }

  .hero-section {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .content-section {
    padding: 25px;
  }

  .section-heading {
    font-size: 24px;
  }

  .paragraph {
    font-size: 15px;
  }

  .button {
    padding: 10px 20px;
    font-size: 16px;
  }
}