/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* General page settings */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: url("images/background.png");
  background-size: cover;                /* cover entire screen */
  background-repeat: no-repeat;          /* stop repeating */
  background-attachment: fixed;          /* makes it stay while scrolling */
  background-position: center;
  color: white;
  font-size: 16px;
  line-height: 1.6;
}

.hero {
  display: flex;                  /* Enable Flexbox */
  flex-direction: column;         /* Stack h2, p, and button vertically */
  justify-content: center;        /* Center vertically */
  align-items: center;            /* Center horizontally */
  text-align: center;             /* Align text inside */
  
  background: rgba(0,0,0,0.5);    /* Transparent overlay */
  border-radius: 12px;
  margin: 0;                      /* Remove top/bottom margins */
}

.container {
  display: flex;                  /* Enable Flexbox */
  flex-direction: column;         /* Stack h2, p, and button vertically */
  justify-content: center;        /* Center vertically */
  align-items: center;            /* Center horizontally */
  text-align: center;             /* Align text inside */
  
  background: rgba(0,0,0,0.5);    /* Transparent overlay */
  border-radius: 12px;
  margin: 0;                      /* Remove top/bottom margins */
}



/* Header (top navigation bar) */
header {
  background: #47173D;
  color: white;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  box-sizing: border-box;
}

header img {
  height: 70px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  display: flex;
  align-items: center;
  gap: 15px; /* space between items */
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  text-decoration: underline;
}

.nav-logo-btn {
  padding: 6px 10px; /* same padding as text buttons */
}

.nav-logo-btn img {
  height: 20px; /* match text height */
  width: auto;
}

/* Navigation links */
nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(0,0,0,0.4);
  padding: 8px 12px;
  border-radius: 5px;
  transition: 0.3s;
}

nav a:hover {
  background: rgba(0,0,0,0.7);
}

/* Navigation image styling */
.nav-img {
  height: 40px;        /* adjust size to match nav height */
  vertical-align: middle;
  margin-left: 10px;   /* small gap from "Contact" */
}

/* Hero section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  margin: 40px auto;
  max-width: 1000px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 15px;
}

/* Containers for page content */
.container {
  max-width: 1600px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
}

/* Headings */
h1, h2, h3 {
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

/* Paragraphs */
p {
  font-size: 1.05rem;
  margin-bottom: 15px;
  text-align: justify;
}

/* About Section */
.about-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
  text-align: center;
}

.about-section p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-top: 20px;
  text-align: center;
}

.about-form input,
.about-form textarea {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-family: 'Arial', sans-serif;
}

/* Contact Section */
.contact-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(0,0,0,0.6);
  border-radius: 10px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-family: 'Arial', sans-serif;
}

.contact-form button {
  padding: 15px;
  font-size: 1.2rem;
  font-weight: bold;
  background: #ffb700;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #e0a200;
}

/* Footer */
/* Full height sticky footer layout */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: url("images/background.png");
  background-size: cover;                /* cover entire screen */
  background-repeat: no-repeat;          /* stop repeating */
  background-attachment: fixed;          /* makes it stay while scrolling */
  background-position: center;
}


main {
  flex: 1;
}

/* Footer */
footer {
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  padding: 15px;
}

/* Big Button Styling */
.big-button {
  display: inline-block;
  margin-top: 30px;
  padding: 20px 60px;
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  background-color: #E3A005;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.big-button:hover {
  background-color: #e0a200;
  transform: scale(1.05);
}

.pdf-container {
  margin: 2rem auto;
  max-width: 1200px;
}

.pdf-container iframe {
  width: 100%;
  height: 1200px; /* adjust height */
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.containerfordocs {
  padding: 20px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
}

/* Popup background (overlay) */
.popup {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); /* dark overlay */
}

/* Popup content box */
.popup-content {
  background: #47173D; /* theme color */
  color: white;
  padding: 25px;
  border-radius: 12px;
  width: 1000px;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);

  /* ✅ Force center using absolute positioning */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: red;
}

table {
  border-collapse: collapse;
  margin: 20px 0;
  width: 100%;
}

td {
  padding: 6px 12px;
  color: white;
  font-size: 1rem;
}

a {
  color: #ffb700; /* golden color for links */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.team-section {
  text-align: center;
  padding: 50px;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 20px 0;
}

.team-row.vertical {
  flex-direction: column;
}

.team-member {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.08);
  min-width: 220px;
  transition: 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 25px rgba(0,0,0,0.12);
}

.team-member h3 {
  margin: 5px 0;
  font-size: 18px;
  font-weight: bold;
  color: black; /* fixes the white text */
  text-align: center;
}

.team-member p {
  margin: 0;
  color: black; /* softer gray for role text */
  text-align: center;
}


