/* =========================== */
/* BASE PAGE LAYOUT */
/* =========================== */
:root {
  --primary: #19419e;   
  --secondary: #598dbf;   
  --accent: #54bbdc;       
  --dark: #20458a;         
  --light: #f2fcfd;       
  --mid-light: #c7e3f9;    
  --muted: #9eb8dd;        
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.content-wrapper {
  margin-top: 100px; 
  padding: 0 1rem;
}

/* Buttons */
.btn-apply {
  background-color: #24468c;
  color: #fff;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background-color: #58c5e1;
  color: #fff;
  transform: translateY(-2px);
}


/* ============== */
/* NAVBAR STYLES */
/* ============== */

.navbar {
  max-width: 80%;
  max-height: 60px;
  margin: 15px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(36, 70, 140, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease-in-out, padding 0.3s ease;
}

.navbar-brand {
  color: #f3fbfc !important;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.navbar .nav-link {
  color: #f3fbfc !important;
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #58c5e1 !important;
  text-transform: uppercase;
  font-weight: 600;
}

.btn-apply {
  background-color: #58c5e1;
  color: #fff;
  border: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-apply:hover {
  background-color: #3b69a8;
  color: #fff;
  transform: translateY(-2px);
}

/* ==================================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================================== */
@media (max-width: 991px) {
  .navbar {
    width: 95%;
    min-height: 80px;
    border-radius: 45px;
    text-align: center;
  }

  .navbar-collapse {
    background: rgba(36, 70, 140, 0.9);
    border-radius: 45px;
    padding: 10px 0;
    margin-top: 10px;
  }

  .navbar .nav-link {
    padding: 10px 0;
  }

  .btn-apply {
    display: block;
    width: 70%;
    margin: 10px auto 0;
  }
}

/* ==================================== */
/* OPTIONAL */
/* ==================================== */
.navbar.scrolled {
  background: rgba(36, 70, 140, 0.5);
  padding: 10px 0 !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}
.navbar.scrolled .nav-link {
  color: #f3fbfc !important;
}


/* ==================================== */
/* FOOTER STYLES  */
/* ==================================== */

.footer-section {
  width: 100%;
  padding: 60px 5rem 30px 5rem;
  color: #f3fbfc;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  position: relative;
  overflow: hidden;

  /* Soft centered gradient */
background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-repeat: no-repeat;
}

/* Extremely faint patterned overlay */
.footer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.30;
  background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='69.283' height='40' patternTransform='scale(2) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='none'/><path d='M46.189-20L57.736 0M46.189 20l11.547 20m-46.189 0l11.547 20M11.547 0l11.547 20m40.415 30H40.415M28.868 30H5.774m23.094-40H5.774m57.735 20H40.415m0 20L28.868 50m11.547-60L28.868 10m46.188 0L63.509 30M5.774 10L-5.773 30m75.056 10H46.189L34.64 20 46.19 0h23.094C73.13 6.667 76.98 13.333 80.83 20zM57.736 60H34.64L23.094 40l11.547-20h23.095c3.848 6.667 7.698 13.333 11.547 20L57.736 60zm0-40H34.64L23.094 0l11.547-20h23.095L69.283 0c-3.87 6.7-8.118 14.06-11.547 20zM34.64 60H11.547L0 40l11.547-20h23.094L46.19 40 34.64 60zm0-40H11.547L0 0l11.547-20h23.094L46.19 0 34.64 20zM23.094 40H0l-5.773-10-5.774-10L0 0h23.094l11.547 20-11.547 20z' stroke-width='1' stroke='hsla(47,80.9%,61%,0.15)' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
  background-repeat: repeat;
  background-size: cover;
  pointer-events: none;
}

.footer-desc {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #f3fbfc;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.footer-links a:hover {
  color: #b3e0f7;
  text-decoration: underline;
}

.footer-social a {
  color: #f3fbfc;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.footer-social a:hover {
  color: #b3e0f7;
}

.map-container iframe {
  border-radius: 15px;
  position: relative;
  z-index: 2;
}

.footer-mail {
  color: #f3fbfc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-mail:hover {
  color: #b3e0f7;
  text-decoration: underline;
}


/* Footer Bottom */
.footer-bottom {
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

/* ==================================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================================== */
@media (max-width: 991px) {
  .footer-section {
    padding: 40px 2rem 20px 2rem;
    border-radius: 25px 25px 0 0;
  }

  .footer-links,
  .footer-desc,
  .footer-social,
  .map-container {
    text-align: center;
  }

  .footer-social a {
    margin: 0 10px;
  }

  .map-container iframe {
    min-width: 100%;
    height: 200px;
  }
}


/* ==================================== */
/* CONTACT PAGE STYLING */
/* ==================================== */

.contact-form-section {
  width: 100%;
  max-height: 100vh;
  background: radial-gradient(circle at center, #24468c 0%, #3b69a8 40%, #58c5e1 100%);
  background-blend-mode: overlay;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 0;
}

.contact-form-wrapper {
  width: 40%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.contact-form-wrapper .form-control {
  border-radius: 10px;
  border: none;
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.contact-form-wrapper .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form-wrapper .form-control:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(88, 197, 225, 0.3);
  color: #fff;
}

.contact-form-wrapper .btn-primary {
  background-color: #1d99b8;
  border: none;
  padding: 0.8rem;
  transition: all 0.3s ease;
}

.contact-form-wrapper .btn-primary:hover {
  background-color: #1d99b8;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-form-wrapper {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    width: 80%;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .contact-form-wrapper {
    width: 95%;
    padding: 1rem;
  }
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 1rem;
  }

  .contact-hero {
    height: 300px;
  }

  .contact-info .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .contact-info h5 {
    font-size: 1rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .contact-info .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}



/* ================================ */
/* NEWS PAGE STYLES */
/* ================================ */

/* Glass card */
.glass-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  color: #000;
}

/* Calendar table */
#calendarTable td {
  cursor: pointer;
  padding: 0.4rem;
  color: #fff;
}
#calendarTable td.highlight {
  background: rgba(20, 198, 221, 0.8);
  border-radius: 50%;
  font-weight: bold;
}

/* Gallery */
.gallery-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: all 0.3s ease;
}
.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .news-hero-section {
    height: 300px;
  }
  .glass-card {
    margin-bottom: 1.5rem;
  }
  #calendarTable td {
    padding: 0.25rem;
    font-size: 0.8rem;
  }
  .gallery-img {
    height: 130px;
  }
}


