/* General */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fb;
  color: #333;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Heading */
h2 {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  padding: 15px;
  background: #1e3c72;
  color: white;
  border-radius: 8px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* Tabs */
.tab {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 12px;
  z-index: 1000;
  border-bottom: 2px solid #e0e0e0;
}

.tab button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 25px;
  font-size: 16px;
  font-weight: 600;
  color: #1e3c72;
  position: relative;
  transition: color 0.3s ease;
}

.tab button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 3px;
  background: #1e3c72;
  transition: width 0.3s ease-in-out;
  border-radius: 2px;
}

.tab button:hover {
  color: #16305a;
}

.tab button:hover::after,
.tab button.active::after {
  width: 100%;
}

.tab button.active {
  color: #1e3c72;
  font-weight: 700;
}

/* Tab Content */
.tabcontent {
  display: none;
  padding: 20px;
  background: #f9fbfd;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  line-height: 1.7;
  font-size: 15px;
  animation: fadeEffect 0.4s ease-in;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Vision Gallery */
.vision-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px; /* Square box */
  margin-bottom: 12px;
}

.card h3 {
  margin: 8px 0 5px;
  font-size: 16px;
  color: #1e3c72;
}

.card p {
  font-size: 14px;
  color: #555;
  font-style: italic;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  animation: scaleUp 0.3s ease;
}

.modal-content img {
  width: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.modal-content h3 {
  color: #1e3c72;
  margin-bottom: 10px;
}

.modal-content p {
  margin-bottom: 10px;
  color: #444;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
}

@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  h2 {
    font-size: 22px;
  }
  .tab button {
    padding: 12px 15px;
    font-size: 14px;
  }
}
