/*=========================================================
        ST. MARY'S SCHOOL - NEWASA
        Main Stylesheet
=========================================================*/

/*================ GOOGLE FONT =================*/

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/*================ RESET =================*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f8f9fb;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

/*================ VARIABLES =================*/

:root {
  --primary: #0d47a1;
  --secondary: #1565c0;
  --accent: #ffc107;
  --white: #ffffff;
  --black: #222;
  --text: #555;
  --light: #f4f7fb;
  --border: #e5e5e5;

  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  --radius: 12px;

  --transition: 0.35s ease;
}

/*================ CONTAINER =================*/

.container {
  width: 90%;
  max-width: 1250px;
  margin: auto;
}

/*================ LINKS =================*/

a {
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  width: 100%;
  display: block;
}

/*================ SECTION =================*/

.hero {
  position: relative;

  height: 92vh; /* increased from 88vh for a bigger slideshow */

  padding: 0; /* overrides the global "section{padding:90px 0;}" rule that was causing the gap */

  overflow: hidden;
}

/*================ TITLES =================*/

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h5 {
  color: var(--secondary);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title h2 {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 18px;
}

.section-title p {
  color: #666;
  max-width: 760px;
  margin: auto;
}

/*================ BUTTON =================*/

.btn {
  display: inline-block;

  background: var(--primary);

  color: #fff;

  padding: 14px 34px;

  border-radius: 40px;

  font-weight: 600;

  transition: var(--transition);
}

.btn:hover {
  background: var(--secondary);

  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;

  color: #fff;

  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;

  color: var(--primary);
}

/*================ TOP BAR =================*/

.top-bar {
  background: var(--primary);

  color: #fff;

  font-size: 14px;

  padding: 10px 0;
}

.top-bar-content {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.top-left span,
.top-right span {
  margin-right: 25px;
}

.top-bar i {
  margin-right: 8px;
}
/*=========================================================
                    HEADER
=========================================================*/

.main-header {
  background: #fff;

  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);

  position: relative;

  z-index: 1000;
}

.header-content {
  display: flex;

  justify-content: space-between;

  align-items: center;

  min-height: 90px;
}

/*================ LOGO =================*/

.logo {
  display: flex;

  align-items: center;

  gap: 15px;
}

.logo img {
  width: 70px;

  height: 70px;

  object-fit: contain;
}

.logo-text h1 {
  color: var(--primary);

  font-size: 28px;

  font-weight: 700;

  margin-bottom: 2px;
}

.logo-text p {
  color: #666;

  font-size: 15px;
}

/*================ NAVIGATION =================*/

.navbar {
  display: flex;

  align-items: center;

  gap: 10px;
}

.navbar li {
  position: relative;
}

.navbar li a {
  display: block;

  color: var(--black);

  padding: 12px 18px;

  font-weight: 500;

  border-radius: 8px;

  transition: var(--transition);
}

.navbar li a:hover {
  background: var(--light);

  color: var(--primary);
}

.navbar li a.active {
  background: var(--primary);

  color: #fff;
}
/*=========================================================
              MOBILE MENU BUTTON
=========================================================*/

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/*=========================================================
                    HERO SECTION
=========================================================*/

.hero {
  position: relative;
  height: 88vh;
  overflow: hidden;
}

.slider {
  width: 100%;

  height: 100%;

  position: relative;
}

.slide {
  position: absolute;

  inset: 0;

  opacity: 0;

  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;

  z-index: 2;
}

.slide img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45));

  display: flex;

  align-items: center;
}

.hero-content {
  color: #fff;

  max-width: 700px;
}

.hero-content span {
  display: inline-block;

  background: rgba(255, 255, 255, 0.15);

  padding: 8px 20px;

  border-radius: 40px;

  margin-bottom: 20px;

  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 60px;

  line-height: 1.1;

  margin-bottom: 15px;

  font-weight: 700;
}

.hero-content h3 {
  font-size: 32px;

  color: var(--accent);

  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;

  margin-bottom: 35px;

  max-width: 600px;
}

.hero-buttons {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;
}

/*================ SLIDER BUTTONS =================*/

.prev,
.next {
  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 55px;

  height: 55px;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.25);

  color: #fff;

  font-size: 20px;

  cursor: pointer;

  transition: var(--transition);

  z-index: 10;
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}

.prev:hover,
.next:hover {
  background: var(--primary);
}

