body {
  font-family: "Fredericka the Great", cursive;
  line-height: 1.6;
  margin: 0;
  color: black;
}

h1, h2, h3, h4, h5, .sidebar {
    font-family: 'Playfair Display', serif;
    font-weight: bold; /* For headings */
}

p, li {
    font-family: 'Merriweather', serif; /* For body text */
}

.nav-link {
  color: gray;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: red;
}

/* Changelog button styles */
.changelog-btn {
  border: 2px solid red;
  color: red;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: white;
}

.changelog-btn:hover {
  background-color: darkred;
  color: white;
}

.contact-btn {
  background-color: red;
  color: white;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: darkred;
}

.navbar-nav {
  margin-left: auto;
  margin-right: auto;
}

.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  z-index: 1000;
}

.hero {
  padding-top: 100px;
}

.hero {
  padding: 180px 0;
}

h1 {
  font-size: 2.5rem;
}

.small-text {
  font-size: 1.1rem;
  font-weight: 500;
}

.input-group {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-hero {
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 14px;
}

.input-group input {
  border: none;
  font-size: 13px;
}

.input-group input:focus {
  border: none;
}

.topics {
  margin-bottom: 80px;
}

.topic-card {
  background-color: #ffffff; 
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
  margin-top: 15px;
}

.icon-container {
  display: inline-block;
  perspective: 1000px;
}

.icon-container i {
  background-color: #dc3545; 
  border-radius: 50%;
  padding: 15px;
  display: inline-block;
  transition: transform 1.2s ease;
}

.topic-card:hover .icon-container i {
  transform: rotateY(360deg);
}

.topic-card .icon-container i {
  transform: rotateY(0deg);
}

.small-text {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 5px;
}

.topic-heading {
  font-size: 2.5rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 25px;
}

.faq-section {
  margin-bottom: 80px;
}

.faq-card {
  background-color: #ffffff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
  margin-top: 15px;
}

.faq-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cta-section {
  padding: 40px 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  margin-bottom: 20px;
}

img.icon {
  width: 200px;
  height: 200px;
}

.custom-guide {
  margin-top: 60px;
}

/* Modern Sidebar Styles */
.sidebar {
  height: 100vh;
  position: fixed;
  width: 300px;
  background: #fff;
  padding: 30px 20px;
  border-right: none;
  overflow-y: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  scrollbar-width: thin;
  scrollbar-color: #d60000 #f1f1f1;
  top: 0;
  left: 0;
  margin-top: 90px;
  border-radius: 0 20px 20px 0;
  background-image: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-left: 4px solid #d60000;
  padding-bottom: 100px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #d60000, #ff4d4d);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 320px;
  z-index: 1100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.sidebar-toggle:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1000;
  }
  
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  }

  .sidebar-toggle {
    left: 20px;
    background: #d60000;
    color: white;
  }

  .sidebar-toggle:hover {
    background: #b30000;
  }
}

@media (max-width: 576px) {
  .sidebar {
    width: 350px;
    margin-top: 0 !important;
  }
}

.sidebar h2 {
  padding: 12px 0;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(214, 0, 0, 0.1);
  color: #333;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.sidebar h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #d60000, #ff4d4d);
  border-radius: 3px;
}

.sidebar h2 i {
  color: #d60000;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
  font-size: 15px;
  margin-bottom: 10px;
  border-radius: 0 10px 10px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.sidebar a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #d60000, #ff4d4d);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar a i {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: all 0.3s ease;
  color: #777;
}

.sidebar a:hover i {
  transform: translateX(3px) scale(1.1);
  color: #d60000;
}

.sidebar a:hover,
.sidebar a.active {
  color: #d60000;
  background-color: rgba(214, 0, 0, 0.05);
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(214, 0, 0, 0.1);
  transform: translateX(5px);
}

.sidebar a:hover::before,
.sidebar a.active::before {
  opacity: 1;
}

.sidebar hr {
  margin: 25px 0;
  border: none;
  height: 1px;
  background: linear-gradient(to right, rgba(214, 0, 0, 0.1), rgba(214, 0, 0, 0.05), transparent);
  opacity: 0.8;
  position: relative;
}

.sidebar hr::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 2px;
  background: #d60000;
  border-radius: 2px;
}

.content {
  margin-left: 300px;
  transition: margin-left 0.3s ease-in-out;
}

.content-section {
  padding: 20px;
}

@media (max-width: 991px) {
  .content {
    margin-left: 0;
  }
}

.sidebar-toggle {
  position: fixed;
  top: 70px;
  left: 15px;
  z-index: 1100;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.nav-links {
  margin-top: 30px;
}

.nav-links a {
  color: #d60000;
  font-weight: bold;
  text-decoration: none;
}

.submenu {
  margin-left: 25px;
  list-style-type: none;
  padding-left: 0;
  display: none;
  transition: all 0.4s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
}

.submenu.show {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.5s ease-in-out, opacity 0.4s ease;
  display: block;
}

.submenu li {
  padding: 5px 0;
  position: relative;
}

.submenu a {
  font-weight: 500;
  color: #666;
  text-decoration: none;
  padding: 10px 15px 10px 20px;
  display: block;
  font-size: 14px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 0 8px 8px 0;
  margin-bottom: 6px;
  background-color: rgba(0, 0, 0, 0.01);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
  border-left: 2px solid transparent;
}

.submenu a:hover {
  color: #d60000;
  background-color: rgba(214, 0, 0, 0.03);
  transform: translateX(3px);
}

.submenu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 1px;
  background: linear-gradient(to right, #d60000, transparent);
  opacity: 0.5;
}

.has-submenu {
  position: relative;
}

.has-submenu .fa-caret-down {
  transition: transform 0.3s ease, color 0.3s ease;
  opacity: 0.7;
  font-size: 14px;
  margin-left: 5px;
}

.has-submenu:hover .fa-caret-down {
  color: #d60000;
  opacity: 1;
}

.has-submenu.active .fa-caret-down {
  transform: rotate(180deg);
  color: #d60000;
  opacity: 1;
}

ul li {
  padding: 10px;
}

ol li {
  padding: 10px;
}

.contact-card {
  background-color: #ffffff; 
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
  margin-top: 15px;
}

.contact-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}

@media (max-width: 576px) {
  .custom-padding {
    padding: 0 !important;
  }
}
