/* Base Styles */
/* Hamburger styles from forum.css */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.gold-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.7em;
  color: #888;
  cursor: pointer;
}

.login-register-container {
	margin-left: auto;
	list-style-type: none;
	display: flex;
	align-items: center;
	gap: 10px;
}

.login-register-container a, .login-register-container button {
	display: inline-flex;
	text-decoration: none;
	background: #3D3B40;
	padding: 8px 22px;
	color: #00BBFF;
	font-weight: 400;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(61,59,64,0.13);
	transition: 0.2s, color 0.2s, box-shadow 0.2s;
	border: 1.5px solid #3D3B40;
	letter-spacing: 0.5px;
	font-size: 1.08em;
	text-transform: lowercase;
}

.login-register-container a#lang-toggle {
	margin-left: 270px;
}

/* Move login and contact into hamburger at small widths */
@media (max-width: 550px) {
  /* Hide header container */
  .login-register-container {
	display: none !important;
  }
  /* Show login and contact in nav-menu */
  #nav-menu li.login-register,
  #nav-menu li.contact-buttons {
	display: block !important;
  }
}

/* Prevent duplicate login/contact in header on mobile */
@media (max-width: 900px) {
  .login-register-container {
	display: none !important;
  }
}


/* Mobile styles */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
  .navbar .nav-left {
    flex: 1;
  }
  #nav-menu,
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80vw;
    max-width: 400px;
    background: #222;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 60px;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    z-index: 1100;
  }
  #nav-menu.active,
  .nav-menu.active {
    transform: translateX(0);
  }
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    visibility: visible;
    z-index: 1090;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .nav-overlay:not(.active) {
    opacity: 0;
    visibility: hidden;
  }
  #nav-menu li,
  .nav-menu li {
    margin: 0 0 18px 24px;
  }
  .close-menu-li {
    position: absolute;
    top: 12px;
    right: 18px;
    z-index: 1201;
  }
  .close-menu {
    background: none;
    border: none;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    display: block;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
 }

.container {
  width: 100%;
  max-width: 1400px; /* Increased max-width for 5 cards */
  margin: 0 auto;
  padding: 0 60px; /* Added more side padding */
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000000;
  z-index: 1000;
  padding: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

header::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.25px;
  opacity: 0.7;
  z-index: 10;
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  gap: 10px;
}

.nav-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: auto;
  margin-bottom: 0;
}

.logo {
  height: 35px;
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.logo-icon img {
  height: 100%;
  width: auto;
  display: block;
}

.searchbar {
  height: 35px;
  display: flex;
  align-items: center;
  background: transparent !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 2px 8px 2px 8px;
  transition: box-shadow 0.2s;
  border: 1px solid #e0e0e0;
  min-width: 250px;
  width: 100%;
  position: relative;
}

.searchbar:focus-within {
  box-shadow: 0 4px 16px rgba(61, 59, 64, 0.12);
  border-color: #bdbdbd;
}

.searchbar input {
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  width: 170px;
  color: white;
  height: 100%;
}

.searchbar .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
  pointer-events: none;
}

.searchbar button {
  border: none;
  background: none;
  cursor: pointer;
  color: #00000000;
  font-size: 18px;
  display: none;
  align-items: center;
  transition: color 0.2s;
}

.searchbar button:hover {
  color: #222;
}

.map-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
}

.map-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 20px;
 }

#nav-menu,
.nav-menu {
  display: flex;
  list-style: none;
  transition: transform 0.4s ease;
}

#nav-menu li,
.nav-menu li {
  margin: 0 10px;
  position: relative;
}

#nav-menu li a,
.nav-menu li a {
  text-decoration: none;
  color: white;
  padding: 7px 0;
  display: inline-block;
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.01em;
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

#nav-menu li a:hover,
.nav-menu li a:hover {
  color: rgb(51, 51, 51) !important;
  text-shadow: 0 1px 6px rgba(255, 193, 7, 0.1);
}

#nav-menu li a::after,
.nav-menu li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #1866b6;
  transition: width 0.3s ease;
}

#nav-menu li a:hover::after,
.nav-menu li a:hover::after {
  width: 100%;
}

