/* Reset */
* {
  box-sizing: border-box;
}

.html{
    scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #111;
}




#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  background: #0d132d; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

#preloader video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  pointer-events: none; 
}





/* ################################  HEADER  STYLING  ###################### */



header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
  background-color: white;
  border-bottom: 2px solid #000000;
  position: relative;
  flex-wrap: wrap; 
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 1000; 
  background-color: #ffffff; 
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.logo img {
  height: 80px;
  width: auto;
}

.logo span {
  font-family: 'Italianno', cursive;
  font-size: 2.1rem;
  font-weight: bold;
  color: #000;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Horizontal menu styling */
.horizontal-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.horizontal-menu ul li a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.7s ease;
}

.horizontal-menu ul li a:hover {
  color: #ffffff;
  background-color: rgb(0, 0, 0);
  border-radius: 5px;
  padding: 10px 10px;
}







/* Languages menu styling */

/* Header language toggle button */


.header-lang-toggle {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #f5f5f5;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  margin-left: 15px;
}

.header-lang-toggle:hover {
  background: #111;
}

.header-lang-toggle i {
  color: #111;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.header-lang-toggle:hover i {
  color: #fff;
}

/* Dropdown menu exactly like main dropdown */
.header-lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;       /* hidden by default */
  flex-direction: column;
  background: white;
  border: 1px solid #000;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(13, 19, 45, 0.1);
  width: 220px;
  z-index: 1000;
  user-select: none;
  padding: 15px 0;
}

.header-lang-options ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-lang-options ul li {
  padding: 10px 20px;
}

.header-lang-options .lang-btn {
  position: relative;
  padding: 10px 20px;
  width: 100%;
  color: rgb(0, 0, 0);
  font-weight: bold;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header-lang-options .lang-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background-color: rgb(13, 19, 45);
  opacity: 0.9;
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 4px;
}

.header-lang-options .lang-btn:hover::before,
.header-lang-options .lang-btn:focus::before {
  width: 100%;
}

.header-lang-options .lang-btn:hover,
.header-lang-options .lang-btn:focus {
  color: white;
}

/* Show dropdown when active */
.header-lang-toggle.active .header-lang-options {
  display: flex;
  flex-direction: column;
}


/* ==================== Header Language Dropdown for Small Screens ==================== */


@media (max-width: 768px) {
  .header-lang-options {
    position: absolute; 
    top: 100%;          
    left: 0;
    width: 100%;        
    border: none;
    box-shadow: none;
    padding: 10px 0;
    flex-direction: column;
    background: white;
    display: none;      /* hidden by default */
    z-index: 1000;
  }

  .header-lang-options ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header-lang-options ul li {
    padding: 12px 30px;  
  }

  /* Show dropdown when toggle active */
  .header-lang-toggle.active .header-lang-options {
    display: flex;
  }
}











/* Hamburger icon: always visible */
.nav-icon {
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.nav-icon div {
  height: 4px;
  background-color: black;
  border-radius: 2px;
}

/* Dropdown menu - hidden by default */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 50px;
  background: white;
  border: 1px solid #000000;
  box-shadow: 0 4px 8px rgba(13, 19, 45, 0.1);
  width: 220px;
  padding: 15px 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
  border-radius: 5px;
  user-select: none;
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu ul li {
  padding: 10px 20px;
}

.dropdown-menu ul li a {
  position: relative;
  padding: 10px 20px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  overflow: hidden;
}

/* Smooth text color change on hover */
.dropdown-menu ul li a:hover,
.dropdown-menu ul li a:focus {
  color: white;
  outline: none;
}

/* Creating a sliding highlight bar for dropdown-menu a */
.dropdown-menu ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: rgb(13, 19, 45);
  opacity: 0.9;
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 4px;
}

/* Animating highlight bar on hover/focus */
.dropdown-menu ul li a:hover::before,
.dropdown-menu ul li a:focus::before {
  width: 100%;
}

/* Showing dropdown when active */
.dropdown-menu.active {
  display: flex;
}




/* =========================================================================== */
/* =========================================================================== */

/* Responsive Design adjustments */



@media (max-width: 768px) {
  /* Hide horizontal menu on small screens */
  .horizontal-menu {
    display: none;
  }

  /* Dropdown menu - position fixed full width below header */
  .dropdown-menu {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 10px 0;
  }

  .dropdown-menu ul li {
    padding: 12px 30px;
  }

  /* Make header flex wrap so logo + hamburger stack nicely */
  header {
    padding: 15px 30px;
  }
}

@media (max-width: 768px) {
  .logo span {
    display: none;
  }
}








/* ################################  PAGE HEADER  STYLING  ###################### */



.Training-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #0d132d;
    color: #fff;
    font-family: 'Arial', sans-serif;
    border-bottom: 3px solid #fff;
}

.Training-header h3 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.Training-header h3 u {
    text-decoration-color: #fff;
    text-decoration-thickness: 4px;
}










/* ################################  TRAINING SECTION          STYLING  ###################### */





/* Training Wrapper (Page Background) */
.training-wrapper {
    background: url('../graphics/Bckground-about 2.png') no-repeat center center / cover;
    padding: 70px 20px;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem; /* spacing between the two columns */
}


/* Training Column Container */
.training-container {
    flex: 1; 
    max-width: 800px; 
    background-color: rgb(13, 19, 45);
    color: #ffffff;
    border-radius: 10px;
    border: 1px solid black;
    box-shadow: 0 6px 18px rgba(41, 27, 122, 0.5);
    padding: 2rem;
    transition: all 0.4s ease-in-out;
    flex-direction: column;
    display: flex;
    gap: 1.5rem;
    text-align: center;
}


