*{
  font-family: "DM Sans", sans-serif;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #10647f; /* keep your background */
}

/* The main content wrapper */
.main-content {
  flex: 1; /* pushes the footer to the bottom */
}


h1{
 font-weight: 900;
}

/* ================================
   HEADER BASE
================================ */
.header {
  background-image: linear-gradient(rgba(4,9,30,0.7)), url(../Pictures/schoolBg.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 15px 0;
}

/* NAV BAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4%;
}

/* LOGO */
nav img {
  width: 70px;
}

/* NAVIGATION LINKS (DESKTOP) */
.nav-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links ul li {
  display: inline-block;
  position: relative;
  padding: 10px 12px;
}

.nav-links ul li a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links ul li a:hover {
  color: #f5ec34; /* keep your hover style */
}

/* ================================
   DROPDOWN MENU (DESKTOP)
================================ */
ul li ul.dropdown {
  position: absolute;
  background: #A9A9A9;
  width: 170px;
  display: none;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  z-index: 1000;
}

ul li:hover > ul.dropdown {
  display: block;
}

.dropdown li {
  display: block;
  padding: 10px;
}

.dropdown li a {
  color: white;
  display: block;
}

.dropdown li a:hover {
  color: #494732;
  background: #f5ec34;
}

/* ================================
   MOBILE — HAMBURGER
================================ */
.menu-toggle {
  display: none;
  font-size: 30px;
  color: #f5ec34;
  cursor: pointer;
}

/* ================================
   MOBILE NAVIGATION
================================ */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  /* Hide nav by default */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(4,9,30,0.95);
    padding-top: 80px;
    transition: 0.4s ease;
    z-index: 9999;
  }

  /* Slide-in animation */
  .nav-links.open {
    right: 0;
  }

  .nav-links ul li {
    display: block;
    padding: 15px 20px;
  }

  .nav-links ul li a {
    font-size: 18px;
    display: block;
  }

  /* DROPDOWN inside mobile panel */
  .dropdown {
    position: static;
    display: none;
    background: rgba(255,255,255,0.1);
    margin-top: 5px;
    border-radius: 4px;
  }

  .has-dropdown.show .dropdown {
    display: block;
  }
}


/* Base slider (mobile-first) */
.slider {
  width: 100%;
  height: 300px;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 5px solid #f5ec34;
  box-sizing: border-box;
}

.slider .list {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slider .item {
  min-width: 100%;
  height: 100%;
}

.slider .item img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* YOUR REQUEST: stretch/shrink, no crop */
}

/* Tablet */
@media (min-width: 600px) {
  .slider {
    height: 400px;
  }
}

/* Small laptops */
@media (min-width: 900px) {
  .slider {
    width: 95%;
    height: 500px;
  }
}

/* Standard laptops (1366px) */
@media (min-width: 1200px) {
  .slider {
    width: 93%;          /* pleasing small margins */
    max-width: 1600px;   /* prevents being too huge */
    height: 650px;
  }
}

/* Large desktops (1440px+) */
@media (min-width: 1440px) {
  .slider {
    width: 90%;
    height: 750px;
  }
}

/* Ultra-wide screens (1600px+) */
@media (min-width: 1600px) {
  .slider {
    width: 88%;
    height: 850px;
    max-width: 1800px;
  }
}

/* Navigation */
.slider .buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  transform: translateY(-50%);
}

.slider .buttons button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f5ec34;
  color: #494732;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
}

.slider .buttons button:hover {
  opacity: 1;
}

