:root{
  --primary:#0d6efd;
  --muted:#6c757d;
  --brand:#296692;
  --page-bg:#f8f9fa;

  --primary-color: #163a5e;
/*  --primary-light: #4a6fa5;*/
  --primary-light: #296692;;
  --accent-color: #ffc107;
  --text-dark: #0b1c33;
  --text-muted: #555;
  --clr-grayscale: #6b6b6b;
  --clr-gray: #333;
  --clr-primary-bg: #fcf7f2;
  --clr-secondary: #c67338;
   --main-gradient: linear-gradient(90deg, #163a5e 0%, #375a82 100%);
   --main-shadow-light: rgba(22, 58, 94, 0.15);
   --main-shadow-strong: rgba(22, 58, 94, 0.28);

    /*FONT VARIABLES*/
  --font-primary: "Roboto", sans-serif;
  --font-heading: "Inter", sans-serif;
  /*font-family: 'Inter', sans-serif;*/
}
/* body{background:var(--page-bg);color:#222;}
.logo{height:46px;transition:transform .25s;}
.logo:hover{transform:scale(1.05);}
.navbar .nav-link{color:#333 !important;}
.hero{background:linear-gradient(180deg, rgba(9,30,63,.85), rgba(9,30,63,.7)), url('/images/hero-bg.jpg') center/cover no-repeat;padding:6rem 0;}
.card .icon{font-size:28px;}
.btn-primary{background:var(--brand);border-color:var(--brand);}
@media (max-width:768px){
  .hero{padding:4rem 0;}
} */


    
    /* Hero Carousel */
    .hero-carousel .carousel-item {
      height: 70vh;
      min-height: 400px;
      position: relative;
      color: white;
      overflow: hidden;
    }

    .hero-carousel .carousel-item img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 70vh;
      object-fit: cover;
      filter: brightness(0.25);
      transition: transform 0.5s ease;
      z-index: 1;
    }

    .hero-carousel .carousel-item.active img {
      transform: scale(1.05);
    }

    .hero-carousel .carousel-caption {
     position: absolute;
  z-index: 2;
  left: 3rem;
  right: 3rem;
  top: 0;
  bottom: 0;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center all content */
  gap: 1rem;
  color: white;
  padding: 2rem;
/*  background: rgba(0, 0, 0, 0.25);  subtle overlay for readability */
  border-radius: 12px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  text-align:left;
}
  
/* Adjust heading, paragraph, and button spacing */
.hero-carousel .carousel-caption h1 {
  font-family: 'Inter', sans-serif;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.75);
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.1;
}

.hero-carousel .carousel-caption p {
  max-width: 600px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.65);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.hero-carousel .btn-light {
  align-self: flex-start; /* keep button aligned left */
  background-color: var(--accent-color);
  border: none;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 2px 7px rgba(255, 193, 7, 0.8);
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-carousel .btn-light:hover {
  background-color: #e0a800;
  transform: scale(1.1);
  color: var(--primary-color);
}

/*************Domain******************************/
  .page-subtitle {
      margin-bottom: 5rem;
      max-width: 720px;
      margin-left: auto;
      margin-right: auto;
      color: var(--clr-gray);
      user-select: none;
      line-height: 1.6;
      text-align: center;
    }
   
    
/**************media query ************************/

/* Tablets (reduce left and right spacing) */
@media (max-width: 992px) {
  .hero-carousel .carousel-caption {
     left: 1.5rem;
    right: 1.5rem;
    max-width: 90%;
    padding: 1.5rem;
  }
  .hero-carousel .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .hero-carousel .carousel-caption p {
    font-size: 1rem;
  }

  .hero-carousel .btn-light {
    padding: 0.6rem 2rem;
    font-size: 1rem;
  }
}

/* --- Mobile Landscape Mode (width 577px to 820px) --- */
@media screen and (min-width: 577px) and (max-width: 820px) and (orientation: landscape) {
 
  .hero-carousel .carousel-item img {
      height: 100vh;
   }

  .hero-carousel .carousel-caption {
    left: 1rem;
    right: 1rem;
     top: 50%;
    transform: translateY(-50%);
    max-width: 90%;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0);
    text-align: left;
  }

  .hero-carousel .carousel-caption h1 {
    font-size: 1.4rem;
  }

  .hero-carousel .carousel-caption p {
    font-size: 0.85rem;
     margin-top:1rem;
  }

  .hero-carousel .btn-light {
     margin-top:1rem;
    padding: 0.5rem 1.8rem;
    font-size: 0.85rem;
    align-self: flex-start;
  }
}

/* ===== Mobile Portrait Mode ===== */
@media screen and (max-width: 576px) and (orientation: portrait) {
  .hero-carousel .carousel-caption {
    left: 1rem;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    max-width: 95%;
    text-align: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0);
  }

  .hero-carousel .carousel-caption h1 {
    font-size: 1.6rem;
  }

  .hero-carousel .carousel-caption p {
    font-size: 1rem;
    margin-top:1rem;
  }

  .hero-carousel .btn-light {
    margin-top:1rem;
    padding: 0.6rem 2rem;
    font-size: 1rem;
    align-self: center;
  }
}
