/* assets/css/landing.css
 * Page-specific styling for index.php (the public marketing landing page).
 * Loads after tokens.css and components.css. Anything reusable across the
 * app (buttons, cards, alerts) stays in components.css — this file only
 * holds hero/marketing layout that is unique to this page.
 */

/* Landing page brand colors that don't correspond to the app's shared
 * primary/accent tokens (this page keeps its own teal/navy marketing
 * palette, distinct from the in-portal green brand color). */
:root {
  --landing-navy: #1e2630;
  --landing-teal: #16997a;
  --landing-teal-dark: #016d55;
}

/* ---------- RESET & BASE ---------- */
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--color-surface);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* ---------- CENTERED CONTAINER ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ---------- TOP BAR / NAV (inside slider-wrapper) ---------- */
.top-bar-logo {
  height: 55px;
  width: auto;
}

.top-bar-btn {
  display: inline-block;
  background: var(--landing-teal);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
  transition: 0.2s;
}
.top-bar-btn:hover {
  background: var(--landing-teal-dark);
}

.search-icon {
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.search-icon:hover {
  color: var(--color-accent);
}

/* ---------- SLIDER ---------- */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--landing-navy);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
}

.slider-container {
  display: flex;
  transition: transform 0.6s ease;
  min-height: 500px;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  padding: 60px 40px;
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 500px;
}

.slide-content {
  max-width: 620px;
}

.slide-content .pre-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 2.4rem;
  color: var(--landing-teal);
  line-height: 1.2;
}

.slide-content .main-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1.1;
  margin: 6px 0 var(--space-3);
}

.slide-content .desc {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 550px;
  opacity: 0.9;
}

/* Hero CTAs use the shared .btn / .btn-primary / .btn-secondary base,
 * with page-specific size/spacing on top. */
.slide-content .hero-btn {
  padding: 14px 32px;
  font-size: 0.95rem;
  margin-right: var(--space-3);
  border-radius: var(--radius-sm);
}
.slide-content .hero-btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.slide-content .hero-btn-outline:hover {
  background: #fff;
  color: var(--landing-navy);
}

/* slider navigation */
.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}
.slider-nav .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: 0.3s;
}
.slider-nav .dot.active {
  background: var(--landing-teal);
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 12px 18px;
  cursor: pointer;
  z-index: 10;
  border-radius: var(--radius-sm);
  transition: 0.2s;
}
.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}
.slider-arrow.prev {
  left: 20px;
}
.slider-arrow.next {
  right: 20px;
}

/* ---------- 3 CARDS ---------- */
.cards-section {
  padding: 40px 0 var(--space-6);
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.cards-section .card {
  text-align: center;
  padding: var(--space-8) var(--space-6) 40px;
  transition: 0.25s;
  border-bottom: 4px solid var(--color-accent);
}
.cards-section .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.cards-section .card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.cards-section .card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--landing-teal-dark);
  margin-bottom: 10px;
}

.cards-section .card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 22px;
}

.cards-section .card-btn {
  padding: 10px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  background: var(--landing-teal-dark);
}
.cards-section .card-btn:hover {
  background: var(--color-accent);
  color: var(--color-text);
}

.cards-section .card .divider {
  width: 60px;
  height: 2px;
  background: var(--landing-teal-dark);
  margin: 25px auto 0;
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
  padding: 50px 0 40px;
  background: var(--color-surface);
  text-align: center;
}

.about-section .title-wrap img,
.about-section > img {
  height: 40px;
}
.about-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.about-section .about-body {
  text-align: center;
}
.about-section p {
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 900px;
  line-height: 1.8;
  margin: 0 auto;
}

