/* ----------------------------------------
  Global Reset & Font
---------------------------------------- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding-top: 32px; /* Adjusted below in media query for mobile */
}

@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Mobile: extra space for stacked topbar + navbar */
  }
}


/* ----------------------------------------
  Top Bar (Fixed at Top)
---------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background-color: #002b5c;
  color: white;
  z-index: 1050;
  padding: 4px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
}

.topbar span {
  font-size: 0.85rem;
}

.topbar a {
  color: white;
  text-decoration: none;
}

.topbar a:hover {
  color: #ffcc00;
}


/* ----------------------------------------
  Navbar (Static, Below Topbar)
---------------------------------------- */
.custom-navbar {
  position: static;
  background-color: white;
  height: 80px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.custom-navbar .nav-link {
  color: #002b5c;
  font-weight: 500;
  margin-left: 15px;
}

.custom-navbar .nav-link:hover {
  color: #007bff;
}

.navbar-brand img {
  height: 40px;
}

/* Container inside navbar */
.custom-navbar .container {
  margin-top: 0;
  padding-top: 0;
}


/* ----------------------------------------
  Hero Section (Image Slider with Text)
---------------------------------------- */
.hero-section {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  height: 500px;
}

.hero-slide:first-child {
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.prev {
  transform: translateX(-100%);
  z-index: 1;
}

.hero-text {
  position: absolute;
  bottom: 30px;   /* distance from bottom */
  left: 30px;     /* distance from left */
  color: black;
  max-width: 500px;  /* optional, to prevent it from stretching too wide */
}

.hero-slide {
  position: absolute;    /* stays for animation */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateX(100%); /* start off-screen right */
  transition: transform 1s ease;
  z-index: 1;
}

/* text wrapper positioning inside each slide */
.hero-text-wrapper {
  position: absolute;
  bottom: 50px;   /* not glued to bottom */
  left: 50px;     /* not glued to left */
  color: #002b5c;
  max-width: 500px;
}

.hero-text-wrapper h1,
.hero-text-wrapper p {
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6); /* readability */
}



/* ----------------------------------------
  Footer
---------------------------------------- */
.footer {
  background-color: #002b5c;
  color: white;
  font-size: 0.9rem;
}

.footer a:hover {
  color: #ffcc00;
}

.footer hr {
  opacity: 0.2;
}


.stats-bar {
  background-color: #002b5c; /* Bootstrap primary blue */
}

.stats-bar i {
  color: #ffffff;
}

.stats-bar h5 {
  font-size: 1.3rem;
  font-weight: 600;
}

.stats-bar p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.btn-custom {
  background-color: #002b5c;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border-radius: 6px;
}

.btn-custom:hover {
  background-color: #014089; /* Slightly lighter on hover */
  color: #fff;
}

.urun-kutu {
  background-color: #007bff; /* mavi arka plan */
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.urun-kutu p {
  color: #ffffff !important;

}

.urun-kutu img {
  height: 65px; /* ikon biraz daha büyük */
  
}

.urun-kutu:hover {
  transform: scale(1.03);
  border-color: #002b5c !important; /* hover durumunda mavi outline */
  background-color: #002b5c !important; /* arka plan değişmesin */
}

.about-section {
  background-color: #f8f9fa;
}

.about-section h2 {
  color: #002147;
}

.vision-box, .mission-box {
  background-color: #ffffff;
  transition: transform 0.3s ease;
}

.vision-box:hover, .mission-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card img {
  height: 60px;
}

.about-text {
  text-align: justify;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.vizyon-icon,
.misyon-icon {
  width: 100px;     /* Boyutu ayarla */
  height: auto;    /* Oran korunsun */
  object-fit: contain;
}

.card p {
  text-align: justify;
}

.text-darkblue {
  color: #002147;
}

.text-white {
  color: #ffffff;
}

.btn-outline-light {
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: #002147;
}

.bg-dark-blue {
  background-color: #002147 !important;
  opacity: 1 !important;
}

.product-box {
  background-color: #f9f9f9;
  border: 2px solid #cfe2ff; /* açık mavi kenar */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.product-box:hover {
  transform: translateY(-4px);
}

.product-title {
  color: #002147;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.product-desc {
  text-align: justify;
  color: #333;
  font-size: 1rem;   /* 16px, normal size */
  line-height: 1.6;  /* good readability */
}

html {
  scroll-behavior: smooth;
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* remove any gap */
  }
}

/* Ensure dropdown aligns flush with parent link */
.navbar .dropdown-menu {
  margin-top: 0 !important;
}


.alert-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: bold;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