.team-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-branch-line {
  width: 2px;
  height: 30px;
  background: #333;
}

.team-row.branch {
  gap: 120px; /* spacing between DevOps and Events columns */
}

.team-row.advisors {
  gap: 60px;
}

.tree li {
  margin: 0;              /* remove unwanted gaps */
  padding: 10px 0 0 0;    /* tighten spacing */
}
.tree li::before,
.tree li::after {
  top: 0;                 /* align lines properly */
}

.team-container {
  background: rgba(0, 0, 0, 0.5); /* translucent box like your screenshot */
  padding: 40px;
  border-radius: 12px;
  max-width: 1000px;
  margin: auto;
  color: #fff;
  text-align: center;
}

h2 {
  margin-bottom: 40px;
  color: #fff;
}

.card {
  background: #fff;
  color: #000;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
  display: inline-block;
  margin: 10px;
  min-width: 180px;
  position: relative;
  font-size: 14px;
}

/* Top row */
.top-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
}

/* Connector line under top row */
.top-row::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 30px;
  border-top: 2px solid #fff;
  margin: 0 auto;
  width: 70%;
}

/* Branches section */
.branches {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: 80%;
  position: relative;
}

.branch {
  flex: 1;
  position: relative;
}

.branch .card {
  margin-bottom: 25px;
}

/* Lines for each branch */
.branch::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: #fff;
}

/* Sub-branch (event organizers under director) */
.sub-branch {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  position: relative;
}

/* Line from director to sub-branch */
.sub-branch::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 25px;
  background: #fff;
}

/* Horizontal connector between sub-branch members */
.sub-branch::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  margin: auto;
  width: 70%;
}

/* Fleet grid */
.fleet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
    /* make the whole box stretch across */
  width: 150%;
  max-width: 1600px;   /* controls how wide the grid can go */
  margin-left: auto;
  margin-right: auto;
}

/* Fleet link cards */
.fleet .fleet-link {
  background: rgba(0,0,0,0.6);
  border: 1px solid white;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  text-decoration: none; /* remove underline always */
  color: white;
  transition: transform 0.2s;
}

.fleet .fleet-link:hover {
  transform: scale(1.03);
}

.fleet .fleet-link img {
  width: 150px;  /* logo size */
  height: auto;
  margin-bottom: 10px;
}

.fleet .fleet-link h3 {
  margin: 10px 0;
  font-size: 1.4rem;
}

/*Aircraft Grid*/
.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
    /* make the whole box stretch across */
  width: 100%;
  max-width: 1500px;   /* controls how wide the grid can go */
  margin-left: auto;
  margin-right: auto;
}

.aircraft-card {
  background: rgba(0,0,0,0.6);
  border: 1px solid white;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  color: white;
  transition: transform 0.2s;
}

.aircraft-card:hover {
  transform: scale(1.03);
}

.aircraft-card img {
  width: 100%;  /* logo size */
  border: 3px solid #000;
  height: auto;
  margin-bottom: 10px;
}

.aircraft-card h3 {
  margin: 5px 0;
  border: 3px solid #ffff;
  font-size: 1.3rem;
}


/* Events Container */
.events {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;

  /*make it a flex container*/
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}


/* Event Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 40px;
    /* make the whole box stretch across */
  width: 150%;
  max-width: 1500px;   /* controls how wide the grid can go */
  margin-left: auto;
  margin-right: auto;
}

/* Event Card */
.event-card {
  background: rgba(0,0,0,0.6);
  border: 1px solid white;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  text-decoration: none; /* remove underline always */
  color: white;
  transition: transform 0.2s;
}

.event-card:hover {
  transform: scale(1.03);
}

/* Event Image */
.event-card img {
  width: 120px;  /* logo size */
  height: auto;
  margin-bottom: 10px;
}

/* Event Content */
.event-content {
  padding: 20px;
}

.event-content h2 {
  margin: 10px 0;
  font-size: 1.8rem;
  color: #ffb700; /* golden highlight */
}

.event-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: white;
}


/* No Events card */
.event-card.noevent {
  background: rgba(71, 23, 61, 0.9); /* themed purple background */
  border: 3px solid #E1A254;
  border-radius: 12px;
  padding: 40px;
  width: 200%;        /* make it wide */
  max-width: 1200px; /* but not too wide */
  text-align: center;

  /*margin can just be vertical */
  margin: 20px 0;
}

.event-card.noevent img {
  border: 3px solid #000;
  width: 100%;
  max-height: 1200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.event-card.noevent h3 {
  font-size: 2.5rem;
  color: #ffb700;
  margin-bottom: 15px;
}

.event-card.noevent h4 {
  font-size: 1.5rem;
  color: white;
}

