:root {
  --primary: #f7931e;
  --dark: #222;
  --light-bg: #fafafa;
  --text-color: #222;
  --bg-color: #fafafa;
}

/* Dark Mode Variables */
.dark-mode {
  --text-color: #f5f5f5;
  --bg-color: #222;
  --dark: #fff;
  --light-bg: #222;
}

/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}

html {
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s, color 0.3s;
}
.dark-mode .navbar {
  background-color: #1f1f1f;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark);
}

.nav-link {
  color: var(--dark) !important;
  margin: 0 8px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
  padding: 80px 0;
}
.dark-mode .hero p {
  color: white;
}
.hero h1 {
  font-weight: 700;
  font-size: 3rem;
  color: var(--dark);
}

.hero p {
  font-size: 1.1rem;
  color: black;
  max-width: 600px;
  margin: 20px 0;
}

.btn-primary {
  background-color: var(--primary);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #d87d10;
}

.hero img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 50px;
}

/* Services */
.service-box {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background 0.3s;
}

.dark-mode .service-box {
  background: #1f1f1f;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Testimonial Carousel Controls (From style.css) */
.testimonial-card {
  text-align: center;
  transition: all 0.3s ease;
  padding-bottom: 1rem;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Avatar image */
.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #007bff20;
  margin-bottom: 1rem; /* adds breathing space below image */
}

/* Star rating */
.stars {
  color: #ffc107;
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin: 0.5rem 0 0.75rem 0; /* adds gap above and below stars */
  display: block; /* ensures it sits on its own line */
}

/* Carousel indicator buttons */
.carousel-indicators [data-bs-target] {
  background-color: #007bff;
}

/* Carousel arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(60%);
  width: 2rem;
  height: 2rem;
}

/* Footer (name + company) */
.blockquote-footer {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.75rem; /* ensures enough space from stars */
}

/* Footer */
footer {
  background-color: var(--dark);
  color: #eee;
  padding: 60px 0 30px;
}

footer h5 {
  color: var(--primary);
  font-weight: 600;
}

footer a {
  color: #ccc;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: 0.3s;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 20px;
  padding-top: 10px;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

/* Chat Button (From style.css - advanced widget) */

.chat-header .bi-robot.bg-primary {
  background-color: var(--primary) !important;
}
.chat-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.chat-btn:hover {
  background-color: #d87d10;
}
#testimonials {
  background-color: #f8f9fa;
  transition: background-color 0.4s, color 0.4s;
}

.dark-mode #testimonials {
  background-color: #222 !important;
  color: #f5f5f5 !important;
}

.dark-mode #testimonials h2.section-title {
  color: #f5f5f5 !important;
}

.dark-mode #testimonials blockquote {
  color: #f5f5f5 !important;
  border-left-color: var(--primary);
}

/* Footer Section */
.dark-mode footer {
  background-color: #121212 !important;
  color: #f5f5f5 !important;
}

.dark-mode footer h5 {
  color: var(--primary) !important;
}

.dark-mode footer a {
  color: #ddd !important;
}

.dark-mode footer a:hover {
  color: #fff !important;
}

.dark-mode .footer-bottom {
  border-top: 1px solid #333 !important;
  color: #ccc !important;
}
@media (max-width: 768px) {
  .hero {
    text-align: center;
    flex-direction: column;
  }
  .hero img {
    margin-top: 40px;
  }
}

/* Client & Partner Logos (From style.css) */
.client-logo {
  max-width: 100%;
  height: 50px; /* Controls the height for uniformity */
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.client-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

/* Adjust logos for dark mode */
.dark-mode .client-logo {
  opacity: 0.7;
  filter: grayscale(50%) brightness(1.5); /* Makes them lighter and visible on dark bg */
}

.dark-mode .client-logo:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* Ensure the new section bg color toggles for dark mode */
.dark-mode #partners {
  background-color: #222 !important;
}

/* --- Advanced Chat Widget Styles (From style.css) --- */
:root {
  --chat-primary:  #d87d10;
  --chat-bg: #ffffff;
  --chat-bot: #f2f3f5;
  --chat-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Floating button */
.chat-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--chat-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--chat-shadow);
  cursor: pointer;
  z-index: 1050;
  transition: all 0.3s ease;
}
.chat-btn:hover {
  transform: scale(1.1);
}

