/* Simple Smooth Scroll Enhancements */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

section {
  scroll-margin-top: 80px;
}

/* Prevent horizontal scroll issues */
body {
  overflow-x: hidden;
}

/* Ensure navbar stays fixed */
.main-nav.fixed-top {
  position: fixed !important;
  top: 0 !important;
  z-index: 1030 !important;
  width: 100% !important;
}

/* To-top button styling */
.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1025;
  display: none;
  transition: all 0.3s ease;
}

.to-top:hover {
  transform: translateY(-3px);
}

.siba_logo {
  margin-right: 5%;
}
.speaker-grid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 16px;
  margin-bottom: 32px;
}
.speaker-card {
  background: #2867a1;
  border: 1.5px solid #7390aa;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  width: 20rem;
  padding: 18px 12px 12px 12px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.speaker-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-6px) scale(1.03);
}
.speaker-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid #7390aa;
  margin-bottom: 12px;
  margin-top: 8px;
  object-position: center top;
  transition: box-shadow 0.2s;
}
.speaker-card:hover .speaker-img {
  box-shadow: 0 0 0 4px #ffe5d1;
}
.speaker-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
}
.speaker-desc {
  font-size: 0.98rem;
  color: white;
  line-height: 1.4;
}
.speaker-section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: white;
  margin: 40px 0 30px 0;
  position: relative;
}
.speaker-section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #7390aa, #5088bd);
  border-radius: 2px;
}

.gallery-grid-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 18px;
  justify-content: center;
  margin-bottom: 32px;
}
.gallery-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.gallery-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-6px) scale(1.04);
}
.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-card:hover .gallery-img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 102, 0, 0.85) 60%,
    rgba(255, 179, 71, 0.85) 100%
  );
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay a {
  color: #fff;
  font-size: 2.2em;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  padding: 10px;
  transition: background 0.2s;
}
.gallery-overlay a:hover {
  background: rgba(255, 255, 255, 0.32);
}
.gallery-caption {
  color: #fff;
  font-size: 1.08em;
  font-weight: 600;
  text-shadow: 0 2px 8px #b44c00;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
  .banner.hero-slider-section {
    min-height: 100vh;
    position: relative;
  }
  .hero-slider {
    height: 100vh;
  }
  .hero-slider .slide {
    min-height: 100vh;
    background-size: cover !important;
    background-position: center !important;
  }
  .hero-overlay {
    background: rgba(51, 70, 110, 0.4);
  }
  .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
  }
  .hero-content .block {
    padding: 1.5rem 1.2rem;
    font-size: 1em;
    background: rgba(51, 70, 110, 0.85);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 85%;
    margin: 0 auto;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
  }
  .hero-content h3 {
    font-size: 1.2em !important;
    margin-bottom: 0.6em;
    line-height: 1.3;
  }
  .hero-content h6 {
    font-size: 1em !important;
    margin-bottom: 1em;
    font-weight: 500;
  }
  .hero-content .btn {
    margin: 0.4em 0.3em;
    font-size: 0.85em;
    padding: 0.6em 1em;
    min-width: 130px;
    display: inline-block;
    font-weight: 500;
  }
  .slider-controls {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    z-index: 6;
  }
  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #7390aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7390aa;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  .slider-btn:hover {
    background: #7390aa;
    color: white;
    transform: scale(1.1);
  }
  .slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 6;
  }
  .slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(187, 205, 221, 0.8);
    cursor: pointer;
    border: 2px solid #7390aa;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }
  .slider-dots .dot.active {
    background: #7390aa;
    transform: scale(1.2);
  }

  /* About section mobile fix */
  .section.about-icomet {
    margin: 0 5% !important;
    padding: 20px 0 !important;
  }

  /* Speaker section mobile fix */
  .speaker-grid-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .speaker-card {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: 180px;
    text-align: center;
  }
  .speaker-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  .speaker-title {
    font-size: 0.9em;
    margin: 0.5em 0;
  }
  .speaker-desc {
    font-size: 0.8em;
  }

  /* Table responsive */
  .schedule-contents table {
    font-size: 0.8em;
  }
  .schedule-contents th,
  .schedule-contents td {
    padding: 4px !important;
  }
}

@media (max-width: 480px) {
  .hero-content .block {
    padding: 1.3rem 1rem;
    max-width: 90%;
  }
  .hero-content h3 {
    font-size: 1.1em !important;
  }
  .hero-content h6 {
    font-size: 0.95em !important;
    margin-bottom: 0.8em;
  }
  .hero-content .btn {
    display: block;
    margin: 0.5em auto;
    width: 80%;
    max-width: 200px;
    padding: 0.7em 0.9em;
    font-size: 0.8em;
  }
  .slider-controls {
    bottom: 70px;
    gap: 15px;
  }
  .slider-btn {
    width: 42px;
    height: 42px;
  }
  .speaker-card {
    flex: 0 1 100%;
    max-width: 250px;
  }
}

.patron-image-container:hover .patron-image {
  transform: scale(1.05);
  border: 8px solid #5a7a9a;
  box-shadow: 0 12px 30px rgba(115, 144, 170, 0.5),
    0 0 0 8px rgba(115, 144, 170, 0.2);
}

.patron-image {
  animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(115, 144, 170, 0.3),
      0 0 0 4px rgba(115, 144, 170, 0.1);
  }
  50% {
    box-shadow: 0 8px 25px rgba(115, 144, 170, 0.4),
      0 0 0 6px rgba(115, 144, 170, 0.15);
  }
}

