:root {
  --deep-navy: #000428;
  --gold: #eebf63;
  --navy: #000428;
}

.about-hero-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  box-sizing: border-box;

  /* IMPORTANT: This is where your background image goes. 
       'cover' ensures it fills the screen perfectly.
    */
  background-image: url("/assets/about-page/hero .png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.about-card-container {
  background-color: #ffffff;
  max-width: 900px; /* Optimal width for readability */
  width: 100%;
  border-radius: 60px; /* Matches the heavy rounded corners in your image */
  padding: 70px 80px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
  margin-top: 2rem;
}

.about-main-title {
  font-family: "Arvo", serif; /* Exact thick slab-serif style */
  font-size: 3.5rem;
  color: var(--deep-navy);
  margin: 0 0 35px 0;
  line-height: 1.1;
}

.about-text-content p {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #222222;
  margin-bottom: 25px;
}

/* --- MOBILE RESPONSIVE DESIGN --- */

@media (max-width: 768px) {
  .about-hero-wrapper {
    padding: 40px 15px;
    background-attachment: scroll; /* Better performance on mobile */
  }

  .about-card-container {
    padding: 45px 30px;
    border-radius: 40px; /* Slightly smaller radius for mobile */
  }

  .about-main-title {
    font-size: 2.4rem;
    margin-bottom: 25px;
  }

  .about-text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .about-main-title {
    font-size: 2rem;
  }

  .about-card-container {
    padding: 40px 20px;
    border-radius: 30px;
  }
}

.honors-section {
  position: relative;
  background-color: var(--navy);
  padding: 80px 5%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.honors-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/about-page/2\ nd-bg.png"); /* Your background image */
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.honors-container {
  position: relative;
  z-index: 2;
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  align-items: center;
}

/* --- ASYMMETRICAL GALLERY DESIGN --- */
.honors-gallery {
  flex: 1.4;
  display: flex;
  gap: 20px;
  height: 550px;
}

.gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.6s ease;
}

.gallery-card {
  position: relative;
  width: 100%;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* INITIAL DESIGN POSITIONS */
.card-tall {
  flex: 3;
} /* Large Image Left */
.card-square {
  flex: 1.2;
} /* Small Image Left Bottom */
.card-small-top {
  flex: 1;
} /* Small Image Right Top */
.card-medium {
  flex: 2.5;
} /* Medium Image Right Bottom */

/* --- INTERACTIVE HOVER LOGIC --- */

/* 1. When the gallery is hovered, make all non-hovered items shrink */
.honors-gallery:hover .gallery-card {
  flex: 1;
  opacity: 0.6;
  filter: grayscale(0.5);
}

/* 2. The specific card you hover becomes the tall "Main" card */
.honors-gallery .gallery-card:hover {
  flex: 5; /* Expands to fill vertical space */
  opacity: 1;
  filter: grayscale(0);
}

/* 3. Make the parent column grow too so it takes more width */
.gallery-column:has(.gallery-card:hover) {
  flex: 1.8;
}

/* --- CONTENT DESIGN --- */
.honors-content {
  flex: 1;
  color: white;
}

.honors-title {
  font-family: "Arvo", serif;
  font-size: 3.5rem;
  margin-bottom: 25px;
}

.gold-text {
  color: var(--gold);
}

.honors-btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(180deg, #f3d08c 0%, #c59d4a 100%);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 12px;
  margin-top: 20px;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
  .honors-container {
    flex-direction: column;
  }
  .honors-gallery {
    width: 100%;
    height: 500px;
  }
}

.award-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  background: var(--navy);
}
.box {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: animate 20s linear infinite;
}
@keyframes animate {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}
.box span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(400px);
  -webkit-box-reflect: below 0px linear-gradient(transparent, transparent, #004);
}

.box span img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border: 1px solid var(--gold);
  border-radius: 18px;
  height: 100%;
  object-fit: cover;
}

:root {
  --navy-blue: #000428;
  --text-navy: #000428;
}

.master-section {
  width: 100%;
  padding: 80px 5%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  height: 80vh;
}

.master-container {
  max-width: 1200px;
  display: flex;
  align-items: center; /* Vertically centers the text with the image */
  gap: 60px;
}

/* Image Box Styling */
.master-image-box {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sir-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
}

/* Content Area Styling */
.master-content {
  flex: 1.5;
  color: var(--text-navy);
}

.master-title {
  font-family: "Arvo", serif;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 30px;
}

.master-title span {
  display: block;
  margin-top: 5px;
}

.founder-info {
  margin-bottom: 25px;
}

.founder-name {
  font-family: "Inter", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.founder-title {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #555;
  margin: 5px 0 0 0;
}

.master-description {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #333;
  max-width: 600px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 1024px) {
  .master-title {
    font-size: 2.8rem;
  }
  .master-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .master-container {
    flex-direction: column; /* Stacks image on top, text below */
    text-align: center;
  }

  .master-image-box {
    margin-bottom: 30px;
  }

  .master-description {
    margin: 0 auto;
  }

  .master-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .master-title {
    font-size: 1.8rem;
  }
  .founder-name {
    font-size: 1.5rem;
  }
}
