/* Top Header */
.top-header {
    padding: 8px 0;
    color: #fff;
}

.contact-info span {
    margin-right: 20px;
    font-size: 13px;
}

.contact-info i {
    color: #fff;
    margin-right: 5px;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Main Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: #004d40;
    font-size: 24px;
    font-weight: 700;
    padding: 0;
}

.navbar-brand:hover {
    color: #004d40;
}

/* Navigation */
.navbar-nav {
    gap: 5px;
}

.navbar-nav .nav-link {
    color: #004d40;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link i {
    font-size: 16px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    background: #4169e1;
    color: #fff;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-item.active .nav-link i {
    color: #fff;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid rgba(0,77,64,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 250px;
    margin-top: 5px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0,77,64,0.1);
    border-top: 1px solid rgba(0,77,64,0.1);
}

.dropdown-item {
    color: #004d40;
    padding: 8px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(65,105,225,0.1);
    color: #4169e1;
    padding-left: 25px;
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 24px;
    color: #004d40;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Responsive */
@media (max-width: 991px) {
      
    .contact-info span:first-child {
        display: inline-block;
    }
    
    .social-links {
        margin-left: inherit;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 15px;
        border-radius: 0px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        margin-top: 0px;
        z-index: 1000;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-nav .nav-link {
        border-radius: 0;
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0,77,64,0.1);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .dropdown-menu {
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-menu:before {
        display: none;
    }

    .dropdown-item {
        padding: 12px 30px;
        border-bottom: 1px solid rgba(0,77,64,0.05);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 20px;
        padding-left: 10px;
    }
    .navbar-toggler{
        padding-right: 10px;
    }
    .scrollToTop {
        background: #023d4b !important;
        display: none !important;
    }
    
    .whatsapp01 {
    left: auto;
    right: 5px;
    }
}

/* Gallery Page Styles */
.gallery-page { padding: 48px 0; }
.gallery-page .container { max-width: 1200px; }
.gallery-page .section-title { color: #009688; font-weight: 700; letter-spacing: 1px; text-align: center; margin-bottom: 24px; }
.gallery-page .title-separator { width: 60px; height: 4px; background: #009688; border-radius: 2px; margin: 16px auto 32px auto; }
.gallery-img-card { background: #fff; border-radius: 18px; box-shadow: 0 2px 16px rgba(0,0,0,0.06); padding: 10px; margin-bottom: 24px; transition: transform 0.2s, box-shadow 0.2s; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-direction: column; }
.gallery-img-card:hover { transform: scale(1.04) rotate(-2deg); box-shadow: 0 8px 32px rgba(102,99,255,0.13); }
.gallery-img-card img { max-width: 100%; border-radius: 12px; object-fit: cover; height: 180px; width: 100%; }
.gallery-img-title { font-weight: 600; color: #6c63ff; margin-top: 10px; }
.gallery-img-desc { color: #666; font-size: 0.95rem; margin-bottom: 0; }
.back-btn { display: inline-block; margin-bottom: 24px; background: #6c63ff; color: #fff; font-weight: 600; border-radius: 24px; padding: 8px 24px; text-decoration: none; box-shadow: 0 2px 8px rgba(102,99,255,0.10); transition: background 0.2s; }
.back-btn:hover { background: #4b47b7; color: #fff; text-decoration: none; }

/* Gallery Pagination Styles */
.pagination .page-link {
    color: #009688;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin: 0 2px;
    transition: background 0.2s, color 0.2s;
}
.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: #009688;
    color: #fff;
    border-color: #009688;
}
.pagination .page-item.disabled .page-link {
    color: #aaa;
    background: #f8f9fa;
    border-color: #e0e0e0;
}

/* Mobile Pagination Styles */
@media (max-width: 767px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    
    .pagination .page-item {
        margin: 2px;
    }
    
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
        text-align: center;
        border-radius: 6px;
        margin: 0;
    }
    
    /* Hide some page numbers on mobile to prevent overflow */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(.prev-page):not(.next-page) {
        display: none;
    }
    
    /* Show ellipsis for hidden pages */
    .pagination .page-item.ellipsis {
        display: inline-block;
        padding: 8px 12px;
        color: #666;
        font-weight: bold;
    }
    
    /* Ensure Previous/Next buttons are always visible */
    .pagination .page-item:first-child,
    .pagination .page-item:last-child {
        display: inline-block;
    }
    
    /* Active page should always be visible */
    .pagination .page-item.active {
        display: inline-block;
    }
    
    /* Show adjacent pages to active page */
    .pagination .page-item.adjacent {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .pagination {
        gap: 2px;
    }
    
    .pagination .page-item {
        margin: 1px;
    }
}

/* Mobile Gallery Styles */
@media (max-width: 767px) {
    .gallery-page { 
        padding: 32px 0; 
    }
    
    .gallery-page .section-title { 
        font-size: 24px; 
        margin-bottom: 16px; 
    }
    
    .gallery-page .title-separator { 
        margin: 12px auto 24px auto; 
    }
    
    .gallery-img-card { 
        margin-bottom: 16px; 
        padding: 8px; 
    }
    
    .gallery-img-card img { 
        height: 160px; 
    }
    
    .gallery-img-card:hover { 
        transform: scale(1.02); 
    }
}

@media (max-width: 480px) {
    .gallery-page { 
        padding: 24px 0; 
    }
    
    .gallery-page .section-title { 
        font-size: 20px; 
        margin-bottom: 12px; 
    }
    
    .gallery-img-card img { 
        height: 140px; 
    }
}

/* Remove border-radius from Previous and Next buttons in pagination */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0 !important;
}

/* About Us Page Section Headings */
.about-secd .section-heading {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 2px solid #e9ecef;
    color: #009688;
    font-weight: 700;
    letter-spacing: 1px;
}

/* About Us Page Icon Spacing */
.about-secd .fa, 
.about-secd .fas, 
.about-secd .far, 
.about-secd .fab {
    margin-right: 0.75rem !important;
}

/* About Us Page Bootstrap Icons Spacing */
.about-secd .bi {
    margin-right: 0.75rem !important;
} 

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #e0f7fa 0%, #f5f7fa 100%);
  min-height: 480px;
  padding: 56px 0 32px 0;
  position: relative;
}
.hero-section-title {
  color: #009688;
  letter-spacing: 1px;
}
.hero-section-subtitle {
  color: #4169e1;
  font-weight: 600;
}
.hero-section-affiliation {
  color: #333;
  font-size: 1.15rem;
  line-height: 1.6;
}
.hero-section-affiliation .digestive-centre {
  color: #009688;
  font-weight: 500;
}
.hero-section-btn {
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 30px;
}
.hero-section-image-col {
  min-height: 340px;
}
.hero-section-image {
  max-width: 420px;
  width: 100%;
  border-radius: 32px;
  border: 6px solid #fff;
}
.hero-section-svg {
  position: relative;
  z-index: 3 !important; /* Ensure SVG is above particles and content if needed */
}
.hero-section > .container {
  position: relative;
  z-index: 2 !important; /* Ensure content is above particles */
}
#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0 24px 0;
  }
  .hero-section-image {
    max-width: 320px;
    border-radius: 24px;
    border-width: 4px;
  }
} 

@media (max-width: 767.98px) {
  .hero-section-title {
    font-size: 2rem !important;
    line-height: 1.1;
    margin-bottom: 0.5rem;
  }
  .hero-section-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem;
  }
  .hero-section-affiliation {
    font-size: 1rem !important;
    margin-bottom: 1rem;
    text-align: center;
  }
  .hero-section {
    padding: 32px 0 16px 0;
  }
  .achievement-img-card img {
    object-fit: contain !important;
    height: auto !important;
}
} 

/* POEM Page Section Styles */
.poem-section-card {
  background: #f8f9fa;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 77, 64, 0.08);
  padding: 32px 24px 24px 24px;
  margin-bottom: 32px;
  border: 1px solid rgba(0, 77, 64, 0.08);
}
.poem-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.poem-section-icon {
  font-size: 2rem;
  color: #009688;
  margin-right: 12px;
}
.poem-list .list-group-item {
  border: none;
  background: transparent;
  font-size: 1.08rem;
  padding-left: 0;
  display: flex;
  align-items: center;
}
.poem-list .fa-check-circle,
.poem-list .fa-star {
  margin-right: 10px;
  font-size: 1.2rem;
}
#poem-faq .card {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
}
#poem-faq .card-header {
  background: #e8f5e9;
  border-radius: 10px 10px 0 0;
}
#poem-faq .btn-link {
  color: #009688;
  font-weight: 600;
  text-decoration: none;
}
#poem-faq .btn-link:hover {
  color: #4169e1;
} 

