/* ==============================
   GLOBAL STYLES
================================ */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==============================
   LOGO SECTION
================================ */

.logo-wrapper img {
  width: 100%;
  display: block;
}

/* ==============================
   NAVBAR
================================ */

.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin-left: 10px;
  color: #FFF !important;
}

.navbar-nav .nav-link:hover {
  text-decoration: underline;
}

/* ==============================
   PAGE SECTIONS
================================ */

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-weight: 700;
  color: #0d6efd;
}

.section-title p {
  color: #6c757d;
}

/* ==============================
   CARDS (Events / Gallery)
================================ */

.card {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-title {
  font-weight: 600;
}

/* ==============================
   FOOTER
================================ */

footer {
  background-color: #212529;
  color: #ffffff;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 15px;
}

footer p,
footer a {
  font-size: 14px;
  color: #ced4da;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==============================
   FLOATING SOCIAL MEDIA BAR
================================ */

.floating-social-bar {
  position: fixed;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-social-bar a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

/* Platform Colors */
.floating-social-bar a.linkedin { background-color: #0077b5; }
.floating-social-bar a.facebook { background-color: #1877f2; }
.floating-social-bar a.whatsapp { background-color: #25d366; }
.floating-social-bar a.youtube  { background-color: #ff0000; }
.floating-social-bar a.share    { background-color: #6c757d; }

.floating-social-bar a:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* ==============================
   CONTACT FORM
================================ */

.contact-form input,
.contact-form textarea {
  border-radius: 5px;
}

.contact-form button {
  font-weight: 500;
}

/* ==============================
   RESPONSIVE FIXES
================================ */

@media (max-width: 768px) {

  .navbar-nav .nav-link {
    margin-left: 0;
  }

  .floating-social-bar {
    right: 8px;
  }

  footer {
    text-align: center;
  }

}



.bg-dark {
  background-color: #DF2729 !important;
}

/* ==============================
   GALLERY VIEW
================================ */

.gallery-thumb {
  height: 200px;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}

.gallery-file {
  cursor: pointer;
}

.gallery-file:hover {
  transform: scale(1.03);
}


/* ==============================
   GALLERY NAV THEME
   Colors: #DF2729, #FFFFFF, #E9D9CF
================================ */

.gallery-header {
    background: linear-gradient(to right, #DF2729, #fd6100);
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
}
.gallery-header h2 {
  margin: 0;
  font-weight: 700;
}

.gallery-header p {
  margin: 5px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Breadcrumb */
.gallery-breadcrumb {
  background: #E9D9CF;
  padding: 12px 20px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gallery-breadcrumb .crumb {
  color: #DF2729;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.gallery-breadcrumb .crumb:hover {
  background: #DF2729;
  color: #ffffff;
}

.gallery-breadcrumb .home {
  background: #ffffff;
}

.gallery-breadcrumb .separator {
  color: #DF2729;
  font-weight: bold;
}

/* Folder Cards */
.card.text-center i.fa-folder {
  color: #DF2729 !important;
}

/* Gallery Hover */
.gallery-file:hover img,
.gallery-file:hover .gallery-thumb {
  outline: 3px solid #DF2729;
  outline-offset: -3px;
}


/* ==============================
   GALLERY MODAL RESPONSIVE FIX
================================ */

.gallery-modal-content {
  background: #000;
  color: #fff;
}

.gallery-modal-body {

  position: relative;
  height: 80vh;          /* Controls modal height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;      /* Prevent scrolling */
}

.gallery-modal-media-wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-share-bar {
  margin-top: 6px !important;
  z-index: 5;
}

/* Media wrapper */
.gallery-modal-media {
  max-width: 100%;
  max-height: 100%;
}

/* Images */
/* ==============================
   FORCE MEDIA TO FIT BY HEIGHT
================================ */

.gallery-modal-media {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Images */
.gallery-modal-media img {
  max-height: 100%;
  width: auto;            /* KEY LINE */
  max-width: 100%;
  object-fit: contain;
}

/* Videos */
.gallery-modal-media video {
  max-height: 100%;
  width: auto;            /* KEY LINE */
  max-width: 100%;
  object-fit: contain;
}


/* PDFs */
.gallery-modal-media iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==============================
   MODAL NAV BUTTONS
================================ */

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(223, 39, 41, 0.85);
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 14px 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.modal-nav.left {
  left: 20px;
}

.modal-nav.right {
  right: 20px;
}

.modal-nav:hover {
  background: #DF2729;
  transform: translateY(-50%) scale(1.1);
}

/* Hide nav on small screens if needed */
@media (max-width: 576px) {
  .modal-nav {
    padding: 10px 12px;
    font-size: 18px;
  }
}


/* ==============================
   MODAL CLOSE BUTTON (WHITE)
================================ */

.gallery-modal-content .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.gallery-modal-content .btn-close:hover {
  opacity: 1;
}

.gallery-modal-content .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}


/* ==============================
   MODAL SHARE BAR
================================ */

.gallery-modal-media-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
}

.modal-share-bar {
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 14px;
}

.modal-share-bar span {
  font-weight: 600;
  opacity: 0.9;
}

/* Icons */
.modal-share-bar a {
  color: #fff;
  font-size: 18px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal-share-bar a:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

/* Platform colors on hover */
.modal-share-bar a:hover .fa-whatsapp { color: #25d366; }
.modal-share-bar a:hover .fa-facebook-f { color: #1877f2; }
.modal-share-bar a:hover .fa-linkedin-in { color: #0077b5; }
.modal-share-bar a:hover .fa-link { color: #DF2729; }


/* File name under icon */
.file-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  word-break: break-word;
}

/* ===========================
   NSS EVENTS TABLE STYLING
=========================== */

.nss-events-table {
  border: 3px solid #DF2729;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Header gradient */
.nss-events-table thead th {
  background: linear-gradient(
    135deg,
    #DF2729 0%,
    #b91f20 100%
  );
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #fff;
}

/* Body rows */
.nss-events-table tbody td {
  background-color: #fff;
  border: 1px solid #E9D9CF;
  vertical-align: middle;
}

/* Alternate rows */
.nss-events-table tbody tr:nth-child(even) td {
  background-color: #fcf7f4;
}

/* Hover effect */
.nss-events-table tbody tr:hover td {
  background-color: #E9D9CF;
  transition: background-color 0.3s ease;
}

/* Date column emphasis */
.nss-events-table td:first-child {
  font-weight: 600;
  color: #DF2729;
  text-align: center;
}

/* Year heading */
.nss-year-heading {
    background: linear-gradient(to right, #DF2729, #fd6100);
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
    border-color: darkred;
}

/* Gallery button */
.btn-gallery {
  border: 2px solid #DF2729;
  color: #DF2729;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.btn-gallery:hover {
  background-color: #DF2729;
  color: #fff;
}


/* Year heading */
.nss-year-heading {
    background: linear-gradient(to right, #DF2729, #fd6100);
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
    border-color: darkred;
}
.text-justify {
  text-align: justify;
}

@media (max-width: 768px) {
  .text-justify {
    text-align: left;
  }
}


/* ================================
   NSS AWARD SECTION
================================ */

.nss-award-section {
  background: linear-gradient(135deg, #ffffff, #E9D9CF);
}

.nss-award-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  max-width: 1100px;
  margin: auto;
}

/* HEADING */
.nss-award-heading {
  text-align: center;
  font-weight: 800;
  color: #00006A;
  margin-bottom: 2rem;
}

.nss-award-heading span {
  color: #DF2729;
  position: relative;
}

.nss-award-heading span::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: #DF2729;
  margin: 10px auto 0;
  border-radius: 4px;
}

/* IMAGE */
.nss-award-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.nss-award-image img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* CAPTION */
.nss-award-caption {
  text-align: center;
  font-size: 1rem;
  background: #DF2729;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  display: inline-block;
  margin: 0 auto 1.8rem;
}

/* VIDEO BUTTON */
.nss-award-video-btn {
  background: linear-gradient(135deg, #DF2729, #b71f22);
  color: #fff;
  border: none;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(223, 39, 41, 0.4);
  transition: all 0.3s ease;
}

.nss-award-video-btn:hover {
  transform: translateY(-3px);
}

/* CONTENT */
.nss-award-content {
  margin-top: 2.5rem;
}

.nss-award-content h3 {
  color: #00006A;
  font-weight: 700;
  margin-bottom: 1rem;
}

.nss-award-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* SHARE */
.nss-award-share {
  margin-top: 2.5rem;
  text-align: center;
}

.nss-award-share span {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #00006A;
}

.nss-award-share a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #DF2729;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.nss-award-share a:hover {
  background: #00006A;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nss-award-card {
    padding: 2rem 1.5rem;
  }
}



/* ================================
   NAVBAR ACTIVE & COLORS
================================ */

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.6rem 1rem;
  transition: all 0.3s ease;
}

/* HOVER */
.navbar-nav .nav-link:hover {
  color: #E9D9CF !important;
}

/* ACTIVE TAB */
.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #DF2729, #b71f22);
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(223, 39, 41, 0.5);
}

/* MOBILE ACTIVE */
@media (max-width: 991px) {
  .navbar-nav .nav-link.active {
    border-radius: 8px;
    margin: 4px 0;
  }
}


.main-footer {
  background: #DF2729;
  font-size: 0.9rem;
}

.footer-top {
  background: #DF2729;
}

.footer-middle {
  background: #b60002;
}

.footer-bottom {
  background: #7a0000;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #E9D9CF;
}

.main-footer a {
  color: #fff;
  text-decoration: none;
}

.main-footer a:hover {
  color: #E9D9CF;
}

.social-icons a {
  color: #fff;
  font-size: 1.2rem;
  margin-left: 12px;
}

.social-icons a:hover {
  color: #E9D9CF;
}

.contact-section {
  background: linear-gradient(135deg, #fff1f1, #ffe6e6);
}

.contact-card {
  background: linear-gradient(135deg, #ffffff, #ffecec);
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 10px 25px rgba(200, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(200, 0, 0, 0.2);
}

.contact-card h4 {
  color: #b30000;
  font-weight: 700;
}

.contact-card a {
  color: #b30000;
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card img {
  max-height: 180px;
  object-fit: cover;
}

.form-responsive {
  position: relative;
  width: 100%;
  padding-top: 150%; /* controls height */
}

.form-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
