* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Titillium Web', sans-serif;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/*__________HOME BANNER_________*/
.hero {
  background: url('../res/img/backgrounds/bg1.png') no-repeat center center/cover;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  margin-top: -20px;
}

.hero-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  animation: fadeIn 1s ease-out forwards;
}

/* TITLE + LOGO ROW */
.top-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
  /* Responsive */
}

.hero h1 {
  font-size: 3rem;
  font-family: 'Bree Serif', serif;
  letter-spacing: 3px;
  line-height: 1;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.pmalogo {
  margin-left: -7px;
}

/* LOGOS */
.pmalogo,
.ccafplogo,
.logos-img {
  height: 150px;
  width: auto;
}

.logos-img {
  height: 70px;
  width: auto;
  margin-bottom: 20px;
}

@media screen and (min-width: 1650px) {
  .hero {
    margin-top: -150px;
    min-height: 110vh;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .pmalogo,
  .ccafplogo {
    height: 250px;
  }

  .logos-img {
    height: 70px;
  }

  .buttons .btn {
    font-size: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* LINE UNDER HERO TITLE */
.line-hero {
  margin: 10px auto 20px auto;
  background-color: #cda757;
  border: none;
  height: 3px;
  width: 50%;
}

/* BUTTONS */
.buttons {
  font-family: 'Titillium Web', sans-serif;
  font-size: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 4px;
}

.buttons .btn {
  text-decoration: none;
  padding: 10px 60px;
  background-color: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 12px;
  transition: 0.3s ease;
  transform: scale(1);
}

.buttons .btn:hover {
  color: #cda757;
  border-color: #cda757;
  transform: scale(1.05);
}

/* DARK OVERLAY */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* TEXT: MISSION & VISION */
.mission,
.vision {
  font-family: 'Titillium Web', sans-serif;
  color: #ffffff;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
  font-size: 1.2rem;
}

.vision {
  font-size: 1.1rem;
}

.top-hero {
  gap: 10px;
}

/* RESPONSIVE -------------------------------------------------- */
@media screen and (min-width: 1650px) {
  .hero {
    margin-top: -150px;
    min-height: 110vh;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .pmalogo,
  .ccafplogo {
    height: 250px;
  }

  .buttons .btn {
    font-size: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .mission,
  .vision {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 1024px) {
  .hero h1 {
    font-size: 2rem;
  }

  .pmalogo,
  .ccafplogo {
    height: 130px;
  }

  .logos-img {
    height: 50px;
  }
}

@media screen and (max-width: 768px) {
  .hero h1 {
    font-size: 1.3rem;
  }

  .pmalogo,
  .ccafplogo {
    height: 90px;
  }

  .logos-img {
    height: 50px;
  }

  .buttons {
    font-size: 14px;
    gap: 15px;
  }

  .buttons .btn {
    padding: 10px 30px;
    font-size: 12px;
  }

  .mission,
  .vision {
    font-size: 1rem;
  }

}

@media screen and (max-width: 480px) {

  .hero h1 {
    font-size: 1rem;
    line-height: 1.2;
    width: 50%;
  }

  .pmalogo,
  .ccafplogo {
    height: 70px;
  }

  .mission,
  .vision {
    font-size: 0.8rem;
  }

  .vision {
    margin: 20px auto;
  }
}


/*__________NEWS_________*/
#news {
  position: relative;
  background: url('../res/img/backgrounds/bg2.png') no-repeat center center / cover;
  padding: 30px 20px;
  color: white;
  display: flex;
  justify-content: center;
  margin: 0;
  flex-direction: column;
  scroll-margin-top: 145px;
}

#news h2 {
  font-size: 2rem;
  font-family: 'Titillium Web', sans-serif;
  color: #122348;
  text-align: center;
}

.news-cards {
  align-items: center;
  padding: 2% 5%;
}

.news-media {
  position: relative;
  width: 100%;
  min-height: 230px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s ease-in-out;
}

.news-content {
  text-align: justify;
  animation: fadeInUp 1s ease-in-out;
}

#news .news-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
}


/*first news article */
.news-media.first-news {
  height: 100%;
  text-align: justify;
  transition: transform 0.2s ease;
}

.news-media.first-news:hover {
  cursor: pointer;
  transform: translateY(-5px);
}

.news-media.first-news h3 {
  font-size: 1.4rem;
}

/*Second news article */
.news-media.second-news {
  text-align: justify;
  transition: transform 0.2s ease;
}

.news-media.second-news:hover {
  text-align: justify;
  transform: translateY(-5px);
}

/*Second news article */
.news-media.second-news .news-desc {
  text-align: justify;
}

.left {
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.right {
  display: block;
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.container-right {
  background-color: #122348;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container-right a {
  text-decoration: none;
  color: white;
}

#link:hover {
  transform: translateY(-5px);
}

.transparency {
  align-items: center;
  justify-content: center;
  text-align: center;
  display: flex;
  gap: 20px;
  font-size: 1rem;
  font-family: 'Bree Serif', serif;
}

.logo {
  width: auto;
  height: auto;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

#date_time {
  font-family: 'Titillium Web', sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: white;
  padding: 10px;
  border-radius: 12px;
  width: auto;
  text-align: center;
}

.container-right hr {
  background-color: #cda757;
  opacity: 100%;
  border: none;
  height: 3px;
  width: 100%;
}

.container-right p {
  text-align: center;
}

@media screen and (min-width: 1650px) {
  #news h2 {
    font-size: 3rem;
  }

  .news-content {
    margin-top: -45px;
  }

  .news-media.first-news h3 {
    font-size: 2rem;
  }

  .news-media.first-news span {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .news-media.first-news p {
    font-size: 1.5rem;
    margin-top: 15px;
  }

  .news-media.second-news h3 {
    font-size: 1.3rem;
  }

  .news-media.second-news span {
    font-size: 1.2rem;
  }

  .news-media.second-news p {
    font-size: 1.2rem;
  }

  .transparency {
    font-size: 1.9rem;
  }

  #date_time {
    font-size: 1.5rem;
  }

  .container-right hr {
    height: 5px;
  }
}

@media screen and (max-width: 768px),
(max-width: 1245px) {
  #news {
    display: block;
  }

  #news h2 {
    position: relative;
    top: 0px;
    left: 0px;
    text-align: center;
    margin-top: -30px;
  }

  #news .news-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3fr;
  }

  .right {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .news-media.first-news {
    height: 300px;
    left: 0px;
    margin-top: 0px;
  }

}

@media screen and (max-width: 480px) {
  #news {
    display: block;
  }

  #news h2 {
    position: relative;
    top: 0px;
    left: 0px;
    text-align: center;
    margin-top: -30px;
  }

  #news .news-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3fr;
  }

  .right {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .news-media.first-news {
    height: 300px;
    left: 0px;
    margin-top: 0px;
  }

  .news-media {
    height: 300px;
  }

}