.social-links {
  display: inline-flex;
 
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  margin-left: 10px;
  position: relative;
}

.hamburger span,
.hamburger div {
  display: block;
  width: 30px;
  height: 3px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1),
.hamburger.active div:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2),
.hamburger.active div:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3),
.hamburger.active div:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.contact-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Login button: dark background, white text, professional look (MATCH index.html) */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
  width: 100%;
  padding-right: 38px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 1.2em;
  z-index: 2;
  background: none;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 28px;
  transition: color 0.2s;
}

.toggle-password:focus,
.toggle-password:hover {
  color: #2d8cff;
}

.zoom-link-container {
  display: inline-flex;
  margin-top: 8px;
}

.contact-us {
	background: #3D3B40;
	border: none;
	color: #00BBFF;
	font-size: 16px;
	cursor: pointer;
	padding: 10px 20px;
	border-radius: 5px;
	transition: background-color 0.3s, color 0.3s;
}

.contact-us:hover {
	background: #1866b6;
}

/*Responsive Rules for contact*/
@media (max-width: 600px) {
   .content-header {
     flex-direction: column;
     align-items: flex-start;
   }

   .contact-container {
     justify-content: flex-start;
   }
   
   .contact-row {
     flex-direction: column !important;
     align-items: flex-start !important;
     gap: 8px !important;
   }
   .contact-container {
     width: 100% !important;
     flex-direction: row !important;
     align-items: center !important;
     gap: 8px !important;
   }
   .contact-row > a.zoom-link {
     margin-bottom: 4px !important;
     display: block;
   }
   .contact-us-container > .contact-us {
     margin-bottom: 4px !important;
   }
   #nav-menu .contact-buttons .contact-us {
	  margin-top: 0; /* Reset margin for mobile */
  }

  #nav-menu .login-register a,
  #nav-menu .contact-buttons .contact-us {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 18px;
  }
}
/*Responsive Rules for contact end*/

.btn {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #2980b9;
  cursor: pointer;
}

/* Member Introduction Section */
.members {
  padding: 4rem 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  gap: 1rem; /* Adjusted gap */
}

.member-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-10px);
}

.member-img {
  height: 200px; /* Slightly reduced height */
  background-size: cover;
  background-position: center;
  width: 100%;
}