/* ==================================== */
/* CALENDAR & EVENTS SECTION */
/* ==================================== */

.calendar-events-section {
  position: relative;
  background: linear-gradient(135deg, #58c5e1, #09249e, #58c5e1);
  background-repeat: repeat;
  background-blend-mode: overlay;
  padding: 5rem 0;
}

.calendar-events-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0;
}

.calendar-card,
.events-list-card {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 20px;
}

/* Calendar Styles */
#calendarTable {
  width: 100%;
  border-collapse: collapse;
}

#calendarTable th, #calendarTable td {
  color: #000;
  border: none;
  padding: 0.6rem;
  font-weight: 500;
}

#calendarTable td.highlight {
  background-color: #09249e;
  color: #fff;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

#calendarTable td.highlight:hover {
  background-color: #09249e;
  transform: scale(1.1);
}

/* Upcoming Events List */
#upcomingEventsList .list-group-item {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#upcomingEventsList .list-group-item h5 {
  font-weight: 600;
  color: #0F172B;
}

#upcomingEventsList .list-group-item small {
  color: #09249e;
  font-weight: 500;
}

#upcomingEventsList .list-group-item p {
  color: #333;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
  .calendar-card, .events-list-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .calendar-events-section {
    padding: 3rem 1.5rem;
  }

  #calendarTable th, #calendarTable td {
    font-size: 0.8rem;
    padding: 0.3rem;
  }

  #upcomingEventsList {
    max-height: 40vh;
  }
}


