/* ========================================= */
/*              Color Scheme                 */
/* ========================================= */

/* Text Colors */
.green { color: #4A90E2 !important; }
.darkgreen { color: #2C5F7C !important; }
.grey { color: #666666; }
.white { color: #ffffff; }
.light-grey { color: #e0e5dd; }
.red { color: #FF0000; }

/* Background Colors */
.bg-green { background-color: #4A90E2 !important; }
.bg-darkgreen { background-color: #2C5F7C !important; }
.bg-lightgrey { background-color: #f9fafa; }
.bg-darker { background-color: #1A4A5C !important; }
.bg-grey { background-color: #F4F9F0; }
.bg-darkgrey { background-color: #666666; }

/* Border Colors */
.border-grey { border-color: #F4F9F0 !important; }
.border-dark { border-color: #66666666 !important; }
.border-light { border-color: #F4F9F04F !important; }
.border-green { border-color: #4A90E2 !important; }
.border-darkgreen { border-color: #2C5F7C !important; }

/* Bootstrap Override Colors */
.text-primary { color: #4A90E2 !important; }
.text-success { color: #4A90E2 !important; }
.text-info { color: #2C5F7C !important; }
.text-warning { color: #1A4A5C !important; }

.bg-primary { background-color: #4A90E2 !important; }
.bg-success { background-color: #4A90E2 !important; }
.bg-info { background-color: #2C5F7C !important; }
.bg-warning { background-color: #1A4A5C !important; }

/* Badge Colors */
.badge.bg-light-green { 
    background-color: rgba(74, 144, 226, 0.15) !important;
    color: #4A90E2 !important;
}

.badge.bg-green, .badge.bg-primary, .badge.bg-success {
    background-color: #4A90E2 !important;
    color: #fff !important;
}

.badge.bg-blue, .badge.bg-teal {
    background-color: #2C5F7C !important;
    color: #fff !important;
}

/* Badge color utilities */
.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.bg-light-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
}

/* ========================================= */
/*              Button Styles                */
/* ========================================= */

/* Primary Buttons - Blue Ocean Theme */
.btn, .btn1, .btn2 {
  font-size: 15px;
  color: #fff;
  background-color: #4A90E2; /* Blue ocean */
  border: 2px solid #4A90E2;
  border-radius: 20px;
  text-transform: capitalize;
  padding: 12px 20px;
  font-weight: 500;
  transition: all .3s ease-in-out;
  text-decoration: none;
}

.btn:hover, .btn:focus, .btn:active {
  color: #4A90E2;
  background-color: #ffffff;
  border-color: #4A90E2;
  transition: all .3s ease-in-out;
  box-shadow: 0px 0px 0px 4px rgba(74, 144, 226, 0.15);
}

.btn1:hover, .btn1:focus, .btn1:active {
  background-color: #2C5F7C; /* Dark blue */
  border-color: #2C5F7C;
  transition: all .3s ease-in-out;
  color: #fff;
  box-shadow: 0px 0px 0px 4px rgba(44, 95, 124, 0.15);
}

.btn2 {
  color: #4A90E2;
  background-color: #fff;
  border-color: #4A90E2;
}

.btn2:hover, .btn2:focus, .btn2:active {
  color: #fff;
  background-color: #2C5F7C;
  border-color: #2C5F7C;
  transition: all .3s ease-in-out;
  box-shadow: 0px 0px 0px 4px rgba(44, 95, 124, 0.15);
}

/* Outline Buttons - Blue Theme */
.btn-outline-green, .btn-outline-primary, .btn-outline-success, 
.btn-outline-info, .btn-outline-warning, .btn-outline-secondary {
  color: #4A90E2;
  background-color: transparent;
  border: 2px solid #4A90E2;
  border-radius: 20px;
  padding: 12px 20px;
  font-weight: 500;
  transition: all .3s ease-in-out;
  text-decoration: none;
}

.btn-outline-green:hover, .btn-outline-green:focus, .btn-outline-green:active,
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active,
.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active,
.btn-outline-info:hover, .btn-outline-info:focus, .btn-outline-info:active,
.btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active,
.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active {
  color: #fff;
  background-color: #4A90E2;
  border-color: #4A90E2;
  transition: all .3s ease-in-out;
  box-shadow: 0px 0px 0px 4px rgba(74, 144, 226, 0.15);
}

/* Small Buttons */
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 15px;
}

/* Large Buttons */
.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: 25px;
}

/* Specific Button Variants */
.btn-green, .btn-primary, .btn-success, .btn-info, .btn-warning {
  background-color: #4A90E2;
  border-color: #4A90E2;
  color: #fff;
}

.btn-green:hover, .btn-green:focus, .btn-green:active,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-info:hover, .btn-info:focus, .btn-info:active,
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
  background-color: #2C5F7C;
  border-color: #2C5F7C;
  color: #fff;
  box-shadow: 0px 0px 0px 4px rgba(44, 95, 124, 0.15);
}

/* Back to Top Button */
#back-to-top a {
  background-color: #4A90E2;
  border-color: #4A90E2;
}

#back-to-top a:hover, #back-to-top a:focus {
  background-color: #2C5F7C;
  border-color: #2C5F7C;
}

/* Hero buttons styling */
.hero-buttons .btn {
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========================================= */
/*              Header CSS                   */
/* ========================================= */

/*Header-top  Section*/
.social-links i{
  height: 34px;
  width: 34px;
  line-height: 34px;
  transition:all 0.3s ease-in-out;
  border-radius: 15%;
}

.social-links i:hover{
  background-color: #4A90E2;
  color: #ffffff;
  transition:all 0.3s ease-in-out;

}

@media (max-width: 1100px) {
  .header-top, nav.navbar.navbar-expand-lg.py-2.navbar-sticky-in, .navbar-button {
    display: none;
  }
}

/*Header-nav-menu  Section*/
 .nav-link:hover, .navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
  color: #4A90E2 ;
  color: #4A90E2 ;
}

.nav-link:focus{
  color: #ffffff;
}

.dropdown-menu li:hover  a{
  background-color: #4A90E2;
  color: #fff ;
  transition: none;
}

.fixed-top {
  background-color: #2C5F7C;
}

@media (min-width: 992px) {
  .navbar-nav .dropdown-menu{
    position: absolute;
  }
  .dropdown-menu{
    display: block;
    opacity: 0;
    visibility:hidden;
  }

  .dropdown:hover>.dropdown-menu {
    opacity: 1 ;
    visibility: visible;
    transition:all .3s ease-in-out;
  }

  .dropdown>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
    pointer-events: none;
  }

  ul.dropdown-menu {
    max-height: 600px !important;
    overflow-y: auto !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

@media (max-width: 1100px){
  .menu-search, .dropdown-toggle::after {
    display: none;
  }

  .slicknav_btn.slicknav_open:before, .slicknav_btn.slicknav_collapsed:before{
    top: -40px;
    left: 0;
  }

  .slicknav_nav{
    border-radius: 20px;
    box-shadow: 0 0 15px #cccccc50;
    background-color: #f9f9f9;
  }

  a.nav-link{
    text-transform:capitalize !important;
    font-size: 15px;
    color: #777;
  }

  .slicknav_nav ul li{
    background-color: #f9f9f9;
  }

  .slicknav_nav a:hover, .slicknav_nav .slicknav_row:hover{
    background-color: #4A90E2;
    color: #fff;
  }

  .nav-link{
    padding: 12px 36px !important;
    margin: 0 !important;
  }

  .dropdown-menu>li>a{
    padding: 12px 45px !important;
    font-size: 15px;
    color: #777 !important;
    background-color: #f9f9f9;
  }

  .dropdown-menu li:hover a {
    color: #fff !important;
  }

  .nav-link:focus{
    color: #fff !important;
  }

  a.nav-link.dropdown-toggle:focus{
    color: #fff !important;
    background-color: #4A90E2;
  }

  .dropdown-menu li:first-child:hover  a, .dropdown-menu li,   .dropdown-menu li:last-child:hover  a{
    border-radius: 0 !important;
  }

  ul.dropdown-menu{
    margin: 0;
    border-radius: 0 !important;
  }

  .navbar li{
    border-top: 1px solid #B6B3C470;
  }

  .dropdown-menu li{
    border-color: #B6B3C470;
  }

  li.nav-item.dropdown.slicknav_parent.slicknav_open > a > a {
    background: #4A90E2;
    color : #fff !important;
  }

  li.nav-item.dropdown.slicknav_parent.slicknav_open > a span i {
    color: #fff !important;
  }

  .slicknav_btn.slicknav_open:before{
    color: #4A90E2;
  }

  .fixed-top{
    display: none;
  }
}

@media (max-width: 990px) {
  .slicknav_nav{
    top: 90px;
  }
}

@media (max-width: 576px){
  .slicknav_btn.slicknav_open:before, .slicknav_btn.slicknav_collapsed:before{
    top: -30px;
    left: -20px;
  }
  .slicknav_nav{
    top: 60px;
  }
  .slicknav_nav a:hover, .slicknav_nav .slicknav_row:hover{
    background-color: #4A90E2;
  }
}

/* ========================================= */
/*              Banner Section               */
/* ========================================= */

/* ========================================= */
/*              Banner Section               */
/* ========================================= */

.banner{
  margin-top: -91px;
}
.slide img{
  height: 800px;
}

.carousel-caption{
  top: 25%;
}

.carousel-caption *:nth-child(n){
  opacity: 0;
}

.animated{
  -webkit-animation-duration: 1.5s;
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
}

.carousel-caption *:nth-child(1n){
  animation-delay: 1s;
}
.carousel-caption *:nth-child(2n){
  animation-delay: 2s;
}
.carousel-caption *:nth-child(3n){
  animation-delay: 2.5s;
}
.carousel-caption *:nth-child(4n){
  animation-delay: 3s;
}

@keyframes fadeInDown {
  0% {
      opacity: 0;
      transform: translateY(-50px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

.fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

/* ========================================= */
/*              To-Do Section                */
/* ========================================= */

/* ========================================= */
/*              To-Do Section                */
/* ========================================= */

.box-icon i{
  height: 100px;
  width: 100px;
  line-height: 90px;
}

.to-do {
  margin-top: -100px;
}

.to-do-inner a:hover{
  box-shadow: 0px 0px 15px 0px rgba(204, 204, 204, 0.4);
  transition: all .3s ease-in-out;
}

.to-do-inner a:hover i{
  background-color: #2C5F7C;
  transition: all .3s ease-in-out;
}

.to-do-inner a:hover h4{
  color: #4A90E2;
  transition: all .3s ease-in-out;
}

/* ========================================= */
/*              About Us Section             */
/* ========================================= */

/* ========================================= */
/*              About Us Section             */
/* ========================================= */

.exp-box{
  border-width: 12px !important;
  margin-left: -60px;
}

.inquiry-box-icon i{
  width: 65px;
  height: 65px;
  line-height: 65px;
}

.inquiry-box-icon i:hover{
  color: #fff;
  background-color: #4A90E2;
  transition: all .3s ease-in-out;
}

@media (max-width: 576px){
  .exp-box{
    border-width: 12px 0px 0px 0px !important;
    margin-left: 0px;
  }
}

/* ========================================= */
/*           Time to Change Section          */
/* ========================================= */
/* ========================================= */
/*           Time to Change Section          */
/* ========================================= */

.time-to-change{
  background-image: url(../images/planting&working/9.jpg);
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.time-to-change-bg-overlay{
  background-color: transparent;
  background-image: linear-gradient(90deg, #10101099 68%, #4A90E2 0%);
  opacity: 1;
}

.lightgallery-box a{
  height: 500px;
  background-image: url(../images/planting&working/4.jpg);
  background-position: center;
  cursor: pointer;
  transition: all .3s ease-in-out;
}

.lightgallery-box a:hover i{
  color: #fff;
  opacity: 1 !important;
  transition: all .3s ease-in-out;
}

@media (max-width:576px) {
  .counter-box {
    border-bottom: 1px solid;
  }
}

/* ========================================= */
/*              Gallery Styles               */
/* ========================================= */

/* Gallery Page Styles */
.gallery-controls {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.filter-buttons .btn {
    border-radius: 25px;
    font-weight: 500;
    text-transform: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.filter-buttons .btn-green {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border-color: #4A90E2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.filter-buttons .btn-outline-green {
    background: white;
    color: #4A90E2;
    border-color: #4A90E2;
}

.filter-buttons .btn-outline-green:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Gallery Search Form */
.gallery-search .form-control {
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.gallery-search .form-control:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.15);
}

.gallery-search .btn {
    border-radius: 25px;
    padding: 12px 20px;
}

/* Gallery Styles Enhancement */
.gallery-grid {
    padding: 80px 0;
}

.gallery-info {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-info h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #294145;
}

.gallery-info p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-item {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 3rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.gallery-card:hover .video-overlay {
    color: #4A90E2;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.9), rgba(44, 95, 124, 0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-trigger:hover {
    transform: scale(1.2);
    color: #FFD700 !important;
}

/* Custom Lightbox Styles */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: lightboxSlideIn 0.4s ease;
}

.lightbox-media {
    margin-bottom: 20px;
}

.lightbox-image, .lightbox-video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    text-align: center;
    color: white;
    max-width: 600px;
}

.lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.lightbox-description {
    margin-bottom: 15px;
    opacity: 0.9;
}

.lightbox-badges {
    margin-bottom: 15px;
}

.lightbox-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin: 0 5px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.lightbox-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Gallery Empty State */
.gallery-empty-state {
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 40px 0;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lightboxSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-info h3 {
        font-size: 2rem;
    }
    
    .gallery-image-container {
        height: 220px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-title {
        font-size: 1.2rem;
    }
    
    .lightbox-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        padding: 60px 0;
    }
    
    .gallery-image-container {
        height: 200px;
    }
    
    .lightbox-content {
        padding: 20px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
}


/* Partner Slider Styles */
.partner-slider-wrapper {
    overflow: hidden;
    padding: 40px 0;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.partner-slider-track {
    display: flex;
    width: calc(200px * 16 + 30px * 15); /* 8 items x 2 sets + gaps */
    animation: slideInfinite 40s linear infinite;
    gap: 30px;
}

.partner-item {
    flex: 0 0 200px;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-container {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partner-logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.6s ease;
}

.partner-logo-container:hover::before {
    left: 100%;
}

.partner-logo-container:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

.partner-logo {
    max-width: 140px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) opacity(85%) brightness(1.1);
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.partner-logo.loaded {
    animation: none;
}

.partner-logo:not(.loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.partner-logo-container:hover .partner-logo {
    filter: grayscale(0%) opacity(100%) brightness(1);
    transform: scale(1.1);
}

/* Infinite sliding animation */
@keyframes slideInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 8 - 30px * 8)); /* Move exactly 8 items */
    }
}

/* Shimmer loading effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Pause animation on hover */
.partner-slider-wrapper:hover .partner-slider-track {
    animation-play-state: paused;
}

/* Error state for images */
.partner-logo.error {
    opacity: 0.7;
    filter: grayscale(50%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .partner-item {
        flex: 0 0 180px;
        width: 180px;
        height: 110px;
    }
    
    .partner-logo-container {
        padding: 18px;
    }
    
    .partner-logo {
        max-width: 124px;
        max-height: 74px;
    }
    
    .partner-slider-track {
        width: calc(180px * 16 + 25px * 15);
        gap: 25px;
        animation-duration: 35s;
    }
    
    @keyframes slideInfinite {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-180px * 8 - 25px * 8)); }
    }
}

@media (max-width: 992px) {
    .partner-item {
        flex: 0 0 160px;
        width: 160px;
        height: 100px;
    }
    
    .partner-logo-container {
        padding: 16px;
    }
    
    .partner-logo {
        max-width: 108px;
        max-height: 68px;
    }
    
    .partner-slider-track {
        width: calc(160px * 16 + 20px * 15);
        gap: 20px;
        animation-duration: 30s;
    }
    
    @keyframes slideInfinite {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-160px * 8 - 20px * 8)); }
    }
}

@media (max-width: 768px) {
    .partner-slider-wrapper {
        padding: 30px 0;
    }
    
    .partner-item {
        flex: 0 0 140px;
        width: 140px;
        height: 90px;
    }
    
    .partner-logo-container {
        padding: 14px;
    }
    
    .partner-logo {
        max-width: 92px;
        max-height: 62px;
    }
    
    .partner-slider-track {
        width: calc(140px * 16 + 18px * 15);
        gap: 18px;
        animation-duration: 25s;
    }
    
    @keyframes slideInfinite {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-140px * 8 - 18px * 8)); }
    }
}

@media (max-width: 576px) {
    .partner-slider-wrapper {
        padding: 25px 0;
        border-radius: 15px;
    }
    
    .partner-item {
        flex: 0 0 120px;
        width: 120px;
        height: 80px;
    }
    
    .partner-logo-container {
        padding: 12px;
        border-radius: 12px;
    }
    
    .partner-logo {
        max-width: 76px;
        max-height: 56px;
    }
    
    .partner-slider-track {
        width: calc(120px * 16 + 15px * 15);
        gap: 15px;
        animation-duration: 20s;
    }
    
    @keyframes slideInfinite {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-120px * 8 - 15px * 8)); }
    }
}


/* Accessibility */
.partner-logo-container:focus-within {
    outline: 3px solid #4A90E2;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .partner-slider-track {
        animation-duration: 80s;
    }
    
    .partner-logo-container,
    .partner-logo {
        transition-duration: 0.1s;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .partner-logo-container {
        border: 3px solid #000;
        background: #fff;
    }
    
    .partner-logo {
        filter: contrast(1.2);
    }
}

/* Print styles */
@media print {
    .partner-slider-track {
        animation: none;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        width: auto;
    }
    
    .partner-logo-container {
        transform: none;
        box-shadow: none;
    }
}
/* Gallery Badges */
.gallery-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gallery-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-badge.source-database {
    color: #4A90E2;
}

.gallery-badge.source-folder {
    color: #28a745;
}

.gallery-badge.source-url {
    color: #fd7e14;
}

.gallery-badge.type-external {
    color: #17a2b8;
}

.gallery-badge.type-local {
    color: #6c757d;
}

/* Gallery Content */
.gallery-content {
    padding: 25px;
}

.gallery-title {
    font-size: 18px;
    font-weight: 700;
    color: #2C5F7C;
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.gallery-meta {
    border-top: 1px solid #f1f3f4;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8e9297;
}

.gallery-source-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.gallery-date {
    font-weight: 500;
}

/* Gallery Info Section */
.gallery-info {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2C5F7C;
}

.gallery-info p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Stats */
.gallery-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px 20px;
    margin-top: 60px;
}

.gallery-stats .stat-item {
    text-align: center;
    padding: 20px;
}

.gallery-stats .stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 5px;
}

.gallery-stats .stat-item small {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty State */
.gallery-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.gallery-empty-state i {
    font-size: 4rem;
    margin-bottom: 30px;
    opacity: 0.5;
}

.gallery-empty-state h5 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #495057;
}

.gallery-empty-state p {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom Lightbox Styles */
.custom-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.custom-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    animation: lightboxSlideIn 0.4s ease;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 25px 30px;
    background: white;
}

.lightbox-title {
    font-size: 24px;
    font-weight: 700;
    color: #2C5F7C;
    margin-bottom: 8px;
}

.lightbox-description {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.lightbox-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 14px;
    color: #8e9297;
}

.lightbox-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.lightbox-badge {
    background: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.lightbox-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    backdrop-filter: blur(10px);
}

/* Loading Animation */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightboxSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery item animations */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-controls {
        padding: 30px 0;
    }
    
    .filter-buttons {
        justify-content: center;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .filter-buttons .btn {
        font-size: 12px;
        padding: 8px 16px;
        margin: 5px;
    }
    
    .gallery-search {
        margin-top: 20px;
    }
    
    .gallery-image-container {
        height: 220px;
    }
    
    .gallery-content {
        padding: 20px;
    }
    
    .gallery-title {
        font-size: 16px;
    }
    
    .gallery-description {
        font-size: 13px;
    }
    
    .gallery-badges {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .gallery-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .gallery-stats .stat-item {
        padding: 15px 10px;
    }
    
    .gallery-stats .stat-item h4 {
        font-size: 2rem;
    }
    
    .lightbox-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .lightbox-info {
        padding: 20px;
    }
    
    .lightbox-title {
        font-size: 20px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-nav.prev {
        left: 15px;
    }
    
    .lightbox-nav.next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .gallery-info h3 {
        font-size: 2rem;
    }
    
    .gallery-info p {
        font-size: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .gallery-image-container {
        height: 200px;
    }
    
    .gallery-overlay-content i {
        font-size: 2.5rem;
    }
    
    .gallery-overlay-content p {
        font-size: 14px;
    }
    
    .lightbox-nav {
        display: none;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Debug Mode Styles */
.gallery-debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #6c757d;
    line-height: 1.4;
    word-break: break-all;
}

/* ========================================= */
/*           Pendidikan Timeline CSS         */
/* ========================================= */

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4A90E2, #2C5F7C);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    position: relative;
    z-index: 2;
    width: 100px;
    flex-shrink: 0;
}

.timeline-content {
    width: calc(50% - 80px);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 2rem;
}

/* Timeline connector dots */
.timeline-date::after {
    content: '';
    position: absolute;
    right: -52px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4A90E2;
    transform: translateY(-50%);
    z-index: 3;
}

.gallery-container .gallery-item:hover {
    transform: translateY(-3px);
}

.timeline-item:nth-child(even) .timeline-date::after {
    left: -52px;
    right: auto;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 70px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }

    .timeline-date {
        position: absolute;
        left: 0;
        width: 60px;
        font-size: 0.8rem;
        padding: 0.5rem !important;
    }

    .timeline-date::after {
        right: -36px !important;
        left: auto !important;
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
    
    .gallery-container::-webkit-scrollbar {
        width: 6px !important;
    }
}

/* ========================================= */
/*           Pendidikan Timeline CSS         */
/* ========================================= */

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4A90E2, #2C5F7C);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    position: relative;
    z-index: 2;
    width: 100px;
    flex-shrink: 0;
}

.timeline-content {
    width: calc(50% - 80px);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 2rem;
}

/* Timeline connector dots */
.timeline-date::after {
    content: '';
    position: absolute;
    right: -52px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4A90E2;
    transform: translateY(-50%);
    z-index: 3;
}

.timeline-item:nth-child(even) .timeline-date::after {
    left: -52px;
    right: auto;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 70px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }

    .timeline-date {
        position: absolute;
        left: 0;
        width: 60px;
        font-size: 0.8rem;
        padding: 0.5rem !important;
    }

    .timeline-date::after {
        right: -36px !important;
        left: auto !important;
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
    }
}

/* ========================================= */
/*           Konservasi Page CSS             */
/* ========================================= */

/* Gradient backgrounds */
.bg-gradient-primary { 
    background: linear-gradient(135deg, #007bff, #0056b3); 
}

.bg-gradient-success { 
    background: linear-gradient(135deg, #2356d7, #0360d3); 
}

.bg-gradient-info { 
    background: linear-gradient(135deg, #17a2b8, #117a8b); 
}

.bg-gradient-warning { 
    background: linear-gradient(135deg, #ffc107, #e0a800); 
}

.bg-gradient-green { 
    background: linear-gradient(135deg, #4A90E2, #2C5F7C); 
    background: linear-gradient(135deg, #4A90E2, #2C5F7C); 
}

.bg-gradient-dark { 
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6)); 
}

/* Image overlay fixes */
.image-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(transparent, rgba(0,0,0,0.7)); 
    pointer-events: none;
    pointer-events: none;
}

/* Object fit support */
.object-fit-cover { 
    object-fit: cover; 
}

/* Hero section styling */
.hero-conservation {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-buttons {
    position: relative;
    z-index: 15;
}

.hero-buttons .btn {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
}

/* Image cards styling */
.image-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Impact cards styling */
.impact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Program section styling */
.program-section { 
    position: relative; 
    z-index: 1;
}

.program-section::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    width: 50px;
    height: 2px;
    background: #4A90E2;
    background: #4A90E2;
    transform: translateX(-50%);
    z-index: 0;
}

.program-section:last-child::after { 
    display: none; 
}

/* Program images styling */
.program-images,
.program-collage,
.lamun-showcase {
    position: relative;
    z-index: 1;
}

.floating-badge,
.stats-overlay,
.carbon-info,
.eco-benefits {
    position: absolute;
    z-index: 5;
}

/* CTA Wave section */
.cta-wave {
    position: relative;
    z-index: 1;
}

.wave-decoration {
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 10;
}

.cta-buttons .btn {
    z-index: 15;
}

/* ========================================= */
/*           Pengendalian Sampah CSS         */
/* ========================================= */

/* Program Toggle Buttons */
.btn-check:checked + .btn-outline-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}
/* ========================================= */
/*           Pengendalian Sampah CSS         */
/* ========================================= */

/* Program Toggle Buttons */
.btn-check:checked + .btn-outline-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}


/* Program Cards Styling */
.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
}


.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}


/* Advantage Items */
.advantage-item {
    transition: transform 0.3s ease;
    padding: 1rem;
    padding: 1rem;
}

.advantage-item:hover {
    transform: translateY(-3px);
}


/* Statistics Cards */
.stat-card {
    transition: transform 0.3s ease;
}


.stat-card:hover {
    transform: translateY(-5px);
}

/* Pricing Badge */
.pricing-badge {
    margin-top: auto;
    font-weight: 500;
}

/* Hero Stats Mini */
.stat-mini {
    padding: 0.5rem;
}

.stat-mini h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-mini small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stat-mini h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-mini small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Program Toggle Section */
.program-tabs .btn-group .btn {
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.program-tabs .btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}


.program-tabs .btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.program-tabs .btn-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

/* ========================================= */
/*           Campaign Section CSS            */
/* ========================================= */

.percentage-wrapper {
  height: 22px;
  top: -32px;
  right: -23px;
  border-radius: 3px;
  font-size: 13px;
}
.percentage-wrapper::after{
  content: " ";
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: #4A90E2;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}

.progress-bar {
  animation: progressBar 3s ease-in-out;
  animation-fill-mode:both;
  -moz-animation: progressBar 3s ease-in-out;
  -moz-animation-fill-mode:both;
  background-color: #4A90E2 !important;
  background-color: #4A90E2 !important;
}

@keyframes progressBar {
  0% { width: 0; }
  100% { width: width; }
}

/* Progress bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.8s ease;
}

/* ========================================= */
/*           Donate Section CSS              */
/* ========================================= */

.donate-suggetion{
  margin-bottom: -138px;
}

.donate-suggetion-box{
  background-image: url(../images/planting&working/10.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.clean-suggetion-box{
  background-image: url(../images/planting&working/2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.suggetion-icon i {
  height: 100px;
  width: 100px;
  line-height: 100px;
  transition: all .3s ease-in-out;
}

.suggetion-icon i:hover{
  color: #4A90E2;
  background-color: #fff;
  transition: all .3s ease-in-out;
}

@media (max-width:576px){
  .donate-suggetion-box, .clean-suggetion-box{
    padding: 60px 20px !important;
  }
}

/* ========================================= */
/*           Vision & Mission CSS            */
/* ========================================= */

.vision-mission{
padding-top: 238px;
}

.vision-mission .overlay{
  background-color: transparent;
  background-image: url(../images/background/2.png);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.7;
}


/* ========================================= */
/*           Team Section CSS                */
/* ========================================= */

.social-link li a{
  width:38px;
  height:38px;
  line-height:38px;
  transition:all .3s ease-in-out
}

.team-member-image::after{
  position: absolute;
  content:"";
  height:100%;
  top: 0;
  left: 0;
  background:rgba(0,0,0,.7);
  width: 100%;
  border-radius: 5px;
  opacity: 0;
  transition: all ease-in-out .7s;
}

.team-member-box:hover .team-member-image::after{
  opacity: .8;
  transition: all ease-in-out .7s;
}

.social-link a:hover{
  color: #fff;
  background-color: #4A90E2 !important;
  transition: all ease-in-out .3s;
}

.social-link li:nth-child(2), .team-member-image:hover .social-link li:nth-child(2){
  animation-delay: .2s;
}

.social-link li:nth-child(3), .team-member-image:hover .social-link li:nth-child(3){
  animation-delay: .3s;
}

@keyframes fadeInup {
  0% {
      opacity: 1;
      transform: translateY(0px);
  }
  100% {
      opacity: 0;
      transform: translateY(-50px);
  }
}

.social-link li {
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  animation-fill-mode: both;
  -webkit-animation-name: fadeInup;
  animation-name: fadeInup;
  opacity: 0;
}

.team-member-box:hover .social-link li{
  -webkit-animation-duration: .5s;
  animation-duration: .5s;
  animation-fill-mode: both;
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

/* ========================================= */
/*           Volunteer Section CSS           */
/* ========================================= */

.volunteer{
  background-image: linear-gradient(90deg, #FFFFFF00 45%, #4A90E2 0%);
}

/* ========================================= */
/*           Event Section CSS               */
/* ========================================= */

.event{
  background-image: linear-gradient(90deg, #ffffff 30%, #F4F9F0 0);
}

/* ========================================= */
/*           Help Section CSS                */
/* ========================================= */

.help{
  background-image: url(../images/banner-slider/2.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.help-form{
  margin: -40px 0;
}

/* ========================================= */
/*           Footer Section                  */
/* ========================================= */

footer .overlay{
  background-image: url(../images/background/2.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: transparent;
}

.footer-socials i{
  height: 40px;
  width: 40px;
  line-height: 40px;
  transition:all 0.3s ease-in-out;
}

.footer-socials i:hover{
  background-color: #4A90E2 !important;
  color: #ffffff;
  transition:all 0.3s ease-in-out;
}

/* ========================================= */
/*          Event Detail page CSS           */
/* ========================================= */

.box-icon1 i{
  height: 80px;
  width: 80px;
  line-height: 70px;
}

.charity-box{
  background-image: url(../images/planting&working/4.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========================================= */
/*          Career List page CSS             */
/* ========================================= */

.send-cv-box{
  background-image: linear-gradient(180deg, #2C5F7C 0%, #4A90E2 100%);
}

.cv-box-icon i{
  height: 100px;
  width: 100px;
  line-height: 100px;
  transition: all .3s ease-in-out;
}

.cv-box-icon i:hover{
  background-color: #fff;
  color: #2C5F7C;
  transition: all .3s ease-in-out;
}

.line-icon::before,
.line-icon::after {
  width: 20%;
  height: 1px;
  border-top: 1px solid #fff;
  display: inline-block;
  content: '';
  padding-top: 0.4em;
  margin-left: 3%;
  margin-right: 3%;
}

/* ========================================= */
/*               FAQ page CSS                */
/* ========================================= */

.accordion-button:focus {
  box-shadow: none;
  z-index: 0;
}

.accordion-button:not(.collapsed){
  background-color: #F4F9F0;
  color: #4A90E2;
  box-shadow: none;
}

.accordion-button::after{
  background-image: none;
  content:"\f067" ;
  font-family: "FontAwesome";
}

.accordion-button:not(.collapsed)::after{
  color: #4A90E2 !important;
  background-image: none;
  transform: none;
  content:"\f068" ;
  font-family: "FontAwesome";
}

.faq-form{
  background-image: linear-gradient(90deg, #FFFFFF 35%, #F4F9F0 0%);
  background-color: transparent;
}

@media (min-width: 1024px) {
  .faq-qoute {
    margin: -90px 20px 0px 20px ;
  }
}

/* ========================================= */
/*            Testimonial page CSS           */
/* ========================================= */

.testimonial1{
  background-image: url(../images/background/1.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

/* ========================================= */
/*            Coming-Soon page CSS          */
/* ========================================= */


.coming-soon .overlay {
  background-color: transparent;
  background-image: url(../images/background/2.png);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: .75;
}

.divider-pattern {
  background: repeating-linear-gradient(-55deg, #fff, #fff 1px, transparent 1px, transparent 6px);
}

.coming-soon .footer-socials i:hover{
  background-color: #4A90E2;
  border-radius: 50%;
}

.countdown span{
  font-size: 80px;
}

@media (max-width: 992px){
  .coming-soon span {
    font-size: 54px;
  }
  .coming-soon p{
    font-size: 14px;
  }
}

@media (min-width: 800px) and (max-width:996px){
  .coming-soon{
    height: 170vh !important;
  }
}

@media (max-width: 576px){
  .coming-soon span {
    font-size: 42px;
  }
}

/* ========================================= */
/*            Product List page CSS          */
/* ========================================= */

.shop .image-overlay{
  width: 94%;
}

@media (max-width: 996px){
  .shop .image-overlay {
    width: 97%;
  }
}

.page-numbers a:hover {
  color: #fff;
  background-color: #2C5F7C;
  transition: all 0.3s ease-in-out;
}

/* ========================================= */
/*           Product Detail page CSS         */
/* ========================================= */

.price input {
  width: 54px;
}

.product-img-nav img{
  width: 115px;
  height: 115px;
}

.product-img-nav img:hover, .slick-current img{
  opacity: 1 !important;
}

.product-img-nav.slick-slide.slick-current.slick-center, .product-img-nav.slick-slide{
  width: 115px !important;
}

.slick-track{
  display: flex;
  justify-content: center;
}

.slick-list.draggable{
  padding: 0 !important;
}

@media (max-width: 576px) {
  .product-img-nav img{
    width: 100px;
    height: 100px;
  }
}

/* Related Product Section CSS */
.star-rating-inner {
  transform: rotateY(180deg);
}

.star-rating input{
  display: none;
}

.star-rating label{
  width: 2%;
  aspect-ratio: 1;
  cursor: pointer;
}

.star-rating label .star-stroke{
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #2C5F7C;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-rating label .star-stroke .star-fill{
  width: 70%;
  aspect-ratio: 1;
  background: transparent;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-rating input:hover ~ label .star-stroke,.star-rating input:checked ~ label .star-stroke{
  background: #4A90E2;
  transition: all .2s ease-in-out;
}

.star-rating input:checked ~ label .star-stroke .star-fill{
  background: #4A90E2;
  transition: all .2s ease-in-out;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
  color: #4A90E2;
}

.related-product-inner .nav-link:hover{
  color: #666666;
}

.tab-content{
  margin-top: -3px;
}

/* ========================================= */
/*              Cart page CSS                */
/* ========================================= */

.cart .table img{
  width: 55px;
  height: 55px;
}

.cart-list input{
  width: 60px;
}

/* ========================================= */
/*           Article List Page CSS           */
/* ========================================= */

.founder-image img {
  height: 110px;
  width: 110px;
}

/* ========================================= */
/*           Article Single Page CSS         */
/*           Article Single Page CSS         */
/* ========================================= */

.author-info img {
  height: 90px;
  width: 90px;
}

/* ========================================= */
/*           Contact US Page CSS             */
/* ========================================= */

.contact-us{
  background-image: url(../images/background/1.png);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-info-left i{
  height: 80px;
  width: 80px;
  line-height: 80px;
}

.contact-info-left .info-box a:hover i{
  background-color: #2C5F7C;
  transition: all .3s ease-in-out;
}

/* ========================================= */
/*           Donate Now Page CSS             */
/* ========================================= */


.donate-now{
  background-image: url(../images/background/1.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ========================================= */
/*          Interactive Elements             */
/* ========================================= */

/* Links */
a {
  color: #4A90E2;
  text-decoration: none;
  text-decoration: none;
  transition: all .3s ease-in-out;
}

a:hover, a:focus {
  color: #2C5F7C;
  transition: all .3s ease-in-out;
  text-decoration: none;
}

/* Form Controls Focus */
input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, input[type=search]:focus,
input[type=password]:focus, input[type=tel]:focus, input[type=date]:focus, input[type=time]:focus, 
textarea:focus, select:focus {
  outline: none;
  transition: all 0.5s ease;
  box-shadow: inset 0 0 0 2px rgba(74, 144, 226, 0.3);
  border-color: #4A90E2;
  text-decoration: none;
}

/* Form Controls Focus */
input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, input[type=search]:focus,
input[type=password]:focus, input[type=tel]:focus, input[type=date]:focus, input[type=time]:focus, 
textarea:focus, select:focus {
  outline: none;
  transition: all 0.5s ease;
  box-shadow: inset 0 0 0 2px rgba(74, 144, 226, 0.3);
  border-color: #4A90E2;
}

/* ========================================= */
/*          Focus & Active States            */
/* ========================================= */

*:focus {
  outline: none;
}

.btn:focus, .btn:focus-visible {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

.btn:active, .btn.active {
  background-color: #2C5F7C !important;
  border-color: #2C5F7C !important;
  color: #fff !important;
}

/* ========================================= */
/*          Additional Components            */
/* ========================================= */

/* Project & Curriculum Cards */
.project-card, .curriculum-card {
    transition: all 0.3s ease;
}

.project-card:hover, .curriculum-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    transform: translateY(-5px);
}

/* Gallery item enhancements for general use */
.gallery-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

/* ========================================= */
/*          Accessibility & Motion          */
/* ========================================= */

@media (prefers-contrast: high) {
  .btn, .btn1, .btn2 {
    border-width: 3px;
  }
  
  .btn-outline-green, .btn-outline-primary, 
  .btn-outline-success, .btn-outline-info {
    border-width: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn1, .btn2, 
  .btn-outline-green, .btn-outline-primary,
  a, .image-card, .impact-card {
    transition: none;
  }
}

/* ========================================= */
/*          Smooth Scrolling & Anchors      */
/* ========================================= */

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 80px;
    }
}

/* ========================================= */
/*          Loading Animations              */
/* ========================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-section {
    animation: fadeInUp 0.6s ease-out;
}

.impact-card {
    animation: fadeInUp 0.6s ease-out;
}

.impact-card:nth-child(1) { animation-delay: 0.1s; }
.impact-card:nth-child(2) { animation-delay: 0.2s; }
.impact-card:nth-child(3) { animation-delay: 0.3s; }
.impact-card:nth-child(4) { animation-delay: 0.4s; }

/* ========================================= */
/*          Print Styles                     */
/* ========================================= */

@media print {
    .hero-buttons,
    .cta-buttons,
    .modal,
    .wave-decoration {
        display: none !important;
    }
    
    .program-section::after {
        display: none;
    }
}


/* ========================================= */
/*          Project & Curriculum Cards      */
/* ========================================= */

.project-card, .curriculum-card {
    transition: all 0.3s ease;
}

.project-card:hover, .curriculum-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    transform: translateY(-5px);
}

/* Progress bars */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.8s ease;
}

/* Badge color utilities */
.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

.bg-light-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
}

.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
}

/* Hero buttons spacing */
.hero-buttons .btn {
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Final responsive adjustments */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ========================================= */
/*            Video Player Styles            */
/* ========================================= */

/* Video Container */
.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-thumbnail img {
    transition: all 0.3s ease;
}

.video-thumbnail:hover img {
    filter: brightness(0.8);
}

/* Play Button Overlay */
.play-button-overlay {
    z-index: 3;
    pointer-events: none;
}

.play-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #4A90E2;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.play-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.play-btn i {
    margin-left: 3px; /* Slight offset for better visual alignment */
}

/* Video Player */
.video-player {
    position: relative;
}

.video-player video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.close-video-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    z-index: 10;
}

.close-video-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Video Loading State */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    z-index: 5;
}

.video-loading i {
    animation: spin 1s linear infinite;
}

/* Video Error State */
.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 5;
}

/* Responsive Video */
@media (max-width: 768px) {
    .play-btn {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .video-player video {
        max-height: 250px;
    }
    
    .close-video-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin: 5px;
    }
}

@media (max-width: 576px) {
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .video-player video {
        max-height: 200px;
    }
}

/* Animation for video transitions */
.video-fade-in {
    animation: videoFadeIn 0.5s ease-in-out;
}

.video-fade-out {
    animation: videoFadeOut 0.3s ease-in-out;
}

@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes videoFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Video controls enhancement */
.video-player video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-player video::-webkit-media-controls-play-button,
.video-player video::-webkit-media-controls-start-playback-button {
    background-color: #4A90E2;
    border-radius: 50%;
}