/* Dots */
.slider .dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.slider .dots li {
  list-style: none;
  width: 12px;
  height: 12px;
  background-color: #494732;
  margin: 8px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.slider .dots li.active {
  width: 30px;
  background-color: #10647f;
}


.textInfo {
  margin-top: 1%;
  margin-bottom: 4%;
  margin-left: 7%;

  max-width: 90%; /* prevents overflowing on large screens */
}

.textInfo h1 {
  color: #f5ec34;
  font-size: 2.3rem;     /* responsive size */
  line-height: 1.2;
  margin-bottom: 15px;
}

.textInfo p {
  color: white;
  margin-top: 10px;
  width: 36%;            /* desktop layout */
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ================================================
   RESPONSIVE FIXES FOR TABLET
================================================ */
@media (max-width: 992px) {
  .textInfo {
    margin-left: 5%;
  }

  .textInfo p {
    width: 60%;          /* make paragraph wider on tablets */
  }

  .textInfo h1 {
    font-size: 2rem;
  }
}

/* ================================================
   RESPONSIVE FIXES FOR MOBILE
================================================ */
@media (max-width: 768px) {

  .textInfo {
    margin-left: 4%;
    margin-right: 4%;
    text-align: left;
  }

  .textInfo h1 {
    font-size: 1.7rem;
    text-align: center;  /* optional, looks better on mobile */
  }

  .textInfo p {
    width: 100%;         /* full-width paragraph */
    font-size: 1rem;
    text-align: justify;
  }
}

/* ================================================
   SMALL MOBILE (optional)
================================================ */
@media (max-width: 480px) {
  .textInfo h1 {
    font-size: 1.5rem;
  }

  .textInfo p {
    font-size: 0.95rem;
  }
}





/* Article News Card Info */
.news_title {
  text-align: center;
  padding: 20px;
  color: #f5ec34;
}

/* Wrapper */
.news_slider {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto 60px;
  position: relative;
  overflow: hidden;      /* hides off-screen slides */
}

/* Track that moves left/right */
.news_track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Each slide */
.news_item {
  min-width: 100%;                 /* 1 slide = full width */
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 10px;
}

/* Card */
.news_container {
  background: white;
  width: 100%;
  max-width: 350px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  border: 5px solid #f5ec34;
}

/* Thumbnail */
.news_thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: fill;  /* stretch/shrink to fit card */
}

/* Date badge */
.news_date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f5ec34;
  color: #494732;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.news_day {
  font-size: 16px;
}

.news_month {
  font-size: 12px;
  text-transform: uppercase;
}

/* Text content */
.news_post-content {
  padding: 20px;
}

.news_category {
  background: #10647f;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

.news_card_title a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  font-weight: bold;
  display: block;
  margin: 10px 0;
}

.news_description {
  color: gray;
  font-size: 14px;
  margin: 10px 0;
}

/* Buttons */
.news_slider .news_buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  transform: translateY(-50%);
  pointer-events: none;    /* so clicks only go to buttons, not container */
}

.news_slider .news_buttons button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f5ec34;
  color: #494732;
  border: none;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.7;
  transition: 0.3s;
  pointer-events: auto;    /* enable button clicks */
}

.news_slider .news_buttons button:hover {
  opacity: 1;
}

/* Tablet */
@media (max-width: 900px) {
  .news_slider {
    max-width: 700px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .news_slider {
    max-width: 360px;
  }

  .news_container {
    max-width: 320px;
  }

  .news_thumbnail {
    height: 170px;
  }

  .news_slider .news_buttons button {
    width: 40px;
    height: 40px;
  }
}



@media (max-width: 768px) {
  .contain {
    flex-direction: column;
    align-items: center;
  }
  .post-module {
    width: 100%;
    max-width: 400px;
  }
}










/* =========================
   Modern Footer Base
========================= */

.footer {
  background-color: #494732;
  padding: 50px 20px;
  margin-top: 60px;
  color: white;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ===================================
   Footer Columns
=================================== */

.footer-col {
  width: 45%;        /* 2 columns on desktop */
  margin-bottom: 30px;
}

.footer-title {
  font-size: 22px;
  color: #f5ec34;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-text {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
}

/* ===================================
   Social Icons
=================================== */

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
  color: #ffffff;
  margin-right: 10px;
  font-size: 18px;
  transition: 0.3s;
}

.social-links a:hover {
  background-color: #f5ec34;
  color: #10647f;
  transform: scale(1.15);
}

/* ===================================
   Footer Bottom Text
=================================== */

.footer-bottom {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.3);
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
}

/* ===================================
   RESPONSIVE FOOTER
=================================== */

@media (max-width: 768px) {

  .footer-col {
    width: 100%;     /* stack columns */
    text-align: center;
  }

  .footer-title {
    font-size: 20px;
  }

  .social-links a {
    margin: 5px;
  }
}

@media (max-width: 480px) {

  .footer {
    padding: 40px 15px;
  }

  .footer-title {
    font-size: 18px;
  }

  .footer-text {
    font-size: 14px;
  }

  .social-links a {
    height: 36px;
    width: 36px;
    font-size: 16px;
  }

  .footer-bottom {
    font-size: 13px;
  }
}
