/* =========================
   St. Aloysius College Galle
   Green & Gold Theme
   ========================= */

/* ---------- Root Variables ---------- */
:root {
  /* School colours */
  --green-dark: #0b3d2e;
  --green-mid:  #0f5132;

  --gold-main: #c9a227;
  --gold-soft: rgba(201,162,39,.18);

  /* Text */
  --text-light: #f5f7f4;
  --text-muted: #5f7f6c;
  --text-dark: #0b2e1f; /* deep green-black */

  /* Borders */
  --line: rgba(0,0,0,.08);

  /* Page background */
  --bg: linear-gradient(
    180deg,
    #ffffff 0%,
    #fdffdc 100%
  );
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;

  background:
    radial-gradient(
      1200px 600px at 20% 10%,
      rgba(201,162,39,.20),
      transparent
    ),
    var(--bg);

  color: var(--text-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 28px 18px;
}

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  color: var(--text-dark);
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand b {
  font-size: 18px;
  color: var(--text-dark);
}

.brand span {
  font-size: 12px;
  color: var(--text-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(201,162,39,.35);

  background: linear-gradient(
    180deg,
    rgba(201,162,39,.25),
    rgba(201,162,39,.12)
  );

  color: var(--text-dark);
  font-weight: 500;
  transition: all .2s ease;
}

.btn:hover {
  background: linear-gradient(
    180deg,
    rgba(201,162,39,.35),
    rgba(201,162,39,.18)
  );
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 20px 60px;

  background:
    linear-gradient(
      rgba(11,61,46,.30),
      rgba(11,61,46,.45)
    ),
    url("/assets/images/school-front.webp") center / cover no-repeat;

  border-radius: 16px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(201,162,39,.14),
      rgba(201,162,39,.03)
    );
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .badge {
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 12px;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}

.hero p {
  margin: 0;
  max-width: 70ch;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 26px;
}

/* ---------- Cards ---------- */
.card {
  grid-column: span 12;
  background: rgba(2, 97, 53, 0.95);
  border-radius: 18px;
  padding: 20px;
  color: var(--text-light);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #ffffff;
}

.card p {
  margin: 0;
  color: #e5f5ec;
}

.card-thumb{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  max-height:220px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 24px rgba(0,0,0,.18);
  overflow:hidden;
}

.mini-gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:10px;
  margin:10px 0 4px;
}
.mini-hero{
  width:100%;
  margin:10px 0 6px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 24px rgba(0,0,0,.2);
}
.mini-hero img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}
.mini-gallery a{display:block}
.mini-gallery img{
  width:100%;
  height:110px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 8px 18px rgba(0,0,0,.15);
  transition:transform .15s ease, box-shadow .15s ease;
}
.mini-gallery img:hover{
  transform:translateY(-2px) scale(1.01);
  box-shadow:0 12px 24px rgba(0,0,0,.2);
}
.mini-gallery__empty{
  color:#e5f5ec;
  font-size:14px;
}

.card .actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card .btn {
  color: #ffffff;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;

  color: #1f1300;
  background: linear-gradient(
    180deg,
    #e6c55a,
    #c9a227
  );
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.1);
  color: var(--text-dark);
  font-size: 13px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (min-width: 820px) {
  .hero h1 {
    font-size: 44px;
  }

  .card.half {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 18px 40px;
    background-position: center top;
  }
}