@media (max-width: 767px) {
  .siba_logo.siba-hide-mobile {
    display: none !important;
  }
  .navbar-custom {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .navbar-flex-responsive {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .navbar-mobile-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .navbar-nav-container {
    width: 100%;
    position: relative;
  }
  .navbar-toggler-mobile-right {
    position: static;
    margin-right: 0.5rem;
    margin-left: auto;
    background: #fff;
    border: 1px solid #7390aa;
    border-radius: 6px;
    padding: 6px 12px;
    color: #7390aa;
    z-index: 10;
  }
  .navbar-nav-responsive {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
}
@media (min-width: 768px) {
  .navbar-custom {
    margin-left: 5% !important;
    margin-right: 5% !important;
  }
  .navbar-flex-responsive {
    flex-direction: row !important;
    align-items: center !important;
  }
  .navbar-nav-container {
    width: auto;
    position: static;
  }
  .navbar-toggler-mobile-right {
    position: static;
    margin-right: 0;
    margin-top: 0;
  }
  .navbar-nav-responsive {
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
  }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Page Header Mobile Optimization */
  .page-header {
    padding: 80px 0 40px !important;
  }

  .page-title {
    font-size: 2.5rem !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
  }

  .page-description {
    font-size: 1.1rem !important;
    max-width: 95% !important;
    padding: 0 15px !important;
  }

  /* Content Section Mobile Optimization */
  .section.about {
    padding: 40px 0 !important;
  }

  .content-block {
    padding: 0 15px !important;
  }

  .content-block h2 {
    font-size: 1.8rem !important;
    margin-bottom: 25px !important;
    text-align: center !important;
  }

  .content-block h3 {
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
    margin-top: 30px !important;
  }

  .content-block h4 {
    font-size: 1.3rem !important;
    margin-bottom: 12px !important;
    margin-top: 20px !important;
  }

  .content-block p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
  }

  /* Mobile Link Styling */
  .content-block a {
    word-break: break-all !important;
    display: inline-block !important;
    margin: 2px 0 !important;
    padding: 5px 0 !important;
    text-decoration: underline !important;
  }

  /* Mobile Contact Information - Only make section headers block */
  .content-block h3 strong,
  .content-block h4 strong {
    display: block !important;
    margin-top: 10px !important;
    color: #184164 !important;
  }

  /* Keep inline contact details inline */
  .content-block p strong {
    display: inline !important;
    margin-right: 5px !important;
  }

  /* Ensure contact links stay inline with their labels */
  .content-block p {
    text-align: left !important;
  }

  .content-block p a {
    display: inline !important;
    word-break: break-all !important;
    margin-left: 0 !important;
  }

  /* Improve spacing between sections */
  .description-one {
    padding: 0 !important;
  }

  /* Make sure text doesn't overflow */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile devices */
  .page-title {
    font-size: 2rem !important;
  }

  .page-description {
    font-size: 1rem !important;
  }

  .content-block h2 {
    font-size: 1.6rem !important;
  }

  .content-block h3 {
    font-size: 1.4rem !important;
  }

  .content-block h4 {
    font-size: 1.2rem !important;
  }

  .content-block p {
    font-size: 0.9rem !important;
  }

  /* Better touch targets for mobile */
  .content-block a {
    padding: 8px 0 !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-title {
    font-size: 3rem !important;
  }

  .page-description {
    font-size: 1.2rem !important;
    max-width: 90% !important;
  }

  .content-block {
    padding: 0 30px !important;
  }
}

/* Submission buttons styling using hero theme */
.submission-buttons-container {
  margin: 30px 0;
  padding: 20px;
}

.submission-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.submission-buttons-wrapper .submission-btn {
  margin: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-align: center !important;
  min-width: 250px;
  display: inline-block;
  justify-content: center;
  align-items: center;
}

.submission-buttons-wrapper .submission-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Additional rule to ensure text centering */
.submission-buttons-wrapper .btn.btn-white-md.submission-btn {
  text-align: center !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Mobile responsiveness for submission buttons */
@media (max-width: 768px) {
  .submission-buttons-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .submission-buttons-wrapper .submission-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    margin: 6px 0;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .submission-buttons-container {
    padding: 15px 10px;
  }

  .submission-buttons-wrapper .submission-btn {
    max-width: 300px;
    font-size: 0.9rem;
  }
}

/* Enhanced Navigation Active States */
.main-nav .navbar-nav .nav-item.active .nav-link {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2867a1, #75aee3) !important;
  border-radius: 6px;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(40, 103, 161, 0.3);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Hover effects for navigation links */
.main-nav .navbar-nav .nav-item .nav-link {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 8px 12px !important;
}

.main-nav .navbar-nav .nav-item .nav-link:hover {
  color: #75aee3 !important;
  background: rgba(117, 174, 227, 0.15);
  transform: translateY(-1px);
}

/* Ensure active state overrides hover */
.main-nav .navbar-nav .nav-item.active .nav-link:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2867a1, #75aee3) !important;
  transform: translateY(-1px);
}

/* Mobile responsive navigation enhancements */
@media (max-width: 991px) {
  .main-nav .navbar-nav .nav-item.active .nav-link {
    margin: 4px 0;
    border-radius: 6px;
  }

  .main-nav .navbar-nav .nav-item .nav-link:hover {
    margin: 4px 0;
    border-radius: 6px;
  }
}
