/* Reset & base */
body, html {margin:0; padding:0; font-family: Arial, sans-serif;}
a {text-decoration:none;}
img {max-width:100%; height:auto;}

/* Hero Section */
.hero-banner {
    height: 85vh;
    width: 100%;
    background: url('<?= $randomImage ?>') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: opacity 1s ease-in-out;
    color: #fff;
    text-align: center;
}
.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.25);
    z-index:1;
}
.hero-content {position:relative; z-index:2;}
.hero-content h1, .hero-content p, .hero-content a {margin:0.5rem 0;}

/* Event Marquee */
.event-marquee {
    position: absolute; top:0; left:0; width:100%; padding:5px 0;
    display:flex; align-items:center; z-index:3;
}
.blink-icon {animation: blink 1s infinite;}
@keyframes blink {0%,100%{opacity:1}50%{opacity:0;}}

/* Partner Slider */
.partner-slider-wrapper {overflow:hidden; white-space:nowrap; position:relative;}
.partner-slider {display:inline-flex; gap:30px; position:relative; will-change:transform;}
.partner-logo {flex:0 0 auto; display:flex; align-items:center; justify-content:center; min-width:150px;}
.partner-logo img {max-height:70px; max-width:150px; object-fit:contain; filter:grayscale(20%); transition: transform 0.3s, filter 0.3s;}
.partner-logo img:hover {transform:scale(1.1); filter:grayscale(0%);}
.partner-slider-wrapper:hover .partner-slider {animation-play-state:paused;}

/* Hover Zoom */
.hover-zoom {transition: transform 0.3s ease, box-shadow 0.3s ease;}
.hover-zoom:hover {transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.2);}

/* FAQ */
.faq-answer {display:none; padding:0.5rem 1rem; border-left: 3px solid #0d6efd; background:#f8f9fa;}
.faq-question {width:100%; text-align:left; background:#e9ecef; border:none; padding:0.5rem 1rem; cursor:pointer; font-weight:500;}

.blink-glow {
  animation: glow 1.5s infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 5px #ffc107, 0 0 10px #ffc107; }
  to { box-shadow: 0 0 20px #ffdb4d, 0 0 40px #ffdb4d; }
}

.hero-banner {
    height: 80vh;
    overflow: hidden;
    position: relative;
}
.hero-banner img.object-fit-cover {
    object-fit: cover;
}
.hero-overlay {
    transition: opacity 1s;
}
.blink-icon {
    animation: blink 1.2s infinite;
}
@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

#eventListCollapse .list-group-item:hover {
  background-color: #f8f9fa;
}
#eventListCollapse .card {
  border-radius: 0.75rem;
}
.card-header button {
  border: none;
  background: transparent;
  color: #0d6efd;
}
.card-header button:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.15);
  border-radius: 5px;
}
</style>

<!-- Extra CSS -->
<style>
  #welcome h2 span {
    font-size: 1.2rem;
  }
  #welcome img {
    transition: transform 0.4s ease;
  }
  #welcome img:hover {
    transform: scale(1.03);
  }
  #events .card {
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

#events .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#events .card:hover .event-img {
  transform: scale(1.05);
}

.event-date-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 123, 255, 0.9);
  color: #fff;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
}

#events .card-body {
  padding: 1rem 1.25rem;
}
    #popular-articles .card {
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    #popular-articles .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    #popular-articles img {
      border-radius: 8px 8px 0 0;
    }

  .event-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  .event-img-wrapper {
    position: relative;
  }
  .event-date-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
  }
  
  #student-life .card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#student-life .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.student-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

#student-life .card:hover .student-img {
  transform: scale(1.05);
}

#student-life .card-body {
  padding: 1rem 1.25rem;
}

  #student-life .circle-wrapper {
    width: 140px;
    height: 140px;
    border: 5px solid #007bff;
    border-radius: 50%;
    overflow: hidden;
    padding: 3px;
    transition: transform 0.3s ease;
  }

  #student-life .circle-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #student-life .hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  #student-life .hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }
  #gallery .gallery-item {
  position: relative;
}
#gallery .gallery-img {
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 12px;
}
#gallery .gallery-link:hover .gallery-img {
  transform: scale(1.08);
  filter: brightness(80%);
}
#gallery .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
#gallery .gallery-link:hover .gallery-overlay {
  opacity: 1;
}
#faqs .accordion-button {
  background: #fff;
  color: #333;
  border-radius: 8px !important;
  transition: all 0.3s ease;
}
#faqs .accordion-button:hover {
  background: #f0f4ff;
  color: #0d6efd;
}
#faqs .accordion-body {
  background: #fdfdfd;
  border-left: 3px solid #0d6efd;
  border-radius: 0 0 8px 8px;
}