#eventModal .modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(20, 163, 206, 0.2);
}

#eventModal .modal-body p {
  font-size: 1rem;
  color: #09249e;
}

#eventModal .modal-header {
  border-bottom: none;
}

/* ==================================== */
/* ACADEMICS PAGE */
/* ==================================== */

.academics-hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
}

.academics-hero-section p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.95;
}

/* ✅ Responsive adjustments */
@media (max-width: 768px) {
  .academics-hero-section {
    height: 300px;
  }
  .academics-hero-section h1 {
    font-size: 2rem;
  }
  .academics-hero-section p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}


/* ==================================== */
/* ABOUT US PAGE */
/* ==================================== */
/* Hero Section */
    .about-hero-section {
      position: relative;
      height: 450px;
      background: radial-gradient(circle at center, #20458a 0%, #3966a1 50%, #54bbdc 100%);
      background-image: url("/assets/images/hero1.jpg");
      background-repeat: repeat;
      background-size: cover;
      background-position: center;
      background-blend-mode: overlay;
      color: white;
    }
    .about-hero-section .overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
    }

    /* Core Values */
    .core-values .value-box {
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }
    .core-values .value-box:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }

    /* History */
    .our-history .history-text {
      max-height: 35vh;
      overflow-y: auto;
      padding-right: 1rem;
    }

    /* Affiliates */
    .sponsors .container {
      max-width: 80%;
    }
    .sponsors img {
      transition: transform 0.3s ease;
    }
    .sponsors img:hover {
      transform: scale(1.05);
    }

    /* Leadership */
    .leadership .container {
      max-width: 80%;
    }
    .staff-card {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
      padding: 1rem;
      width: 220px;
      height: 100%;
    }
    .staff-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }
    .staff-card img {
      width: 100%;
      height: 12rem;
      border-radius: 12px;
      object-fit: cover;
    }

    /* Scrollbar styling for history text */
    .history-text::-webkit-scrollbar {
      width: 6px;
    }
    .history-text::-webkit-scrollbar-thumb {
      background-color: #9eb8dd;
      border-radius: 4px;
    }


/* ========================================= */
/* MIGHTY EAGLES COLLEGE, ACCRA - MAIN STYLE */
/* ========================================= */


@media (max-width: 991px) {
  .navbar {
    width: 95%;
  }

  .navbar-collapse {
    background-color: rgba(36, 70, 140, 0.9);
    border-radius: 20px;
    padding: 10px;
    text-align: center;
  }

  .btn-apply {
    margin-top: 10px;
  }
}

/* ----------------------------- */
/* HERO SECTION */
/* ----------------------------- */
.hero-section {
  height: 600px;
  position: relative;
}

.hero-img {
  height: 600px;
  object-fit: cover;
  filter: brightness(70%);
}

.carousel-caption {
  margin-top: -25rem;
  border-radius: 20px;
  padding: 25px 40px;
  color: #f3fbfc;
}

