/*
Theme Name: The New Summit Secondary School
Author: CodePoint Nepal Pvt. Ltd.
Description: Theme for The New Summit Secondary School
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: The New Summit Secondary School
*/

/* Lightbox styles */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.fas,
.fa {
    color: #024c95;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.custom-color{
    color: #f26522 !important;
}

/* Social Icons */
#social_side_links {
  position: fixed;
  top: 100px;
  left: 0;
  padding: 0;
  list-style: none;
  z-index: 99;
}

#social_side_links li a {display: block;}

#social_side_links li a img {
	display: block;
	max-width:40px;
  padding: 10px;
  -webkit-transition:  background .2s ease-in-out;
  -moz-transition:  background .2s ease-in-out;
  -o-transition:  background .2s ease-in-out;
  transition:  background .2s ease-in-out;
}

#social_side_links li a:hover img {
background: rgba(0, 0, 0, .2);
 
    &:hover{
    padding-left: 20px;
    width:65px;
    }
}

/* Class Icons */
#class_links {
  position: fixed;
  top: 100px;
  right: 0;
  padding: 0;
  list-style: none;
  z-index: 99;
}

#class_links li a {display: block;}

#class_links li a img {
	display: block;
	max-width:40px;
  padding: 10px;
  -webkit-transition:  background .2s ease-in-out;
  -moz-transition:  background .2s ease-in-out;
  -o-transition:  background .2s ease-in-out;
  transition:  background .2s ease-in-out;
}

#class_links li a:hover img {
background: rgba(0, 0, 0, .2);
 
    &:hover{
    padding-left: 20px;
    width:65px;
    }
}


/* Gallery Section Styles */
.section.courses {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.section-heading {
  margin-bottom: 50px;
}

.section-heading h6 {
  color: #666;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-heading h2 {
  color: #333;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 0;
}

/* Filter Buttons */
/* .event_filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

.event_filter li a {
  display: inline-block;
  padding: 10px 20px;
  color: #666;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  background-color: #fff;
  border: 1px solid #ddd;
}

.event_filter li a:hover,
.event_filter li a.is_active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
} */

/* Gallery Grid */
.event_box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 0;
}

.event_outer {
  padding: 0;
}

.events_item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.events_item:hover {
  transform: translateY(-5px);
}

.events_item .thumb {
  position: relative;
  overflow: hidden;
}

.events_item .thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.events_item:hover .thumb img {
  transform: scale(1.05);
}

.events_item .category {
  position: absolute;
  top: 15px;
  /* right: 15px; */
  background-color: rgba(0, 123, 255, 0.9);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

/* Lightbox Styles */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: pointer;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .section-heading h2 {
      font-size: 30px;
  }
  
  .event_box {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 767px) {
  .section.courses {
      padding: 60px 0;
  }
  
  .section-heading h2 {
      font-size: 26px;
  }
  
  .event_filter {
      gap: 10px;
  }
  
  .event_filter li a {
      padding: 8px 15px;
      font-size: 14px;
  }
  
  .event_box {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 20px;
  }
}

@media (max-width: 575px) {
  .section-heading h2 {
      font-size: 24px;
  }
  
  .event_box {
      grid-template-columns: 1fr;
  }
  
  .events_item .thumb img {
      height: 200px;
  }
}