:root {
  --primary-color: #4361ee;
  --primary-dark: #3a56d4;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --success-color: #4cc9f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 8px;
  --border-radius-sm: 4px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f7ff;
}

/* Navbar Container */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo Styles */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 5rem;
  width: 5.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: var(--transition);
}

.logo:hover .logo-text {
  color: var(--primary-dark);
}

/* Main Navigation */
.nav-main {
  display: flex;
  align-items: center;
}

.desktop-menu {
  display: flex;
  list-style: none;
  margin-right: 2rem;
}

.desktop-menu li {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--dark-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--border-radius-sm);
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.05);
}

.dropdown-icon {
  font-size: 0.75rem;
  margin-left: 0.5rem;
  transition: var(--transition);
}

/* Dropdown Menu */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  width: 400px;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  color: var(--dark-color);
  text-decoration: none;
  border: 1px solid var(--light-gray);
}

.course-card:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.course-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

.course-card h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.course-card p {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Search Bar */
.search-container {
  position: relative;
  margin-right: 1rem;
  width: 16rem;
}

.search-form {
  width: 100%;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  padding: 0.5rem;
  background-color: var(--light-gray);
  transition: var(--transition);
  /* max-width: 400px; */
  width: 100%;
}

.search-box:focus-within {
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
  max-width: 400px; /* Expanded on focus */
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  padding-left: 1rem;
  width: 6rem;
}

.search-button {
  background: transparent;
  border: none;
  color: var(--gray-color);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.5rem;
}

.search-button:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex; /* Better for centering */
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap; /* Prevent text wrapping */
}

/* Button styles remain the same */
.btn-login {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-login:hover {
  background-color: rgba(67, 97, 238, 0.05);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.1),
    rgba(67, 97, 238, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.user-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    rgba(67, 97, 238, 0.6)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-avatar i {
  font-size: 1.5rem;
  color: var(--primary-color);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.user-avatar:hover::before {
  opacity: 0.1;
}

.user-avatar:hover i {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 240px;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background-color: var(--white);
  transform: rotate(45deg);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.user-dropdown a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.user-dropdown a i {
  margin-right: 0.875rem;
  width: 20px;
  text-align: center;
  color: var(--gray-color);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.user-dropdown a:hover {
  background: linear-gradient(to right, rgba(67, 97, 238, 0.08), transparent);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

.user-dropdown a:hover::before {
  transform: scaleY(1);
}

.user-dropdown a:hover i {
  color: var(--primary-color);
  transform: translateX(2px) scale(1.1);
}

.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.1),
    transparent
  );
  margin: 0.5rem 0.75rem;
}

.logout-btn {
  color: #ff6b81;
}

.logout-btn i {
  color: #ff6b81;
}

.logout-btn:hover {
  background: linear-gradient(to right, rgba(255, 107, 129, 0.08), transparent);
  color: #ff4757;
}

.logout-btn:hover::before {
  background: #ff4757;
}

.logout-btn:hover i {
  color: #ff4757;
}

/* Smooth animation on mount */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Hamburger Menu */
.hamburger {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  width: 100%;
  height: 2px;
  background-color: var(--dark-color);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--dark-color);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  top: 8px;
}

/* Update the existing hamburger styles */
.hamburger.active .hamburger-inner {
  background-color: transparent;
  color: #fff;
}

.hamburger.active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Optional: Add transition for smoother animation */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  max-width: 350px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  background-color: var(--white);
  z-index: 1100;
  transition: var(--transition);
  padding: 1.5rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.mobile-auth,
.mobile-user {
  display: flex;
  gap: 0.75rem;
}

.mobile-user i {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.mobile-search {
  margin-bottom: 1.5rem;
}

.mobile-search form {
  display: flex;
  position: relative;
}

.mobile-search input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  font-size: 0.9rem;
  background-color: var(--light-gray);
}

.mobile-search button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gray-color);
  cursor: pointer;
}

.mobile-search button:hover {
  color: var(--primary-color);
}