/* ---------- NEWS SECTION ---------- */
.news-section {
  background: var(--landing-navy);
  padding: 50px 0;
  background-image: url('https://myeas.gm/wp-content/uploads/2022/12/hp-blog-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.news-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
}

.news-section-link {
  color: #fff;
  font-weight: 600;
  transition: 0.2s;
}
.news-section-link:hover {
  color: var(--color-accent);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
  max-width: 1200px;
  margin: var(--space-8) auto 0;
  padding: 0 var(--space-6);
}

.news-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(2px);
  transition: 0.2s;
}
.news-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-item .content {
  padding: 18px 20px 24px;
  text-align: left;
}
.news-item .date {
  font-size: 0.85rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 6px;
}
.news-item h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-item h4 a {
  color: #fff;
}
.news-item h4 a:hover {
  color: var(--color-accent);
}
.news-item .read-more {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- LEADERSHIP ---------- */
.leadership-section {
  padding: 70px 0 40px;
  background: var(--color-bg);
  background-image: url('https://myeas.gm/wp-content/uploads/2022/12/school-bg.jpg');
  background-size: cover;
  background-position: top center;
  text-align: center;
}

.leadership-section .section-icon {
  display: block;
  margin: 0 auto 10px;
  width: 60px;
  opacity: 0.6;
}

.leadership-section h2 {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 50px;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.leader {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4) 28px;
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}
.leader:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.leader img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 4px solid var(--color-border);
}

.leader .name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}
.leader .role {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.leadership-section .view-all {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  background: var(--landing-teal-dark);
  color: #fff;
  border-color: transparent;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
}
.leadership-section .view-all:hover {
  background: var(--color-accent);
  color: var(--color-text);
}

/* ---------- TESTIMONIAL ---------- */
.testimonial-section {
  padding: 70px 0 50px;
  background: var(--landing-navy);
  background-image: url('https://myeas.gm/wp-content/uploads/2022/12/hp-blog-bg_black.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.testimonial-section .sub {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
}

.testimonial-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 6px 0 40px;
  color: #fff;
}

.testimonial-block {
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-block .quote {
  font-size: 1.2rem;
  line-height: 1.8;
  font-style: italic;
  color: #e8e6dc;
  position: relative;
}

.testimonial-block .quote:before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-primary-light);
  display: block;
  line-height: 1;
  margin-bottom: -10px;
}

.testimonial-block .author {
  margin-top: var(--space-6);
}
.testimonial-block .author .name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
.testimonial-block .author .detail {
  font-size: 0.9rem;
  color: #b0ad9a;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--landing-navy);
  color: #ccc;
  padding: 40px 0 var(--space-6);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .logo-white {
  max-width: 200px;
  margin-bottom: var(--space-4);
}

.footer p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.footer a {
  color: #fff;
  transition: 0.2s;
}
.footer a:hover {
  color: var(--color-accent);
}

.footer .social-icons {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}
.footer .social-icons a {
  color: #ccc;
  font-size: 18px;
  transition: 0.2s;
}
.footer .social-icons a:hover {
  color: var(--color-accent);
}

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-6);
  margin-top: var(--space-6);
  font-size: 0.85rem;
  color: #999;
}

/* Logout alert needs a little breathing room above it on this page */
.alert-top-spaced {
  margin-top: var(--space-6);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .slide-content .main-title {
    font-size: 3rem;
  }
  .slide-content .pre-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .slider-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    text-align: center;
  }
  .slide {
    padding: 40px 20px;
    min-height: 380px;
  }
  .slide-content .main-title {
    font-size: 2.2rem;
  }
  .slide-content .pre-title {
    font-size: 1.4rem;
  }
  .slider-arrow {
    display: none;
  }
  .cards-section {
    margin-top: 0;
    padding-top: 30px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .leaders-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .slide-content .main-title {
    font-size: 1.8rem;
  }
  .slide-content .pre-title {
    font-size: 1.2rem;
  }
  .slide-content .desc {
    font-size: 0.9rem;
  }
  .slide-content .hero-btn {
    padding: 10px 22px;
    font-size: 0.85rem;
    margin-bottom: var(--space-2);
    display: block;
    width: 100%;
    text-align: center;
  }
  .slide-content .hero-btn-outline {
    margin-left: 0;
  }
}
