/***
Import fonts
***/
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700);

html, body {
    height: 100%;
}
body {
	font-family: 'Open Sans', sans-serif !important;
    display: flex;
    flex-direction: column;
    padding-top: 70px; /* Adjust based on navbar height */
}
.footer {
    margin-top: auto;
}

/* Purple theme */
.btn-purple, .bg-purple {
    background-color: #2f405d;
    color: #fff;
    border: none;
}
.btn-purple:hover, .bg-purple:hover {
    background-color: #2f405d;
    color: #fff;
}
.text-purple {
    color: #2f405d;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #fff; 
    border: 1px solid #0056b3;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #003f7f);
    color: #fff;
    border: 1px solid #0056b3;
}

/* Success Button */
.btn-success {
    background: linear-gradient(45deg, #40aba4, #198754);
    color: #fff;
    border: 1px solid #198754;
}
.btn-success:hover {
    background: linear-gradient(45deg, #469ab0, #042c12);
    color: #fff;
    border: 1px solid #40aba4;
}

/* Flag Animation */
.flag {
    position: fixed;
    bottom: 0;
    width: 40px;
    animation: shootUp 1.5s ease-out forwards;
    z-index: 9999;
}
@keyframes shootUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-80vh); opacity: 1; }
}
.small-flag {
    position: fixed;
    width: 20px;
    animation: burst 1s ease-out forwards;
    z-index: 9999;
}
@keyframes burst {
    from { transform: translate(0, 0) scale(0.5); opacity: 1; }
    to { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; }
}

/* Blinking Text */
.blink {
  animation: color-change 1s infinite;
}
@keyframes color-change {
  0%, 100% { color: white; }
  50% { color: #198754; }
}

/* Section wrapper */
.section-home {
  margin: 20px 0;
  min-height: auto;
}

/* Carousel */
.carousel-home img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  background: #000;
  border-radius: 10px;
}
@media (max-width: 576px) {
  .carousel-home img {
    max-height: 250px;
    border-radius: 6px;
  }
}
.carousel-home .carousel-caption {
  bottom: 15%;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  font-size: 0.9rem;
}



.carousel-item {
    text-align: center; /* center image if smaller */
    background: #000;   /* optional: black background */
}

.carousel-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;  /* keep full resolution */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


/* Placeholder */
.slider-placeholder {
  background: linear-gradient(135deg, #1f76bd, #224abe);
  height: 300px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
}
.slider-placeholder h5,
.slider-placeholder p {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Tracking Card */
.tracking-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tracking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Tracking Input & Button */
#tracking_id {
    border-radius: 10px 0 0 10px;
    border: 1px solid #ced4da;
    font-size: 1.1rem;
    padding-left: 15px;
}
.track-btn {
    border-radius: 0 10px 10px 0;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 0 25px;
    transition: background 0.3s ease;
}
.track-btn:hover {
    background: linear-gradient(45deg, #0056b3, #003f7f);
}
.track-btn i {
    margin-right: 8px;
    transition: transform 0.2s ease;
}
.track-btn:hover i {
    transform: scale(1.2);
}
.tracking-title {
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

/* Product Card */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.card-img-top {
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}
.price-tag {
    border-bottom-right-radius: 8px;
    font-size: 0.85rem;
}
.card-body h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 45px;
}
.progress {
    height: 7px;
    border-radius: 10px;
}
.badge {
    font-size: 0.7rem;
}
