/* ===== Global ===== */
body {
  font-family: Arial, sans-serif;
  font-size: 18px;
}

a {
  text-decoration: none;
  font-size: inherit;
}

/* Basic fade-in effect for each page load */

    #page-transition {
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
    }
    #page-transition.opacity-0 {
        opacity: 0;
    }
    #page-transition.hidden {
        display: none;
    }
    #page-transition.flex {
        display: flex;
    }


/* Base nav-link style */
.nav-link {
  position: relative;
  color: #333;
  padding: 8px 12px;
  transition: color 0.3s ease;
  font-weight: 500;
}

/* Hover effect */
.nav-link:hover {
  color: #0056b3;
}

/* Active link indicator */
.nav-link.active-link {
  color: #0056b3;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 86, 179, 0.2);
}

/* Animated underline for active link */
.nav-link.active-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: #0056b3;
  border-radius: 2px;
  animation: underlineSlide 0.4s ease-in-out forwards;
}

/* Underline animation keyframes */
@keyframes underlineSlide {
  0% {
    width: 0%;
    left: 50%;
    opacity: 0;
  }
  100% {
    width: 100%;
    left: 0%;
    opacity: 1;
  }
}

/* ===== FIX FONT SIZE: Official Sponsors Section ===== */
#official-sponsor-section h5,
.container.text-center h5.fw-bold {
  font-size: 2rem !important; /* Override h5 Bootstrap */
}

#official-sponsor-section p,
.container.text-center p {
  font-size: 1.1rem !important;
}

/* ===== FIX FONT SIZE: News Section ===== */
.news-section h5,
.container.text-center h5.fw-bold {
  font-size: 2rem !important;
}

.news-section .card-title,
.card.news-card .card-title {
  font-size: 1.25rem !important;
}

.news-section .card-text,
.card.news-card .card-text,
.card.news-card .text-muted {
  font-size: 1.05rem !important;
}

/* General override for small text in news cards */
.card.news-card p.small,
.card.news-card small {
  font-size: 1rem !important;
}

/* ===== Top Bar ===== */
.top-bar {
  background-color: #003300;
  color: white;
  padding: 20px 0;
  font-size: 16px;
}

.top-bar .social-icons a {
  color: white;
  margin-left: 10px;
  font-size: 16px;
}

/* ===== Logo Bar ===== */
.logo-bar {
  background-color: white;
  padding: 10px 0 5px;
  border-bottom: 2px solid #ccc;
}

.logo-img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.1);
}

.nav-link {
  transition: transform 0.2s ease, color 0.2s ease;
  font-size: 18px;
  padding: 8px 18px;
}

.nav-link:hover {
  transform: scale(1.1);
  color: #003300;
}

/* ===== Hero Section ===== */
.hero {
  color: white;
  text-align: center;
  height: 650px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 90px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.hero h2 {
  position: relative;
  z-index: 2;
  font-size: 3.5rem;
  font-weight: bold;
  margin: 0;
}

/* ===== Card Section ===== */
.card-custom {
  height: 400px;
  border: none;
  overflow: hidden;
  position: relative;
}

.card-custom img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease-in-out;
}

.card-custom:hover img {
  transform: scale(1.1);
}

.overlay-bg {
  background-color: rgba(0, 51, 0, 0.5);
}

.card-img-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-img-overlay h4 {
  font-weight: bold;
  font-size: 1.4rem;
}

.card-img-overlay p {
  margin-top: 10px;
  font-size: 1.1rem;
}

/* ===== Sponsor Section ===== */
.sponsor-logo {
  height: 70px;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(10%);
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.sponsor-logo:hover {
  transform: scale(1.05);
  filter: none;
}

.section-underline {
  width: 60px;
  height: 4px;
  background-color: #66bb6a;
  border-radius: 2px;
}

/* ===== News Cards ===== */
.card.news-card {
  max-height: 370px;
  overflow: hidden;
}

.card.news-card img {
  height: 200px;
  object-fit: cover;
}

.card.news-card .card-body {
  padding: 0.75rem;
  font-size: 1rem;
}

/* ===== About Section ===== */
.about-section {
  background-color: #fff;
}

.about-lead {
  font-size: 1.25rem;
  line-height: 1.9;
}

.about-body {
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-logo {
  max-width: 160px;
  height: auto;
}

/* ===== Footer ===== */
.footer-section {
  background-color: #f3ffee;
}

.footer-logo {
  height: 250px;
}

.footer-bottom {
  background-color: #114232;
  font-size: 16px;
  color: white;
}

.input-group .form-control {
  border-top-left-radius: 40px !important;
  border-bottom-left-radius: 40px !important;
  font-size: 1rem;
}

.input-group .input-group-text {
  background-color: #fff;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  cursor: pointer;
  font-size: 1rem;
}

/* ===== Board of Officers Section ===== */
.board-of-officers-section img {
  width: 100px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #ddd;
  transition: transform 0.3s ease;
}

.board-of-officers-section img:hover {
  transform: scale(1.1);
}

.board-of-officers-section h6 {
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.1rem;
}

.board-of-officers-section p {
  font-size: 1rem;
  margin-bottom: 0;
  color: #333;
}

/* ===== Gallery ===== */
.gallery .card {
  margin-bottom: 15px;
}

.card-img-top {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 300px;
}

.post-thumb {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  overflow: hidden;
}

.main-posts {
  background-color: #fffcf4;
}

.card {
  padding: 10px;
  font-size: 1rem;
}

.post-masonry {
  margin-bottom: 20px;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translateY(-50px);
}

.modal.fade.show .modal-dialog {
  transform: translateY(0);
}

.modal-body img {
  transition: transform 0.3s ease-in-out;
}

.modal-body img:hover {
  transform: scale(1.05);
}

/* RICH CONTENT SECTION (CMS OUTPUT) */
.rich-content h1 {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 1rem;
}
.rich-content h2 {
    font-size: 1.875rem; /* 30px */
    margin-bottom: 0.75rem;
}
.rich-content h3 {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 0.5rem;
}
.rich-content p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

/* OFFICIAL SPONSOR SECTION */
#official-sponsor-section,
.official-sponsor,
.sponsor-carousel {
    font-size: 1.1rem;
}
#official-sponsor-section h2,
.official-sponsor h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* NEWS SECTION */
#news-section,
.news-section,
.latest-news {
    font-size: 1.1rem;
}
#news-section h2,
.news-section h2,
.latest-news h2 {
    font-size: 1.9rem;
    font-weight: 700;
}
.news-section p,
.latest-news p {
    font-size: 1.05rem;
    line-height: 1.75;
}

/* CARD COMPONENT INSIDE NEWS */
.news-card .card-title {
    font-size: 1.1rem;
    font-weight: bold;
}
.news-card .card-text {
    font-size: 1rem;
}

/* RESPONSIVE IMPROVEMENT */
@media (max-width: 768px) {
    .rich-content h1 { font-size: 1.8rem; }
    .rich-content h2 { font-size: 1.5rem; }
    .rich-content h3 { font-size: 1.25rem; }

    #official-sponsor-section h2,
    .news-section h2 {
        font-size: 1.5rem;
    }
}


/* CLAMP */
.section-gap {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
  }

.title-main {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
}

.block-gap {
    margin-top: 40px !important;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .section-gap { margin-top: 50px !important; }
    .title-main { margin-bottom: 35px !important; }
    .block-gap { margin-top: 25px !important; }
}

@media (max-width: 768px) {
    .section-gap { margin-top: 35px !important; }
    .title-main { margin-bottom: 25px !important; }
    .block-gap { margin-top: 20px !important; }
}
