html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== LOGO STYLING ===== */
.navbar-brand-with-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 !important;
  margin-right: 20px;
}

.navbar-logo {
  height: 45px;
  width: auto;
  max-width: 45px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-text {
  font-weight: 700;
  font-size: 18px;
  color: #333;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.navbar-brand-with-logo:hover .navbar-text {
  color: #667eea;
  transition: color 0.3s ease;
}

/* ===== CAROUSEL STYLING ===== */
.carousel {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 2rem;
}

.carousel-inner {
  border-radius: 0;
}

.carousel-item {
  position: relative;
  height: 600px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 8px;
  padding: 20px !important;
}

.carousel-caption h5 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.carousel-caption p {
  font-size: 18px;
  color: #e0e0e0;
  margin: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 70px;
  opacity: 0.6;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
}

.carousel-indicators button.active {
  background-color: #fff;
  width: 18px;
  height: 18px;
}

@media (max-width: 1200px) {
  .carousel-item {
    height: 500px;
  }

  .carousel-caption h5 {
    font-size: 28px;
  }

  .carousel-caption p {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .carousel-item {
    height: 350px;
  }

  .carousel-caption {
    display: none;
  }

  .carousel-caption.d-md-block {
    display: none !important;
  }

  .carousel-caption h5 {
    font-size: 20px;
  }

  .carousel-caption p {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .carousel-item {
    height: 250px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
  }
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.welcome-section h1 {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== FEATURE CARDS ===== */
.feature-card {
  background: #fff;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card.highlight-card {
  border: 2px solid #ffc107;
}

.feature-card.highlight-card:hover {
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.feature-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover .image-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 40px;
  color: #667eea;
  transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
  color: #764ba2;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== COMMITMENT SECTION ===== */
.commitment-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.commitment-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.commitment-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.commitment-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.commitment-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.commitment-icon {
  font-size: 48px;
  color: #ffd700;
  transition: transform 0.3s ease;
}

.commitment-card:hover .commitment-icon {
  transform: scale(1.1);
}

/* ===== STATISTICS SECTION ===== */
.statistics-section {
  background: #f8f9fa;
}

.stat-item {
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 42px;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-section .btn {
  transition: all 0.3s ease;
}

.cta-section .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== SEARCH SECTION STYLING ===== */
.search-section {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-section h2 {
  font-size: 2.5rem;
  letter-spacing: 0.5px;
}

.search-section .input-group-text {
  color: #667eea;
  border-radius: 8px 0 0 8px;
}

.search-section .form-control {
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #fff;
}

.search-section .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  outline: none;
}

.search-section .form-control::placeholder {
  color: #bbb;
  font-weight: 500;
}

.search-section .input-group-lg .input-group-text {
  font-size: 1.25rem;
  padding: 12px 16px;
}

.search-section .btn-light {
  background-color: #fff;
  color: #667eea;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.search-section .btn-light:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .search-section h2 {
    font-size: 1.8rem;
  }

  .search-section .input-group-lg {
    font-size: 0.9rem;
  }

  .search-section .form-control::placeholder {
    font-size: 0.9rem;
  }
}

/* ===== NEWS CARDS STYLING ===== */
.news-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.news-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f0f0f0;
}

.news-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image-wrapper img {
  transform: scale(1.05);
}

.news-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  color: #fff;
}

.news-card .card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333;
}

.news-card .card-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.news-card .btn {
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.news-card .btn-primary {
  background-color: #667eea;
  border-color: #667eea;
}

.news-card .btn-primary:hover {
  background-color: #5568d3;
  border-color: #5568d3;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .news-image-wrapper {
    height: 180px;
  }

  .news-card .card-title {
    font-size: 1rem;
  }

  .news-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

/* ===== FEATURE CARDS STYLING ===== */
.feature-card {
  animation: fadeInUp 0.6s ease;
}

/* ===== NEWS LIST ITEMS STYLING ===== */
.news-list-item,
.announcement-list-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.news-list-item:hover,
.announcement-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
  transform: translateY(-2px);
}

.news-list-item img,
.announcement-list-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.news-list-item h6,
.announcement-list-item h6 {
  font-size: 1rem;
  line-height: 1.3;
  color: #333;
  margin-bottom: 8px !important;
}

.news-list-item .badge,
.announcement-list-item .badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  font-weight: 600;
}

.news-list-item .text-muted,
.announcement-list-item .text-muted {
  font-size: 0.85rem;
}

.news-list-item .btn-primary,
.announcement-list-item .btn-primary {
  background-color: #667eea;
  border-color: #667eea;
  padding: 4px 12px;
  font-size: 0.85rem;
}

.news-list-item .btn-primary:hover,
.announcement-list-item .btn-primary:hover {
  background-color: #5568d3;
  border-color: #5568d3;
  text-decoration: none;
}

/* Column headers styling */
.col-lg-6 h4 {
  border-bottom: 3px solid;
  padding-bottom: 12px;
  font-size: 1.25rem;
}

.col-lg-6:first-child h4 {
  border-color: #0d6efd;
  color: #0d6efd;
}

.col-lg-6:last-child h4 {
  border-color: #198754;
  color: #198754;
}

@media (max-width: 768px) {
  .news-list-item,
  .announcement-list-item {
    padding: 12px;
  }

  .news-list-item img,
  .announcement-list-item img {
    height: 100px;
  }

  .news-list-item h6,
  .announcement-list-item h6 {
    font-size: 0.95rem;
  }

  .col-md-4,
  .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .news-list-item img,
  .announcement-list-item img {
    margin-bottom: 10px;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-white-50 {
  color: rgba(255, 255, 255, 0.7);
}

.bg-opacity-50 {
  opacity: 0.5;
}