/* =========================================
   ABOUT PAGE REFACTOR (Uses main.css variables)
   ========================================= */

/* HERO (Specific to About Page) */
.hero {
  height: 300px;
  /* Shorter hero for subpages */
  background:
    linear-gradient(rgba(17, 45, 78, 0.8), rgba(17, 45, 78, 0.8)),
    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  text-align: center;
  padding-top: 100px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1px;
}

/* WELCOME */
.welcome {
  padding: 80px 0;
  width: var(--container-width);
  max-width: var(--max-width);
  margin: auto;
}

.welcome h2 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
}

.welcome-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--white);
  padding: 0;
  align-items: center;
}

.welcome img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.welcome-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.welcome-text strong {
  color: var(--primary);
}

.welcome button {
  margin-top: 20px;
  padding: 12px 30px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.welcome button:hover {
  background: #0d2138;
}

/* PRINCIPAL */
.principal {
  padding: 80px 0;
  background: var(--bg-light);
}

.principal h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.principal-box {
  width: var(--container-width);
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.principal-card {
  text-align: center;
}

.principal-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 15px;
}

.principal-card h4 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.principal-card span {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Updated Principal Text */
.principal-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.principal-text p {
  margin-bottom: 15px;
}

/* VISION MISSION Updates */
.vm p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* VISION MISSION */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 80px 0;
  width: var(--container-width);
  max-width: var(--max-width);
  margin: auto;
}

.vm {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.vm h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.vm-grid div {
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

/* HISTORY */
.history {
  padding: 80px 0;
  background: var(--bg-light);
}

.history h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.history-box {
  width: var(--container-width);
  max-width: var(--max-width);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.history img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
}

.history ul {
  list-style: none;
}

.history ul li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  color: var(--text-dark);
}

.history ul li strong {
  color: var(--primary);
  margin-right: 10px;
}

/* BOTTOM */
.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 80px 0;
  width: var(--container-width);
  max-width: var(--max-width);
  margin: auto;
}

.core,
.awards {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eee;
}

.core h3,
.awards h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 5px;
}

.awards img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

/* RESPONSIVE */
@media(max-width:768px) {

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .welcome-box,
  .principal-box,
  .vision-mission,
  .history-box,
  .bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .principal-box {
    text-align: center;
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .principal p {
    border-left: none;
    border-top: 4px solid var(--accent);
    padding-top: 20px;
    padding-left: 0;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .vm,
  .core,
  .awards {
    padding: 20px;
  }

  .history img {
    height: 250px;
  }
}