/* ===== Global Styles ===== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e6f2f2;
  color: #6b0d0d;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #c92020;
}

/* ===== Navbar ===== */
.navbar-nav .nav-link {
  font-weight: 600;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #c92020;
}

.navbar.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}
/* Light Mode Dropdown */
.navbar .dropdown-menu {
  background-color: #f8f9fa; /* Light background */
  border: 1px solid #6b0d0d;
  border-radius: 0.25rem;
  padding: 0.5rem 0;
  min-width: 180px;
  transition: all 0.3s ease;
}

.navbar .dropdown-item {
  color: #6b0d0d;
  padding: 0.4rem 1.5rem;
}

.navbar .dropdown-item:hover {
  background-color: #6b0d0d;
  color: #ffffff;
}

/* Dropdown arrow rotation */
.navbar .dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.navbar .show > .dropdown-toggle::after {
  transform: rotate(180deg);
}
/* Remove default focus/active highlight for dropdown items */
.navbar .dropdown-item:focus,
.navbar .dropdown-item:active {
  background-color: #6b0d0d; /* your hover color */
  color: #ffffff;
  outline: none; /* removes the blue outline */
  box-shadow: none; /* removes additional browser shadow */
}
/* Light mode dropdown styling */
.navbar .dropdown-item {
  background-color: #ffffff;
  color: #6b0d0d;
}

.navbar .dropdown-item:hover {
  background-color: #6b0d0d;
  color: #ffffff;
}

.navbar .dropdown-item:focus,
.navbar .dropdown-item:active,
.navbar .dropdown-item:focus-visible {
  background-color: #6b0d0d; /* your hover color */
  color: #ffffff;
  outline: none;
  box-shadow: none;
}

/* ===== Hero Section ===== */
.hero {
  height: 50vh;
  background: linear-gradient(rgba(107, 13, 13, 0.85), rgba(99, 13, 13, 0.85)),
    url("https://images.unsplash.com/photo-1617196039272-0b9d9d29f8a0?auto=format&fit=crop&w=1950&q=80")
      no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
}
.hero h1,
.hero h2,
.hero h3 {
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
}

/* ===== Fade-in Sections ===== */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn-success {
  background-color: #6b0d0d;
  border: none;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #c92020;
  color: #fff;
}

/* ===== Forms ===== */
.form-control:focus {
  border-color: #c92020;
  box-shadow: 0 0 5px rgba(201, 32, 32, 0.5);
}

textarea.form-control {
  resize: none;
}

/* ===== Cards (Hotlines / Resources) ===== */
.resource-card {
  border: 1px solid #6b0d0d;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Footer ===== */
footer {
  background-color: #6b0d0d;
  color: #fff;
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ===== Headings ===== */
h1,
h2,
h3 {
  font-weight: 700;
  color: #6b0d0d;
}

/* ===== Spacing Utilities ===== */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .navbar-nav {
    text-align: center;
  }
  .navbar-nav .nav-link {
    margin-left: 0;
    margin-bottom: 10px;
  }
}
footer {
  background: linear-gradient(rgba(99, 13, 13, 0.85), rgba(107, 13, 13, 0.85)),
    url("https://images.unsplash.com/photo-1617196039272-0b9d9d29f8a0?auto=format&fit=crop&w=1950&q=80")
      no-repeat center center;
}
#insta-button {
  background: #833ab4;
  background: linear-gradient(
    45deg,
    #405de6 0%,
    #5851db 15%,
    #833ab4 30%,
    #c13584 45%,
    #e1306c 60%,
    #fd1d1d 75%,
    #f56040 90%,
    #fcaf45 100%
  );
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle {
  margin-left: 10px;
  margin-right: 10px;
  height: 100%;
}
/* Floating chatbot button */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6b0d0d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 22px;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
#chatbot-toggle:hover {
  transform: scale(1.1);
}

/* Chatbox */
#chatbot-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 420px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}
#chatbot-box.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#chatbot-header {
  background: #6b0d0d;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}
#chatbot-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.chat-message {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  animation: fadeIn 0.2s ease;
}
.user {
  background: #6b0d0d;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}
.bot {
  background: #f1f1f1;
  color: black;
  align-self: flex-start;
  margin-right: auto;
}

#chatbot-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}
#chatbot-input {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 0 0 0 16px;
  outline: none;
}
#chatbot-send {
  background: #6b0d0d;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#resources {
  background-color: white;
}

/* Add to style.css */
.auth-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}

.auth-page .card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
nav{
  background-color: #6b0d0d;
}
/* Active accordion button */
.accordion-button:not(.collapsed) {
  color: #ffffff;           /* Text color on active */
  background-color: #f23232; /* Orange background */
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

/* Collapsed button hover effect */
.accordion-button.collapsed:hover {
  background-color: #fea4a4; /* Light orange hover */
}

/* Smooth transition for buttons */
.accordion-button {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Optional: slightly larger text for better readability */
.accordion-button {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
}

/* Optional: add subtle border to accordion body */
.accordion-body {
  border-top: 1px solid #ff0000;
  padding: 1.5rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #492424;
  text-decoration: none;
}
.accordion-body a {
  text-decoration: none;
  color: #f23232;
}
.accordion-body a:hover {
  text-decoration: none;
  color: #8a4224;
}