/* Define CSS Variables */
:root {
  --cal-poly-green: #004b23ff;
  --office-green: #006400ff;
  --office-green-2: #007200ff;
  --office-green-3: #008000ff;
  --kelly-green: #38b000ff;
  --sgbus-green: #70e000ff;
  --spring-bud: #9ef01aff;
  --lime: #ccff33ff;

  /* Gradients */
  --gradient-top: linear-gradient(0deg, var(--cal-poly-green), var(--office-green), var(--office-green-2), var(--office-green-3), var(--kelly-green), var(--sgbus-green), var(--spring-bud), var(--lime));
  --gradient-right: linear-gradient(90deg, var(--cal-poly-green), var(--office-green), var(--office-green-2), var(--office-green-3), var(--kelly-green), var(--sgbus-green), var(--spring-bud), var(--lime));
}

/* General Styling */
body {
  font-family: Arial, sans-serif;
  background-color: var(--cal-poly-green);
  color: var(--spring-bud);
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  color: var(--spring-bud);
}
h4{
  font-weight: bold;
}

.logo-img {
  height: 70px;       /* Standard height for logo in headers */
  width: auto;        /* Maintain aspect ratio */
  object-fit: contain;
}


.sta-delivery {
  font-size: 2.8rem;
  font-weight: bold;
  color: var(--kelly-green);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  box-shadow: 10px 40px 80px -15px rgb(86, 128, 18); /* bottom shadow */
}

/* Custom small carousel styling */
.small-carousel {
  max-width: 100%;
  margin: auto;
}

.small-carousel .carousel-item img {
  width: 100%;
  height: 400px;             /* Uniform height */
  object-fit: cover;         /* Ensure image fills the frame nicely */
  object-position: center;
}

/* Carousel full-screen images (if used elsewhere) */
.carousel-inner img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}


.container-sm {
  max-width: 850px; /* Makes it narrower than .container */
}

.shadow {
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}


.pop-up-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border-radius: 12px;      /* Rounded corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* subtle default shadow */
  background-color: #fff;   /* ensure card background is white */
}

.pop-up-card:hover {
  transform: scale(1.05);   /* slightly enlarge */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25); /* stronger shadow */
  z-index: 10;              /* pop above others */
}


.cta-banner {
  background: linear-gradient(90deg, #056ab1 0%, #016086 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(8, 131, 218, 0.4);
  transition: box-shadow 0.3s ease;
}

.cta-banner:hover {
  box-shadow: 0 12px 30px rgba(8, 131, 218, 0.7);
}

.cta-banner .btn-primary {
  background-color: #004e8a;
  border: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-banner .btn-primary:hover {
  background-color: #007bff;
  color: white;
}




.footer {
  background: var(--gradient-right);
  padding: 20px;
}

/* Sidebar */
.service-sidebar {
  background-color: var(--cal-poly-green);
  padding: 20px;
  height: 100vh;
  width: 250px;
  color: white;
}

.service-sidebar h3 {
  margin-bottom: 15px;
}

.service-sidebar .service-link {
  display: block;
  padding: 10px;
  margin-bottom: 10px;
  background-color: var(--kelly-green);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.service-sidebar .service-link:hover {
  background-color: var(--sgbus-green);
}

/* Service Cards */
.service-container {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-right: 20px;
}

.service-card {
  display: flex;
  align-items: center;
  background: var(--kelly-green);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 250px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.service-img {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3); /* Soft shadow for images */
}

.service-text {
  width: 60%;
  padding: 25px;
  color: #333;
}

.service-text h3 {
  font-size: 1.8rem;
  color: whitesmoke;
  margin-bottom: 10px;
}

.service-text p {
  font-size: 1.1rem;
  color: whitesmoke;
  line-height: 1.5;
}


/* Font (Optional: makes it look modern) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Make all nav link text white */
.navbar-nav .nav-link {
  color: white;
  position: relative;
  transition: color 0.3s ease;
}

/* On hover, make link light blue */
.navbar-nav .nav-link:hover {
  color: #00bfff; /* Light blue on hover */
}

/* Make active tab text blue and underline it */
.navbar-nav .nav-link.active {
  color: #007bff; /* Bootstrap blue */
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff; /* underline color */
}


/* Daily Services Ticker */
.ticker-container {
  width: 100%;
  overflow: hidden;
  background-color: var(--spring-bud);
  color: var(--cal-poly-green);
  padding: 10px 0;
  font-weight: bold;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 10s linear infinite;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}


/* ============================= */
/* ✅ Mobile Responsive Styles   */
/* ============================= */
@media (max-width: 576px) {


  /* Header stacking */
  header .d-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Logo size */
  header img.img-fluid {
    max-width: 80px;
    margin-bottom: 10px;
  }

  /* Company name */
  .sta-delivery {
    font-size: 1.5rem;
  }

  /* Navigation links spacing */
  .nav-link {
    font-size: 1rem;
    padding: 8px 12px;
  }

  /* Ticker scaling */
  .ticker {
    font-size: 0.85rem;
    padding-left: 10px;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
  }

  .service-img {
    width: 100%;
    height: 180px;
  }

  .service-text {
    width: 100%;
    padding: 20px;
  }

  /* Footer text size */
  .footer {
    font-size: 0.9rem;
    padding: 15px;
  }

  /* Service card adjustments */
  .service-card {
    flex-direction: column;
    height: auto;
  }

  .service-img {
    height: 150px;
  }

  .service-text {
    font-size: 1rem;
    padding: 15px;
  }

  /* Button size */
  .button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  /* Map iframe in contact page */
  .map-container iframe {
    height: 200px !important;
  }
  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 10px 15px;
  }

  .navbar-collapse .d-flex {
    margin-top: 10px;
    align-items: flex-start;
  }

  .navbar-toggler {
    border: none;
  }

  .small-carousel .carousel-item img {
    height: 200px;
  }

  .container-sm.shadow {
    padding: 20px 15px;
    margin: 0 10px;
    border-radius: 12px;
  }

  .why-choose-list {
    font-size: 1rem;
  }

  .why-choose-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .why-choose-list i {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 10px;
  }

  .why-choose-list li::marker {
    content: none;
  }

  h2.text-center {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }
}

