/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #f5a623;
  --secondary-color: #8bc34a;
  --secondary-color-background: rgba(139, 195, 74, 0.1);
  --bg-color: #122841;
  --bg-color-top: #3c556e;
  --bg-color-top-transparent: rgb(60, 85, 110, 0.5);
  --text-color: #ffffff;
  --overlay-color: rgba(0, 0, 0, 0.5);
  --header-height: 4.5rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 6rem;
  --font-light: 200;
  --font-bold: 800;
  --font-size-m: 1rem;
  --font-size-l: 2rem;
}

:focus {
  outline: none !important;
}

html {
  font-size: 14px;
  font-weight: var(--font-light);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background overlay */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.2;
  z-index: 0;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary-color);
  color: black;
  padding: var(--spacing-xs);
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Top half transparent gradient */
.transparent-gradient {
  position: absolute;
  width: 100%;
  height: 60rem;
  background-image: linear-gradient(to bottom, var(--bg-color-top), transparent);
}

/* Responsive background image */
.responsive-svg,
.responsive-top-svg,
.responsive-top-svg-small {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  max-width: 100%;
  pointer-events: none;
}

.responsive-top-svg-small {
  display: none;
}

@media (max-width: 1199px) {
  .responsive-top-svg {
    left: -160px;
  }
}

@media (max-width: 768px) {
  .responsive-top-svg {
    display: none;
  }

  .responsive-top-svg-small {
    display: inline;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

/* Header */
header {
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  background-color: var(--bg-color-top-transparent);
  z-index: 10;
  height: var(--header-height);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: 20;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}

/* Navigation */
nav {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background-color: var(--bg-color);
    padding: 5rem var(--spacing-md) var(--spacing-md);
    -webkit-transform: translateX(100%);
    -moz-transform: translateX(100%);
    -o-transform: translateX(100%);
    transform: translateX(100%);
    z-index: 15;
    overflow-y: auto;
  }

  nav.active {
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}

.nav-list {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-link {
  color: var(--primary-color);
  font-weight: var(--font-bold);
  text-decoration: none;
  transition: color 0.3s;
  padding: var(--spacing-xs);
  display: block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .nav-link {
    font-size: 1.3rem;
  }
}

.nav-link:hover, .nav-link:focus {
  color: white;
}

@media (max-width: 768px) {
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: 14;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

.support-button {
  background-color: var(--secondary-color);
  color: black;
  font-weight: var(--font-bold);
  padding: var(--spacing-xs) var(--spacing-sm);
  text-decoration: none;
  transition: background-color 0.3s;
}

.support-button:hover, .support-button:focus {
  background-color: #a4d967;
  outline: unset;
}

/* Language switcher */
.language-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-switcher {
  display: flex;
  align-items: center;
}

.language-switcher-label {
  color: white;
  font-size: 0.875rem;
  margin-right: var(--spacing-xs);
}

.language-buttons {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
}

.language-button {
  background: none;
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.language-button:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.language-button.active {
  background-color: var(--secondary-color);
  color: black;
  font-weight: var(--font-bold);
}

.language-button:hover:not(.active),
.language-button:focus:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

.language-button:focus {
  outline: 2px solid white;
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .language-switcher {
    padding-left: 0.5rem;
  }

  .language-button {
    font-size: 1rem;
  }
}

/* Back to top button */
.yellow-arrow-button {
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Section styles */
section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Logo section */
.logo-container {
  position: absolute;
  margin-left: 1rem;
  z-index: 15;
}

@media (max-width: 768px) {
  .logo-container {
    display: none;
  }
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.trident-logo {
  height: 10rem;
}

.strike-angle-logo {
  height: 13rem;
}

@media (max-width: 992px) {
  .logo-section {
    margin-top: -3rem;
    padding-bottom: 1rem;
  }

  .trident-logo {
    height: 6rem;
  }

  .strike-angle-logo {
    height: 9rem;
  }
}

/* Main content */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Organization info box */
.org-info-left-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.org-info-container {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-sm);
}

.org-info-stripes {
  height: 100%;
  width: 3rem;
  background: repeating-linear-gradient(-45deg, var(--primary-color), var(--primary-color) 0.5rem, rgb(0, 0, 0, 0) 0.5rem, rgb(0, 0, 0, 0) 0.75rem);
}

.org-info-frame {
  position: relative;
  padding: var(--spacing-md) var(--spacing-xxl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-color);
}

@media (max-width: 992px) {
  .org-info-frame {
    padding: 1.5rem 1rem;
  }

  .org-info-stripes {
    width: 2rem;
  }
}
@media (max-width: 768px) {
  .org-info-frame {
    width: 100%;
  }

  .org-info-stripes {
    width: 3rem;
  }
}

/* Org info corners*/
.info-outer-corners:before {
  top: 0;
  left: 0;
  content: "";
  position: absolute;
  width: var(--spacing-md);
  height: var(--spacing-md);
  border-top: 4px solid var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.info-outer-corners::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: var(--spacing-md);
  height: var(--spacing-md);
  border-bottom: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
}

.info-inner-corners {
  width: fit-content;
}

.info-inner-corners:before {
  top: 0;
  right: 0;
  content: "";
  position: absolute;
  width: var(--spacing-md);
  height: var(--spacing-md);
  border-top: 4px solid var(--primary-color);
  border-right: 4px solid var(--primary-color);
}

.info-inner-corners::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--spacing-md);
  height: var(--spacing-md);
  border-bottom: 4px solid var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.outer-corners {
  padding: 1rem;
}

.outer-corners:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-top: 2px solid var(--primary-color);
  border-left: 2px solid var(--primary-color);
}

.outer-corners::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
}

.inner-corners {
  width: fit-content;
}

.inner-corners:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-top: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
}

.inner-corners::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--spacing-sm);
  height: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
  border-left: 2px solid var(--primary-color);
}

