/* Global font for the body */
body {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
}

/* Custom utility class for text justification */
.text-justify {
  text-align: justify;
}

/* Hidden class */
.hidden {
  display: none;
}

/* Class to bring the menu on-screen */
.menu-visible {
  transform: translateX(0); /* Bring the menu on-screen */
}

/* Class to hide the menu */
.menu-hidden {
  transform: translateX(100%); /* Hide the menu off-screen */
}

/* Global box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Navbar default and reduced heights */
.navbar {
  height: 6rem; /* Default height */
  transition: height 0.3s ease, padding 0.3s ease;
  padding: 0 0rem; /* Default padding */
  margin: 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
}

.navbar-intermediate {
  height: 4rem; /* Intermediate height */
  padding: 0 0rem;
}

.navbar-reduced {
  height: 3rem; /* Reduced height - changed from 3.2rem to 3rem */
  padding: 0 0rem;
}

/* Logo wrapper */
.logo-wrapper {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Logo sizes */
.logo {
  height: 4rem; /* Default logo height */
  transition: height 0.3s ease;
  padding: 0.5rem;
}

.navbar-intermediate .logo {
  height: 3.5rem; /* Intermediate logo height */
}

.navbar-reduced .logo {
  height: 2.8rem; /* Reduced logo height - slightly smaller than navbar height */
}

/* Icon container styles */
.nav-icon-wrapper {
  height: 100%; /* Match navbar height */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d5db;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: width 0.3s ease;
  margin: -1px;
}

/* Icon sizes */
.nav-icon {
  height: 6rem;
  width: 6rem;
  transition: height 0.3s ease, width 0.3s ease;
  transform: scale(0.3); 
}

.navbar-intermediate .nav-icon {
  height: 4rem;
  width: 4rem;
}

.navbar-reduced .nav-icon {
  height: 3rem;
  width: 3rem;
}

/* Flag sizes */
.nav-flag {
  padding-top: 1rem;
  padding-bottom: 1rem;
  height: 6rem;
  width: 6rem;
  transition: height 0.3s ease, width 0.3s ease;
  transform: scale(0.3); 
}

.navbar-intermediate .nav-flag {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  height: 4rem;
  width: 4rem;
}

.navbar-reduced .nav-flag {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  height: 3rem;
  width: 3rem;
}

/* Ensure items are centered vertically */
.navbar .flex {
  align-items: center;
}

.arrow-text {
  font-family: Arial, sans-serif; /* Ensures a font without emojis */
}

/* Carousel styling */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px auto;
}

.carousel {
  display: flex;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.carousel-item {
  flex: 0 0 100%; /* Show one item at a time by default */
  height: 400px;
  background-color: #ffffff;
  color: white;
  position: relative;
  overflow: hidden;
  margin: 0 10px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-drag: none;
}

/* Updated content styling for full-width background */
.carousel-item .content {
  position: absolute;
  bottom: 0; /* Touch the bottom of the card */
  left: 0;   /* Extend to the left edge */
  right: 0;  /* Extend to the right edge */
  background-color: rgba(30, 58, 138, 0.7); /* Light blue transparent background */
  color: white;
  padding: 15px;
  margin: auto;
}

.carousel-item h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.carousel-item p {
  font-size: 16px;
}

.carousel-dots {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 10px;
  margin-top: 15px; 
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background-color: #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dot.active {
  background-color: #1e3a8a;
}

.grabbing {
  cursor: grabbing !important;
}

/* Responsive behavior using media queries */
@media (min-width: 640px) and (max-width: 1023px) {
  .carousel-item {
    flex: 0 0 50%; /* Show two items at a time for medium screens */
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 33.33%; /* Show three items at a time for large screens */
  }
}

.carousel_container {
  position: relative;
  width: 70%; /* Full width */
  padding: 20%; /* Aspect ratio (16:9 ratio for example) */
  overflow: hidden;
}

.carousel_img {
  position: absolute; /* Stack images on top of each other */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Ensure the image fills the container */
  object-fit: cover; /* Ensures images maintain aspect ratio and cover the container */
  opacity: 0;
  transition: opacity 1.0s ease-in-out; /* Smooth fade effect */
  z-index: 0;
}

.carousel_img.active {
  opacity: 1;
  z-index: 1; /* Bring active image to the front */
}

.carousel_prev, .carousel_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  color: white;
  border: none;
  padding: 10px;
  z-index: 10; /* Ensure the buttons are above the images */
  cursor: pointer;
}

/* Replace the old fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 2.0s ease-out, transform 1.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.cropped-video {
  /* Ensure video covers the width */
  width: 100%;
  height: auto;
  /* Crop the top 30% and bottom 15% by adjusting the position and fit */
  object-position: center 80%;
  /* Push video 30% up, then bring 15% back down */
  /* Ensure no overflow shows the hidden parts */
  overflow: hidden;
}

/* Fix for blog post preview button width */
.post-preview .p-6 > a {
  display: inline-block !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.fullscreen-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 1040;
  transition: opacity 0.3s;
}

.fullscreen-menu-overlay.hidden {
  display: none;
  opacity: 0;
}

.fullscreen-menu-overlay:not(.hidden) {
  display: block;
  opacity: 1;
}

/* Navbar icon hover effects - more direct approach */
.nav-icon {
    transition: transform 0.3s ease !important;
}
.nav-flag {
    transition: transform 0.3s ease !important;
}
.nav-icon-wrapper:hover .nav-icon {
    transform: scale(0.4) !important; /* Much more noticeable change */
}
.nav-icon-wrapper:hover .nav-flag {
    transform: scale(0.4) !important; /* Much more noticeable change */
}

/* Side menu hover effects - more direct approach */
#fullscreen-menu .menu-item {
    display: inline-block;
    transform-origin: left center;
    transition: all 0.3s ease;
}
#fullscreen-menu .menu-item-link:hover .menu-item {
    transform: scale(1.15) !important; /* More noticeable scale */
    margin-left: 10px; /* More noticeable indent */
    color: #f0f0f0; /* Slight color change on hover */
} 