.partner-slider-wrapper {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}
.partner-slider {
    display: flex;
    animation: slideLeft 25s linear infinite;
}
.partner-logo {
    flex: 0 0 auto;
    max-width: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.partner-logo img {
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}
.partner-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.08);
}
@keyframes slideLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/*YouTube style*/
.video-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.video-thumb {
  position: relative;
  overflow: hidden;
}
.video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.video-thumb:hover .video-overlay {
  opacity: 1;
}
.video-card img {
  transition: transform 0.4s ease;
}
.video-thumb:hover img {
  transform: scale(1.08);
}


/* Ensure social icons are visible on all screen sizes */
@media (max-width: 767px) {
  .social-icons {
    display: flex !important;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }
  .social-icons a {
    font-size: 1.8rem;
  }
}

/* Fix potential overlap or hidden area issues */
.hero-content {
  position: relative;
  z-index: 3 !important;
}
.hero-overlay {
  z-index: 1 !important;
}

.hero-content .btn-warning {
  border-radius: 30px;
  padding: 10px 28px;
  transition: all 0.3s ease;
}

.hero-content .btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,193,7,0.4);
}

.social-icons a {
  font-size: 1.8rem;
  margin: 0 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* ðŸŽ¨ Brand Colors */
.social-icons a.facebook { color: #1877F2; }  /* Facebook Blue */
.social-icons a.youtube { color: #FF0000; }   /* YouTube Red */
.social-icons a.instagram { 
  color: #E1306C;  /* Instagram Pink */
}

/* âœ¨ Hover Effects */
.social-icons a:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.social-icons a.instagram i {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-link i {
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-link:hover i {
    transform: scale(1.2);
    color: #ffd700; /* golden glow effect on hover */
}

/* Force 5 articles per row on desktop */
@media (min-width: 992px) {
  .col-lg-article-5 {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* Gallery Card */
.gallery-card {
  transition: all 0.3s ease;
  background: #fff;
}

#gallery .gallery-img {
  height: 220px !important;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hover animation */
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}

/* Title section */
.gallery-info {
  background: #ffffff;
  border-top: 1px solid #f1f1f1;
}

.gallery-info h6 {
  font-size: 0.95rem;
}
@media (max-width: 576px) {
  .gallery-img {
    height: 160px;
  }
}

@media (min-width: 992px) {
  .col-lg-article-5 {
    flex: 0 0 auto;
    width: 20%;
  }
}
/* ===== Featured Articles: 5 in one row (desktop only) ===== */

@media (min-width: 992px) {
  .articles-row {
    display: flex;
    flex-wrap: nowrap;      /* 🚀 force single row */
    gap: 12px;
  }

  .articles-row .article-col {
    flex: 0 0 20%;          /* EXACT 5 columns */
    max-width: 20%;
  }
}

/* Mobile & tablet fallback */
@media (max-width: 991px) {
  .article-col {
    width: 100%;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .article-col {
    width: 50%;
  }
}

/* ===== Gallery: 5 images in one row ===== */

/* ===== Gallery: FORCE 5 in one row ===== */

#gallery .gallery-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Desktop */
@media (min-width: 992px) {
  #gallery .gallery-row {
    flex-wrap: nowrap;              /* 🚀 force single row */
  }

  #gallery .gallery-col {
    flex: 0 0 20%;                  /* 5 columns */
    max-width: 20%;
  }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991px) {
  #gallery .gallery-col {
    flex: 0 0 48%;
    max-width: 48%;
  }
}

/* Mobile */
@media (max-width: 575px) {
  #gallery .gallery-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Image consistency */
#gallery .gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#gallery .gallery-card:hover .gallery-img {
  transform: scale(1.05);
}
