:root {
  --primary-color: #262769; /* Primary Color (Blue) */
  --secondary-color: #302F70; /* Secondary Color (Darker Blue) */
  --accent-color: #38397E; /* Accent Color (Lighter Blue) */
  --background-color: #FBFDFF; /* Background Color */
  --text-color: #323480; /* Text Color (Dark) */
  --white: #ffffff; /* White */
}

/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: black;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header styles */
.header {
  background-color: var(--white);
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navbar styles */
.navbar {
  padding: 1rem 0;
  background-color: var(--background-color);
}

.navbar-brand img {
  width: 150px;
  height: 50px;
}

.navbar-nav .nav-link {
  margin-right: 1rem;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  color: var(--primary-color);
}

.navbar-nav .dropdown-menu {
  margin-top: 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.navbar-nav .dropdown-item {
  white-space: normal;
  padding: 0.75rem 1.5rem;
}

.navbar-nav .dropdown-menu.show {
  display: block;
  opacity: 1;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
}

/* Rounded hover effect */
.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
  transition: color 0.3s, background-color 0.3s; /* Smooth transition over 0.3 seconds */
  border-radius: 10px; /* Add rounded corners */
  color: black; /* Set default text color */
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-item:hover {
  color: white !important; /* Text color becomes white */
  background-color: var(--accent-color); /* Background color changes */
}

/* Fix dropdown-submenu alignment */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 1px;
  width: 100%;
  height: 100%;
}

.slideshow-container {
  width: 100%;
  height: 100%;
  display: flex;
  animation: imageFadeInOut 10s infinite;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
  width: 100%;
}

.hero h1 {
  font-size: 55px;
  margin-bottom: 20px;
  color: var(--white);
  animation: textFadeIn 2s ease-out;
}

.hero p {
  font-size: 28px;
  margin-bottom: 40px;
  color: var(--white);
  animation: textSlideUp 2s ease-out;
}

.btn {
  display: inline-block;
  background-color: var(--background-color);
  color: var(--primary-color);
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

/* Keyframe animation for slideshow */
@keyframes imageFadeInOut {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Keyframe animation for text fade-in */
@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keyframe animation for text slide-up */
@keyframes textSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.company-info {
  padding: 3%;
  background-color: var(--white);
}

.company-info .auto-container {
  max-width: 1200px;
  margin: 0 auto;
}

.company-info .sec-title {
  margin-bottom: 10px;
}

.company-info .text p {
  margin-bottom: 12px;
  text-align: justify;
}

.company-info .text h3,
.company-info .text h2 {
  color: var(--primary-color);
}

.company-info .graph-image img {
  max-width: 100%;
  height: 100%;
}

:root {
  --marian-blue: #375a7f; /* Define the color variable for easier maintenance */
}

.stats {
  padding: 50px 0;
  background-color: var(--background-color);
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-card li {
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stats-card.has-bg-image li {
  background-size: cover;
  background-position: center;
}

.card-text {
  text-align: center;
  padding: 20px;
  color: var(--marian-blue);
}

.card-text .h1 {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
}

.card-text .span {
  font-size: 18px;
  font-weight: normal;
  display: block;
}

/* Services Section */
.service-card {
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: justify;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 20px 20px 10px;
}

.service-card p {
  color: black;
  font-size: 1rem;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.service-card .btn-container {
  margin: 20px;
  text-align: center;
}

/* Button styles */
.btn-learn-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--blue-gray);
  color: var(--accent-color);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-learn-more:hover {
  background-color:var(--marian-blue);
  border-color: var(--marian-blue);
  color: var(--white);
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Service grid layout */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Focus Areas Section */
.focus-areas {
  padding: 50px 0;
  display: flex;
}

.focus-areas h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  font-size: 35px;
}

.focus-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  
}

.focus-item {
  flex: 0 0 calc(33.333% - 20px);
  margin-bottom: 20px;
  padding: 20px;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: justify;
}

.focus-item h3 {
  font-weight: bold;
  font-size: 25px;
  margin-bottom: 15px;
}

/* Why Choose Section */
.why-choose {
  background-color: var(--background-color);
  padding: 50px 0;
}

.why-choose h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
  font-size: 35px;
}

.choose-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.choose-item {
  flex: 0 0 calc(33.333% - 20px);
  margin-bottom: 20px;
  padding: 20px;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.choose-item h3 {
  font-weight: bold;
  font-size: 25px;
  margin-bottom: 15px;
}

/* Client Testimonials Section */
.client-testimonials {
  background-color: var(--background-color);
  padding: 40px 0;
}

.testimonial-card {
  display: flex;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-info {
  display: flex;
}

.logo {
  padding-top: 1%;
  padding-left: 1%;
  max-width: 150px;
  max-height: 100px;
  width: auto;
  height: auto;
}

.testimonial-text {
  padding: 20px;
}

blockquote {
  font-style: italic;
}

p {
  margin-top: 10px;
}


/* For desktop screens */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.focus-content,
.choose-content,
.client-testimonials {
  display: flex;
  justify-content: space-between;
}

.focus-item,
.choose-item,
.testimonial-card {
  flex: 0 0 calc(33.33% - 20px);
}

/* For mobile screens */
@media (max-width: 768px) {
  .focus-content,
  .choose-content,
  .client-testimonials {
    flex-direction: column;
    align-items: center;
  }
  
  .focus-item,
  .choose-item,
  .testimonial-card {
    width: 100%;
    margin-bottom: 20px;
  }
}

/* Contact Section */
.contact {
  padding: 50px 0;
  text-align: center;
  flex: 1;
}

.contact h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.contact p {
  font-size: 18px;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  justify-content: center;
}

.contact-link {
  margin: 0 20px;
  color: black;
  text-decoration: none;
  font-size: 16px;
}

.contact-link:hover {
  text-decoration: underline;
}

.footer {
  background-color: var(--background-color);
  padding: 40px 0;
}

.contact {
  margin-bottom: 30px;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact p {
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-link {
  color: black;
  text-decoration: none;
  margin-bottom: 10px;
}

.social-list {
  display: flex;
  justify-content: center;
}

.social-link {
  margin: 0 15px;
  transition: transform 0.4s ease;
}

.social-link:hover {
  transform: translateY(-4px);
}

.footer-social-icon {
  width: 45px;
  height: 45px;
}

.footer-social-icon:hover {
  opacity: 0.7;
}

.navbar-logo {
  padding-top: 5px;
  padding-bottom: 5px;
  width: 100px;
  height: auto;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  margin-left: 0.1rem;
}

.dropdown-menu > .dropdown-submenu > .dropdown-menu {
  display: none;
}

.dropdown-menu > .dropdown-submenu:hover > .dropdown-menu {
  display: block;
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: 0;
  margin-left: 0.1rem;
}

.dropdown-menu {
  white-space: normal;
  max-width: none;
  width: 300px;
  z-index: 1000;
}

.dropdown-menu a {
  font-size: 1rem;
}

.dropdown-menu .dropdown-menu {
  margin-left: 0.5rem;
  padding: 0.5rem 0.5rem;
  width: 300px;
}

.dropdown-item {
  padding: 0.5rem 1rem;
}

/* Adjust the position dynamically if the dropdown is near the right edge */
.dropdown-menu-end {
  left: auto;
  right: 0;
}

/* Custom button styles */
.content-section .btn-primary {
  background-color: wheat; /* Background color */
  color:black; /* Text color */
  border: none; /* Remove default border */
  border-radius: 10px; /* Add rounded corners */
  padding: 10px 20px; /* Adjust padding */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.content-section .btn-primary:hover {
  background-color: var(--secondary-color); /* Background color on hover */
  color: white; /* Text color on hover */
}