@media screen and (max-width: 450px) {
  #news {
    display: block;
  }

  #news h2 {
    position: relative;
    top: 0px;
    left: 0px;
    text-align: center;
    margin-top: -30px;
    font-size: 1.5rem;
  }

  #news .news-content {
    display: grid;
    grid-template-columns: 0.97fr;
    grid-template-rows: 3fr;
  }

  .right {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .news-media.first-news {
    height: 300px;
    left: 0px;
    margin-top: 0px;
  }

  .logo {
    height: 100px;
    width: auto;
  }

  .transparency h3 {
    font-size: 1.2rem;
  }

}

#more-news {
  position: relative;
  background: url('../res/img/backgrounds/bg10.png') no-repeat center center / cover;
  padding: 30px 20px;
}

#more-news h2 {
  font-size: 2rem;
  font-family: 'Titillium Web', sans-serif;
  color: #122348;
  text-align: center;
  margin-bottom: 20px;
}

.more-news-content {
  padding: 2% 5%;
}

/* (3rd to 6th) */
.more-news-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-left: 50px;
  animation: fadeInUp 1s ease-in-out;

}

.more-news-group .news-item .news-media {
  background-color: white;
}

#more-news .buttonnews {
  position: relative;
  margin-top: 250px;
  margin-left: 600px;
}

#more-news .buttonnews a {
  text-decoration: none;
  color: #122348;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 20px;
}

#more-news .buttonnews a:hover {
  color: #cda757;
  transform: scale(1.05);
}

.news-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 12px;
}

.news-content-overlay span {
  font-size: 0.8rem;
}

.news-content-overlay a {
  text-decoration: none;
  color: white;
}