/* Mobile Navigation */
.mobile-nav {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 0.5rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  color: var(--dark-color);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.mobile-nav a i {
  width: 30px;
  color: var(--gray-color);
}

.mobile-nav a:hover {
  background-color: rgba(67, 97, 238, 0.05);
  color: var(--primary-color);
}

.mobile-nav a:hover i {
  color: var(--primary-color);
}

/* Mobile Dropdown */
.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
}

.mobile-dropdown:hover {
  color: var(--primary-color);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  padding-left: 30px;
  background-color: #f8f9fa;
  transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
  max-height: 500px;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-content li a {
  display: flex;
  align-items: center;
  padding: 0.75rem;
}

.mobile-dropdown-content li a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Loading State */
.loading-courses {
  padding: 0.75rem;
  color: var(--gray-color);
  font-style: italic;
}

.fa-spin {
  margin-right: 10px;
}

/* User Links */
.mobile-user-links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-gray);
}

.mobile-logout {
  color: #dc3545;
}

/* Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-btn {
  padding: 6px 12px;
  border: none;
  background-color: var(--dark-color);
  font-weight: 700;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: row;
  /* align-items: center; */
  min-height: 90vh;
  padding: 2em 5%;
  /* padding: 2rem 5% 0; Adjusted top padding */
  position: relative;
  overflow: hidden;
  gap: 1rem;
}

.hero-content {
  flex: 1;
  z-index: 2;
  min-width: 0; /* Allows text to break properly */
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  white-space: normal; /* Changed from nowrap */
  overflow: hidden;
  position: relative;
}

.hero-content h1 span {
  color: var(--primary-color);
  position: relative;
}

.hero-content h1 span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: rgba(37, 99, 235, 0.2);
  z-index: -1;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gray-color);
  max-width: 600px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-in 2s forwards;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  min-width: 0; /* Allows proper image scaling */
}

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: fadeIn 1s ease-in;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-btn {
  border-radius: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  padding: 0.9rem 0.8rem;
  border-radius: 1rem;
}

.hero-btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.hero-btn-secondary {
  border: 2px solid #333;
  color: #333;
  background: transparent;
}

.hero-btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--light-color);
  border: 2px solid var(--secondary-color);
}

.hero-btn-secondary:hover {
  background-color: var(--secondary-color);
  color: white;
  border: 2px solid var(--secondary-color);
}

/* Typing animation */
.typewriter {
  position: relative;
  display: inline;
}

.typewriter::after {
  content: "|";
  position: absolute;
  right: -8px;
  color: var(--primary-color);
  animation: blink 1s infinite step-end;
}

.tech-graph {
  flex: 1;
  position: relative; /* This is crucial for absolute positioning of child elements */
  height: 100%;
  min-height: 400px;
  width: 100%;
  overflow: hidden; /* Prevents nodes from escaping the container */
}

/* Add this to style the individual tech nodes */
.tech-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.1s ease-out;
  pointer-events: none; /* Prevents nodes from interfering with clicks */
}

/* Card Overlay (Dark Semi-Transparent Background) */
.hero-course-card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* Card Styling */
.hero-course-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 24px;
  max-width: 380px;
  width: 90%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-course-card.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.hero-course-card-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close Button (Top-Right) */
.hero-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s;
}

.hero-close-btn:hover {
  background: #f3f4f6;
}

/* Card Content Styling */
.hero-card-content {
  text-align: center;
  padding: 12px;
}

.hero-card-icon {
  margin-bottom: 16px;
}

.hero-card-content h4 {
  font-size: 1.25rem;
  color: #111827;
  margin-bottom: 8px;
  font-weight: 600;
}

.hero-card-content p {
  color: #6b7280;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Action Button */
.hero-card-action-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-card-action-btn:hover {
  background: #2563eb;
}

.countdown-timer {
  margin: 12px 0;
  font-size: 0.9rem;
  color: #6b7280;
}

#countdown {
  font-weight: 600;
  color: #3b82f6;
}