.carousel-caption h1 {
  font-size: 2.8rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

/* Hero Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    height: 300px;
  }

  .hero-img {
    height: 300px;
  }

  .carousel-caption h1 {
    margin-top: 3rem;
    font-size: 1rem;
  }

  .carousel-caption p {
    font-size: 0.95rem;
  }

  .btn-apply {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

/* ----------------------------- */
/* ABOUT PREVIEW */
/* ----------------------------- */
.about-title {
  font-size: 2.3rem;
  color: #24468c;
  text-transform: uppercase;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.btn-learn {
  background-color: #24468c;
  color: #fff;
  border-radius: 25px;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.btn-learn:hover {
  background-color: #58c5e1;
}

/* Responsive About */
@media (max-width: 768px) {
  .about-title {
    font-size: 1.7rem;
  }

  .about-text {
    font-size: 0.8rem;
  }
}

/* ----------------------------- */
/* ACADEMICS SECTION */
/* ----------------------------- */
.academics-preview {
  background: linear-gradient(135deg, #58c5e1, #09249e, #58c5e1);
  padding: 5rem 2rem;
}

.section-title {
  font-size: 2rem;
  color: #ffffff;
  text-transform: uppercase;
}

.academic-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.academic-card:hover {
  transform: translateY(-5px);
}

.card-img-wrapper {
  padding: 1rem;  
  overflow: hidden;
  max-height: 230px;
}

.card-img-wrapper img {
    border-radius: 15px;
  transition: transform 0.6s ease;
}

.academic-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-title {
  color: #0f2d69;
  font-size: 1.2rem;
}

.card-text {
  padding: 1.2rem;
  color: #070707;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive Academics */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }
}


/* ----------------------------- */
/* NEWS SECTION */
/* ----------------------------- */
.news-section {
  background-color: #f3fbfc;
  padding: 5rem 1rem;
}

.news-card {
  max-width: 80vw;
  background: #fff;
  border-bottom: 1px solid #000;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 2px 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-img {
  border-radius: 15px;
  max-width: 300px;
  max-height: 250px;
  object-fit: cover;
}

.news-title {
  color: #24468c;
}

.btn-read {
  background-color: #24468c;
  color: #fff;
  border-radius: 25px;
  padding: 8px 22px;
}

.btn-read:hover {
  background-color: #58c5e1;
}

/* Responsive News */
@media (max-width: 768px) {
  .news-card {
    text-align: center;
    padding: 20px;
  }

  .news-img {
    max-width: 100%;
    margin-bottom: 15px;
  }
}

/* ----------------------------- */
/* GALLERY SECTION */
/* ----------------------------- */
.gallery-section {
  background: linear-gradient(135deg, #58c5e1, #09249e, #58c5e1);
  padding: 60px 0;
  color: #fff;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: scrollGallery 40s linear infinite;
  padding: 20px;
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-img {
  border-radius: 20px;
  width: 450px;
  height: 350px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.gallery-wrapper:hover .gallery-track {
  animation-play-state: paused;
}

/* Gallery Responsive */
@media (max-width: 768px) {
  .gallery-img {
    width: 250px;
    height: 150px;
  }

  .gallery-section {
    padding: 30px 0;
  }
}


/* ----------------------------- */
/* FIXED GALLERY MODAL */
/* ----------------------------- */
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 15%;
  top: 15%;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  transition: opacity 0.3s ease;
}

.img-modal.show {
  display: flex;
  opacity: 1;
}

.img-modal img {
  width: 80%;
  max-width: 900px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(3, 3, 3, 0.2);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Modal */
@media (max-width: 768px) {
  .img-modal img {
    width: 95%;
    max-height: 80vh;
    left: -3.3rem;
    top: 5rem;
  }
}


/* ----------------------------- */
/* SPONSORS SECTION */
/* ----------------------------- */
.gallery-img{
  border-radius: 20px;
  width: 450px;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}


/* ----------------------------- */
/* ANNOUNCEMENTS SECTION */
/* ----------------------------- */
.announcements-section {
  padding: 70px 0;
  margin-bottom: -2.8rem;
}

.announcement-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}


/* Responsive Announcements */
@media (max-width: 768px) {
  .announcement-img {
    height: 30vh;
  }

  .d-block.w-100 {
    height: 30vh;
  }

  
}

/* =============================== */
/* ADMISSIONS PAGE - RESPONSIVE CSS */
/* =============================== */

@media (max-width: 768px) {
  .admission-hero {
    height: 45vh;
  }
  
  }


/* REQUIREMENTS SECTION */
#admission-requirements {
  background-color: #f3fbfc;
}

.requirements-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* APPLY NOW SECTION */
.apply-now-section {
  background: linear-gradient(135deg, #58c5e1, #09249e, #58c5e1);
}

.apply-card {
  max-width: 700px;
  padding: 40px 30px;
  border-radius: 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
