:root {
    --primary-color: #0056b3;
    --secondary-color: #00a0e3;
    --accent-color: #ffd700;
}

body {
    font-family: 'Arial', sans-serif;
}

.navbar {
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.navbar-scrolled {
    background-color: rgba(0, 86, 179, 0.9);
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    color: white !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 160, 227, 0.8)), url('https://southsankrailhighschool.org/sourav/assets/img/school.jpeg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* .testimonial {
    background-color: #f8f9fa;
} */

footer {
    background-color: var(--primary-color);
    color: white;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.birthday-today, .noticeboard {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.quick-links {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
}

.quick-links a {
    color: white;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--accent-color);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}


/* //testimonial------------- */

.testimonial-carousel .testimonial-item {
    padding: 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.testimonial-carousel .testimonial-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-carousel .testimonial-text {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
}

.testimonial-carousel .testimonial-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial-carousel .testimonial-item h5 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.testimonial-carousel .testimonial-item p {
    font-size: 14px;
    color: #777;
}


    /* About Section Styles */
#about {
    background-color: #f8f9fa; /* Light background for the About section */
    padding-top: 80px; /* Top padding to separate from any other section */
    padding-bottom: 80px; /* Bottom padding for spacing */
}

#about .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
    text-transform: uppercase;
    border-bottom: 3px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

#about h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    text-align: justify;
}

/* Image section style */
#about .col-lg-6 img {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#about .col-lg-6 img:hover {
    transform: scale(1.05); /* Add zoom effect on hover */
}

/* Button styling */
#about .btn-primary {
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

#about .btn-primary:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 991px) {
    #about h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    #about .col-lg-6 {
        margin-bottom: 30px;
    }

    #about .col-lg-6 img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }
}


/* Ensure all cards have equal height using Flexbox */
.service-item {
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    height: 100%; /* Make sure the card takes up the full height of its parent */
}

.service-item .p-4 {
    flex-grow: 1; /* Make sure content can grow to take available space */
}

.service-item:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    border-color: #007bff;
}

.service-item i {
    color: #007bff;
    transition: all 0.3s ease-in-out;
}

.service-item:hover i {
    color: #0056b3;
}

.service-item h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.service-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Adjust for smaller screens */
@media (max-width: 991px) {
    .service-item {
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .service-item {
        padding: 10px;
    }
}

/* Ensure owl-nav is positioned correctly */
.owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
  }
  
  /* Style for both prev and next buttons */
  .owl-prev, .owl-next {
    background-color: rgba(0, 0, 0, 0.7); /* Dark background with more opacity */
    color: #fff; /* White text for contrast */
    border: none;
    padding: 15px 25px; /* Larger padding to make buttons bigger */
    border-radius: 50%; /* Round buttons */
    font-size: 30px; /* Increase the font size of the arrow icons */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    outline: none; /* Remove outline */
  }
  
  /* Adjust left/right positioning of the buttons */
  .owl-prev {
    left: 20px;
  }
  
  .owl-next {
    right: 20px;
  }
  
  /* Hover effects to make buttons more interactive */
  .owl-prev:hover, .owl-next:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Darker background on hover */
    transform: scale(1.2); /* Enlarge the button slightly on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Add shadow on hover */
  }
  
  /* Icon size adjustments */
  .owl-prev span, .owl-next span {
    font-size: 36px; /* Larger icons */
    display: inline-block;
  }
  
  /* Icon enlargement on hover */
  .owl-prev:hover span, .owl-next:hover span {
    font-size: 40px; /* Further enlarge the icon on hover */
  }
  
  /* Add some background gradient to the carousel container */
  .owl-carousel {
    /* background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)); */
    border-radius: 10px;
    padding: 10px;
  }
  


/* Style for Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px; /* Distance from the bottom */
    right: 20px; /* Distance from the right */
    background-color: #007bff; /* Button color */
    color: white; /* Text color */
    border: none;
    padding: 15px;
    font-size: 20px; /* Font size */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9999; /* High z-index to ensure it appears on top */
  }
  
  /* Hover effect */
  .scroll-to-top-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* When visible, make the button fully opaque */
  .scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
  }
  
  /* Mobile-specific adjustments (ensure visibility and accessibility) */
  @media (max-width: 767px) {
    .scroll-to-top-btn {
      padding: 12px;
      font-size: 18px;
      bottom: 15px; /* Slightly adjust the bottom position */
      right: 15px;  /* Slightly adjust the right position */
    }
  }

  .allbtn{
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    padding-right: 3rem !important;
    padding-left: 3rem !important;
  }

  .bng{
        font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
  }

  /* Teacher Card Container */
.teacher-card .team-item {
    height: 70%; /* Allow the card to expand with content */
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
    padding: 10px; /* Padding for the card */
    background-image:url('../img/bgTeacher.jpg');
  
}

.teacher-card .team-item:hover {
    transform: translateY(-10px); /* Slight upward movement on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Increased shadow effect on hover */
}

/* For Image Container */
.teacher-card .overflow-hidden {
    position: relative;
    overflow: hidden;
    height: 300px; /* Fixed height (more than width) */
    margin-bottom: 20px; /* Spacing between image and text */
    border-radius: 10px; /* Optional: rounded corners */
}

/* Ensuring the image is displayed properly */
.teacher-card .teacher-img {
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    object-fit: scale-down; 
    /* Ensure the image covers the container 
    transition: transform 0.5s ease-in-out; /* Smooth zoom-in effect on hover */
    border-radius:10px;
}

/* Hover Effect on Image */
.teacher-card .overflow-hidden:hover .teacher-img {
    transform: scale(1.1); /* Zoom-in effect on hover */
}

/* Text Center Styling */
.teacher-card .text-center {
    padding: 20px;
    background-color: #fff; /* White background for the text area */
    border-radius: 10px; /* Optional: rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for text area */
    text-align: center;
}

.teacher-card .text-center h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.teacher-card .text-center small {
    font-size: 1rem;
    color: #777;
}

/* Spacing and Layout Adjustments */
.heading_h4 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}


.page-header {
    margin-top: 20px;
    background: linear-gradient(rgba(24, 29, 56, .7), rgba(24, 29, 56, .7)), url(../img/heading_bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.notice_top {
  background: #03045e;
  padding: 5px 0;
  color: #fff;
  text-decoration:none;
  pointer:cursor;
}
.notice_top a {
  color: #fff !important;
  margin: 0 50px;
    text-decoration:none;
}