.blogs-container {
  padding: 50px 20px;
  max-width: 98%;
  margin: 20px auto;
  background-color: var(--light-color);
  border: 2px solid var(--light-color);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Browse Paths Section */
.browse-paths {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #f8f9fa;
}

.browse-paths .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  margin-bottom: 3rem;
  font-size: 2rem;
  color: #2c3e50;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Categories */
.category {
  margin-bottom: 3.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.category-title {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: #34495e;
  text-align: center;
  position: relative;
  font-weight: 500;
  padding-bottom: 0.5rem;
}

.category-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

.tech-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1/1;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s ease;
  padding: 1rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: rgba(52, 152, 219, 0.2);
}

.tech-icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tech-icon:hover img {
  transform: scale(1.1);
}

.tech-icon span {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.articles {
  width: 75%;
  margin: auto;
}
.article-heading {
  text-align: center;
  font-size: 1.5em;
  border: 1px solid var(--gray-color);
  padding: 0.5rem;
  margin: 1rem 1rem;
}

/* Error State Styles */
.no-blogs-container {
  /* max-width: 800px; */
  margin: 2rem 1rem;
  padding: 2rem;
  text-align: center;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 1em;
}

.no-blogs-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.3;
}

.no-blogs-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-light);
}

.apology-card {
  background-color: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  padding: 1rem;
}

.apology-card p {
  margin-bottom: 1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.apology-card ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.no-blogs-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.no-blogs-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 1rem;
  border: 2px solid transparent;
}

.no-blogs-btn-primary {
  background-color: #4361ee;
  color: white;
}

.no-blogs-btn-primary:hover {
  background-color: #3f37c9;
  transform: translateY(-2px);
}

.no-blogs-btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.no-blogs-btn-outline:hover {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  transform: translateY(-2px);
}

/* Search Results Header */
.search-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.search-heading h3 {
  font-size: 1.5rem;
  color: var(--color-text);
}

.search-heading a {
  color: var(--color-primary);
  text-decoration: none;
}

.search-heading a:hover {
  text-decoration: underline;
}

/* Blogs */

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-image-container {
  position: relative;
  padding-top: 56.25%;
  /* 16:9 aspect ratio */
  overflow: hidden;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .image-overlay {
  opacity: 1;
}

.blog-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #1f2937;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: #3b82f6;
}

.card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.meta-author,
.meta-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.meta-icon {
  flex-shrink: 0;
}

.author-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-link:hover {
  color: #3b82f6;
}

/* Pagination Styles */
.pagination-container {
  margin-top: 3rem;
}

.pagination-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.pagination-link.current {
  background-color: #3b82f6;
  color: white;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #9ca3af;
}
/* Blog Single Page */

/* Base Typography Settings */
.single-blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: #333;
  line-height: 1.7;
}

