/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

body.loading {
  overflow: hidden;
}

body:not(.loading) .loading-screen {
  opacity: 0;
  pointer-events: none;
}

.loading {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
  color: inherit;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0e7490;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  width: 120px;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { 
  animation-delay: 0s; 
}
.dot:nth-child(2) { 
  animation-delay: 0.2s; 
}
.dot:nth-child(3) { 
  animation-delay: 0.4s; 
}

@keyframes bounce {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-15px); 
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
  }
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background-color: rgba(14, 116, 144, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  transition: all 0.3s ease;
  height: 50px;
}

.navbar.scrolled .navbar-brand img {
  height: 40px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: white;
}

.nav-link:hover, 
.nav-link.active {
  color: #f59e0b;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #0e7490;
  color: white;
}

.btn-primary:hover {
  background-color: #155e75;
}

.btn-outline-light {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline-light:hover {
  background-color: white;
  color: #0e7490;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/mathema-bg.webp') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  margin-top: 56px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(14, 116, 144, 0.8), rgba(14, 116, 144, 0.4));
  z-index: 0;
}

.hero-logo {
  max-width: 150px;
  margin-bottom: 2rem;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  z-index: 10;
}

/* Section Styling */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-subtitle {
  display: inline-block;
  color: #0e7490;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 50px;
  height: 4px;
  background-color: #0e7490;
  border-radius: 2px;
  transform: translateX(-50%);
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.bg-primary {
  background-color: #0e7490;
}

.bg-success {
  background-color: #28a745;
}

.bg-info {
  background-color: #17a2b8;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Category Cards */
.category-card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h3 {
  color: #0e7490;
  margin-bottom: 0.5rem;
}

.category-card p {
  color: #64748b;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f59e0b;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 600px;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* Carousel Styles */
#policyCarousel {
  height: 500px; /* Adjust height as needed */
  overflow: hidden;
}

#policyCarousel .carousel-item {
  height: 100%;
  background-size: cover;
  background-position: center;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-control-prev, .carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 2.5rem;
  height: 2.5rem;
}