/* Smooth scrolling and offset for fixed header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px; /* This accounts for the fixed header height */
}

/* Ensure target elements have proper spacing */
[id] {
  scroll-margin-top: 115px;
}

/* Lazy loading optimization */
.lazy-img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-img.loaded {
  opacity: 1;
}

/* Preloader optimization */
#loading {
  z-index: 9999;
}

/* Performance: Reduce repaints and reflows */
.bd-banner-wrapper,
.bd-category-wrapper,
.bd-footer-widget {
  contain: layout style;
}


/* Marquee Styles */
.marquee-section {
  background: linear-gradient(135deg, #003B73 0%, #0074D9 100%);
  color: white;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid #FFB800;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  animation: marqueeScroll 60s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  display: inline-block;
  padding-right: 100px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.marquee-item:hover {
  color: #FFB800;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Pause marquee on hover */
.marquee-section:hover .marquee-content {
  animation-play-state: paused;
}

/* Responsive marquee */
@media (max-width: 768px) {
  .marquee-item {
    font-size: 14px;
    padding-right: 80px;
  }
}

@media (max-width: 480px) {
  .marquee-item {
    font-size: 12px;
    padding-right: 60px;
  }
}

/* Fee Structure Styles */
.fee-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 30px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: 100%;
}

.fee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-color: #003B73;
}

.fee-card.featured {
  border: 2px solid #FFD700;
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.fee-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -10px;
  left: 20px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #003B73;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.fee-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.fee-title {
  color: #003B73;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.fee-duration {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.fee-amount {
  font-size: 36px;
  font-weight: bold;
  color: #003B73;
  margin: 0;
}

.fee-currency {
  font-size: 18px;
  vertical-align: top;
}

.fee-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.fee-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fee-features li:last-child {
  border-bottom: none;
}

.fee-features .feature-name {
  color: #333;
  font-weight: 500;
}

.fee-features .feature-price {
  color: #003B73;
  font-weight: bold;
}

.payment-methods {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 25px;
  margin: 30px 0;
}

.method-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  margin: 10px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003B73, #0074D9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-right: 15px;
}

.installment-table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.installment-table table {
  width: 100%;
  margin: 0;
}

.installment-table th {
  background: linear-gradient(135deg, #003B73, #0074D9);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 600;
}

.installment-table td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.installment-table tbody tr:hover {
  background: #f8f9fa;
}

.discount-badge {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

/* Fee Structure Responsive Styles */
@media (max-width: 992px) {
  .fee-card {
    margin-bottom: 25px;
  }
  
  .bd-section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .fee-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .fee-amount {
    font-size: 28px;
  }
  
  .fee-title {
    font-size: 20px;
  }
  
  .method-item {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }
  
  .method-icon {
    margin-right: 0;
    margin-bottom: 10px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .installment-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .installment-table table {
    min-width: 600px;
  }
  
  .installment-table th,
  .installment-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  
  .bd-breadcrumb-content h1 {
    font-size: 28px;
  }
  
  .bd-section-title {
    font-size: 24px;
  }
  
  .payment-methods {
    padding: 20px;
  }
  
  .fee-features {
    margin: 15px 0;
  }
  
  .fee-features li {
    padding: 6px 0;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .fee-features .feature-price {
    margin-top: 5px;
  }
}

@media (max-width: 576px) {
  .fee-card {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .fee-amount {
    font-size: 24px;
  }
  
  .fee-title {
    font-size: 18px;
  }
  
  .fee-currency {
    font-size: 14px;
  }
  
  .bd-breadcrumb-content h1 {
    font-size: 24px;
  }
  
  .bd-section-title {
    font-size: 20px;
  }
  
  .method-item {
    padding: 10px;
    margin: 8px 0;
  }
  
  .method-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .payment-methods {
    padding: 15px;
  }
  
  .installment-table th,
  .installment-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .discount-badge {
    font-size: 10px;
    padding: 3px 8px;
  }
  
  .fee-features li {
    padding: 5px 0;
  }
  
  .bd-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .alert {
    font-size: 14px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .fee-card {
    padding: 12px;
  }
  
  .fee-amount {
    font-size: 20px;
  }
  
  .bd-breadcrumb-content h1 {
    font-size: 20px;
  }
  
  .bd-section-title {
    font-size: 18px;
  }
  
  .fee-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  
  .method-item h6 {
    font-size: 14px;
  }
  
  .method-item p {
    font-size: 12px;
  }
  
  .installment-table {
    font-size: 11px;
  }
  
  .fee-card.featured::before {
    font-size: 10px;
    padding: 3px 10px;
  }
}

@media (max-width: 375px) {
  .fee-card {
    padding: 10px;
  }
  
  .fee-amount {
    font-size: 18px;
  }
  
  .fee-title {
    font-size: 16px;
  }
  
  .bd-breadcrumb-content h1 {
    font-size: 18px;
  }
  
  .bd-section-title {
    font-size: 16px;
  }
  
  .bd-btn {
    padding: 8px 15px;
    font-size: 12px;
  }
  
  .method-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .installment-table th,
  .installment-table td {
    padding: 6px 4px;
    font-size: 10px;
  }
}

/* Partner Institutes Styles */
@media (max-width: 767px) {
  .bd-process-step-item {
    padding: 20px !important;
    margin-bottom: 20px !important;
  }
  
  .bd-process-step-item .bd-process-number span {
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }
  
  .bd-process-step-item .bd-process-icon i {
    font-size: 36px !important;
  }
  
  .bd-feature-item {
    padding: 30px 20px !important;
    margin-bottom: 20px;
  }
  
  .bd-feature-icon i {
    font-size: 48px !important;
  }
  
  .bd-breadcrumb-content h1 {
    font-size: 28px !important;
  }
  
  .bd-section-title {
    font-size: 24px !important;
  }
  
  .bd-contact-buttons .bd-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 575px) {
  .bd-process-step-item {
    padding: 15px !important;
  }
  
  .bd-feature-item {
    padding: 25px 15px !important;
  }
  
  .bd-breadcrumb-content h1 {
    font-size: 24px !important;
  }
  
  .bd-section-title {
    font-size: 22px !important;
  }
}