.blog-title h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 1.5rem 0;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.blog-meta {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.blog-meta strong {
  color: #333;
  font-weight: 600;
}

/* Blog Content Styling */
.blog-content {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.blog-content p {
  margin: 0 0 1.75rem;
  word-spacing: 0.05em;
}
.blog-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  margin: 2.5rem 0 1.25rem;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

.blog-content h1 {
  font-size: 2.25rem;
}
.blog-content h2 {
  font-size: 1.875rem;
}
.blog-content h3 {
  font-size: 1.5rem;
}
.blog-content h4 {
  font-size: 1.25rem;
}
.blog-content h5 {
  font-size: 1.125rem;
}
.blog-content h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Special Text Classes */
.ql-size-huge {
  font-size: 2.5rem;
  font-weight: 900;
  color: #222;
  line-height: 1.2;
  margin: 1.5rem 0;
}

.ql-size-large {
  font-size: 1.375rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  margin: 1.25rem 0;
}

/* Lists */
.blog-content ul,
.blog-content ol {
  margin: 0 0 1.75rem;
  padding-left: 2rem;
}

.blog-content li {
  margin: 0.75rem 0;
  padding-left: 0.5rem;
}

/* Links */
.blog-content a {
  color: #4361ee;
  text-decoration: none;
  border-bottom: 1px solid rgba(67, 97, 238, 0.3);
  transition: all 0.2s ease;
}

.blog-content a:hover {
  color: #3a56d4;
  border-bottom-color: #3a56d4;
}

/* Blockquotes */
.blog-content blockquote {
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid #4361ee;
  padding: 0.5rem 1.5rem;
  /* margin: 2rem 0; */
  background: #fff;
  color: #555;
  border-radius: 0 4px 4px 0;
}

/* Code Blocks */
.blog-content pre {
  position: relative;
  padding: 1.5rem;
  margin: 2rem 0;
  background: #1e1e1e;
  color: #f8f8f2;
  border-radius: 8px;
  overflow: auto;
  font-family: "Fira Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-content code {
  font-family: "Fira Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.blog-content .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.blog-content .copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Author Section */
.author-section {
  margin: 3rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4361ee;
}

.about-author {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.author-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0.5rem;
}

.author-name {
  font-weight: 600;
  color: #4361ee;
  font-style: normal;
}

/* Category & Tags */
.category {
  font-size: 1rem;
  color: #666;
  margin: 1.5rem 0 0.5rem;
}

.tag-list {
  margin: 1rem 0 2rem;
}

.tag {
  display: inline-block;
  background-color: #4361ee;
  color: white;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  margin: 0.25rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.tag:hover {
  cursor: pointer;
  font-weight: bold;
  background-color: #3a56d4;
  color: white;
  transform: translateY(-1px);
}

.ql-snow .ql-picker.ql-size .ql-picker-item::before,
.ql-snow .ql-picker.ql-size .ql-picker-label::before {
  content: attr(data-value);
  font-size: inherit;
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="12px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="12px"]::before {
  content: "12px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="14px"]::before {
  content: "14px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="16px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="16px"]::before {
  content: "16px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="18px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="18px"]::before {
  content: "18px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="20px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="20px"]::before {
  content: "20px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="24px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="24px"]::before {
  content: "24px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="28px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="28px"]::before {
  content: "28px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="30px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="30px"]::before {
  content: "30px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="32px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="32px"]::before {
  content: "32px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="36px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="36px"]::before {
  content: "36px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="48px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="48px"]::before {
  content: "48px";
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="72px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="72px"]::before {
  content: "72px";
}
.ql-editor img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}
.ql-editor iframe {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}

/* Share Icons */
.share-icons {
  width: 100%;
  max-width: 1000px;
  padding: 0 18px;
  margin: auto;
}

/* Footer */

footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 20px 0;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex-wrap: wrap;
}
.footer-section {
  flex: 1;
  margin: 10px;
  min-width: 250px;
}
.footer-section h4 {
  font-size: 1em;
  margin-bottom: 10px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin: 5px 0;
}
.footer-section ul li a {
  color: var(--light-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-section ul li a:hover {
  color: var(--secondary-color);
}
.footer-section p {
  font-size: 0.9em;
  line-height: 1.6;
}
.footer-section a {
  color: var(--primary-color);
  text-decoration: none;
}
.footer-section a:hover {
  color: var(--secondary-color);
}
.footer-section a:hover {
  text-decoration: underline;
}

.footer-section .social-links a {
  color: var(--light-color);
  margin: 0 5px;
  font-size: 1.4;
  transition: color 0.3s ease;
}
.footer-section .social-links a:hover {
  color: var(--primary-color);
}

.send-email-input {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid var(--primary-color);
}

.send-email-btn {
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  color: var(--light-color);
  background-color: var(--primary-color);
  font-weight: bold;
  width: 100%;
}
.send-email-btn:hover {
  background-color: var(--secondary-color);
  color: var(--gray-color);
}

/* .send-email-form {
  display: flex;
  margin-top: 10px;
}
.send-email-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 20px 20px 0 0;
}
.send-email-form input:focus {
  outline: 0;
}
.send-email-form button {
  padding: 10px 20px;
  border: none;
  color: var(--light-color);
  cursor: pointer;
  border-radius: 0 0 20px 20px;
}
.send-email-form button:hover {
  background-color: var(--primary-color);
} */

.social-links {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
}
.footer-bottom {
  background-color: #252422;
  padding: 10px 20px;
  margin-bottom: -18px;
  text-align: center;
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease;
}
.social-links a .fa-youtube:hover {
  color: var(--primary-color);
}
.social-links a .fa-instagram:hover {
  color: #e37992;
}
.social-links a .fa-linkedin:hover {
  color: #0a63bc;
}

/* .first-paragraph::first-letter {
  font-size: 3em;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  color: var(--primary-color);
  text-transform: uppercase; 
 } */

/* About Us */
.about,
.contact,
.portfolio {
  padding: 50px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
/* .about {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 50px 20px;
  max-width: 98%;
  margin: 20px auto;
  background-color: #f9f9f9;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
} */

.about {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.about-section {
  margin-bottom: 4rem;
}

.about-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-content.reverse {
  flex-direction: row-reverse;
}

.about-image {
  width: 50%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
  width: 50%;
}

.about-text p,
.about-text li {
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

.about-section h2 {
  font-size: 2.5rem;
  color: #2c3e50; /* A deep navy-blue shade */
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.about-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #4361ee;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-member {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-member h3 {
  margin: 0.5rem 0;
  color: #333;
}

.team-member p {
  margin: 0.3rem 0;
  color: #666;
}

/* #portfolio {
  background-color: #f9f9f9;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  max-width: 98%;
  margin: 20px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
.portfolio-item:hover img {
  transform: scale(1.1);
}
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
} */

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../Resources/images/contact-hero-image.jpg") no-repeat center
      center/cover;
  min-height: 400px;
  height: 60vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
  position: relative;
}

.contact-hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

.contact-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--light-color);
  text-shadow: 2px 2px 4px var(--primary-color);
  line-height: 1.2;
}

.contact-hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-color);
  line-height: 1.5;
}

.contact-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn-primary,
.contact-btn-secondary {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  min-width: 180px;
}

.contact-btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.contact-btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.contact-btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.contact-btn-secondary:hover {
  background-color: white;
  color: var(--dark-color);
}

/* Existing Contact Container Enhancements */
.contact-container {
  margin: 1rem;
  padding: 1.5rem;
  background-color: #a0c4ff5f;
  border-radius: 12px;
}
.text-center {
  text-align: center;
}
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.col {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}
.contact-query {
  color: #2f1b13;
  margin: 20px;
}
.contact-form h5,
.contact-info h5 {
  color: var(--primary-color);
  font-size: 1.2em;
}
.info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem;
}
.map {
  width: 100%;
  height: 250px;
  border-radius: 8px;
}
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}
.contact-text {
  font-weight: 600;
  font-size: 1.5em;
  padding: 0.6rem;
}
.contact-form button {
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.form-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #151717;
  margin-bottom: 5px;
}
.form-subtext {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}
::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.flex-column > label {
  color: #151717;
  font-weight: 600;
}