/*================ SLIDER DOTS =================*/

.slider-dots {
  position: absolute;

  bottom: 35px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  gap: 12px;

  z-index: 10;
}

.dot {
  width: 14px;

  height: 14px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.45);

  cursor: pointer;

  transition: var(--transition);
}

.dot.active {
  background: #fff;

  transform: scale(1.2);
}
/*=========================================================
                WELCOME SECTION
=========================================================*/

.welcome {
  background: #fff;
}

.welcome-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  align-items: center;
}

.welcome-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-top: 25px;
}

.welcome-content h3 {
  color: var(--primary);

  font-size: 34px;

  margin-bottom: 20px;
}

.welcome-content p {
  color: var(--text);

  margin-bottom: 18px;

  text-align: justify;
}

.welcome-content .btn {
  margin-top: 15px;
}

/*=========================================================
            PRINCIPAL SECTION
=========================================================*/

.principal {
  background: var(--light);
  padding: 60px 0;
}

.principal-grid {
  display: grid;

  grid-template-columns: 400px 1fr;

  gap: 40px;

  align-items: flex-start;
}

.principal-image img {
  width: 100%;

  border-radius: 18px;

  box-shadow: var(--shadow);
}

.section-tag {
  display: inline-block;

  padding: 8px 18px;

  background: #e8f1ff;

  color: var(--primary);

  border-radius: 40px;

  font-size: 14px;

  font-weight: 600;

  margin-bottom: 20px;
}

.principal-content {
  position: relative;
  max-height: 350px;
  overflow: hidden;
}

.principal-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--light));
  pointer-events: none;
}

.principal-content h2 {
  font-size: 32px;

  color: var(--primary);

  margin-bottom: 20px;
}

.principal-content p {
  margin-bottom: 15px;

  color: var(--text);

  text-align: justify;
  font-size: 15px;
}

/* Principal Read More Button */
.principal-content .btn {
  margin-top: 15px;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
}
.manager-image {
  text-align: center;
}

.manager-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
/*=========================================================
            VISION • MISSION
=========================================================*/

.vision-mission {
  background: #fff;
}

.vision-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.vision-card {
  background: #fff;

  padding: 40px 30px;

  text-align: center;

  border-radius: 16px;

  box-shadow: var(--shadow);

  transition: var(--transition);
}

.vision-card:hover {
  transform: translateY(-10px);
}

.vision-card i {
  font-size: 50px;

  color: var(--primary);

  margin-bottom: 25px;
}

.vision-card h3 {
  margin-bottom: 18px;

  color: var(--primary);

  font-size: 24px;
}

.vision-card p {
  color: var(--text);
}

/*=========================================================
                WHY CHOOSE US
=========================================================*/

.why-choose {
  background: var(--light);
}

.features-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.feature-card {
  background: #fff;

  border-radius: 16px;

  padding: 35px 30px;

  box-shadow: var(--shadow);

  text-align: center;

  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card i {
  font-size: 46px;

  color: var(--secondary);

  margin-bottom: 20px;
}

.feature-card h3 {
  color: var(--primary);

  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text);
}

/*=========================================================
                SCHOOL HIGHLIGHTS
=========================================================*/

.highlights {
  background: #fff;
  padding-top: 25px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  transform: translateY(-20px);
}
.stats-card {
  background: var(--primary);

  color: #fff;

  text-align: center;

  border-radius: 16px;

  padding: 40px 20px;

  transition: var(--transition);
  margin-top: -20px;
}

.stats-card:hover {
  transform: translateY(-8px);
}

.stats-card i {
  font-size: 42px;

  margin-bottom: 18px;

  color: var(--accent);
}

.stats-card h2 {
  font-size: 42px;

  margin-bottom: 12px;
}

.stats-card p {
  font-size: 17px;
}
/*=========================================================
                FACILITIES SECTION
=========================================================*/

.facilities {
  background: #f5f7fb;
  padding-top: 25px;
}

.facility-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;
}

.facility-card {
  background: #fff;

  border-radius: 16px;

  overflow: hidden;

  box-shadow: var(--shadow);

  transition: var(--transition);
}

.facility-card:hover {
  transform: translateY(-10px);
}

.facility-card img {
  width: 100%;

  height: 230px;

  object-fit: cover;
}

.facility-content {
  padding: 25px;
}

.facility-content h3 {
  color: var(--primary);

  margin-bottom: 15px;
}

