/*
* SeaTruf - Custom CSS Styles
* A modern maritime services website
*/

/* ===== GENERAL STYLES ===== */
:root {
  --primary-color: #0a3d62;
  --secondary-color: #3c6382;
  --accent-color: #f26502;
  --light-color: #f1f2f6;
  --dark-color: #1e272e;
  --white-color: #ffffff;
  --transition: all 0.3s ease;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.section-padding {
  padding: 40px 0;
}

.section-title {
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title .subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 10px 0;
  transition: var(--transition);
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: #0a3d62;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  position: fixed;
}

.navbar.scrolled .navbar-brand img.logo {
  height: 45px;
  width: auto;
}

.navbar.scrolled .nav-link {
  color: var(--white-color);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: #f26502;
}

.navbar.scrolled .dropdown-menu {
  background-color: var(--primary-color);
  border: none;
}

.navbar-brand img.logo {
  height: 80px;
  transition: var(--transition);
}

.navbar-nav .nav-link {
  color: var(--white-color);
  font-weight: 500;
  padding: 10px 25px;
  margin-right: 10px;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #f26502;
}

/* Regular nav links (excluding dropdown toggles) */
.navbar-nav .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 5px;
  left: 25px;
  transition: var(--transition);
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after,
.navbar-nav .nav-link:not(.dropdown-toggle).active::after {
  width: calc(100% - 50px);
}

.dropdown-menu {
  border: none;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color);
  color: var(--white-color);
  margin-top: 5px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
}

/* Create a bridge area to prevent dropdown from closing */
.dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 5px;
  background: transparent;
  z-index: 999;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  padding: 10px 20px;
  transition: var(--transition);
  color: var(--white-color);
}

.dropdown-item:hover {
  background-color: #003860dd;
  color: var(--white-color);
}

.navbar.scrolled .dropdown-menu {
  background-color: var(--primary-color);
}

.navbar.scrolled .dropdown-item {
  color: var(--white-color);
}

.navbar.scrolled .dropdown-item:hover {
  background-color: #003860dd;
  color: var(--white-color);
}

/* ===== DROPDOWN STYLES ===== */
/* Remove default Bootstrap arrow */
.dropdown-toggle::after {
  display: none;
}

/* Custom dropdown structure */
.dropdown-toggle {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.dropdown-toggle:hover {
  text-decoration: none;
}

.dropdown-text {
  position: relative;
}

.dropdown-text::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.dropdown-toggle:hover .dropdown-text::after,
.dropdown-toggle.active .dropdown-text::after {
  width: 100%;
}

.dropdown-arrow {
  display: inline-block;
  margin-left: 0.5em;
  vertical-align: 0.125em;
  content: "";
  border-top: 0.35em solid;
  border-right: 0.35em solid transparent;
  border-bottom: 0;
  border-left: 0.35em solid transparent;
  transition: transform 0.3s ease;
  border-top-color: var(--white-color);
}

.dropdown:hover .dropdown-arrow,
.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.navbar.scrolled .dropdown-arrow {
  border-top-color: var(--white-color);
}

.navbar .dropdown-arrow {
  border-top-color: var(--white-color);
}

/* ===== HERO SECTION ===== */
#hero {
  width: 100%;
  height: 100vh;
  position: relative;
  padding: 0;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Fallback background for when video is not available */
  background: linear-gradient(rgba(0, 42, 71, 0.8), rgba(10, 61, 98, 0.8)),
    url("../assets/images/Hero.png") center center;
  background-size: cover;
  background-attachment: fixed;
}

/* Hide background image when video is present */
#hero.video-bg {
  background-image: none;
  background: none;
}

/* Video Background Styles */
#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

/* Overlay for video background */
#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 61, 98, 0.6);
  z-index: 2;
  pointer-events: none;
}

/* Ensure content is above video and overlay */
#hero .container {
  position: relative;
  z-index: 10;
}

#hero h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
}

#hero h1.animate__fadeInUp {
  opacity: 1;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 30px;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
}

.hero-subtitle.animate__fadeInUp {
  opacity: 1;
}

.hero-btn {
  margin-top: 20px;
  opacity: 0;
}

