/* ========================
   Coffee Brown Theme Styles
=========================== */

/* Variables */
:root {
  --coffee: #4B2E2E;
  --coffee-dark: #3A2323;
  --coffee-light: #6A4646;
}

/* Text and Backgrounds */
.text-coffee {
  color: var(--coffee) !important;
}
.bg-coffee {
  background-color: var(--coffee) !important;
  color: white !important;
}

/* Buttons */
.btn-coffee {
  background-color: var(--coffee) !important;
  color: white !important;
  border: none;
  transition: background-color 0.3s ease;
}
.btn-coffee:hover {
  background-color: var(--coffee-dark) !important;
  color: white !important;
}

.btn-outline-coffee {
  border: 2px solid var(--coffee) !important;
  color: var(--coffee) !important;
  background-color: transparent !important;
  transition: all 0.3s ease;
}
.btn-outline-coffee:hover {
  background-color: var(--coffee) !important;
  color: white !important;
}

/* Navbar */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--coffee) !important;
  font-weight: 600;
}

/* Buttons */
.btn {
  border-radius: 30px;
  font-weight: 500;
}

/* Coffee-colored icons */
.text-coffee i,
.btn-coffee i {
  color: var(--coffee);
}

/* Carousel Enhancements */
.carousel .btn {
  border-radius: 30px;
  transition: all 0.4s ease-in-out;
}
.carousel .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.carousel .overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.carousel .display-4 {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}
.carousel .lead {
  font-size: 1.25rem;
  color: #e0e0e0;
}

/* Impact Section */
.bg-impact {
  background-color: #fdf5e6;
}
#impact .shadow-sm {
  transition: transform 0.3s ease;
}
#impact .shadow-sm:hover {
  transform: translateY(-5px);
}

/* Quote Parallax */
.quote-parallax {
  background-image: url('../images/5.jpeg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}
.quote-parallax::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.quote-parallax .container {
  z-index: 2;
}
.quote-parallax blockquote {
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* Scroll to Top Button */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background-color: var(--coffee);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}
#scrollTopBtn:hover {
  background-color: var(--coffee-dark);
}
#scrollTopBtn i {
  color: white;
}

/* Program Card Styling */
.program-card {
  height: 320px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.program-card:hover {
  transform: scale(1.02);
}
.program-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.program-card:hover .program-img {
  transform: scale(1.05);
}
.program-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.program-card:hover .program-overlay {
  opacity: 1;
}

/* Programs Intro Section */
#programs-intro {
  background-color: #fff;
}
#programs-intro h2 {
  font-size: 2.2rem;
}
#programs-intro img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
#programs-intro img:hover {
  transform: scale(1.03);
}

/* Offcanvas Mobile Menu Enhancements */
.offcanvas {
  background-color: #fff;
}
.offcanvas .nav-link {
  font-size: 1.1rem;
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  color: var(--coffee);
}
.offcanvas .nav-link:hover {
  background-color: var(--coffee-light);
  color: #fff !important;
}

/* Ensure nav links are touch-friendly */
.navbar-nav .nav-link {
  padding: 0.75rem 1rem;
  display: inline-block;
}
