* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
}
section[id], div[id] {
  scroll-margin-top: 150px; 
}
nav.navbar:first-of-type {
  position: sticky;
  top: 0;
  z-index: 1030;
}
#second_nav {
  position: sticky;
  top: 110px; 
  z-index: 1029;
}

/* Medium screens */
@media (max-width: 992px) {
  #second_nav {
    top: 120px; 
  }
}
/* Small screens (mobile) */
@media (max-width: 576px) {
  #second_nav {
    top: 120px;
  }
}
.navbar-nav .nav-link {
  position: relative;
  display: inline-block; 
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;   /* adjust to 0 so it hugs text */
  width: 0;
  height: 2px;
  background: #ffc107; /* Bootstrap warning color */
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}
/* .................... */
#bannerCarousel .carousel-item img {
  height: 80vh;
  object-fit: cover;
}
@media (max-width: 768px) {
  #bannerCarousel .carousel-item img {
    height: 50vh;
  }
}
/* ......................... */
#hp-about {
  margin-top: -5px;
  background: url('/assets/image/about_bg.jpg');
  position: relative;
  color: #fff;
  text-align: center;
}
.hp-overlay {
  background-color: rgba(0, 47, 95, 0.75);
  padding: 60px 20px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
}
.hp-overlay h1 {
  font-size: 36px;
  margin-bottom: 20px;
  font-style: italic;
}
.hp-overlay p {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-style: italic;
} 
.hp-icons {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hp-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid transparent;
  padding: 20px;
  border-radius: 12px;
  width: 220px;
  height: 220px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.hp-icon-card i {
  font-size: 48px;
  margin-bottom: 15px;
  color: white;
  transition: color 0.3s ease;
}
.hp-icon-card p {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.hp-icon-card:hover {
  border: 2px solid #ffd700;
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 215, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.08);
}
.hp-icon-card:hover i {
  color: #ffd700;
}
/* .......................... */
#services {
  padding: 60px 20px;
  background-color: #8b7d7dc7;
  text-align: center;
}
.services-container {
  max-width: 1200px;
  margin: 0 auto ;
}
#services h1 {
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: bolder;
  font-style: italic;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.service-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(231, 14, 14, 0.89);
}

.service-icon {
  font-size: 40px;
  background-color: #ffe4b2;
  color: #d35400;
  padding: 20px;
  border-radius: 50%;
  margin-bottom: 15px;
}
.service-card h3 {
  font-size: 22px;
  color: #222;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 16px;
  color: #555;
}
/* ..................... */
#contact_section h1 {
  font-size: 38px;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: bolder;
}
.contact-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.contact-card-header {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: white;
  padding: 20px;
}
.contact-card-header i {
  font-size: 2.5rem;
}
.contact-card-body {
  padding: 20px;
}
.contact-card-body h4 {
  font-weight: bold;
  margin-bottom: 10px;
}
.contact-card-body p {
  margin-bottom: 5px;
  color: #555;
}
/* ......................... */
.site-footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 20px 0;
  font-size: 14px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}
.footer-left,
.footer-right {
  margin: 5px 0;
}
.footer-right a {
  text-decoration: none;
  color: #ffd700;
  font-weight: 500;
}