.training-container:hover {
    box-shadow: 0 6px 22px rgba(41, 27, 122, 0.8);
    transform: scale(1.02);
}


/* Training Column Header */

.column-header{
    position: relative;
    display: inline-block;
}

.column-header::after{
    position: absolute;
    content: "";
    width: 0;
    height:2px;
    bottom:-4px;
    background:rgb(13, 19, 45);
    left:20%;
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

.column-header:hover::after{
    width: 60%;
}




/* Training Card */

.training-card {
  width: 100%;
  height: 250px;
  perspective: 1000px; 
}


.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.training-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Training CARD   -  FRONT ; BACK */

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* hiding back when front is visible */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* Card's  FRONT   side */
.card-front {
  background: #fff;
  color: #0d132d;
}

.card-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
  border: 3px solid #0d132d;
}

.card-name {
  font-size: 1.2rem;
  font-weight: 600;
  display: inline-block;
  position: relative;
  border-top: 4px solid rgb(13, 19, 45);
  padding-top:20px;
  border-radius: 4px;
}



/* Card's   BACK  side */

.card-back {
  background: #0d132d;
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  border: 2px solid white;
}

/* Card's   BACK  side    -   TEXT */
.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.card-info i {
  font-size: 1.5rem;
  color: #fff;
}

.card-info p {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Card's   BACK  side   -  Buttons */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.training-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: #fff;
  color: #0d132d;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.training-btn:hover {
  background: #0d132d;
  color: #fff;
  border: 1px solid #fff;
}              





/* =========================================================================== */
/* =========================================================================== */

/* Responsive Design adjustments */


@media (max-width: 1200px) {
    .training-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 50px 15px;
    }

    .training-container {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .training-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .training-wrapper {
        padding: 40px 10px;
    }

    .training-card {
        height: 220px;
    }

    .card-front, .card-back {
        padding: 0.8rem;
    }

    .card-name {
        font-size: 1rem;
        padding-top: 15px;
    }

    .card-img {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .card-info p {
        font-size: 0.85rem;
    }

    .training-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .card-back {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
    }

    .card-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .training-card {
        height: 200px;
    }

    .card-img {
        width: 60px;
        height: 60px;
    }

    .card-name {
        font-size: 0.95rem;
    }

    .card-info i {
        font-size: 1.2rem;
    }

    .card-info p {
        font-size: 0.8rem;
    }

    .training-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}















/* ################################  INFO SECTION           STYLING  ###################### */





/* Wrapper (background) for Info Section + navigation Buttons */
.info-and-btns {
    background: url('../graphics/Bckground-about 2.png') no-repeat center center / cover;
    padding: 70px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap:1rem;
    border-top: 10px solid white;
}

/* Dropdown Info Section */
.training-info-section {
    background: rgb(13,19,45);
    border-radius: 12px;
    color: #fff;
    font-family: 'Be Vietnam Pro', sans-serif;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(255,255,255,0.05);
    width: 100%;
    max-width: 1650px;
    text-align: left;
    transition: all 0.3s ease-in-out;
}

/* Dropdown Info Section - header */
.training-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: linear-gradient(135deg, #000000, rgb(13,19,45));
    transition: background 0.3s ease;
}

.training-info-header:hover {
    background: linear-gradient(135deg, rgb(13,19,45), #000000);
}

.training-info-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Dropdown Info Section - Toggle Button*/
.toggle-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.training-info-section.active .toggle-btn {
    transform: rotate(180deg);
}

/* Dropdown Info Section - Describtion*/
.training-info-description {
    display: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #000000;
    background-color: white;
    border: 1px solid black;
}

.training-info-section.active .training-info-description {
    display: block;
}




/* Navigation Buttons Section */
.end-btns {
    display: flex;
    justify-content: space-between; 
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    max-width: 1650px; 
    /*margin-top: 2rem;*/
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(255,255,255,0.05);
    background: linear-gradient(135deg, #000000, rgb(13,19,45));
    padding: 15px;
}

/* Navigation Button */
.section-end-btn {
    background-color: white;
    color: black;
    border: 2px solid black;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.5s ease-in-out,
                color 0.5s ease-in-out,
                border-color 0.5s ease-in-out,
                box-shadow 0.5s ease-in-out,
                transform 0.3s ease-in-out;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

.section-end-btn:hover {
    background-color: black;
    color: white;
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}




/* =========================================================================== */
/* =========================================================================== */



/* Responsive Design adjustments */
@media (max-width: 900px) {
    .training-info-section,
    .end-btns {
        max-width: 90%; /* scale down on smaller screens */
    }
}

@media (max-width: 600px) {
    .training-info-header h2 {
        font-size: 1.3rem;
    }

    .training-info-description {
        font-size: 1rem;
    }

    .section-end-btn {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
}















/* ################################    PAGE FOOTER         STYLING  ###################### */



footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 5%; /* make horizontal padding % instead of fixed px */
  background-color: #f8f8f8;
  color: rgb(0, 0, 0);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1rem;
  border-top: 2px solid black;
  flex-wrap: wrap; /* allow items to wrap on small screens */
}

.footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Contact links styling */
.left-contact, .right-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(0, 0, 0);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
  cursor: pointer;
  flex-shrink: 0; 
}

/* Hover effects */
.left-contact:hover, .right-contact:hover {
  background-color: rgb(13, 19, 45);
  color: #f0f0f0;
}

.left-contact:hover i, .right-contact:hover i {
  color: #f0f0f0;
}

/* Footer headings */
footer h5 {
  margin: 0;
  font-weight: 400;
  font-size: 1rem;
}

/* RESPONSIVE: For screens smaller than 768px */
@media (max-width: 768px) {
  .lang-toggle {
    display: none;
  }
}