.org-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.8rem;
  font-weight: var(--font-bold);
}

.org-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.2rem;
  font-weight: var(--font-light);
}

.org-name {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-xs);
}

@media (max-width: 480px) {
  .org-title {
    font-size: 2rem;
    line-height: 3rem;
  }

  .org-subtitle {
    font-size: 1.5rem;
  }

  .org-name {
    font-size: 2rem;
  }
}

/* Content box */
.content-box {
  width: 100%;
}

/* Photo styles */
.photo {
  display: flex;
  padding: 0.5rem;
  background-color: white;
}

.top-photo {
  height: 700px;
}

.course-photo {
  height: 600px;
}

@media (max-width: 992px) {
  .top-photo {
    height: 500px;
  }

  .course-photo {
    height: 550px;
  }
}

@media (max-width: 768px) {
  .top-photo {
    height: auto;
    width: 100%;
  }

  .course-photo {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .course-photo {
    height: auto;
    width: 100%;
  }
}

/* Partners section */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(10rem, 1fr));
  gap: var(--spacing-sm);
}

@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(5, minmax(10rem, 1fr));
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(10rem, 1fr));
  }
}

.partner-logo {
  height: 4rem;
  display: flex;
  align-items: center;
}

.partner-logo-img {
  max-height: 3rem;
}

.partner-logo-img-height {
  max-height: 4.2rem;
}

.partner-logo-img-width {
  max-height: 2.7rem;
}

/* About section */
.about-content, .course-content {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--spacing-xxl);
}

@media (max-width: 992px) {
  .about-content, .course-content {
    gap: var(--spacing-xl);
  }
}

@media (max-width: 576px) {
  .about-content, .course-content {
    grid-template-columns: 1fr;
  }
}

.title-text, .green-text {
  font-weight: var(--font-bold);
  font-size: var(--font-size-l);

  position: relative;
  display: inline-block;
}

.green-text {
  display: flex;
  flex-direction: column;
  align-items: end;
  margin: var(--spacing-lg) 0;
}

.subtitle-text {
  font-size: 1.5rem;
}

@media (max-width: 992px) {
  .title-text, .green-text {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }

  .subtitle-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .title-text, .green-text {
    font-size: 1.4rem;
  }

  .subtitle-text {
    font-size: 1.2rem;
  }
}

.highlight {
  color: var(--primary-color);
}

.green-highlight {
  color: var(--secondary-color);
  font-weight: var(--font-bold);
  display: inline-block;
  background-color: var(--secondary-color-background);
  padding: 0.25rem 0.5rem;
  width: fit-content;
  margin-right: 6rem;
}

/* Green arrow box */
.arrow-box-top {
  display: inline-block;
  padding: 0.5rem 0.5rem;
  background-color: var(--secondary-color-background);
  width: fit-content;
}
.arrow-box {
  position: relative;
  width: 5rem;
  height: 5rem;
  box-sizing: border-box;
}

.arrow-box::before,
.arrow-box::after {
  content: '';
  position: absolute;
  background-color: var(--secondary-color)
}

/* Top bar */
.arrow-box::before {
  top: 0;
  left: 0;
  height: 8px;
  width: 100%;
}

