html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
}

/* Required CSS variables */
:root {
  --bs-navbar-padding-x: 0;
  --bs-navbar-padding-y: 0.5rem;
  --bs-navbar-color: rgba(21, 21, 21, 0.7);
  --bs-navbar-hover-color: rgba(21, 21, 21, 0.8);
  --bs-navbar-disabled-color: rgba(21, 21, 21, 0.3);
  --bs-navbar-active-color: rgba(21, 21, 21, 0.9);
  --bs-navbar-toggler-padding-y: 0.25rem;
  --bs-navbar-toggler-padding-x: 0.75rem;
  --bs-navbar-toggler-font-size: 1.25rem;
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2821, 21, 21, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  --bs-navbar-toggler-border-color: rgba(21, 21, 21, 0.1);
  --bs-navbar-toggler-border-radius: 0px;
  --bs-navbar-toggler-focus-width: 0.25rem;
  --bs-navbar-toggler-transition: box-shadow 0.15s ease-in-out;
}

.bg-light {
  background: #e6f4f1 !important;
}

/* Navbar styles */
.navbar {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Navbar toggler button */
.navbar-toggler {
  padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
  font-size: var(--bs-navbar-toggler-font-size);
  line-height: 1;
  color: var(--bs-navbar-color);
  background-color: transparent;
  border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
  border-radius: var(--bs-navbar-toggler-border-radius);
  transition: var(--bs-navbar-toggler-transition);
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Navbar toggler icon */
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: var(--bs-navbar-toggler-icon-bg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-link {
  font-family: "Poppins", sans-serif;
}

.hero-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.card-title {
  font-weight: 600;
  letter-spacing: -0.3px;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.benefit-item span {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: -0.2px;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.3px;
}

p {
  line-height: 1.7;
  letter-spacing: -0.2px;
}

.card {
  transition: transform 0.3s ease;
}

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

.bi {
  color: #001e31;
}

.list-unstyled li {
  padding-left: 1.5rem;
  position: relative;
}

.list-unstyled li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
}

.navbar {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.scrolled {
  background: linear-gradient(135deg, #f8f9fa 95%, #e9ecef 100%);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
}

.benefit-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: white;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.bg-gradient-primary {
  background: linear-gradient(45deg, #001e31, #004d7a);
}

.bg-gradient-success {
  background: linear-gradient(45deg, #2ecc71, #26c281);
}

.bg-gradient-info {
  background: linear-gradient(45deg, #0083e0, #66bfff);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon-circle::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0) 70%);
  top: -25%;
  left: -25%;
  opacity: 0;
  transition: all 0.5s ease;
}

.benefit-card:hover .icon-circle {
  animation: iconPulseAndRotate 2s ease-in-out 1 forwards;
}

.benefit-card:hover .icon-circle::before {
  opacity: 1;
  transform: rotate(360deg);
}

.benefit-card:hover .icon-circle i {
  animation: none;
  transform: rotate(-360deg);
  transition: transform 2s ease-in-out;
}

.icon-circle i {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card .card-header .icon-circle {
  height: 60px;
  width: 60px;
}

.benefit-card .card-header h3 {
  font-size: 1rem;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 8px 0;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.02);
}

.benefit-item:hover {
  background: rgba(0, 0, 0, 0.04);
  padding-left: 25px;
}

.benefit-item i {
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.benefit-item span {
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
  padding-left: 5px;
  flex: 1;
}

/* Custom colors for each card type */
.benefit-card.student-card .benefit-item i {
  color: #2ecc71;
}

.benefit-card.teacher-card .benefit-item i {
  color: #0396ff;
}

.benefit-card.admin-card .benefit-item i {
  color: #4e54c8;
}

.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 40vh;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #001e31, #004d7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out;
}

.hero-text {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #495057;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
  background: linear-gradient(45deg, #001e31, #004d7a);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, #004d7a, #001e31);
  color: white;
}

/* .hero-image {
            position: relative;
            animation: fadeInRight 1s ease-out;
        }

        .hero-image::after {
            content: '';
            position: absolute;
            top: 20px;
            right: 20px;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #001E31, #004d7a);
            border-radius: 10px;
            z-index: -1;
            opacity: 0.1;
        } */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s infinite;
}

.shape:nth-child(1) {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 80%;
  animation-delay: 1s;
}

.shape:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 40%;
  left: 60%;
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(20px, -20px) rotate(180deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.stats-container {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.navbar .nav-link {
  color: #001e31 !important;
  transition: all 0.3s ease;
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #001e31;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.navbar .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.feature-title {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.feature-title:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: 0;
  left: 25%;
  background: linear-gradient(45deg, #001e31, #004d7a);
  border-radius: 2px;
}

.feature-card,
.benefit-card {
  background: white;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover,
.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: linear-gradient(45deg, #001e31, #004d7a);
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-title {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  color: #001e31;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #001e31, #004d7a);
  border-radius: 2px;
}

.feature-card {
  background: white;
  border: none;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 30, 49, 0.03),
      rgba(0, 77, 122, 0.03));
  opacity: 0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
      rgba(0, 30, 49, 0.1),
      rgba(0, 77, 122, 0.1));
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-icon-wrapper i {
  font-size: 2rem;
  color: #001e31;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: linear-gradient(45deg, #001e31, #004d7a);
  transform: rotateY(180deg);
}

.feature-card:hover .feature-icon-wrapper i {
  color: white;
  transform: rotateY(180deg);
}

.feature-card .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #001e31;
  margin-bottom: 1rem;
}

.feature-card .card-text {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

@keyframes iconPulseAndRotate {
  from {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  50% {
    transform: scale(1.2) rotate(180deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

.full-width-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 5rem 0;
  /* Adjust padding as needed */
}

.full-width-section h2 {
  color: #001e31;
}

.full-width-section .card {
  background: white;
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-spacing {
  margin: 6rem 0;
}

.testimonial-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card .card-body {
  position: relative;
  padding: 2rem;
}

.testimonial-card .card-body:before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 4rem;
  color: rgba(0, 30, 49, 0.1);
  font-family: "Georgia", serif;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #001e31, #004d7a);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
}

.scroll-to-top i {
  color: white;
}

.btn-light {
  background-color: #f8f9fa;
  color: #001e31;
}

.btn-outline-light {
  border-color: #f8f9fa;
  color: #f8f9fa;
}

.btn-outline-light:hover {
  background-color: #f8f9fa;
  color: #001e31;
}

.image-gallery {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  /* padding: 0.1rem 0; */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.image-gallery img {
  width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  /* Prevents image dragging */
}

/* Icon Colors for Each Card */
.admin-card .icon-circle i {
  color: #001e31;
  /* Admin icon color */
}

.teacher-card .icon-circle i {
  color: #0396ff;
  /* Teacher icon color */
}

.student-card .icon-circle i {
  color: #2ecc71;
  /* Student icon color */
}

/* Fix icon sizes */
.icon-circle i {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add these styles to fix the teacher card icon */
.benefit-card.teacher-card .card-header .icon-circle {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.benefit-card.teacher-card .card-header .icon-circle i {
  font-size: 1.5rem;
  color: #0396ff;
  /* Match the gradient color */
}

/* Fix icon alignment */
.benefit-card .card-header .d-flex {
  align-items: center;
  gap: 1rem;
}

/* Ensure consistent header padding */
.benefit-card .card-header {
  padding: 1.5rem;
}

/* Add these styles to your existing CSS */
.student-portal-card {
  text-align: center;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.student-portal-card .card-title {
  margin-bottom: 1rem;
  font-weight: 600;
}

.student-portal-card .card-text {
  margin: 0 auto;
  max-width: 280px;
}

/* Center align all content in student portal section */
.student-portal {
  text-align: center;
}

.student-portal .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Styles specifically for smartphones */
@media (max-width: 768px) {
  .navbar {
    background-color: #f8f9fa;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
  }

  .hero-content {
    text-align: center;
    padding: 10px 50px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-btn {
    display: block;
    margin: auto;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }

  .feature-card {
    padding: 1rem;
    width: 80%;
    margin: auto;
    font-size: 1.1rem;
    text-align: center;
  }

  .feature-card .card-body {
    text-align: center;
  }

  .feature-card .card-text {
    font-size: 0.9rem;
    margin: 0 25px 10px;
  }

  .feature-icon-wrapper {
    margin-top: 0.7rem;
    width: 70px;
    height: 70px;
  }

  .feature-icon-wrapper i {
    font-size: 1.75rem;
  }

  /* Add spacing between feature cards in mobile view */
  .row.g-4>[class*="col-"] {
    margin-bottom: 2rem;
  }

  /* Adjust the last card to not have bottom margin */
  .row.g-4>[class*="col-"]:last-child {
    margin-bottom: 0;
  }

  .benefit-card {
    width: 75%;
    margin: auto;
  }

  .benefit-card .card-header h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  /* Updated Image Gallery styles for mobile */
  .image-gallery {
    padding: 10px;
    gap: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .image-gallery .col-md-3 {
    min-width: 75%;
    /* Make images take up most of the screen width */
    scroll-snap-align: center;
    margin-right: 5px;
  }

  .image-gallery img {
    width: 100%;
    height: 700px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    /* Maintain consistent image ratio */
  }

  /* Add visual feedback for touch scrolling */
  .image-gallery::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar on mobile */
  }

  /* Add subtle indication that gallery is scrollable */
  .image-gallery::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right,
        transparent,
        rgba(248, 249, 250, 0.8));
    pointer-events: none;
  }

  .container h2 {
    font-size: 2rem;
  }

  .container h2 span {
    font-size: 2rem;
  }

  .student-portal .card {
    margin-bottom: 1rem;
  }

  .student-portal-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .student-portal-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .student-portal-card .card-text {
    font-size: 0.9rem;
    max-width: 100%;
    margin: 0;
  }

  .student-portal .row {
    margin: 0 -0.5rem;
  }

  .student-portal .col-md-6,
  .student-portal .col-lg-4 {
    padding: 0 0.5rem;
  }

  .bg-gradient-primary {
    padding: 3rem 1rem;
    /* Reduce padding on mobile */
  }

  .bg-gradient-primary .display-4 {
    font-size: 2rem;
    /* Smaller heading on mobile */
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .bg-gradient-primary .lead {
    font-size: 1rem;
    /* Smaller subtext on mobile */
    margin-bottom: 2rem;
  }

  .bg-gradient-primary .btn {
    width: 100%;
    /* Full width buttons on mobile */
    max-width: 280px;
    /* Maximum width to maintain readability */
    margin: 0.5rem auto;
    /* Center buttons and add vertical spacing */
  }

  .bg-gradient-primary .btn-lg {
    padding: 0.75rem 1.5rem;
    /* Slightly smaller padding */
    font-size: 1rem;
    /* Smaller font size */
  }

  .bg-gradient-primary .col-md-6 {
    padding: 0 1rem;
    /* Add some horizontal padding */
  }

  footer {
    padding: 3rem 1rem;
    /* Adjust padding for mobile */
    text-align: center;
    /* Center align all content */
  }

  /* Logo and company name styling */
  footer .d-flex.align-items-center {
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  footer .fs-4 {
    font-size: 1.25rem !important;
    /* Slightly smaller company name */
  }

  /* Section headings */
  footer h5 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  /* Contact information */
  footer .bi {
    margin-right: 0.5rem;
  }

  footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  /* Copyright section */
  footer hr {
    margin: 2rem 0;
  }

  footer .text-center p {
    font-size: 0.85rem;
  }

  /* Improve spacing between footer sections */
  footer .col-md-4:not(:last-child) {
    margin-bottom: 1rem;
  }

  .container {
    padding-left: 10px;  /* Reduce left padding */
    padding-right: 10px; /* Reduce right padding */
    max-width: 100%;     /* Allow container to use full width */
  }

  /* Adjust specific sections */
  .hero-content {
    padding: 10px 15px;  /* Reduce padding in hero section */
  }

  .feature-card {
    width: 95%;          /* Increase card width */
    margin: auto;
  }

  .benefit-card {
    width: 95%;          /* Increase card width */
    margin: auto;
  }

  /* Adjust image gallery */
  .image-gallery .col-md-3 {
    min-width: 75%;      /* Make images take up more width */
  }

  .navbar {
    padding: 1.5rem 1rem;
  }

  .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    transition: height 0.3s ease;
    height: auto;
  }

  .navbar-collapse.collapsing,
  .navbar-collapse.collapse.show {
    background-color: #fff;
    padding: 10px;
  }

  .navbar .container {
    padding: 0;
  }

  /* Ensure the button is clickable */
  .navbar-toggler {
    position: relative;
    margin-right: 0.5rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}


/* Tablet styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .navbar {
    background-color: #f8f9fa;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
  }

  .hero-content {
    text-align: center;
    padding: 10px 50px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-text {
    font-size: 1.5rem;
    padding: 0 10px 0;
  }

  .hero-btn {
    display: block;
    margin: auto;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .feature-card {
    padding: 1rem;
    width: 80%;
    margin: auto;
    font-size: 1.1rem;
    text-align: center;
  }

  .feature-card .card-body {
    text-align: center;
  }

  .feature-card .card-text {
    font-size: 0.9rem;
    margin: 0 25px 10px;
  }

  .feature-icon-wrapper {
    margin-top: 0.7rem;
    width: 70px;
    height: 70px;
  }

  .feature-icon-wrapper i {
    font-size: 1.75rem;
  }

  /* Add spacing between feature cards in mobile view */
  /* .row.g-4>[class*="col-"] {
    margin-bottom: 2rem;
  } */

  /* Adjust the last card to not have bottom margin */
  /* .row.g-4>[class*="col-"]:last-child {
    margin-bottom: 0;
  } */


  .full-width-section .col-md-4 {
    width: 100%;
  }

  .benefit-card {
    width: 75%;
    margin: auto;
  }

  .benefit-card .card-header h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .benefit-card .card-header .icon-circle {
    height: 70px;
    width: 70px;
  }

  /* Updated Image Gallery styles for mobile */
  .image-gallery {
    padding: 10px;
    gap: 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .image-gallery .col-md-3 {
    min-width: 75%;
    /* Make images take up most of the screen width */
    scroll-snap-align: center;
    margin: 0;
    padding: 0;
  }

  .image-gallery img {
    /* width: 50%; */
    height: 100%;
    width: 200px;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    /* Maintain consistent image ratio */
  }

  /* Add visual feedback for touch scrolling */
  .image-gallery::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar on mobile */
  }

  /* Add subtle indication that gallery is scrollable */
  .image-gallery::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right,
        transparent,
        rgba(248, 249, 250, 0.8));
    pointer-events: none;
  }

  .container h2 {
    font-size: 2rem;
  }

  .container h2 span {
    font-size: 2rem;
  }

  .student-portal .card {
    margin-bottom: 1rem;
  }

  .student-portal-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .student-portal-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .student-portal-card .card-text {
    font-size: 0.9rem;
    max-width: 100%;
    margin: 0;
  }

  .student-portal .row {
    margin: 0 -0.5rem;
  }

  .student-portal .col-md-6,
  .student-portal .col-lg-4 {
    padding: 0 0.5rem;
  }

  .bg-gradient-primary {
    padding: 3rem 1rem;
    /* Reduce padding on mobile */
  }

  .bg-gradient-primary .display-4 {
    font-size: 2rem;
    /* Smaller heading on mobile */
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .bg-gradient-primary .lead {
    font-size: 1rem;
    /* Smaller subtext on mobile */
    margin-bottom: 2rem;
  }

  .bg-gradient-primary .btn {
    width: 100%;
    /* Full width buttons on mobile */
    max-width: 280px;
    /* Maximum width to maintain readability */
    margin: 0.5rem auto;
    /* Center buttons and add vertical spacing */
  }

  .bg-gradient-primary .btn-lg {
    padding: 0.75rem 1.5rem;
    /* Slightly smaller padding */
    font-size: 1rem;
    /* Smaller font size */
  }

  .bg-gradient-primary .col-md-6 {
    padding: 0 1rem;
    /* Add some horizontal padding */
  }

  footer {
    padding: 3rem 1rem;
    /* Adjust padding for mobile */
    text-align: center;
    /* Center align all content */
  }

  /* Logo and company name styling */
  footer .d-flex.align-items-center {
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  footer .fs-4 {
    font-size: 1.25rem !important;
    /* Slightly smaller company name */
  }

  /* Section headings */
  footer h5 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }

  /* Contact information */
  footer .bi {
    margin-right: 0.5rem;
  }

  footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  /* Copyright section */
  footer hr {
    margin: 2rem 0;
  }

  footer .text-center p {
    font-size: 0.85rem;
  }

  /* Improve spacing between footer sections */
  footer .col-md-4:not(:last-child) {
    margin-bottom: 1rem;
  }

  .container {
    padding-left: 10px;  /* Reduce left padding */
    padding-right: 10px; /* Reduce right padding */
    max-width: 100%;     /* Allow container to use full width */
  }

  /* Adjust specific sections */
  .hero-content {
    padding: 10px 15px;  /* Reduce padding in hero section */
  }

  .feature-card {
    width: 95%;          /* Increase card width */
    margin: auto;
  }

  .benefit-card {
    width: 95%;          /* Increase card width */
    margin: auto;
  }

  /* Adjust image gallery */
  .image-gallery .col-md-3 {
    min-width: 85%;      /* Make images take up more width */
  }

  .navbar {
    padding: 1.5rem 1rem;
  }

  .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
    transition: height 0.3s ease;
    height: auto;
  }

  .navbar-collapse.collapsing,
  .navbar-collapse.collapse.show {
    background-color: #fff;
    padding: 10px;
  }

  .navbar .container {
    padding: 0;
  }

  /* Ensure the button is clickable */
  .navbar-toggler {
    position: relative;
    margin-right: 0.5rem;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}


