/* ==============================
   General Reset
============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================
   Main Container
============================== */
.about-main {
  padding: 0;
  background: #fff;
}

/* ==============================
   Shared Container Gutters
============================== */
.aboutus-container,
.vm-container,
.fifth-container,
.strategic-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================
   Titles
============================== */
.aboutus-title,
.vm-title,
.fifth-title,
.strategic-title {
  font-size: 2.8rem;
  color: #11184a;
  font-weight: 600;
  text-align: center;
  margin: 0 auto 80px;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.aboutus-title span,
.vm-title span,
.fifth-title span,
.strategic-title span {
  display: inline-block;
  position: relative;
  padding-bottom: 8px;
}

.aboutus-title span::after,
.vm-title span::after,
.fifth-title span::after,
.strategic-title span::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #11184a;
  margin: 12px auto 0;
}

/* ==============================
   ABOUT US Section
============================== */
.aboutus-section {
  padding: 120px 0;
  background: #fff;
}

.aboutus-rows {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.aboutus-row {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: nowrap;
  position: relative;
}

/* Row layout */
.aboutus-rows .aboutus-row:nth-child(1) {
  flex-direction: row; /* Image Left, Text Right */
}

.aboutus-rows .aboutus-row:nth-child(2) {
  flex-direction: row-reverse; /* Image Right, Text Left */
}

/* Columns */
.aboutus-img,
.aboutus-content {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
}

/* Image */
.aboutus-img {
  position: relative;
  z-index: 2; /* image on top */
}

.aboutus-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #11184A;
}

/* Overlay heading on image */
.aboutus-img .overlay-heading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: 8px;
  pointer-events: none;
}

/* Paragraph behind image */
.aboutus-content {
  position: relative;
  z-index: 1; /* behind image */
}

.aboutus-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #11184a;
  font-weight: 500;
  margin: 0;
  text-align: justify;
  position: relative;
}

/* Padding to match row alignment */
.aboutus-rows .aboutus-row:nth-child(2) .aboutus-content {
  padding-left: 60px;
}

.aboutus-rows .aboutus-row:nth-child(1) .aboutus-content {
  padding-right: 60px;
}

/* ==============================
   VISION & MISSION Section
============================== */
.vm-section {
  padding: 100px 0;
  background: #fff;
  text-align: center;
}

.vm-grid {
  display: flex;
  gap: 100px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; /* ensure children positioned properly */
  overflow: visible;  /* allow animation from below */
}

.vm-box {
  background: #FCE590;
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  color: #11184a;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;             /* initially visible */
  transform: translateY(0); /* reset transform so GSAP from() works */
}

.vm-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Vision & Mission Icons */
.vm-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
}

.vm-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==============================
   FIFTH Pillar Section
============================== */
.fifth-pillar {
    padding: 120px 20px;
   background: #fff;
}

.fifth-title {
    font-size: 2.8rem;
    color: #11184a;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
}

.fifth-title span::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #11184a;
    margin: 12px auto 0;
}

/* FIFTH Grid */
.fifth-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Pillar Boxes */
.pillar-box {
    position: relative;
    width: 200px;
    height: 150px;
    border-radius: 12px;
    background-color: #fff;
    color: #11184a;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* First letter */
.pillar-box .first {
    font-size: 3rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

/* Rest of the text (initially hidden) */
.pillar-box .rest {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Reveal rest on hover */
.pillar-box:hover .first {
    transform: translateY(-100%);
}

.pillar-box:hover .rest {
    opacity: 1;
    transform: translateY(0);
}


/* ==============================
   Strategic Partner Section
============================== */
.strategic-section {
  padding: 120px 0;
  background: #fff;
}

.strategic-title {
  font-size: 2.8rem;
  color: #11184a;
  font-weight: 600;
  text-align: center;
  margin-bottom: 60px;
}

.strategic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.strategic-item img {
  max-width: 180px;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s ease;
}

.strategic-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ==============================
   Responsive Design
============================= */
@media screen and (max-width: 1024px) {
  .aboutus-row { gap: 40px; }
  .aboutus-img img { border-radius: 12px; }
  .vm-grid { gap: 20px; }
  .fifth-content { flex-direction: column; align-items: center; text-align: center; }
  .fifth-img { margin-top: 30px; }
  .strategic-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
}

@media screen and (max-width: 768px) {
  .aboutus-title, .vm-title, .fifth-title, .strategic-title { font-size: 2rem; margin-bottom: 40px; padding: 0 10px; }
  .aboutus-rows { gap: 60px; }
  .aboutus-row { flex-direction: column; text-align: center; gap: 30px; }
  .aboutus-img, .aboutus-content { flex: 1 1 100%; max-width: 100%; }
  .aboutus-content p { text-align: left; }
  .vm-grid { flex-direction: column; align-items: center; }
  .vm-box { width: 100%; max-width: 100%; padding: 30px; }
  .fifth-text .pillar-box .first { font-size: 2rem; }
  .fifth-text .pillar-box .rest { font-size: 1.5rem; }
  .fifth-img img { max-width: 80%; height: auto; }
  .strategic-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

@media screen and (max-width: 480px) {
  .aboutus-section, .vm-section, .fifth-pillar, .strategic-section { padding: 60px 10px; }
  .aboutus-title, .vm-title, .fifth-title, .strategic-title { font-size: 1.6rem; }
  .aboutus-content p { font-size: 0.95rem; }
  .vm-box { padding: 25px; }
  .pillar-box .first { font-size: 1.6rem; }
  .pillar-box .rest { font-size: 1.2rem; }
  .strategic-grid { grid-template-columns: 1fr; gap: 20px; }
  .strategic-item img { max-width: 140px; }
}