/* Sign Up and Login Common CSS */
.signup-page,
.login-page {
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  color: #334155;
  position: relative;
  overflow: hidden;
}

.signup-container,
.login-container {
  width: 100%;
  max-width: 1200px;
  padding: 40px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Decorative Elements */
.signup-decoration .login-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape-1,
.shape-2,
.shape-3 {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(99, 102, 241, 0) 100%
  );
}

.shape-1 {
  width: 600px;
  height: 600px;
  top: -300px;
  right: -300px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  left: -200px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 10%;
}
.signup-card,
.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 60px;
  width: 100%;
  max-width: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.signup-card:hover,
.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}
.signup-header,
.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: #6366f1;
  margin-right: 12px;
}

.logo-text {
  font-size: 1.2em;
  font-weight: 700;
  color: #1e293b;
}

.signup-header h1,
.login-header h1 {
  font-size: 1.75em;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.signup-header p,
.login-header p {
  color: #64748b;
  font-size: 1em;
  max-width: 320px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 1em;
  font-weight: 500;
  color: #475569;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.shake {
  animation: shake 0.5s;
}

.signup-btn,
.login-btn {
  width: 100%;
  padding: 16px;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
} /* General Input Styles */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.input-wrapper i {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 1em;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1em;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background-color: white;
}

.toggle-password {
  position: absolute;
  right: 48px;
  top: 18px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  font-size: 1em;
}

/* Password Hints */
.password-hints .hint {
  font-size: 0.8em;
  color: #64748b;
  margin: 4px 0;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  margin: 20px 0;
  font-size: 1em;
}

.form-checkbox input {
  margin-right: 10px;
  accent-color: #6366f1;
  width: 16px;
  height: 16px;
}

.form-checkbox a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.form-checkbox a:hover {
  text-decoration: underline;
}

/* Buttons */
.signup-btn:hover,
.login-btn:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
}

