/*
Airnz Font external import
*/
@font-face {
	font-family: airnewzald;
	font-weight: 800;
	src: url(../webfonts/AirNewzald-BlackItalic.eot?#iefix);
	src: url(../webfonts/AirNewzald-BlackItalic.eot?#iefix) format("eot"), url(../webfonts/AirNewzald-BlackItalic.woff2) format("woff2"), url(../webfonts/AirNewzald-BlackItalic.woff) format("woff");
}

@font-face {
	font-family: Roboto;
	src: url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-image: url(../images/UniformPattern_Gradient.jpg);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #131313;
  min-height: 100vh;
}

a {
	text-decoration: none;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
#headingDeptTitle {
  width: 100%;
  text-align: center;
  margin-top: 60px;
  font-size: 76px;
  color: rgba(255,255,255,1.00);
  font-family: airnewzald, sans-serif;
  font-weight: 800;
  letter-spacing: -.01em;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "liga" on;
}

#headingDeptSubTitle {
  width: 100%;
  text-align: center;
  font-size: 39px;
  color: rgba(255,255,255,1.00);
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  letter-spacing: -.01em;
  margin-bottom: 40px;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: common-ligatures;
  font-feature-settings: "liga" on;
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 350px 1fr;  /* Narrower welcome section */
  gap: 20px;
  margin-top: 40px;
}

/* Welcome Section */
.welcome-section {
  background: rgba(255, 255, 255, 0.197);
  border-radius: 20px;
  padding: 40px;
  color: white;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.welcome-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0;
}

.welcome-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #ffffff;
  margin-top: 12px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* This pushes the button to the right */
  gap: 15px;
}

/* Training Bulletin Button */
.training-bulletin-btn {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  color: rgb(0, 0, 0);
  border: none;
  padding: 12px 30px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;  /* Prevents button from shrinking */
}

.training-bulletin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(145, 140, 207, 0.4);
}



/* Version Tabs */
#versionTabsDescription {
  text-align: center;
  margin: 30px 0 20px 0;
  font-size: 18px;
  color: #ffffff;
  font-weight: 500;
}

#versionTabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 0 40px 0;
  flex-wrap: nowrap;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  padding: 0;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Sliding background indicator */
#versionTabs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: calc(33.333%);
  height: 100%;
  background: linear-gradient(180deg, #d7d4f8 0%, #7874b4 100%);
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(120, 116, 180, 0.3);
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Sliding positions for each tab */
#versionTabs[data-active="0"]::before {
  transform: translateX(0);
}

#versionTabs[data-active="1"]::before {
  transform: translateX(100%);
}

#versionTabs[data-active="2"]::before {
  transform: translateX(200%);
}

.versionTab {
  border: none;
  padding: 15px 50px;
  cursor: pointer;
  border-radius: 50px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  background-color: transparent;
  color: #64748b;
  transition: color 0.3s ease;
  min-width: 100px;
  position: relative;
  z-index: 1;
}

.versionTab.active {
  color: #ffffff;
  background-image: none;        
  background-color: transparent;
  box-shadow: none;
}

.versionTab:hover:not(.active) {
  color: #7874b4;
  background-color: transparent;
}

/* Module Tiles Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* Always 3 columns */
  gap: 20px;
}

.module-tile {
  aspect-ratio: 11 / 9;
  background-size: cover;
  background-position: center;  
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 30px;
  min-height: unset;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.module-tile::before {
  display: none;
}

.module-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.module-tile:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
}

/*Module inactive*/
.module-tile.inactive {
  cursor: not-allowed;
  pointer-events: none; /* prevents click/hover */
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.8;
}

/* Disable hover effects explicitly */
.module-tile.inactive:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Optional: subtle overlay to reinforce inactive state */
.module-tile.inactive::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
}

/* Coming Soon text */
.module-tile.inactive::before {
  content: "Coming Soon…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
  z-index: 2;
}

.module-content {
  position: relative;
  z-index: 2;
  color: white;
}

.module-number {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, #1e293b, #1e293b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  align-items: center;
  line-height: 1;
  margin-bottom: 0;
}

.module-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e293b;
}

.module-description {
  font-size: 14px;
  line-height: 1.5;
  color: #e0e0e0;
}

/* Version Sections */
.versionSection {
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);  /* 2 columns on tablets */
    max-width: 700px;  /* Limit the width */
  }
  
  #headingDeptTitle {
    font-size: 48px;
    margin-top: 40px;
  }
  
  #headingDeptSubTitle {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);  /* Keep 2 columns */
    max-width: 400px;  /* Constrain width */
    gap: 15px;
  }
  
  .module-tile {
    aspect-ratio: 11 / 9;
  }
  
  .versionTab {
    padding: 12px 30px;
    font-size: 14px;
  }
  
  #headingDeptTitle {
    font-size: 36px;
  }
  
  #headingDeptSubTitle {
    font-size: 22px;
  }
  
  .welcome-section {
    padding: 30px;
  }
  
  .welcome-title {
    font-size: 28px;
  }
  
  .welcome-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .modules-grid {
    grid-template-columns: 1fr;  /* Single column on mobile */
    max-width: 300px;
  }
  
  .container {
    padding: 15px;
  }
  
  #headingDeptTitle {
    font-size: 28px;
    margin-top: 30px;
  }
  
  #headingDeptSubTitle {
    font-size: 18px;
  }
  
  .welcome-section {
    padding: 25px;
  }
  
  .welcome-title {
    font-size: 24px;
  }
  
  .module-tile {
    min-height: 200px;
    padding: 20px;
  }
  
  .module-title {
    font-size: 18px;
  }
  
  .module-description {
    font-size: 13px;
  }
}