.faq-toggle-icon i {
  display: inline-block;
  transition: opacity 0.2s;
  margin-left: 6px;
} 

/* --- Custom FAQ Accordion Styles for POEM Page --- */
.faq-custom {
  margin-top: 12px;
}
.faq-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 77, 64, 0.08);
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s;
}
.faq-item.open {
  box-shadow: 0 6px 32px rgba(0, 150, 136, 0.13);
  border-color: #009688;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 400;
  color: #009688;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s, color 0.2s;
}
.faq-question:hover, .faq-item.open .faq-question {
  background: #e0f7fa;
  color: #4169e1;
}
.faq-toggle-icon {
  margin-left: 16px;
  display: flex;
  align-items: center;
}
.faq-toggle-icon i {
  font-size: 0.8rem;
  color: #4169e1;
  margin-left: 0.25rem;
  transition: color 0.2s;
}
.faq-item.open .faq-toggle-icon i.fa-minus {
  color: #009688;
}
/* --- Smooth FAQ Accordion Styles --- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 0 22px 0 22px;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.4s, padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
  padding: 0 22px 18px 22px;
}
@media (max-width: 575.98px) {
  .faq-answer {
    font-size: 0.98rem;
    padding: 0 12px 0 12px;
  }
  .faq-item.open .faq-answer {
    padding: 0 12px 14px 12px;
  }
} 

/* --- Masonry Layout for Achievements & Rewards on Homepage --- */
.achievements-masonry,
.rewards-masonry {
  column-count: 4;
  column-gap: 18px;
}
/* Homepage-specific: 3 columns for masonry */
.home-page .achievements-masonry,
.home-page .rewards-masonry {
  column-count: 3;
}
@media (max-width: 1199px) {
  .achievements-masonry, .rewards-masonry { column-count: 3; }
  .home-page .achievements-masonry, .home-page .rewards-masonry { column-count: 2; }
}
@media (max-width: 991px) {
  .achievements-masonry, .rewards-masonry { column-count: 2; }
  .home-page .achievements-masonry, .home-page .rewards-masonry { column-count: 2; }
}
@media (max-width: 575px) {
  .achievements-masonry, .rewards-masonry { column-count: 1; }
  .home-page .achievements-masonry, .home-page .rewards-masonry { column-count: 1; }
}
.achievement-img-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 10px;
  margin-bottom: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  width: 100%;
  overflow: hidden;
}
.achievement-img-card:hover {
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 32px rgba(0,150,136,0.13);
}
.achievement-img-card img {
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
  width: 100%;
  background: #f8f9fa;
  display: block;
} 