.signup-btn i,
.login-btn i {
  transition: transform 0.3s ease;
}

.signup-btn:hover i,
.login-btn:hover i {
  transform: translateX(4px);
}

/* Footer */
.signup-footer,
.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 1em;
  color: #64748b;
}

.signup-footer a,
.login-footer a {
  color: #6366f1;
  font-weight: 500;
  text-decoration: none;
}

.signup-footer a:hover,
.login-footer a:hover {
  text-decoration: underline;
}

/* Validation */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.terms-error {
  color: #ef4444;
  font-size: 0.5em;
  margin-top: 0.25rem;
  display: none;
}

.form-checkbox.invalid .terms-error {
  display: block;
}

.validation-feedback {
  margin-top: 0.25rem;
  height: auto;
  transition: all 0.3s ease;
}

.hint-text {
  font-size: 0.8em;
  color: #6b7280;
  margin-bottom: 0.25rem;
  display: none;
}

.input-wrapper.focused ~ .validation-feedback .hint-text,
.input-wrapper.invalid ~ .validation-feedback .hint-text {
  display: block;
}

.error-message {
  color: #ef4444;
  font-size: 0.8em;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.input-wrapper.invalid ~ .validation-feedback .error-message {
  height: auto;
}

.validation-icons {
  position: absolute;
  right: 1rem;
  display: flex;
}

.valid-icon,
.invalid-icon {
  opacity: 0;
  transition: all 0.3s ease;
}

.input-wrapper.valid .valid-icon {
  opacity: 1;
  color: #10b981;
}

.input-wrapper.invalid .invalid-icon {
  opacity: 1;
  color: #ef4444;
}

/* Password Strength */
.password-strength {
  margin-top: 0.5rem;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
}

.strength-weak {
  background: #ef4444;
  width: 25%;
}

.strength-medium {
  background: #f59e0b;
  width: 50%;
}

.strength-strong {
  background: #10b981;
  width: 75%;
}

.strength-very-strong {
  background: #3b82f6;
  width: 100%;
}

.strength-text {
  font-size: 0.5em;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
  font-size: 1em;
}

.forgot-password {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}

#toolbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
#editor {
  min-height: 300px;
  border: 1px solid #ccc;
  border-top: none;
  padding: 10px;
  overflow-y: auto;
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-container {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  pointer-events: none;
}

.flash-message {
  background-color: #4caf50;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 280px;
  max-width: 90%;
  width: fit-content;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  pointer-events: auto;
}

.flash-message.show {
  opacity: 1;
  transform: translateY(0);
}

.flash-message.success {
  background-color: #4caf50;
  border-left: 4px solid #388e3c;
}

.flash-message.error {
  background-color: #f44336;
  border-left: 4px solid #d32f2f;
}

.flash-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.flash-text {
  flex-grow: 1;
  word-break: break-word;
  line-height: 1.5;
  font-size: 15px;
}

.flash-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  margin-left: 16px;
  padding: 0 0 0 8px;
  transition: color 0.2s ease;
}

.flash-close:hover {
  color: white;
}

/* Animation for hiding */
.flash-message.hide {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-out;
}
.forget-password-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f4;
}
.forget-mini-container {
  width: 100%;
  max-width: 400px;
}
.forget-mini-container .card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.forget-mini-container h2 {
  margin-bottom: 15px;
}
.forget-mini-container .alert {
  background-color: #d1e7dd;
  color: #155724;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
}
.forget-mini-container label {
  display: block;
  text-align: left;
  margin-bottom: 5px;
  font-weight: 700;
}
.forget-mini-containerinput {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.forget-mini-container button {
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}
.forget-mini-container button:hover {
  background-color: #0056b3;
}
.forget-mini-container.back-link {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  color: #007bff;
}
.forget-mini-container.back-link:hover {
  text-decoration: underline;
}

/* Author Profile */

/* All Courses */
.course-section {
  max-width: 1200px;
  margin: 1rem auto;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.course-image {
  height: 180px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-content {
  padding: 20px;
}

.course-category {
  display: inline-block;
  background: #e1f5fe;
  color: #0288d1;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.course-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.course-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 0.9rem;
}

.course-price {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1rem;
}
