/* WHO WE ARE SECTION */

.co_nameA {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  color: #333; /* Darker color for better contrast */
  text-transform: uppercase;
  letter-spacing: 1px; /* Slightly increased letter spacing */
  /* position: relative; */
  padding-bottom: 10px;
}

.co_nameA {
  text-transform: uppercase;
  font-family: verdana;
  /* font-size: 12em; */
  font-weight: 700;
  color: #36454f;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}
.who-we-are-section {
  padding: 40px 20px;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
}

.who-we-are-container {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Two columns for desktop/tablet */
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.ah2 {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

/* @media (max-width: 768px) {
  .who-we-are-container {
    flex-direction: column; 
    align-items: center;
  }

  .border-wrapper {
    width: 90%; 
  }

  .cards {
    width: 90%; 
  }
} */

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Important: push text to bottom */
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  text-align: center;
  color: white;
  cursor: pointer;
  transition: all 0.4s ease;
  height: 100%;
  width: 100%;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Heading Text at bottom */
.card p.second-text {
  position: absolute;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Make card position relative to control text absolute */
.card {
  position: relative;
}
@media (max-width: 768px) {
  .who-we-are-container {
    grid-template-columns: 1fr; /* Single column */
    gap: 30px;
  }

  .glass-card {
    height: auto; /* Flexible height */
    margin-left: 0;
  }

  .cards {
    height: auto; /* Let content determine height */
    grid-template-rows: auto auto; /* Flexible rows */
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  .cards {
    grid-template-columns: 1fr; /* Single column cards */
  }

  .card {
    height: 200px;
  }

  .blue {
    height: 250px;
  }
}

/* Start */

/* Glass Card Adjustments */
.glass-card {
  width: 100%;
  max-width: 450px; /* Increased width */
  height: 535px; /* Increased height */
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 10px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 20px 40px;
  overflow-y: auto;
  color: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: 20px; /* Add margin to move the card slightly to the right */
  z-index: 10;
  position: relative;
}

@media (max-width: 1024px) {
  .glass-card {
    height: 350px;
    max-width: 400px;
    margin-left: 20px; /* Keep the margin on the left for tablet */
  }
}

/* Adjustments for smaller screens */
@media (max-width: 500px) {
  .glass-card {
    padding: 20px;
    max-width: 100%;
    height: 300px;
    margin-left: 0; /* Remove left margin on mobile */
  }
}

.glass-card::-webkit-scrollbar {
  width: 8px;
}

.glass-card::-webkit-scrollbar-track {
  background: transparent;
}

.glass-card::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.glass-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

p {
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Adjustments for smaller screens */
@media (max-width: 500px) {
  .glass-card {
    padding: 20px;
    max-width: 100%; /* Ensure it doesn't overflow on smaller screens */
    height: 300px; /* Slightly smaller height on mobile for better fit */
  }
}

/* Responsive adjustments for tablet and mobile */
@media (max-width: 1024px) {
  .glass-card {
    height: 350px; /* Keep consistent height on tablet */
    max-width: 400px; /* Adjust width slightly for tablets */
  }
}

@media (max-width: 600px) {
  .glass-card {
    padding: 20px;
    max-width: 100%; /* Ensure it fits well on mobile */
    height: 300px; /* Slightly smaller height on mobile */
  }
}

/* End */

/* Assigning grid areas */
.red {
  background-color: transparent;
  grid-area: a;
}

.blue {
  background-color: transparent;
  grid-area: b;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.green {
  background-color: transparent;
  grid-area: c;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 250px 250px;
  grid-template-areas:
    "a b"
    "c b";
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Hover Effects */
.cards .card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.cards:hover > .card:not(:hover) {
  filter: blur(2px);
  transform: scale(0.95);
}

/* Responsive */

/* Tablet */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 200px;
    grid-template-areas:
      "a b"
      "c b";
    max-width: 90%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .card {
    height: 250px;
  }

  .blue {
    height: 300px; /* Blue card slightly bigger */
  }
}

.meet-our-team {
  padding: 4rem 1.5rem;
  background-color: #f3f4f6; /* light gray */
  animation: slideUp 1s ease-out forwards;
}

.meet-our-team .container {
  max-width: 1400px;
  margin: 0 auto;
}

.meet-our-team h2 {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

/* Cards Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards in a single row */
    gap: 2rem;
  }
}

/* Team Member Card */
.team-card {
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: scale(1.05) translateY(-5px);
}

/* Image */
.team-card img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
}

/* Text Area */
.team-card .text-area {
  padding: 1.5rem;
  text-align: center;
}

.team-card .text-area h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.team-card .text-area p {
  font-size: 0.95rem;
  color: #6b7280; /* Tailwind's gray-500 */
  margin-bottom: 0.5rem;
}

.team-card .text-area p:last-child {
  font-size: 0.85rem;
  color: #4b5563; /* Tailwind's gray-600 */
}

/* Simple Slide-Up Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.work-section {
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  padding: 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.work-heading {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: black;
}

.work-cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.work-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: black;
}

.work-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .work-heading {
    font-size: 2rem;
  }

  .work-card {
    max-width: 90%;
  }
}
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
  padding-top: 0rem;
  padding-bottom: 1.5rem;
  margin: 0 auto;
  justify-items: center;
}
.certificate-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
  object-fit: contain;
}
.certificate-img:hover {
  transform: scale(1.03);
}

/* Overlay */
#certificate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
}
#certificate-overlay.hidden {
  display: none;
}

#overlay-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: zoom-out;
}
#overlay-image.zoomed {
  transform: scale(1.5);
  cursor: grab;
}

.overlay-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}
.control-btn {
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.control-btn i {
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .certificate-grid {
    grid-template-columns: 1fr; /* stack on mobile */
  }
}