.buttons {
  font-family: 'Titillium Web', sans-serif;
  font-size: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 4px;
}

.why-contain {
  color: white;
}

#more-btn .btn {
  position: relative;
  text-decoration: none;
  background-color: transparent;
  color: #122348;
  border: 2px solid #122348;
  border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  bottom: 5%;
  transition: transform 0.2s ease;
}

#more-btn .btn:hover {
  background-color: transparent;
  color: #cda757;
  border: 2px solid #cda757;
  transform: scale(1.05);
}

.news-content-overlay h3,
.news-content-overlay p,
.news-content-overlay span {
  margin: 5px 0;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  color: white;
}

.news-item {
  transition: transform 0.2s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

/* -------------------- OVERLAY STYLE -------------------- */
.news-media.overlay {
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 12px;
}

.news-media.overlay .news-content-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

/* -------------------- CARD STYLE (others) -------------------- */
.news-card {
  display: flex;
  flex-direction: column;
}

.news-card .news-media {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

.news-card .news-text {
  background: #122348;
  padding: 15px;
  color: #fff;
  text-align: justify;
}

.news-card .news-text a {
  background: #395aa0;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
  margin-top: 10px;
}

.news-card .news-text a:hover {
  background: #cda757;
  color: #fff;
}


.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card .news-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

/*__________UPCOMING EVENTS_________*/

#events {
  padding: 2% 5%;
}

#events h2 {
  text-align: center;
  margin-bottom: 20px;
}