/* Left bar */
.arrow-box::after {
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
}

/* Diagonal line */
.diagonal {
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 95%;
  height: 95%;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.diagonal::before {
  content: '';
  width: 8px;
  height: 140%; /* Slightly longer than the box diagonal */
  background-color: var(--secondary-color)
}

@media (max-width: 992px) {
  .green-highlight {
    margin-right: 5rem;
  }

  .arrow-box {
    width: 4rem;
    height: 4rem;
  }
}

/* Course section */
.course-topics {
  list-style: none;
}

.course-topic {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: var(--spacing-lg);
}

.course-topic::before {
  content: "◆";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

/* Collaboration section */
.bottom-space {
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .bottom-space {
    margin-bottom: 2rem;
  }
}

.collaboration-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .collaboration-content {
    grid-template-columns: 1fr 1fr;
  }
}

.military-units {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-sm);
  align-items: end;
}

@media (min-width: 480px) {
  .military-units {
    grid-template-columns: repeat(5, 1fr);
  }
}

.military-unit {
  max-width: 6rem;
  height: auto;
}

.military-unit-img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.stats-container {
  background-color: rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md);
  text-align: center;
  position: relative;
}

.stats-number {
  font-size: 10rem;
  font-weight: var(--font-bold);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 1200px) {
  .stats-number {
    font-size: 8rem;
  }
}

@media (max-width: 992px) {
  .stats-number {
    font-size: 6rem;
  }
}

.stats-description {
  margin: 0 6rem;
}

@media (max-width: 992px) {
  .stats-description {
    margin: 0 5rem;
  }
}

/* Gallery section */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.carousel-slide {
  display: inline-block;
  width: fit-content;
  min-width: 300px;
  height: 400px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
  background-color: white;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-slide:hover img {
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  -o-transform: scale(1.05);
  transform: scale(1.05);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.yellow-arrow-button:hover,
.yellow-arrow-button:focus {
  background: var(--primary-color);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

.yellow-arrow-button:disabled {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  -webkit-transform: none;
  -moz-transform: none;
  -o-transform: none;
  transform: none;
}

.arrow-left {
  transform: rotate(-90deg);
}

.arrow-right {
  transform: rotate(90deg);
}

.carousel-indicators {
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary-color);
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
}

@media (max-width: 480px) {
  .carousel-indicators {
    display: flex;
    gap: 5px;
  }

  .indicator {
    width: 5px;
    height: 5px;
  }
}

.carousel-info {
  text-align: center;
  /*margin-top: 20px;*/
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  padding: var(--spacing-xl) 0 5rem 0;
  position: relative;

  background-image: url("/img/background/5.svg");
  background-size: 75% auto;        /* Fit width, height adjusts automatically */
  background-repeat: no-repeat;
  background-position: top right;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .footer {
    background-size: 100% auto;
    background-position: top left;
  }
}

@media (max-width: 992px) {
  .footer {
    background-size: 150% auto;
  }
}

@media (max-width: 768px) {
  .footer {
    background-size: 200% auto;
  }
}

@media (max-width: 576px) {
  .footer {
    background-size: 300% auto;
  }
}

.footer-title {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: var(--font-bold);
  background-color: rgba(139, 195, 74, 0.1);
  padding: 0.5rem 1rem;
  margin-bottom: var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  color: var(--primary-color);
  font-size: 1.125rem;
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-xs);
}

.contact-info p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-bold);
}

.contact-info a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover, .contact-info a:focus {
  color: var(--secondary-color);
  text-decoration: underline;
  outline: 2px solid white;
  outline-offset: 2px;
}

.copyright {
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 400px;
  font-weight: var(--font-light);
}

.all-rights-reserved {
  padding-top: 2rem;
  display: flex;
  justify-content: center;
  font-weight: var(--font-light);
}

/* Full-screen image modal styles */
.modal-full-size {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--overlay-color);
  justify-content: center;
  align-items: center;
}

.modal-full-size img {
  max-width: 90%;
  max-height: 90%;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

.close-btn:hover {
  color: #ccc;
}

/* Bottom stripe */
.bottom-stripe {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  display: flex;
  z-index: 2;
}

.yellow-stripe {
  width: 50%;
  background-color: var(--primary-color);
}

.blue-stripe {
  width: 50%;
  background-color: #0057b7;
}

/* Visually hidden class for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles */
:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Granular class */
.display-none {
  display: none !important;
}

.text-align-center {
  text-align: center;
}