.facility-content p {
  color: var(--text);
}

.center-btn {
  text-align: center;

  margin-top: 50px;
}

/*=========================================================
                    GALLERY
=========================================================*/

.gallery {
  background: #fff;
  padding-top: 25px;
}

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.gallery-grid img {
  width: 100%;

  height: 260px;

  object-fit: cover;

  border-radius: 15px;

  transition: var(--transition);

  cursor: pointer;
}

.gallery-grid img:hover {
  transform: scale(1.05);

  box-shadow: var(--shadow);
}
.gallery .btn {
  margin-top: -15px;
}

/*=========================================================
                CONTACT PREVIEW
=========================================================*/

.contact-preview .btn {
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 30px;
}

.contact-card {
  background: #fff;

  padding: 40px 30px;

  text-align: center;

  border-radius: 15px;

  box-shadow: var(--shadow);

  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-8px);
}

.contact-card i {
  font-size: 45px;

  color: var(--primary);

  margin-bottom: 20px;
}

.contact-card h3 {
  color: var(--primary);

  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text);
}

/*=========================================================
                    CTA
=========================================================*/

.cta {
  background: linear-gradient(135deg, #0d47a1, #1565c0);

  color: #fff;

  text-align: center;
}

.cta h2 {
  font-size: 42px;

  margin-bottom: 20px;
}

.cta p {
  max-width: 700px;

  margin: 0 auto 35px;

  font-size: 18px;
}

.cta .btn {
  background: #fff;

  color: var(--primary);
}

.cta .btn:hover {
  background: var(--accent);

  color: #222;
}

/*=========================================================
                    FOOTER
=========================================================*/

footer {
  background: #0b1f3a;

  color: #ddd;
}

.footer-container {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 40px;

  padding: 70px 0 40px;
}

.footer-logo {
  width: 80px;

  margin-bottom: 20px;
}

.footer-column h3 {
  color: #fff;

  margin-bottom: 20px;

  font-size: 22px;
}

.footer-column p {
  margin-bottom: 12px;

  color: #ccc;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #ccc;

  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--accent);

  padding-left: 5px;
}

.social-icons {
  display: flex;

  gap: 15px;

  margin-top: 20px;
}

.social-icons a {
  width: 45px;

  height: 45px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #17345d;

  color: #fff;

  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--accent);

  color: #222;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  text-align: center;

  padding: 25px 0;

  color: #bbb;
}

.footer-bottom p {
  margin: 8px 0;
}

/*=========================================================
                SCROLL TO TOP
=========================================================*/

#scrollTop {
  position: fixed;

  right: 25px;

  bottom: 25px;

  width: 55px;

  height: 55px;

  border: none;

  border-radius: 50%;

  background: var(--primary);

  color: #fff;

  font-size: 20px;

  cursor: pointer;

  display: none;

  z-index: 999;

  box-shadow: var(--shadow);

  transition: var(--transition);
}

#scrollTop:hover {
  background: var(--secondary);

  transform: translateY(-5px);
}
/*=========================================================
                HISTORY IMAGES
=========================================================*/

/* =========================================================
   HISTORY SECTION
========================================================= */

.history-section {
  background: #f5f8fc;
  padding: 80px 0;
}

.history-section .section-title {
  text-align: center;
  margin-bottom: 35px;
}

.history-section .section-title span {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 14px;
}

.history-section .section-title h2 {
  color: var(--primary);
  font-size: 42px;
  margin: 10px 0;
}

.history-section .section-title p {
  color: #666;
  font-size: 17px;
}

/* =========================================================
   INTRODUCTION
========================================================= */

.history-intro {
  max-width: 1000px;
  margin: 0 auto 50px;
  text-align: center;
}

.history-intro p {
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 15px;
}

/* =========================================================
   HISTORICAL PHOTOS
========================================================= */