.hero-btn.animate__fadeInUp {
  opacity: 1;
}

.btn-learn-more {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid var(--white-color);
  color: var(--white-color);
  font-weight: 500;
  transition: var(--transition);
  margin: 0 10px;
  border-radius: 50px;
  width: 180px;
  text-align: center;
}

.btn-learn-more:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-services {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white-color);
}

.btn-services:hover {
  background-color: var(--white-color);
  border-color: var(--white-color);
  color: var(--accent-color);
}

/* ===== ABOUT PREVIEW SECTION ===== */
#about-preview h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.read-more {
  display: inline-block;
  font-weight: 500;
  margin-top: 20px;
  position: relative;
}

.read-more::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.read-more:hover::after {
  width: 100%;
}

.about-box {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 40px;
  border-radius: 5px;
  height: 100%;
}

.about-box h4 {
  margin-bottom: 20px;
}

/* ===== SERVICES PREVIEW SECTION ===== */
.explore-more {
  display: inline-block;
  font-weight: 500;
  margin-top: 20px;
  position: relative;
}

.explore-more::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.explore-more:hover::after {
  width: 100%;
}

.service-card {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.service-card .icon-box {
  margin-bottom: 20px;
}

.service-card .icon-box img {
  height: 60px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card h3 a {
  color: var(--primary-color);
}

.service-card h3 a:hover {
  color: var(--accent-color);
}

.service-link {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 24px;
  color: var(--accent-color);
}

/* ===== CTA SECTION ===== */
#cta {
  background: linear-gradient(rgba(10, 61, 98, 0.9), rgba(10, 61, 98, 0.9)),
    url("../assets/images/cta-bg.jpg") center center;
  background-size: cover;
  color: var(--white-color);
}

.btn-contact {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--white-color);
  border: 1px solid var(--white-color);
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 20px;
  border-radius: 30px;
  transition: var(--transition);
}

.btn-contact:hover {
  background-color: transparent;
  color: var(--white-color);
  border: 1px solid var(--white-color);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 70px 0 30px;
}

.footer-logo {
  height: 90px;
  width: auto;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-color);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white-color);
  border: 1px solid var(--white-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.social-links .contact {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.social-links .contact:hover {
  color: var(--white-color);
  background-color: var(--primary-color);
}

.copyright {
  margin-top: 20px;
  font-size: 14px;
}

/* ===== PAGE HEADER ===== */
#page-header {
  width: 100%;
  height: 60vh;
  background: linear-gradient(rgba(10, 61, 98, 0.6), rgba(10, 61, 98, 0.8)),
    url("../assets/images/page-header-bg.jpg") center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding: 0;
  color: var(--white-color);
  margin-top: 0;
  display: flex;
  align-items: center;
}

.page-header-team {
  width: 100%;
  height: 60vh;
  background: linear-gradient(rgba(10, 61, 98, 0.6), rgba(10, 61, 98, 0.8)),
    url("../assets/images/team-header.jpg") center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  padding: 0;
  color: var(--white-color);
  margin-top: 0;
  display: flex;
  align-items: center;
}

#page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
}

#page-header h1.animate__fadeInUp {
  opacity: 1;
}

/* ===== ABOUT PAGE ===== */
#about-content .lead {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.value-card {
  background-color: var(--white-color);
  border: 1px solid var(--primary-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: var(--transition);
}

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

.value-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* ===== TEAM PAGE ===== */
.team-member-container {
  text-align: center;
  margin-bottom: 30px;
}