.events-list,
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.event-card,
.news-card {
  display: flex;
  flex-direction: column;
  background: #122348;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content,
.news-text {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.event-meta {
  font-size: 0.9rem;
  color: #fff;
  margin: 5px 0;
}

.event-content p {
  flex: 1;
  font-size: 0.95rem;
  margin: 10px 0;
}

.event-content a {
  align-self: flex-start;
  margin-top: 10px;
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}


/*__________MORE INFO_________*/
.more-info {
  position: relative;
  background: url('../res/img/backgrounds/bg9.png') no-repeat center center / cover;
  padding: 50px 20px;
  color: #122348;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0;
  flex-direction: column;
}

.logo-org {
  width: 100%;
  max-width: 215px;
  border-radius: 12px;
  padding: 10px;
}

.history-small {
  text-align: justify;
  display: flex;
  animation: fadeInUp 1s ease-in-out;
  align-items: center;
  justify-content: center;
}

.history-small .history-text {
  display: block;
  padding-right: 50px;
  padding-left: 50px;
  width: 70%;
  text-shadow: 0.2px 0.2px 0px #122348;
  color: #122348;
}

@media screen and (max-width: 1024px) {
  .logo-org {
    margin-left: 0;
  }

  .history-small {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .history-small .logo-org {
    margin-top: 0;
    margin-left: 0;
  }

  .history-small .history-text {
    display: block;
    margin-top: 0;
    padding-right: 0;
    padding-left: 0;
    width: 100%;
    text-align: justify;
  }
}

@media screen and (min-width: 1650px) {
  .logo-org {
    max-width: 350px;
  }

  .history-small .history-text {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px),
(max-width: 768px) {
  .more-info {
    display: block;
    margin-top: 0;
  }

  .history-small {
    display: block;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .history-small .logo-org {
    margin-top: 0;
    margin-left: 0;
  }

  .history-small .history-text {
    display: block;
    margin-top: 0;
    padding-right: 0;
    padding-left: 0;
    width: 100%;
    text-align: justify;
  }
}

/*__________ORGS_________*/
.organizations {
  position: relative;
  background: url('../res/img/backgrounds/military.png') no-repeat center center / cover;
  width: 100%;
  display: flex;
  margin: 0;
  flex-direction: column;
  z-index: 1;
  color: white;
}

.organizations h2 {
  font-family: 'Bree Serif', serif;
  letter-spacing: 3px;
  font-size: 2rem;
  text-align: center;
  margin-top: 20px;
  animation: fadeInUp 1s ease-in-out;
}

.organizations .org-logo {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeInUp 1s ease-in-out;
}

.logo-org-afp {
  width: 200px;
  max-width: 215px;
  border-radius: 12px;
  padding: 10px;
  height: 220px;
  animation: fadeInUp 1s ease-in-out;
}

.logo-item,
.item {
  transition: transform 0.2s ease;
}

.logo-item:hover,
.item:hover {
  transform: scale(1.05);
}

.organizations .name-en {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeInUp 1s ease-in-out;
  color: white;
}

.organizations .name-ph {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  animation: fadeInUp 1s ease-in-out;
  color: white;
  margin-bottom: 20px;
}

.history-small .logo-org-afp {
  margin-top: 230px;
  margin-left: 100px;
  animation: fadeInUp 1s ease-in-out;
}

@media screen and (min-width: 1650px) {
  .organizations h2 {
    font-size: 3rem;
  }

  .organizations .org-logo {
    display: grid;
    grid-template-columns: repeat(4, 350px);
  }

  .logo-item .logo-org {
    height: 350px;
    width: 350px;
  }

  .logo-org-afp {
    width: 350px;
    max-width: 350px;
    height: 400px;
  }

  .organizations .name-en {
    font-size: 1.3rem;
    grid-template-columns: repeat(4, 350px);
  }

  .organizations .name-ph {
    font-size: 1.3rem;
    grid-template-columns: repeat(4, 350px);
  }
}

@media screen and (max-width: 1024px) {
  .organizations .org-logo {
    display: grid;
    grid-template-columns: repeat(4, 190px);
  }

  .logo-item .logo-org {
    height: 180px;
    width: 190px;
  }

  .organizations .name-en {
    font-size: 15px;
    grid-template-columns: repeat(4, 190px);
  }

  .organizations .name-ph {
    font-size: 15px;
    grid-template-columns: repeat(4, 190px);
  }
}

@media screen and (max-width: 480px),
(max-width: 768px) {
  .organizations h2 {
    font-family: 'Bree Serif', serif;
    letter-spacing: 3px;
    font-size: 2rem;
    text-align: center;
    margin-top: 20px;
  }

  .organizations .org-logo {
    display: grid;
    grid-template-columns: repeat(2, 180px);
  }

  .logo-item .logo-org {
    height: 180px;
    width: auto;
  }

  .organizations .name-en {
    display: none;
  }

  .organizations .name-ph {
    display: none;
  }
}

/*__________WHY_________*/
.why {
  position: relative;
  background: url('../res/img/backgrounds/bg4.png') no-repeat center center / cover;
  display: flex;
  margin: 0;
  flex-direction: column;
  color: white;
}

.why h2 {
  font-family: 'Bree Serif', serif;
  letter-spacing: 3px;
  font-size: 3rem;
  text-align: center;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  margin-top: 20px;
  animation: fadeInUp 1s ease-in-out;

}

.why .container {
  display: flex;
  animation: fadeInUp 1s ease-in-out;
  align-items: center;
  justify-content: center;
}

.why .container .why-img {
  display: block;
  margin-left: 20px;
  padding-right: 100px;
}

.why .container .why-img img {
  height: 320px;
  width: 500px;
}

.why .line-why {
  background-color: #cda757;
  opacity: 100%;
  border: none;
  height: 3px;
  width: 50%;
  margin: 0 auto;
  margin-bottom: 20px;
  margin-top: 5px;
}

.why .bullet {
  margin-left: 150px;
  margin-top: 20px;
}

.why .bullet .bullet-list {
  list-style-type: disc;
  font-size: 1.3rem;
  margin-bottom: 30px;
}

#btn {
  font-family: 'Titillium Web', sans-serif;
  background: transparent;
  color: white;
  font-size: 1rem;
  padding: 12px 40px;
  border: 2px solid white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}

#btn:hover {
  color: #cda757;
  border: 2px solid #cda757;
  cursor: pointer;
  transform: scale(1.05);
}

@media screen and (min-width: 1650px) {
  .why .container .why-img img {
    height: 520px;
    width: 750px;
  }

  .why .line-why {
    height: 5px;
  }

  .why .bullet .bullet-list {
    font-size: 1.7rem;
  }

  #btn {
    font-size: 2rem;
  }
}

@media screen and (max-width: 1024px) {
  .why {
    min-height: 90vh;
    margin-top: -20px;
  }

  .why-contain {
    margin-top: 20px;
  }

  .why h2 {
    font-size: 2rem;
  }

  .why .container {
    display: block;
  }

  .why .container .why-img {
    display: block;
    margin-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .why .container .why-img img {
    height: auto;
    width: 90%;
    margin-bottom: 20px;
    margin-top: 10px;
  }

  .why img.line-why {
    display: none;
  }

  .why .bullet {
    margin-left: 30px;
    margin-top: 0px;
    padding: 10px;
  }

  .bullet-list {
    font-size: 1.2rem !important;
  }
}

@media screen and (max-width: 480px),
(max-width: 768px) {
  .why {
    min-height: 90vh;
    display: block;
    margin-top: -20px;
  }

  .why h2 {
    font-size: 2rem;
  }

  .why .container {
    display: block;
  }

  .why .container .why-img {
    display: block;
    margin-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .why .container .why-img img {
    height: auto;
    width: 90%;
    margin-bottom: 20px;
    margin-top: 10px;
  }

  .why img.line-why {
    display: none;
  }

  .why .bullet {
    margin-left: 30px;
    margin-top: 0px;
    padding: 10px;
  }

  .bullet-list {
    font-size: 1.2rem !important;
  }
}

#facts {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  color: white;
  background:
    linear-gradient(rgba(18, 35, 72, 0.5), rgba(18, 35, 72, 0.7)),
    url('../res/img/backgrounds/bg5.png') no-repeat center center/cover;
}


.facts-head h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.facts-head hr {
  width: 30%;
  border: 2px solid #fff;
  margin: 0 auto 40px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.fact-item {
  background: rgba(255, 255, 255, 0.85);
  /* semi-transparent white */
  border-radius: 12px;
  padding: 25px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.fact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.fact-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  opacity: 0.8;
  color: #122348;
}

/* New line between label and number */
.fact-line {
  width: 30%;
  height: 3px;
  background-color: #cda757;
  margin: 10px auto;
  border-radius: 2px;
}

.fact-item h3 {
  font-size: 2rem;
  font-weight: bold;
  color: #122348;
  margin: 0;
}

@media screen and (max-width: 825px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }
}

.container-right-carousel {
  background-color: #122348;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease;
}

#announcement-carousel {
  width: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;

}

.carousel-viewport {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background-color: #000;
}

.slide-in {
  animation: slideIn 0.5s ease forwards;
}

.slide-out {
  animation: slideOut 0.5s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 5;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ── Announcement Modal ── */
#announcement-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#announcement-container {
  background: #eee;
  color: #1a1a2e;
  max-width: 850px;
  width: 92%;
  max-height: 78vh;
  border-radius: 10px;
  overflow-y: auto;
  padding: 28px 30px;
  position: relative;
  font-family: 'Titillium Web', sans-serif;
  line-height: 1.75;
  font-size: 0.95rem;
}

#announcement-read-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

#announcement-modal-content p {
  margin-bottom: 1em;
  text-align: justify;
}

#announcement-modal-content a {
  color: #7eb8f7;
  word-break: break-all;
}

