@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');

.academics-section {
  font-family: 'Open Sans', Arial, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px;
  color: #092c5c;
  position: relative;
}

.academics-header {
  text-align: center;
  margin-bottom: 50px;
}
.academics-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #d1002c;
  position: relative;
}
.academics-header h1::after {
  content: "";
  width: 70px;
  height: 5px;
  background: #ffcc00;
  display: block;
  margin: 12px auto 0;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(255,204,0,0.4);
}
.academics-header p {
  margin-top: 12px;
  color: #22407b;
  font-size: 1.1rem;
}

.academics-content {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: nowrap; /* Prevent cards from wrapping on the same row */
}

/* === THREE-LINE BORDER WRAPPERS (outer → middle → inner) === */
.hex-outer-border {
  clip-path: polygon(25% 6.7%, 75% 6.7%, 100% 50%,
                     75% 93.3%, 25% 93.3%, 0% 50%);
  background: linear-gradient(120deg, #092c5c 60%, #093877 100%); /* Outer border color */
  padding: 6px; /* Thickness of outer border */
  animation: pulseGlow 3.5s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(.26,.61,.52,1);
}
.hex-outer-border:hover {
  transform: scale(1.05);
  z-index: 5;
}

.hex-middle-border {
  clip-path: inherit;
  background: linear-gradient(60deg, #fff7e1 72%, #d3e4fc 100%); /* Middle border color */
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-inner-border {
  clip-path: inherit;
  background: #092c5c; /* Inner border color */
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep your existing .hex-flip-card styles for flip animations */


/* Responsive: stack vertically on smaller screens */
@media (max-width: 768px) {
  .academics-content {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .hex-flip-card {
    width: 90vw !important;
    max-width: 400px;
    height: auto;
  }
  .hex-flip-back {
    padding: 25px 20px 3px 20px !important;
    font-size:0.9rem !important;
  }
}


/* Hex Flip Card Container */
.hex-flip-card {
  width: 350px;
  height: 320px;
  perspective: 1200px;
  cursor: pointer;
  clip-path: polygon(
    25% 6.7%, 75% 6.7%, 100% 50%,
    75% 93.3%, 25% 93.3%, 0% 50%
  );
  border-radius: 12px;
}

/* Flip inner wrapper */
.hex-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* Flip on hover or focus */
.hex-flip-card:hover .hex-flip-inner,
.hex-flip-card:focus-within .hex-flip-inner {
  transform: rotateY(180deg);
}

/* Front & Back sides */
.hex-flip-front,
.hex-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 1px solid #ffcc00;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 26px;
  box-shadow: 0 10px 28px rgba(9,44,92,0.08);
  color: #092c5c;
  border-radius: 12px;
}

/* Front side shows heading */
.hex-flip-front {
  z-index: 2;
}

/* Back side content flipped */
.hex-flip-back {
  transform: rotateY(180deg);
  color: #22253c;
  font-size: 0.8rem;
  line-height: 1.6;
  /* padding: 10px 8px 10px 8px; */
  border-left: 6px solid #ffcc00;
  box-shadow: inset 4px 0 10px rgba(255,204,0,0.2);
  text-align: center;
}

/* Card Icon on front */
.card-icon {
  background: #d1002c;
  color: #fff;
  font-size: 1.8rem;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 18px;
}

/* Section Title on front */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #092c5c;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.2;
  user-select: none;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .academics-section { padding: 40px 15px; }
  .academics-header h1 { font-size: 1.8rem; }
  .hex-flip-card {
    width: 90vw;
    height: 240px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .hex-flip-back {
    padding-top: 40px;
    font-size: 1rem;
    padding: 10px 8px 10px 8px;
  }
  .competitive-subheading {
  
  padding: 0px 20px 0px 10px !important;
}
  /* .card-icon {
    font-size: 1.4rem;a
    padding: 10px;
    margin-bottom: 14px;
  } */
}

.academics-content {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap; /* enables stacking on smaller screens */
  text-align: center;
}

/* Competitive Exam card icon styling */
.competitive-icon {
  font-size: 1.8rem;
  background: #d1002c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 18px;
}

.lang-icon {
  font-size: 1.8rem;
  background: #092c5c !important; /* Deep navy as base */
  color: #ffcc00 !important; /* Golden accent */
  display: flex;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 18px;
}

/* Career icon styling */
.career-icon {
  font-size: 1.8rem;
background: #092c5c !important; /* Deep navy as base */
color: #ffcc00 !important; /* Golden accent */
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
border-radius: 50%;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
margin-bottom: 18px;
}
/* Competitive Exam back content */
.competitive-content {
  text-align: center;
  font-size: 1rem;
  color: #22253c;
  line-height: 1.6;
}

.competitive-subheading {
  font-size: 1rem;
  font-weight: 500;
  color: #d1002c;
  font-style: italic;
  margin-bottom: 18px;
padding: auto;
}

.highlight {
  font-weight: 700;
  color: #ffcc00;
}

@media (max-width: 900px) {
  .academics-content {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .hex-flip-card {
    width: 350px !important;
    height: 320px !important;
    max-width: 100vw;
    text-align: center;
    font-size:1rem
  }
  .hex-flip-back{
    padding: 25px 10px 3px 25px;
  }
}

@media (max-width: 600px) {
  .hex-flip-card {
    width: 350px !important;
    height: 320px !important;
    max-width: 100vw;
    text-align: center;
    font-size:1rem
  }
   .hex-flip-back{
    padding: 25px 10px 3px 25px;
  }
}
.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.09);
  overflow: hidden;
}

.card-image img {
  width: 130px;
  height: 130px;
  display: block;
  /* object-fit: contain; */
  border-radius: 50%;
  background: #fff;
  padding: 3px;
}
