/* --- shared.css --- */
/* This file contains styles common to all pages */

/* 1. FONT IMPORT (Moved from individual CSS files for better performance) */
@import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Lato&family=Poppins:wght@400;600&display=swap");

/* 2. SHARED HERO BACKGROUND STYLES */
.hero {
  position: relative;
  overflow: hidden;
}

/* ::before: Holds the background image and is animated */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* Use the more efficient .webp format */
  background-image: url("/img/matric-grass.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  animation: kenburns 25s ease-in-out infinite alternate;
}

/* ::after: Holds the semi-transparent black overlay */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: -1;
}

/* Keyframes for the Ken Burns animation */
@keyframes kenburns {
  0% {
    transform: scale(1.05) translate(1%, 1%);
  }
  100% {
    transform: scale(1.2) translate(-1%, -1%);
  }
}

/* Ensure the actual content (.hero-body) is visible */
.hero .hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", Lato, Tahoma, sans-serif;
}