.team-member-image {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.team-member-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.team-member-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member {
  background-color: var(--white-color);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member-info {
  padding: 20px;
}

.team-member-info h3 {
  font-size: 22px;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-member-info p {
  margin-bottom: 5px;
}

.team-member-info .team-position {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 16px;
  margin-bottom: 15px;
}

.team-member-info .team-description {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.team-member-info .contact-info {
  margin-top: 15px;
}

.team-member-info .contact-info a {
  display: block;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.team-member-info .contact-info a:hover {
  color: var(--accent-color);
}

/* ===== SERVICES GRID ===== */
.service-card {
  background: var(--white-color);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 1px solid rgba(10, 61, 98, 0.1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(10, 61, 98, 0.15);
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: #0a3d62;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.service-icon i {
  font-size: 32px;
  color: var(--white-color);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotateY(360deg);
  background: var(--accent-color);
}

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

.service-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.service-card:hover .service-content h3 {
  color: var(--accent-color);
}

.service-content p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 15px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.service-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.service-link:hover::after {
  width: 100%;
}

.service-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.service-link i {
  transition: all 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Mobile responsiveness for service cards */
@media (max-width: 768px) {
  .service-card {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }

  .service-icon i {
    font-size: 28px;
  }

  .service-content h3 {
    font-size: 22px;
  }
}

/* ===== CONTACT PAGE ===== */
/* Country Information Section */
#country-info {
  background-color: #fff;
}

.country-info-card {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 10px;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); */
  height: 100%;
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.country-info-card:hover {
  /* transform: translateY(-5px); */
  /* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); */
}

.country-info-card h3 {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-weight: 600;
}

.country-info-card h5 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--primary-color);
  font-weight: 600;
}

.country-info-card p {
  margin-bottom: 0;
  color: var(--dark-color);
  line-height: 1.6;
}

.country-info-card i {
  color: var(--accent-color);
  font-size: 18px;
  width: 20px;
}

.country-details .d-flex {
  padding: 15px 0;
  border-bottom: 1px solid #f1f1f1;
}

.country-details .d-flex:last-child {
  border-bottom: none;
}

.country-image {
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 10px;
}

.country-image img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
  /* transition: var(--transition); */
  max-width: 100%;
  display: block;
  background-color: #fff;
}

.country-image img:hover {
  /* transform: scale(1.02); */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
}

/* Specific styling for country office images */
.country-office-img {
  width: 100% !important;
  height: 400px !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 10px !important;
  background-color: #f8f9fa !important;
}

/* Container to ensure proper image containment */
.country-image {
  border-radius: 10px;
  height: 400px;
  position: relative;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); */
}

.contact-info-box {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: var(--transition);
  margin-bottom: 30px;
}

.contact-info-box:hover {
  /* transform: translateY(-10px); */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.contact-info-box h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-control {
  height: 50px;
  border: 1px solid var(--primary-color) !important;
  border-radius: 7px;
  margin-bottom: 20px;
  background-color: var(--white-color);
  color: var(--dark-color);
  font-size: 14px;
  padding: 12px 15px;
}

.contact-form select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%230a3d62' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: 40px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--primary-color) !important;
}

/* Additional specific targeting for select element */
.contact-form #subject,
.contact-form select[name="subject"] {
  border: 1px solid var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.contact-form select.form-control option {
  background-color: var(--white-color);
  color: var(--dark-color);
  padding: 10px;
}

.contact-form select.form-control option:hover,
.contact-form select.form-control option:focus,
.contact-form select.form-control option:checked {
  background-color: var(--primary-color) !important;
  color: var(--white-color) !important;
}

/* Additional styling for better cross-browser support */
.contact-form select.form-control option:hover {
  background: var(--primary-color) !important;
}

.contact-form select.form-control:focus option:hover {
  background-color: var(--primary-color) !important;
  color: var(--white-color) !important;
}

.contact-form select.form-control:hover {
  border-color: var(--primary-color);
}

.contact-form textarea.form-control {
  height: 150px;
  resize: vertical;
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
  outline: none;
}

.contact-form .form-control::placeholder {
  color: #999;
  font-size: 14px;
}

.contact-form .btn-submit {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.contact-form .btn-submit:hover {
  background-color: var(--accent-color);
}

.contact-form .btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Form validation styles */
.contact-form .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-form .invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.contact-form .form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.contact-form .valid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #28a745;
}

.contact-form .form-control.is-valid ~ .valid-feedback {
  display: block;
}

/* Alert messages */
.alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Button spinner animation */
.btn-spinner .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* International Telephone Input Styling */
.iti {
  width: 100%;
  margin-bottom: 20px;
}

.iti__flag-container {
  border-right: 1px solid #e1e1e1;
}

.iti__selected-flag {
  padding: 12px 15px;
  background-color: var(--white-color);
  border: none;
  height: 50px;
  display: flex;
  align-items: center;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
  background-color: #f8f9fa;
}

.iti__country-list {
  border: 1px solid #e1e1e1;
  border-radius: 7px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1050;
}

.iti__country {
  padding: 8px 15px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
  transition: var(--transition);
}

.iti__country:hover,
.iti__country.iti__highlight {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.iti__country-name {
  margin-left: 10px;
  font-size: 14px;
}

.iti__dial-code {
  color: #666;
  font-size: 14px;
}

.iti__country:hover .iti__dial-code,
.iti__country.iti__highlight .iti__dial-code {
  color: var(--white-color);
}

.iti input[type="tel"] {
  height: 50px;
  border: 1px solid #e1e1e1;
  border-radius: 7px;
  background-color: var(--white-color);
  color: var(--dark-color);
  font-size: 14px;
  padding: 12px 15px;
  padding-left: 60px;
  width: 100%;
  transition: var(--transition);
}

.iti input[type="tel"]:focus {
  box-shadow: none;
  border-color: var(--primary-color);
  outline: none;
}

.iti input[type="tel"].is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.iti input[type="tel"].is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.iti input[type="tel"]::placeholder {
  color: #999;
  font-size: 14px;
}

/* Fix for dropdown arrow */
.iti__arrow {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--dark-color);
  margin-left: 5px;
}

.iti__selected-flag:hover .iti__arrow {
  border-top-color: var(--primary-color);
}

.map-iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ===== SERVICES PAGE ===== */
.service-detail {
  margin-bottom: 80px;
}

.service-detail:last-child {
  margin-bottom: 0;
}

.service-detail h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-detail .icon-box {
  margin-bottom: 20px;
}

.service-detail .icon-box img {
  height: 80px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
  .navbar {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
  }

  .navbar.scrolled {
    background-color: var(--primary-color);
    padding: 8px 0;
  }

  .navbar-brand img.logo {
    height: 60px;
  }

  .navbar.scrolled .navbar-brand img.logo {
    height: 40px;
  }

  .navbar-collapse {
    background-color: var(--primary-color);
    opacity: 1;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
  }

  .navbar.scrolled .navbar-collapse {
    background-color: var(--primary-color);
    opacity: 1;
  }

  .navbar-nav .nav-link {
    color: var(--white-color);
    padding: 8px 20px;
    margin-right: 10px;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: #f26502;
  }

  .navbar.scrolled .navbar-nav .nav-link {
    color: var(--white-color);
  }

  .navbar.scrolled .navbar-nav .nav-link:hover,
  .navbar.scrolled .navbar-nav .nav-link.active {
    color: #8ecaff;
  }

  .navbar.scrolled .dropdown-arrow {
    border-top-color: var(--white-color);
  }

  .navbar-toggler {
    border-color: var(--white-color);
    padding: 4px 8px;
  }

  .navbar.scrolled .navbar-toggler {
    border-color: var(--primary-color);
  }

  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }

  .navbar.scrolled .navbar-toggler-icon {
    filter: none;
  }

  #hero h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .btn-learn-more {
    padding: 12px 25px;
    margin: 5px;
  }

  #page-header h1 {
    font-size: 36px;
  }

  .section-padding {
    padding: 70px 0;
  }

  .team-member-image img {
    width: 200px;
    height: 200px;
  }

  /* Mobile dropdown behavior */
  .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu .dropdown-item {
    padding: 8px 30px;
    color: var(--white-color);
  }

  .navbar.scrolled .dropdown-menu .dropdown-item {
    color: var(--white-color);
  }

  .dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
  }
}

@media (max-width: 767px) {
  #hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-learn-more {
    margin: 5px 0;
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  #page-header h1 {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .about-box {
    margin-top: 30px;
  }

  .service-detail {
    margin-bottom: 50px;
  }

  /* Country Information Responsive */
  .country-info-card {
    padding: 25px;
    margin-bottom: 30px;
  }

  .country-info-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .country-image {
    height: 250px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
  }

  .country-image img,
  .country-office-img {
    height: 250px !important;
    object-fit: contain !important;
  }

  .country-details .d-flex {
    padding: 10px 0;
  }
}