#announcement-read-more {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

#announcement-read-more:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ── Tablet (≤ 1024px) ── */
@media screen and (max-width: 1024px) {
  #announcement-container {
    max-width: 90%;
    max-height: 80vh;
    padding: 22px 24px;
    font-size: 0.92rem;
  }

  #announcement-read-more {
    font-size: 1rem;
    padding: 5px 12px;
  }
}

/* ── Mobile (≤ 768px) ── */
@media screen and (max-width: 768px) {
  #announcement-container {
    width: 95%;
    max-height: 85vh;
    padding: 18px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  #announcement-read-btn {
    font-size: 20px;
    top: 10px;
    right: 12px;
  }

  #announcement-modal-content p {
    margin-bottom: 0.85em;
  }

  #announcement-read-more {
    font-size: 0.9rem;
    padding: 5px 10px;
    bottom: 8px;
    right: 8px;
  }
}

/* ── Small mobile (≤ 480px) ── */
@media screen and (max-width: 480px) {
  #announcement-container {
    width: 98%;
    max-height: 90vh;
    padding: 14px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.6;
  }

  #announcement-read-btn {
    font-size: 18px;
    top: 8px;
    right: 10px;
  }

  #announcement-modal-content p {
    margin-bottom: 0.75em;
  }

  #announcement-modal-content img {
    border-radius: 4px;
    margin-bottom: 12px;
  }

  #announcement-read-more {
    font-size: 0.8rem;
    padding: 4px 8px;
    bottom: 6px;
    right: 6px;
  }
}