.member-info {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.member-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.member-info p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.member-info .btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Video Sections */
.video-section {
  padding: 4rem 0;
  background-color: #f1f1f1;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Promotional Video Section */
.promo-video {
  padding: 4rem 0;
  background-color: white;
}

/* Footer*/
    footer {
      background-color: #000;
      color: #fff;
      padding: 60px 0 30px;
      margin-top: auto;
    }
    
    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      margin-bottom: 40px;
    }
    
    .footer-column h3 {
      font-size: 1.4rem;
      margin-bottom: 25px;
      position: relative;
      padding-bottom: 10px;
    }
    
    .footer-column h3::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 50px;
      height: 3px;
      background: linear-gradient(to right, #00BBFF, #000000);
      border-radius: 3px;
    }
    
    .footer-logo {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
    }
    
    .footer-logo i {
      font-size: 2.5rem;
      color: #00BBFF;
      margin-right: 15px;
    }
    
    .footer-logo span {
      font-size: 1.8rem;
      font-weight: 700;
      background: linear-gradient(to right, #00BBFF, #000000);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    
    .footer-column p {
      line-height: 1.7;
      color: #aaa;
      margin-bottom: 20px;
    }
    
    .footer-links {
      list-style: none;
    }
    
    .footer-links li {
      margin-bottom: 15px;
    }
    
    .footer-links a {
      color: #ddd;
      text-decoration: none;
      transition: color 0.3s ease;
      display: flex;
      align-items: center;
    }
    
    .footer-links a i {
      margin-right: 10px;
      color: #00BBFF;
      width: 20px;
      text-align: center;
    }
    
    .footer-links a:hover {
      color: #00BBFF;
    }

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 80%;
  max-width: 700px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.close-modal {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #333;
}

.modal-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 5px solid #3498db;
}

.modal-profile-info {
  text-align: center;
  width: 100%;
}

.modal-profile-info h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.modal-profile-info h3 {
  color: #3498db;
  margin-bottom: 20px;
}

.modal-profile-info p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.modal-links a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.modal-links a:hover {
  background: #2980b9;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.stats {
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.map-section {
  padding: 4rem 0;
  background-color: white;
  margin-top: 100px;
}

.map-text-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
}

.map-text-title h1 {
  color: #DC6B2F;
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 10px;
}

.map-text-title strong {
  display: block;
  font-size: 1.2rem;
  color: #333;
  font-weight: 500;
}

.map-container {
  position: relative;
  width: 80%; /* Adjusted to 80% width for map scaling */
  margin: 30px auto;
  overflow: hidden;
  height: 0;
  padding-top: 65.96%; /* Maintain SVG aspect ratio (665.96 / 1009.67 * 100%) */
}

#custom-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.map-pin {
  position: absolute;
  width: 12px; /* Smaller dot */
  height: 12px; /* Smaller dot */
  background-color: #dc1c4d;
  border-radius: 50%;
  border: 1px solid white;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.map-pin::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pin-label {
  position: absolute;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%); /* Lift label further above pin for clarity */
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2px 5px;
  border-radius: 3px;
}

.pin-info {
  position: absolute;
  width: 180px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 5px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pin-info h3 {
  margin: 0 0 8px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  color: #dc1c4d;
}

.pin-info p {
  margin: 4px 0;
}

/* Modal Popup Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 200;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
  width: 400px;
  position: relative;
  text-align: left;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

.map-pin:hover .pin-info {
  opacity: 1;
  top: 25px;
}

.info h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  border-bottom: 1px solid white;
  padding-bottom: 5px;
}

.info p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.events-table {
  margin-top: 70px;
  overflow-x: auto;
}

.events-table h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid white;
}

th,
td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid white;
}

th {
  background-color: rgba(0, 0, 0, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .map-text-title {
    font-size: 2.2rem;

  }
  .map-text-title h1 {
    font-size: 2.4rem;
   }
  .map-image-container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .nav-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px;
  }
  .nav-menu {
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100vw;
    background: #000;
    z-index: 1001;
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    margin: 10px 0;
    text-align: center;
  }
  .hamburger {
    display: flex;
    align-self: flex-start;
    margin-left: 0;
  }
  .hero {
    height: auto;
    padding: 60px 0 30px 0;
    margin-top: 60px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .members-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .map-section {
    padding: 2rem 0;
   }
  .map-text-title {
    font-size: 1.8rem;
  }
  .map-text-title h1 {
    font-size: 2rem;
    margin-top: 80px;
  }
  .map-text-title strong {
    font-size: 1rem;
  }
  .map-image-container {
    padding: 0 10px;
  }
  .map-image {
    max-width: 100%;
  }
  .modal-content {
    width: 98%;
    padding: 10px;
  }
  .modal-profile-img {
    width: 120px;
    height: 120px;
  }
  .map-container {
    width: 100%;
    height: 220px;
    min-height: 180px;
  }
  #custom-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .events-table h3 {
    font-size: 1.1rem;
  }
  th,
  td {
    padding: 7px 5px;
    font-size: 0.85rem;
  }
  .video-section,
  .promo-video {
    padding: 2rem 0;
  }
  .video-container {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 5px;
  }
  .section-title h2,
  .section-header h2 {
    font-size: 1.2rem;
  }
  .members {
    padding: 2rem 0;
  }
  .map-section {
    padding: 1.5rem 0;
    margin-top: 60px;
  }
  .map-text-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  .map-text-title h1 {
    font-size: 1.6rem;
  }
  .map-text-title strong {
    font-size: 0.9rem;
  }
  .map-image-container {
    padding: 0 5px;
  }
  .modal-content {
    padding: 5px;
  }
  .modal-profile-img {
    width: 80px;
    height: 80px;
  }
  .map-container {
    height: 120px;
    min-height: 100px;
  }
  .events-table h3 {
    font-size: 1rem;
  }
  th,
  td {
    font-size: 0.75rem;
  }
}