/* Chat widget container */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 340px;
  max-height: 520px;
  background: var(--chat-bg);
  border-radius: 18px;
  box-shadow: var(--chat-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 1990;
}

/* When visible */
.chat-widget.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header */

.chat-header {
  background-color:  #d87d10;
  color: #fff;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Body */
.chat-body {
  flex-grow: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
.chat-footer {
  display: flex;
  border-top: 1px solid #e9ecef;
  padding: 8px 10px;
  background: #fafafa;
}

.chat-footer input {
  flex: 1;
  border: none;
  outline: none;
  border-radius: 20px;
  padding: 8px 12px;
  background: #fff;
  font-size: 0.9rem;
}
.chat-footer button {
  background: var(--chat-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.chat-footer button:hover {
  background:  #d87d10;
}

/* Chat bubbles */
.chat-message {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 80%;
  line-height: 1.4;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

.chat-message.user {
  background-color: var(--chat-primary);
  color: #fff;
  align-self: flex-end;
}
.chat-message.bot {
  background-color: var(--chat-bot);
  color: #333;
  align-self: flex-start;
}

/* Typing indicator */
.typing {
  align-self: flex-start;
  background-color: var(--chat-bot);
  color: #888;
  font-style: italic;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 123, 255, 0.6);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
  }
}

.chat-btn.pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.4s ease;
}

/* Scrollbar */
.chat-body::-webkit-scrollbar {
  width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}

/* ============================== */
/* Partner Logo Scroller Styles (From style.css) */
/* ============================== */
.logo-scroller-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-scroller {
  display: flex;
  width: max-content;
  align-items: center;
  animation: scroll 30s linear infinite;
}

.logo-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px; /* increased gap to prevent overlap */
  margin: 0;
  padding: 0;
  list-style: none;
}

/* normalize different logo sizes */
.logo-list img {
  height: 45px; /* uniform height */
  width: auto;
  max-width: 160px; /* prevent very wide logos */
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* fix vertical alignment issues */
.logo-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px; /* keeps consistent spacing box */
}

/* hover effect */
.logo-list img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* infinite scroll animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .logo-list {
    gap: 60px;
  }
  .logo-list img {
    height: 35px;
    max-width: 120px;
  }
}

/* Client Card (From style.css) */
.client-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.client-logo {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.client-card:hover .client-logo {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/*Chat Bot Quick Replies (From style.css)*/
.chat-message {
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.chat-message .bubble {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-message.user .bubble {
  background-color: #d87d10;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message.bot .bubble {
  background-color: #f1f3f4;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.timestamp {
  font-size: 0.7rem;
  color: #999;
  margin-top: 2px;
  align-self: flex-end;
}

.quick-reply-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.quick-reply {
  background: #f1f1f1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.quick-reply:hover {
  background:  #d87d10;
  color: #fff;
  transform: scale(1.05);
}

.quick-reply:active {
  transform: scale(0.95);
}

.chat-message.bot a {
  color:  #d87d10;
  text-decoration: underline;
}

.typing .dot {
  animation: blink 1.4s infinite both;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*Background Blur (From style.css)*/
body.chat-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  z-index: 1050;
}


/* === NEW STYLES FOR ADDITIONAL PAGES (MERGED from style2.css) === */

/* Page Header - Consistent across new pages (Ensures proper background) */
.page-header {
  min-height: 40vh; /* Shorter than the main hero */
  display: flex;
  align-items: center;
  padding: 60px 0;
  background-color: var(--light-bg); /* Use light-bg for header background */
}
.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Events Page Specific Styles */
.event-meta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 10px;
}
.dark-mode .event-meta {
  color: #aaa;
}

/* Careers Page Specific Styles (Card layout) */
.career-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.1);
  /* Uses .service-box base styles for background/shadow */
}

.dark-mode .career-card {
  border: 1px solid #333;
}

.career-card-body {
  flex-grow: 1;
}

.career-card-footer {
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.dark-mode .career-card-footer {
  border-top: 1px solid #333;
}

.job-location {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Awards Page Specific Styles (Visual distinction) */
.award-box {
  /* Reuses .service-box base styles, adds color distinction */
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  height: 100%;
}
.dark-mode .award-box {
  background: #1f1f1f;
}
.award-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.award-icon {
  font-size: 3rem;
  color: #FFD700; /* Gold color for awards */
  margin-bottom: 15px;
}