.history-images {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 35px;

  max-width: 950px;

  margin: 50px auto 80px;

  padding: 35px;

  background: #fff;

  border-radius: 25px;

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

/* Small heading above photos */

.history-images::before {
  content: "FROM OUR ARCHIVES";

  position: absolute;

  top: -16px;

  left: 50%;

  transform: translateX(-50%);

  background: var(--primary);

  color: #fff;

  padding: 8px 25px;

  border-radius: 30px;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: 2px;

  white-space: nowrap;
}

.history-images img {
  width: 45%;
  height: 280px;

  object-fit: cover;

  border-radius: 18px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.history-images img:hover {
  transform: translateY(-8px) scale(1.02);

  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   TIMELINE
========================================================= */

.history-timeline {
  position: relative;

  max-width: 1050px;

  margin: 0 auto;

  padding: 20px 0;
}

/* Central timeline line */

.history-timeline::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: 50%;

  width: 4px;

  background: var(--primary);

  transform: translateX(-50%);

  border-radius: 10px;

  opacity: 0.25;
}

/* =========================================================
   TIMELINE ITEM
========================================================= */

.history-item {
  position: relative;

  width: 50%;

  padding: 20px 45px;

  box-sizing: border-box;
}

/* Alternate sides */

.history-item:nth-child(odd) {
  left: 0;

  text-align: right;
}

.history-item:nth-child(even) {
  left: 50%;

  text-align: left;
}

/* =========================================================
   YEAR
========================================================= */

.history-year {
  display: inline-block;

  background: var(--primary);

  color: #fff;

  padding: 9px 18px;

  border-radius: 25px;

  font-weight: 700;

  font-size: 15px;

  margin-bottom: 12px;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   HISTORY CARD
========================================================= */

.history-text {
  background: #fff;

  padding: 25px 28px;

  border-radius: 18px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  border-top: 4px solid var(--primary);
}

.history-text:hover {
  transform: translateY(-6px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.history-text h3 {
  color: var(--primary);

  font-size: 22px;

  margin-bottom: 12px;
}

.history-text p {
  color: var(--text);

  line-height: 1.7;

  font-size: 15px;

  margin: 0;
}

/* =========================================================
   TIMELINE DOTS
========================================================= */

.history-item::after {
  content: "";

  position: absolute;

  top: 35px;

  width: 18px;
  height: 18px;

  background: #fff;

  border: 5px solid var(--primary);

  border-radius: 50%;

  z-index: 2;
}

.history-item:nth-child(odd)::after {
  right: -9px;
}

.history-item:nth-child(even)::after {
  left: -9px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .history-section {
    padding: 60px 15px;
  }

  .history-section .section-title h2 {
    font-size: 32px;
  }

  /* Photos */

  .history-images {
    flex-direction: column;

    padding: 30px 20px;

    gap: 20px;

    margin-bottom: 60px;
  }

  .history-images img {
    width: 100%;
    height: 230px;
  }

  /* Timeline */

  .history-timeline::before {
    left: 15px;

    transform: none;
  }

  .history-item,
  .history-item:nth-child(odd),
  .history-item:nth-child(even) {
    width: 100%;

    left: 0;

    text-align: left;

    padding: 15px 10px 15px 45px;
  }

  .history-item::after,
  .history-item:nth-child(odd)::after,
  .history-item:nth-child(even)::after {
    left: 7px;

    right: auto;

    top: 30px;
  }

  .history-text {
    padding: 20px;
  }

  .history-text h3 {
    font-size: 19px;
  }

  .history-text p {
    font-size: 14px;
  }
}
/*=========================================================
                    SSC RESULTS
=========================================================*/

.ssc-results {
  background: #fff;
  padding: 90px 0;
}

.ssc-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 60px;
  align-items: center;
}

.ssc-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.ssc-content h3 {
  color: var(--primary);
  font-size: 34px;
  margin-bottom: 20px;
}

.ssc-content p {
  color: var(--text);
  text-align: justify;
  margin-bottom: 20px;
}

.ssc-stats {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.ssc-stat {
  flex: 1;
  min-width: 140px;
  background: #f4f7fb;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.ssc-stat h2 {
  color: var(--primary);
  font-size: 34px;
  margin-bottom: 8px;
}

.ssc-stat span {
  color: #555;
  font-size: 15px;
  font-weight: 500;
}
/*=========================================================
            HISTORY OF PRINCIPALS
=========================================================*/

.principal-history {
  background: #f8f9fb;
  padding: 90px 0;
}

.principal-history-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 60px;
  align-items: center;
}

.principal-history-content h3 {
  color: var(--primary);
  font-size: 34px;
  margin-bottom: 20px;
}

.principal-history-content p {
  color: var(--text);
  text-align: justify;
  margin-bottom: 18px;
}

.principal-history-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.leadership-highlight {
  margin-top: 30px;
  background: #e8f1ff;
  border-left: 5px solid var(--primary);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.leadership-highlight i {
  font-size: 32px;
  color: var(--primary);
}

.leadership-highlight span {
  color: #333;
  font-size: 16px;
}
/*================ SINGLE DOWNLOAD CARD ================*/

.single-download {
  display: flex;
  justify-content: center;
}

.single-download .facility-card {
  width: 450px;
  max-width: 100%;
}
/*=========================================================
                RESPONSIVE DESIGN
=========================================================*/

@media (max-width: 992px) {
  .welcome-grid,
  .principal-grid,
  .vision-grid,
  .features-grid,
  .facility-grid,
  .gallery-grid,
  .contact-grid,
  .stats-grid,
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 46px;
  }
  .ssc-grid {
    grid-template-columns: 1fr;
  }

  .ssc-image {
    order: 1;
  }

  .ssc-content {
    order: 2;
  }
  .principal-history-grid {
    grid-template-columns: 1fr;
  }

  .principal-history-image {
    order: 1;
  }

  .principal-history-content {
    order: 2;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .header-content {
    flex-direction: column;

    padding: 20px 0;
  }

  .navbar {
    flex-wrap: wrap;

    justify-content: center;

    margin-top: 20px;
  }

  .welcome-grid,
  .principal-grid,
  .vision-grid,
  .features-grid,
  .facility-grid,
  .gallery-grid,
  .contact-grid,
  .stats-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 70vh;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content h3 {
    font-size: 24px;
  }

  .section-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .btn {
    padding: 12px 25px;

    font-size: 15px;
  }
  /* Fade Animation */

  .hidden {
    opacity: 0;

    transform: translateY(40px);

    transition: all 0.8s ease;
  }

  .show {
    opacity: 1;

    transform: translateY(0);
  }
  /* ================= HISTORY IMAGES ================= */

  .history-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 900px;
  }

  .history-images img {
    width: 350px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  }
}
/* =========================================================
   SUBTLE SCROLL MOVEMENT
   ========================================================= */

.parallax-card {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.parallax-icon {
  transition: transform 0.15s ease-out;
  will-change: transform;
}
/* =========================================
   NEW ADDITIONS TO OUR CAMPUS
   ========================================= */

.new-additions {
  background: #f5f7fb;
  padding: 80px 0;
}

.addition-card {
  display: grid;
  grid-template-columns: 50% 50%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 40px;
  transition: var(--transition);
}

.addition-card:hover {
  transform: translateY(-8px);
}

.addition-image {
  position: relative;
  min-height: 420px;
}

.addition-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.construction-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #fff;
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.addition-content {
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-tag {
  display: inline-block;
  width: fit-content;
  background: #e8f1ff;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 600;
  margin-bottom: 20px;
}

.addition-content h3 {
  color: var(--primary);
  font-size: 30px;
  margin-bottom: 18px;
}

.addition-content p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 15px;
}

.addition-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
}

.addition-features div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
}

.addition-features i {
  color: var(--primary);
  font-size: 20px;
  width: 25px;
}

.addition-note {
  background: #f5f7fb;
  padding: 15px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  margin-top: 10px;
}

.addition-note i {
  color: var(--primary);
  margin-right: 8px;
}
/*=========================================================
        PRINCIPAL & MANAGER - COMPACT CARD STYLE
=========================================================*/

.principal {
  background: var(--light);
}

.principal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.message-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 35px 30px;
  text-align: center;
}

.message-card .principal-image,
.message-card .manager-image {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.message-card .principal-image img,
.message-card .manager-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.message-card .section-tag {
  margin-bottom: 12px;
}

.message-card h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 15px;
}

.message-card .msg-preview p,
.message-card .msg-full p {
  color: var(--text);
  text-align: left;
  margin-bottom: 14px;
}

.message-card .msg-full {
  display: none;
}

.message-card.expanded .msg-full {
  display: block;
}

.message-card.expanded .msg-preview {
  display: none;
}

.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 26px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.read-more-btn:hover {
  background: var(--primary);
  color: #fff;
}

.manager-signature {
  display: block;
  margin-top: 15px;
  text-align: left;
}

.manager-signature strong {
  display: block;
  color: var(--primary);
  font-size: 17px;
}

.manager-signature span {
  display: block;
  color: var(--text);
  font-size: 14px;
}

@media (max-width: 992px) {
  .principal-grid {
    grid-template-columns: 1fr;
  }
}
