/* Global Styling */
body {
  margin: 20px ;
  font-family: Menlo, sans-serif;
  background: url('../images/background-tech.jpg') no-repeat center center fixed;
  background-size: cover;  
}

header {
  background: rgba(0, 66, 102, 0.95);
  color: white;
  text-align: center;
  padding: 1.5em;
}

header img {
  max-width: 100%;
  height: auto;
}


section {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2em;
  margin: 2em auto;
  max-width: calc(80vw - 60px);
  border-radius: 8px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
}

.tabs__label {
      cursor: pointer;
      padding: 14px;
	  background-color: rgba(0, 0, 0, 0.05);
      color: rgba(0, 66, 102, 0.95);
      border-bottom: 1px solid rgba(0, 66, 102, 1.00); 
      border-top: 1px solid rgba(0, 66, 102, 1.00);
      border-left: 1px solid rgba(0, 66, 102, 1.00);
      border-right: 1px solid rgba(0, 66, 102, 1.00);
      transition: background-color 0.3s;
      flex-grow: 1;
      text-align: center;
}

.tabs__label:hover {
      background-color: rgba(0, 66, 102, 0.25);
	  font-weight: bold;
    }

.tabs__radio {
  display: none;
}

.tabs__content {
      order: 1;
      width: 100%;
      display: none;
      opacity: 1;
      transition: visibility 0.5s, opacity 0.5s linear;
      padding: 18px;
      font: black;
      border-left: 1.8px solid rgba(0, 66, 102, 1.00);
      border-right: 1.8px solid rgba(0, 66, 102, 1.00);
      border-bottom: 1.8px solid rgba(0, 66, 102, 1.00);
}

.tabs__radio:checked + .tabs__label {
	  background-color: rgba(0, 66, 102, 1.00);
	  font-weight: bold;
      color: white;
}

.tabs__radio:checked + .tabs__label + .tabs__content {
	  display: initial;
}

.flex-container {
	  display: flex;
}

.flex-container > div:hover {
      background-color: rgba(0, 66, 102, 0.20);
      box-shadow: 0 0 30px rgba(0, 0, 255, 0.5), 0 0 30px rgba(0, 255, 0, 0.5);
      transform: scale(1.02);
      transition: ease 0.4s;
    }

.flex-container > div {
      flex: 1;
      margin: 12px;
      padding: 20px;
      border: 1.6px solid rgba(0, 66, 102, 1.00);
      border-radius: 0px;
      box-shadow: 0 12px 12px rgba(0, 66, 102, 0.50);
}

.card button {
    width: 180px;
    height: 40px;
    margin: 10px;
    border: 1.2px solid #8f3642;
    border-radius: 4px;
    background-color: #FFC857;
    font-weight: 700;
    cursor: pointer;
}

.card button:hover {
  background-color: orange;
}

/* News Carousel */
.news-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1em;
  scroll-snap-type: x mandatory;
}

.news-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 1em;
  width: 250px;
  height: 460px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
}


.news-item:hover {
  background-color: rgba(0, 66, 102, 0.25);
}

.news-item img {
  object-fit: cover;
  width: 250px;
  height: 200px;
}

.news-content {
   padding: 0.5rem;
}

.news-content h3 {
  font-size: 1.1em;
}


.news-content .date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.1rem;
  text-align: left;
}


.news-content .summary {
  font-size: 0.95rem;
  color: #555;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

.read-more .icon {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: #005fa3;
}

.read-more:hover .icon {
  transform: translateX(4px);
}


.news-wrapper {
  width: calc(80vw - 60px);
  margin: 0 auto;
  overflow: hidden; /* Prevent overflow */
}


.swiper {
  width: 100%;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  width: auto; /* Let Swiper calculate based on content */
  max-width: 280px; /* Optional: limit card width */
  flex-shrink: 0;

}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.swiper-button-prev:hover .arrow-icon,
.swiper-button-next:hover .arrow-icon {
  transform: scale(1.2) rotate(5deg);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #e6f0ff;
}

/* Contact */
#contact {
  background: #f9f9f9;
  padding: 2rem;
  center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 500px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

label {
  font-weight: bold;
  text-align: left;
}

input,
textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  padding: 0.8em;
  background: #004266;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

button:hover {
  background: #006699;
}


/* Footer and Nav */
footer {
  background: rgba(0, 66, 102, 0.95);
  color: white;
  text-align: center;
  padding: 1.5em;
  margin-top: 2em;
}

footer img {
  height: 40px;
  margin: 0 10px;
  vertical-align: middle;
}

nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.8em;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

nav a {
  margin: 0 1em;
  text-decoration: none;
  color: #004266;
  font-weight: bold;
}


/* Modal Styles */


/* Add fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease forwards;
}


.modal.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  max-height: 80vh; /* Limit height to viewport */
  overflow-y: auto;  /* Enable vertical scrolling */
  position: relative;
  animation: fadeIn 0.3s ease forwards;
}


/* Optional: smooth scrolling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

#modalBody img {
  object-fit: cover;
  width: 300px;
  height: 250px;
  margin-bottom: 1rem;
  border-radius: 6px;
}

#modalBody .date {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

