/* Global Styles */
:root {
  --primary-color: #2563eb;
  --secondary-color: #3b82f6;
  --accent-color: #1d4ed8;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #ffffff;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --background-light: #ffffff;
  --background-dark: #111827;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --transition-speed: 0.3s;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  height: 45px;
  width: auto;
  border-radius: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #6366f1;
}

.nav-links a:hover::after {
  width: 80%;
}

/* Existing styles */

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
  margin: 0 10px;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  padding: 10px;
  display: block;
}

.nav-dropdown .dropdown-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
}

.nav-dropdown .dropdown-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown .dropdown-container ul li {
  padding: 10px;
}

.nav-dropdown .dropdown-container ul li a {
  color: #333;
  text-decoration: none;
  display: block;
}

.nav-dropdown .dropdown-container ul li a:hover {
  background-color: #f5f5f5;
}

.nav-dropdown:hover .dropdown-container {
  display: block;
}

.search-bar {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #f9fafb;
}

.search-bar::before {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.search-input:focus {
  outline: none;
  border-color: #6366f1;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: #4b5563;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

/* Profile Dropdown Styles */
.profile-dropdown {
  position: relative;
}

.profile-icon {
  font-size: 1.5rem;
  color: #4b5563;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.profile-icon:hover {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 280px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.profile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.1), transparent);
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #6366f1, #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.profile-info h4 {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.profile-info span {
  color: #6366f1;
  font-size: 0.875rem;
}

.profile-sections {
  padding: 0.75rem;
}

.profile-section {
  margin-bottom: 0.5rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.profile-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(99, 102, 241, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-link:hover {
  color: #6366f1;
  transform: translateX(4px);
}

.profile-link:hover::before {
  opacity: 1;
}

.profile-link i {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #6366f1;
  transition: transform 0.3s ease;
}

.profile-link:hover i {
  transform: scale(1.1);
}

.profile-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(99, 102, 241, 0.1), transparent);
  margin: 0.75rem 0;
}

/* Sign Out Button Special Styling */
.profile-link.sign-out {
  color: #ef4444;
  margin-top: 0.5rem;
}

.profile-link.sign-out i {
  color: #ef4444;
}

.profile-link.sign-out:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Dark Mode Styles */
.dark-mode {
  background-color: var(--background-dark);
  color: var(--background-light);
}

.dark-mode .header {
  background-color: rgba(17, 24, 39, 0.95);
}

.dark-mode .nav-links a {
  color: var(--background-light);
}

.dark-mode .nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .profile-icon {
  color: var(--background-light);
}


/* Dropdown container styles */
.nav-dropdown .dropdown-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown .dropdown-container ul li {
  padding: 10px;
}

.nav-dropdown .dropdown-container ul li a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  /* Space between icon and text */
}

.nav-dropdown .dropdown-container ul li a i {
  font-size: 16px;
  /* Icon size */
}

.nav-dropdown .dropdown-container ul li a:hover {
  background-color: #f5f5f5;
}

/* Existing styles */

/* Dropdown in menu-sections */
.menu-dropdown-item {
  position: relative;
}

.menu-dropdown-item .menu-dropdown-container {
  display: none;
  position: static;
  background-color: #f9f9f9;
  border-left: 3px solid #007bff;
  margin-top: 5px;
  padding-left: 20px;
}

.menu-dropdown-item .menu-dropdown-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-dropdown-item .menu-dropdown-container ul li {
  padding: 8px 0;
}

.menu-dropdown-item .menu-dropdown-container ul li a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-dropdown-item .menu-dropdown-container ul li a:hover {
  color: #007bff;
}

.menu-dropdown-item .dropdown-icon {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.menu-dropdown-item.active .dropdown-icon {
  transform: rotate(180deg);
}

.menu-dropdown-item.active .menu-dropdown-container {
  display: block;
}

/* Responsive Design */
@media (max-width: 830px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-links {
    /* order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 1rem; */
    display: none;
  }

  .search-bar {
    order: 2;
  }

}












/* Menu Button and Dropdown Styles */
.menu-wrapper {
  position: relative;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: none;
  border-radius: 8px;
  color: #6366f1;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.menu-header h3 {
  color: #1f2937;
  font-size: 1.1rem;
  font-weight: 600;
}

.close-menu {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.close-menu:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.menu-sections {
  padding: 1rem 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.menu-section {
  padding: 0.5rem 1.5rem;
}

.menu-section h4 {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.menu-section ul {
  list-style: none;
}

.menu-section li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.menu-section li a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.menu-section li a i {
  width: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.menu-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.menu-tag.new {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Add smooth scrollbar styling */
.menu-sections::-webkit-scrollbar {
  width: 6px;
}

.menu-sections::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.menu-sections::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.menu-sections::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.menu-section li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.menu-section li a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.menu-section li a i {
  width: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.menu-tag {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.menu-tag.new {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* Add smooth scrollbar styling */
.menu-sections::-webkit-scrollbar {
  width: 6px;
}

.menu-sections::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.menu-sections::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.menu-sections::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Add your existing CSS styles here */

/* Dark Mode Styles */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .header,
body.dark-mode .footer,
body.dark-mode .nav-container,
body.dark-mode .menu-dropdown,
body.dark-mode .profile-menu,
body.dark-mode .quick-access-card,
body.dark-mode .course-card,
body.dark-mode .feature-item,
body.dark-mode .story-card {
  background-color: #1e1e1e;
  color: #ffffff;
}

body.dark-mode .cta-primary,
body.dark-mode .cta-secondary,
body.dark-mode .action-btn,
body.dark-mode .course-btn.primary,
body.dark-mode .premium-cta {
  background-color: #333333;
  color: #ffffff;
}

.main {
  display: none;
}

/* Responsive Design */
@media (max-width: 830px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .main {
    display: block;
  }

  .search-bar {
    order: 2;
  }
}




/* Enhanced Notification Styles */
.notification-center {
  position: relative;
}

.notification-bell {
  position: relative;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.notification-bell i {
  font-size: 1.25rem;
  color: #4b5563;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  max-height: 85vh;
  /* Set maximum height relative to viewport */
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
  /* Ensure it doesn't go outside viewport */
  transform-origin: top right;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
}

.notification-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.notification-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.notification-filters {
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background: rgba(99, 102, 241, 0.02);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.notification-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.filter-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-count {
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
}

.notification-body {
  flex: 1;
  min-height: 0;
  /* Critical for flex child scrolling */
  position: relative;
}

.notification-list {
  height: 100%;
  max-height: calc(85vh - 180px);
  /* Adjust based on header/footer height */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.5rem;
  scroll-behavior: smooth;
}

/* Override the global scrollbar hiding for notification list */
.notification-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  display: block;
}

.notification-list::-webkit-scrollbar-track {
  background: transparent;
  display: block;
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 3px;
  display: block;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.3);
}

/* Reset Firefox scrollbar for notification list */
.notification-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.2) transparent;
}

/* Ensure the notification items stack properly */
.notification-item {
  width: 100%;
  min-height: fit-content;
  margin-bottom: 0.5rem;
}

.notification-item {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  gap: 1rem;
  position: relative;
}

.notification-item:hover {
  background: rgba(99, 102, 241, 0.05);
  transform: translateX(4px);
}

.notification-item.unread {
  background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--primary-color);
  border-radius: 0 4px 4px 0;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notification-icon.placement {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.notification-icon.academic {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.notification-icon.events {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
  max-height: 2.5rem; /* Approximately 2 lines */
  line-height: 1.25;
}

.notification-message.expanded {
  -webkit-line-clamp: unset;
  max-height: 120px; /* Allow up to ~6 lines */
  overflow-y: auto;
  padding-right: 8px;
}

.notification-message.expanded::-webkit-scrollbar {
  width: 4px;
}

.notification-message.expanded::-webkit-scrollbar-track {
  background: transparent;
}

.notification-message.expanded::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 2px;
}

.notification-message.expanded::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.3);
}

.notification-message.expanded {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.2) transparent;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.show-more-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.show-more-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.show-more-btn i {
  font-size: 0.625rem;
  transition: transform 0.2s ease;
}

.show-more-btn.expanded i {
  transform: rotate(180deg);
}

.notification-footer {
  padding: 1rem;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  background: white;
  position: sticky;
  bottom: 0;
}

.mark-all-read {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mark-all-read:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-1px);
}

/* Dark Mode Support */
.dark-mode .notification-dropdown {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .notification-bell i {
  color: #e5e7eb;
}

.dark-mode .notification-header {
  background: linear-gradient(to right, rgba(99, 102, 241, 0.1), transparent);
}

.dark-mode .filter-btn.active {
  background: #2d3748;
}

.dark-mode .notification-item {
  background: #1f2937;
}

.dark-mode .notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dark-mode .notification-footer {
  background: #1f2937;
}

/* Dark mode support for notification actions */
.dark-mode .show-more-btn {
  color: #6366f1;
}

.dark-mode .show-more-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
}

.dark-mode .notification-message.expanded::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
}

.dark-mode .notification-message.expanded::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

/* Custom Scrollbar */
.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.3);
}

/* Additional Notification Styles */
.notification-loading,
.notification-error,
.notification-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.notification-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.notification-error {
  color: #ef4444;
}

.notification-error button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-error button:hover {
  background: rgba(239, 68, 68, 0.2);
}

.notification-empty {
  color: var(--text-secondary);
  padding: 3rem 1rem;
}

.notification-empty i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Enhanced notification item hover effect */
.notification-item {
  position: relative;
  overflow: hidden;
}

.notification-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      transparent,
      rgba(99, 102, 241, 0.05),
      transparent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.notification-item:hover::after {
  transform: translateX(100%);
}














/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.cta-button {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button.primary {
  background: white;
  color: var(--primary-color);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.academic-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.stat-item i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Resources Section */
.features-section {
  padding: 8rem 2rem;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 1.8rem;
  color: white;
}

.feature-card h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: #64748b;
}

/* Stream Filter */
.stream-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 50px;
  background: #f0f0f0;
  color: #666;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
}

/* Categories Section */
.categories-section {
  padding: 80px 20px;
  background: #fff;
}

.year-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.year-tab {
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.year-tab.active {
  background: var(--primary-color);
  color: white;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  display: none;
}

.branches-grid.active {
  display: grid;
}

.branch-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.branch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.semester-badge {
  background: #f0f0f0;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: #666;
}

.subject-list {
  margin-top: 1.5rem;
}

.subject-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: #f8f9fa;
  margin-bottom: 0.8rem;
}

.resource-count {
  margin-left: auto;
  font-size: 0.9rem;
  color: #666;
}

.resource-list {
  list-style: none;
  margin: 20px 0;
}

.resource-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: #64748b;
}

.resource-list li i {
  color: var(--primary-color);
}

.resource-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.resource-link {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
}

.resource-link.primary {
  background: var(--primary-color);
  color: white;
}

.resource-link.secondary {
  background: var(--light-bg);
  color: var(--primary-color);
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Blog Section Styles */
.blogs-section {
  padding: 80px 20px;
  background: var(--light-bg);
}

.blog-slider-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.blog-slider {
  display: flex;
  position: relative;
  left: 0;
  width: fit-content;
  transition: transform 0.5s ease;
}

.blog-image {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.08);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: center;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
  color: #1a1a1a;
}

.blog-content p {
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 15px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.blog-meta span {
  color: #888;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.read-more:hover {
  gap: 8px;
  color: var(--accent-color);
}

/* Responsive adjustments */

/* Success Stories Section Improvements */
.success-stories-section {
  padding: 80px 20px;
  background: var(--light-bg);
}

.testimonials-slider-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  display: flex;
  position: relative;
  left: 0;
  width: fit-content;
  transition: transform 0.5s ease;
}

.testimony-card {
  width: 100%;
  min-width: 800px;
  /* Same as container max-width */
  padding: 20px;
  box-sizing: border-box;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.student-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.student-info h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.badges {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.badge {
  background: var(--light-bg);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
}

/* Slider Navigation */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.prev-btn,
.next-btn {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .academic-stats {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .year-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .year-tab {
    width: calc(50% - 10px);
    text-align: center;
  }

  .branch-card {
    margin: 10px;
  }
}

/* Add smooth scrolling to the whole page */
html {
  scroll-behavior: smooth;
}



img.loaded {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Smooth transitions for grid changes */
.branches-grid {
  transition: all 0.3s ease;
}

/* Add hover effects to cards */
.feature-card,
.branch-card,
.blog-card,
.testimony-card {
  transition: all 0.3s ease;
}

.feature-card:hover,
.branch-card:hover,
.testimony-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Glassmorphism effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

/* Animation for background overlay */
@keyframes fadeOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Add these new styles */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.quick-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.quick-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.semester-grid {
  display: grid;
  gap: 3rem;
  padding: 2rem;
}

.semester-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.subject-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.resource-links {
  display: flex;
  gap: 1rem;
}

.resource-links a {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fa;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

/* Add more styles as needed */

/* Enhance Quick Access Section */
.quick-access-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.quick-card {
  background: white;
  border-radius: 25px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.quick-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.quick-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.quick-card:hover::before {
  transform: scaleX(1);
}

.quick-card i {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

.quick-links a {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

/* Enhance Semester Section */
.semester-section {
  padding: 6rem 2rem;
  background: white;
}

.semester-card {
  background: white;
  border-radius: 25px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  border: 1px solid #eef2ff;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f1f5f9;
}

.subject-count {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

.subject-item {
  background: #f8fafc;
  border-radius: 15px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.subject-item:hover {
  background: #f1f5f9;
  transform: translateX(5px);
}

.resource-links a {
  width: 40px;
  height: 40px;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.resource-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.card-footer {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid #f1f5f9;
}

.view-all,
.download-materials {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.view-all {
  background: var(--primary-color);
  color: white;
}

.download-materials {
  background: #f1f5f9;
  color: var(--text-dark);
}

/* Enhanced Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
  position: relative;
}

.section-header h2 {
  font-size: 2.8rem;
  background: linear-gradient(120deg, #2563eb, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Add floating shapes background */
.quick-access-section,
.semester-section {
  position: relative;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
  z-index: 0;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -200px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(37, 99, 235, 0.05));
}

/* Add hover animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.quick-card:hover i {
  animation: float 2s ease-in-out infinite;
}

/* Slider Styles */
.blog-slider-container,
.testimonials-slider-container {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  overflow: hidden;
  border-radius: 20px;
}

.blog-slider,
.testimonials-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.blog-card,
.testimony-card {
  flex: 0 0 100%;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.3s ease;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 1rem;
  height: calc(100% - 2rem);
}

/* Navigation Controls */
.slider-nav {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.prev-btn,
.next-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.prev-btn:hover,
.next-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.prev-btn:disabled,
.next-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  opacity: 0.5;
}

/* Dots Navigation */
.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {

  .blog-slider-container,
  .testimonials-slider-container {
    padding: 0;
  }

  .testimony-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .prev-btn,
  .next-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Loading State */
.slider-loading {
  position: relative;
}

.slider-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* Card Content Enhancements */
.blog-card .blog-image,
.testimony-card .student-profile {
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}

.blog-card .blog-content,
.testimony-card .testimony-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - 200px);
}

/* Testimony Card Styles */
.testimony-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
}

.student-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.student-profile img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.badge {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.quote {
  font-style: italic;
  margin: 1rem 0;
  color: #555;
}

/* Section Spacing & Layout */
section {
  padding: 60px 0;
  position: relative;
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.section-header h2 {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Blog Section Refinements */
.blogs-section {
  background: white;
  margin-top: -40px;
  /* Reduce gap with previous section */
}

.blog-slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-slider {
  margin: 0 -10px;
  /* Compensate for card margins */
  display: flex;
  gap: 0;
}

.blog-card {
  flex: 0 0 calc(33.333% - 20px);
  margin: 10px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Success Stories Refinements */
.success-stories-section {
  background: var(--light-bg);
  margin-top: -40px;
  /* Reduce gap with previous section */
}

.testimonials-slider-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.testimonials-slider {
  display: flex;
}

.testimony-card {
  /* flex: 0 0 calc(100% - 20px); */
  margin: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Navigation Controls Enhancement */
.slider-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.prev-btn,
.next-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.prev-btn:hover,
.next-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
 
  section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* Search Section Styles */
.search-section {
  padding: 2rem 0;
  background: white;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.search-box i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-right: 1rem;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-dark);
}

.popular-tags {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tag {
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Add loading animation for resources */
.resource-loading {
  position: relative;
  overflow: hidden;
}

.resource-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.2) 50%,
      transparent 100%);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

/* Enhanced card hover effects */
.quick-card:hover,
.semester-card:hover,
.branch-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Add progress indicator for resources */
.resource-progress {
  height: 4px;
  background: #f1f5f9;
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Enhanced Container Styles */
.quick-access-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.quick-access-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

.semester-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 5rem 2rem;
  position: relative;
}

.blogs-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
  padding: 5rem 2rem;
  position: relative;
}

/* Enhanced Card Styles */
.quick-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.semester-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.blog-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

/* Floating Decorative Elements */
.decorative-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
  filter: blur(40px);
  z-index: 0;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -200px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(37, 99, 235, 0.05));
}

/* Enhanced Hover Effects */
.quick-card:hover,
.semester-card:hover,
.blog-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 20px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Premium Button Styles */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.cta-button:hover::before {
  transform: translateX(100%);
}

/* Enhanced Section Transitions */
section {
  position: relative;
  z-index: 1;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
  pointer-events: none;
}

/* Premium Card Headers */
.card-header {
  background: linear-gradient(120deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  padding: 1.5rem;
  border-radius: 15px 15px 0 0;
}

/* Enhanced Icons */
.quick-card i,
.branch-card i {
  background: linear-gradient(120deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Premium Text Effects */
h3 {
  background: linear-gradient(120deg, #1e293b, #334155);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Enhanced Resource Links */
.resource-links a {
  background: linear-gradient(120deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

.resource-links a:hover {
  background: linear-gradient(120deg, #2563eb, #3b82f6);
  color: white;
  transform: translateY(-2px);
}

/* Add subtle animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.stat-item {
  animation: float 6s ease-in-out infinite;
}

.stat-item:nth-child(2) {
  animation-delay: -2s;
}

.stat-item:nth-child(3) {
  animation-delay: -4s;
}

/* Premium Section Headings */
.blogs-section h2,

.success-stories-section {
  width: 100%;
  padding: 0;
  margin: 0;
  background: #f8f9fc;
}

.content-slider {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-track.success-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
  min-height: 400px;
}

.story-card, .blog-card{
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: 22%;
  min-width: 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.story-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9eaf3;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.story-content {
  padding: 1.2rem 1rem 1.5rem 1rem;
  text-align: center;
}

.legend-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #6C63FF;
  margin-bottom: 0.5rem;
  display: block;
}

.legend-role {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
  display: block;
}

.legend-quote {
  font-size: 1rem;
  color: #222;
  margin-bottom: 1rem;
  font-style: italic;
}

.story-cta {
  color: #6C63FF;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
}

.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.prev-btn,
.next-btn {
  background: #6C63FF;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.prev-btn:hover,
.next-btn:hover {
  background: #5548c8;
}

@media (max-width: 1200px) {
  .story-card, .blog-card {
    width: 45%;
    min-width: 220px;
    max-width: 260px;
  }

  .content-track.success-track {
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .story-card, .blog-card {
    width: 90%;
    min-width: 180px;
    max-width: 220px;
  }

  .content-track.success-track {
    gap: 0.5rem;
  }
}

@media (max-width: 700px) {
  .content-track.success-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .story-card {
    width: 100%;
    min-width: 140px;
    max-width: 180px;
  }

  .story-image {
    height: 120px;
  }
}

/* Decorative elements for headings */
.blogs-section h2::before,
.success-stories-section h2::before {
  content: '📚';
  position: absolute;
  left: -3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

.success-stories-section h2::before {
  content: '🏆';
}

.blogs-section h2::after,
.success-stories-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  border-radius: 2px;
}

/* Section Header Container */
.section-header-premium {
  text-align: center;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* Animated background for section headers */
.section-header-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(59, 130, 246, 0.05) 0%,
      rgba(37, 99, 235, 0.05) 100%);
  transform: skewY(-3deg);
  z-index: -1;
}

/* Subtitle styling */
.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.6;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
}

/* Floating decorative elements */
.header-decoration {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3b82f6;
  opacity: 0.2;
  animation: floatDecoration 4s ease-in-out infinite;
}

.header-decoration:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: -1s;
}

.header-decoration:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: -2s;
}

.header-decoration:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: -3s;
}

@keyframes floatDecoration {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(10px, -10px);
  }
}

/* Semester Resources Section */
.department-resources {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.department-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.department-header {
  background: linear-gradient(120deg, #f8fafc, #f1f5f9);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.department-header i {
  font-size: 2.5rem;
  background: linear-gradient(120deg, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.department-header h3 {
  font-size: 1.8rem;
  margin: 0;
}

.semester-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.semester-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 15px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.1);
  text-decoration: none;
  color: inherit;
  display: block;
}

.semester-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.semester-box h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.subject-preview {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #64748b;
}

.subject-preview span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subject-preview span:first-child::before {
  content: '📚';
  font-size: 1rem;
}

.subject-preview span:last-child::before {
  content: '📑';
  font-size: 1rem;
}

/* Add hover effect for semester boxes */
.semester-box::after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.semester-box:hover::after {
  opacity: 1;
  right: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .semester-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 630px) {
  .semester-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 771px) {
  .academic-stats {
    display: none;
  }
}

/* Department Slider Styles */
.department-slider-container {
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.department-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  width: 100%;
  overflow: visible;
}

.department-card {
  min-width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  margin: 0;
  transition: box-shadow 0.3s;
}

/* Remove any custom slider bar styles */
.department-slider::-webkit-scrollbar,
.department-slider-container::-webkit-scrollbar {
  display: none !important;
}

/* Navigation Controls */
.department-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.dept-prev-btn,
.dept-next-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.dept-prev-btn:hover,
.dept-next-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.dept-prev-btn:disabled,
.dept-next-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
}

.department-dots {
  display: flex;
  gap: 0.5rem;
}

.department-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.department-dot.active {
  width: 30px;
  border-radius: 10px;
  background: var(--primary-color);
}

/* Resource Filter Bar */
.resource-filter-bar {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-group {
  display: flex;
  gap: 1rem;
}

.filter-select {
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:hover {
  border-color: var(--primary-color);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: #e2e8f0;
  color: var(--primary-color);
}

.view-btn.active {
  background: var(--primary-color);
  color: white;
}

/* List View Styles */
.semester-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.semester-grid.list-view .semester-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

.semester-grid.list-view .subject-preview {
  flex: 0 0 200px;
}

/* Update the slider styles to support smooth transitions */
.blog-slider-container,
.testimonials-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.blog-slider,
.testimonials-slider {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}



.prev-btn,
.next-btn {
  opacity: 1 !important;
  cursor: pointer !important;
}




























/* Add to your academics.css */
.department-slider-container {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.department-slider {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.department-card {
  flex: 0 0 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.semester-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.semester-box {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color);
}

.semester-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.semester-box h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.subject-preview {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.department-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.department-dots {
  display: flex;
  gap: 0.5rem;
}

.department-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
}

.department-dots .dot.active {
  background: var(--primary-color);
}

.dept-prev-btn,
.dept-next-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
}

/* Admin panel styles */
.admin-panel {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

.admin-panel h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-color);
  color: var(--text-color);
}

.admin-panel button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .semester-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .department-card {
    padding: 0.5rem;
  }
}




.chatbot-container {
  background-color: #ffffff;
  width: 450px;
  height: 640px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: fixed;
  bottom: 30px;
  right: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1999;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0);
  transform-origin: bottom right;
}

.chatbot-container.active {
  opacity: 1;
  transform: scale(1);
}

.chatbot-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #5540af;
  box-shadow: 0 4px 15px rgba(85, 64, 175, 0.4);
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-attention 2s infinite;
}

.chatbot-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(85, 64, 175, 0.5);
  animation: none;
}

.chatbot-button.active {
  transform: scale(0);
  opacity: 0;
}

.chatbot-icon {
  font-size: 34px;
  color: white;
  animation: blink-icon 4s infinite;
}

.chatbot-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.chatbot-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-header {
  background-color: #5540af;
  color: white;
  text-align: center;
  padding: 15px;
  font-weight: bold;
  font-size: 18px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.header-btn span {
  font-size: 14px;
}

.header-title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: bold;
  pointer-events: none;
}

.chat-messages {
  padding: 15px;
  flex: 1;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
}

.message {
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 85%;
  margin: 8px 0;
  font-size: 14px;
  clear: both;
  position: relative;
  word-wrap: break-word;
  line-height: 1.4;
}

.user-message {
  background-color: #5540af;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bot-message {
  background-color: #ffffff;
  color: #333;
  margin-right: auto;
  border-bottom-left-radius: 5px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bot-avatar {
  width: 30px;
  height: 30px;
  background-color: #5540af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  margin-right: 8px;
  margin-bottom: 5px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  background-color: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  margin-left: 8px;
  margin-bottom: 5px;
}

.message-with-avatar {
  display: flex;
  align-items: flex-end;
  margin-bottom: 8px;
  width: 100%;
}

.message-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.bot-img-container {
  position: absolute;
  bottom: 80px;
  left: 10px;
  display: flex;
  align-items: flex-end;
  animation: popUp 1s ease-out;
  z-index: 10;
  transition: all 0.3s ease;
}

.bot-img-wrapper {
  position: relative;
}

.close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  z-index: 11;
}

.close-btn:hover {
  transform: scale(1.1);
  background-color: #ff3333;
}

.bot-img-container img {
  width: 70px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.bot-dialogue {
  background-color: #ffffff;
  color: #333;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  margin-left: -5px;
  margin-bottom: 35px;
  font-size: 13px;
  font-weight: 500;
  max-width: 200px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.4;
}

@keyframes popUp {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #ffffff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

.chat-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  outline: none;
  margin-right: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: #5540af;
  box-shadow: 0 0 0 2px rgba(85, 64, 175, 0.2);
}

.action-btn {
  background-color: #5540af;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.typing-indicator {
  font-size: 12px;
  color: #777;
  margin: 5px 0 0 0;
  font-style: italic;
  animation: blink 1.5s infinite;
  margin-right: auto;
  display: flex;
  align-items: center;
}

.typing-indicator span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #999;
  border-radius: 50%;
  margin: 0 2px;
  animation: bounce 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.file-input-label {
  position: relative;
  display: inline-block;
}

.file-input-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-info {
  display: none;
  position: absolute;
  bottom: 60px;
  left: 10px;
  background-color: #fff;
  padding: 8px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  max-width: 200px;
  z-index: 20;
}

.file-info.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

.attached-file-preview {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin: 5px 0;
  position: relative;
  max-width: 90%;
  font-size: 12px;
  word-break: break-all;
}

.attached-file-icon {
  font-size: 18px;
  margin-right: 8px;
  color: #5540af;
}

.attached-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #ff3333;
  cursor: pointer;
  font-size: 16px;
  margin-left: 8px;
  padding: 2px;
}

.file-attachment-area {
  position: absolute;
  bottom: 70px;
  width: 90%;
  max-height: 100px;
  overflow-y: auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 8px;
  z-index: 5;
  display: none;
}

.file-attachment-area.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

.file-preview {
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
  margin: 5px;
  border-radius: 5px;
  border: 1px solid #eee;
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.emoji-panel {
  position: absolute;
  bottom: 70px;
  left: 10px;
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  z-index: 100;
  width: 250px;
}

.emoji-panel.show {
  display: grid;
}

.emoji-btn {
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  gap: 8px;
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.quick-action-btn {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.quick-action-btn:hover {
  background-color: #f0f7ff;
  border-color: #5540af;
  color: #5540af;
}

.history-panel {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100% - 120px);
  background-color: white;
  z-index: 100;
  padding: 15px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.history-panel.show {
  transform: translateX(0);
}

.history-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.history-item:hover {
  background-color: #f5f5f5;
}

.history-item-title {
  font-weight: bold;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #5540af;
}

.history-item-preview {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item-time {
  font-size: 10px;
  color: #999;
  text-align: right;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}

.overlay.show {
  display: block;
}

.voice-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #5540af;
  transition: all 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.voice-btn:hover {
  background-color: rgba(85, 64, 175, 0.1);
}

.voice-btn.listening {
  animation: pulse 1.5s infinite;
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.speak-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  color: #5540af;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  margin-right: 5px;
  transition: all 0.2s;
}

.speak-btn:hover {
  background-color: rgba(85, 64, 175, 0.1);
}

.speak-btn-icon {
  margin-right: 4px;
}

.stop-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  color: #dc3545;
  border-radius: 4px;
  display: none;
  align-items: center;
  margin-top: 5px;
  transition: all 0.2s;
}

.stop-btn.active {
  display: inline-flex;
}

.stop-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

.stop-btn-icon {
  margin-right: 4px;
}

.voice-controls {
  display: flex;
  margin-top: 5px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.header-btn-group {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.voice-settings-panel {
  position: absolute;
  top: 45px;
  left: 0;
  width: 280px;
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
  border: 1px solid #e0e0e0;
}

.voice-settings-panel.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.voice-settings-panel::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background-color: white;
  transform: rotate(45deg);
  border-left: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
}

.header-btn.active {
  background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voice-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 14px;
  margin-bottom: 10px;
}

.voice-setting-group {
  margin-bottom: 12px;
}

.voice-setting-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.voice-setting-group input[type="range"] {
  width: 100%;
  margin: 5px 0;
}

.voice-setting-group span {
  font-size: 12px;
  color: #666;
}

.voice-test-btn,
.voice-set-btn {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.voice-test-btn {
  background-color: #5540af;
  color: white;
  margin-bottom: 8px;
}

.voice-test-btn:hover {
  background-color: #4a378f;
}

.voice-set-btn {
  background-color: #4CAF50;
  color: white;
}

.voice-set-btn:hover {
  background-color: #45a049;
}

.header-btn.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.chat-notification {
  position: absolute;
  bottom: 100px;
  right: 30px;
  background-color: #5540af;
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 990;
}

.chat-notification.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .chatbot-container {
    width: 95%;
    height: 80%;
    right: 2.5%;
    bottom: 10%;
    max-height: 640px;
  }

  .chatbot-button {
    width: 60px;
    height: 60px;
    right: 20px;
    bottom: 20px;
  }

  .chatbot-icon {
    font-size: 28px;
  }

  .message {
    max-width: 90%;
  }

  .message-wrapper {
    max-width: 90%;
  }
}

@keyframes pulse-attention {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(85, 64, 175, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(85, 64, 175, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(85, 64, 175, 0.4);
  }
}

@keyframes blink-icon {

  0%,
  100% {
    opacity: 1;
  }

  40% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  60% {
    opacity: 1;
  }

  70% {
    opacity: 0.5;
  }

  80% {
    opacity: 1;
  }
}

.welcome-tour {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.welcome-tour.show {
  display: flex;
}

.tour-container {
  background-color: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.disclaimer {
  background-color: #fff3cd;
  color: #856404;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 13px;
  margin: 10px;
  border: 1px solid #ffeeba;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-icon {
  font-size: 16px;
}






/* Latest Blogs Section */
.latest-blogs {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.latest-blogs .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 40px 0;
}

.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
  height: 180px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.blog-excerpt {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 0.85rem;
}

.see-more-container {
  text-align: center;
  margin-top: 30px;
}

.see-more-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #58606f;
  color: white;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.see-more-btn:hover {
  background-color: #7387af;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.051);
}

/* Dark Mode Support for Latest Blogs */
.dark-mode .latest-blogs {
  background-color: #1f2937;
}

.dark-mode .blog-card {
  background: #2d3748;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .blog-title {
  color: #f3f4f6;
}

.dark-mode .blog-excerpt {
  color: #9ca3af;
}

.dark-mode .blog-meta {
  color: #9ca3af;
}

.dark-mode .see-more-btn {
  background-color: #3b82f6;
}

.dark-mode .see-more-btn:hover {
  background-color: #2563eb;
}


.blog-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.blog-prev-btn,
.blog-next-btn {
  background-color: #4a6eb5;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.blog-prev-btn:hover,
.blog-next-btn:hover {
  background-color: #3a5a9a;
}

.dark-mode .blog-prev-btn,
.dark-mode .blog-next-btn {
  background-color: #3b82f6;
}

.dark-mode .blog-prev-btn:hover,
.dark-mode .blog-next-btn:hover {
  background-color: #2563eb;
}

/* Latest Blogs Section */
.latest-blogs {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.latest-blogs .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.blogs-grid {
  display: flex;
  flex-wrap: nowrap;
  /* Ensures single line, no stacking */
  overflow-x: auto;
  /* Enables horizontal scrolling */

  /* Space between blog cards */
  margin: 40px 0;
  padding-bottom: 15px;
  /* Space for scrollbar visibility */
  scroll-behavior: smooth;
  /* Smooth scrolling effect */
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling on touch devices */
  align-items: stretch;
  /* Ensures all cards have the same height */
}

/* Hide scrollbar but keep functionality */
.blogs-grid::-webkit-scrollbar {
  height: 8px;
  /* Thin scrollbar */
}

.blogs-grid::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.blogs-grid::-webkit-scrollbar-track {
  background: transparent;
}

.blog-card {
  flex: 0 0 200px;
  /* Fixed width for each card, prevents shrinking/growing */
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  scroll-behavior: smooth;
  flex-direction: column;
  /* Ensures content inside card stacks vertically */
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  /* Prevents image from shrinking */
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
  flex-grow: 1;
  /* Allows content to take up remaining space */
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.blog-excerpt {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 0.85rem;
  margin-top: auto;
  /* Pushes meta to the bottom of the card */
}

.see-more-container {
  text-align: center;
  margin-top: 30px;
}

.see-more-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #2563eb;
  color: white;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.see-more-btn:hover {
  background-color: #a8b8d8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(62, 61, 61, 0.1);
}

/* Dark Mode Support for Latest Blogs */
.dark-mode .latest-blogs {
  background-color: #1f2937;
}

.dark-mode .blog-card {
  background: #2d3748;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .blog-title {
  color: #f3f4f6;
}

.dark-mode .blog-excerpt {
  color: #9ca3af;
}

.dark-mode .blog-meta {
  color: #9ca3af;
}

.dark-mode .see-more-btn {
  background-color: #3b82f6;
}

.dark-mode .see-more-btn:hover {
  background-color: #2563eb;
}









.inspiration-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.section-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  opacity: 0.1;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

.content-slider {
  overflow-x: auto;
  scroll-behavior: smooth;
}

.content-track {
  display: flex;
  gap: 20px;
}

.story-card, .blog-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
}

.story-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.story-content {
  padding: 20px;
  color: #333;
}

.legend-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
}

.legend-role {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.legend-quote {
  font-style: italic;
  margin-bottom: 15px;
}

.story-cta {
  display: inline-block;
  color: #4a6eb5;
  text-decoration: none;
  font-weight: 500;
}

.story-cta:hover {
  color: #3a5a9a;
}

@media (max-width: 768px) {
  .story-card {
    flex: 0 0 250px;
  }
}

@media (max-width: 480px) {
  .story-card {
    flex: 0 0 200px;
  }
}












.content-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.content-track {
  display: flex;
  flex-direction: row;
  gap: 25px;
  transition: all 0.3s ease;
  padding: 20px 0;
  scroll-behavior: smooth;
  overflow-x: scroll;
  scrollbar-width: none;
}

.success-track,
.thoughts-track {
  display: none;
}

.success-track.active,
.thoughts-track.active {
  display: flex;
}

.story-card, .blog-card {
  min-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.thought-card {
  min-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

.content-track:hover .story-card, .blog-card,
.content-track:hover .thought-card {
  transform: translateY(-5px);
}

/* Department Slider Container - Edge to Edge */
.department-slider-container {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0;
  box-sizing: border-box;
}

.department-slider {
  width: 100%;
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 0;
  box-sizing: border-box;
}

/* Optional: Remove padding from parent container for this section */
#semester-resources .container,
.semester-section .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100vw !important;
}

/* --- Latest Blogs Section Enhancement (Academics) --- */
.latest-blogs {
  background: #f6f8fe;
  border-radius: 20px;
  box-shadow: 0 4px 16px 0 rgba(99, 102, 241, 0.07), 0 1.5px 4px 0 rgba(99, 102, 241, 0.03);
  border: 1px solid #e5e9f2;
  padding: 60px 0 40px 0;
  margin: 40px 0;
}

.latest-blogs a,
.latest-blogs a:visited,
.latest-blogs a:active {
  text-decoration: none !important;
  color: inherit !important;
}

.latest-blogs a:hover {
  text-decoration: none !important;
  color: #2563eb !important;
}

.latest-blogs .blog-card,
.latest-blogs .blog-card * {
  color: #222 !important;
}

.dark-mode .latest-blogs {
  background: #23263a;
  border: 1px solid #353a50;
  box-shadow: 0 4px 16px 0 rgba(30, 41, 59, 0.18), 0 1.5px 4px 0 rgba(30, 41, 59, 0.09);
}

.dark-mode .latest-blogs .blog-card,
.dark-mode .latest-blogs .blog-card * {
  color: #fff !important;
}

/* === MOBILE RESPONSIVENESS FOR ACADEMICS PAGE === */

@media (max-width: 992px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 10px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .search-bar {
    max-width: 100%;
    margin: 10px 0;
  }

  .header {
    padding: 0.5rem 0.5rem;
  }

  .menu-dropdown {
    left: 0;
    width: 90vw;
    min-width: 220px;
    max-width: 350px;
    border-radius: 0 0 12px 12px;
  }

  .menu-sections {
    max-height: 70vh;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    gap: 0.5rem;
  }

  .logo {
    height: 36px;
  }

  .header {
    padding: 0.5rem 0.2rem;
  }

  .hero-content {
    padding: 60px 10px 30px 10px;
    text-align: center;
  }

  .hero-badge {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }

  .academic-stats {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }

  .stat-item {
    min-width: 120px;
    margin: 0 auto;
  }

  .quick-access-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .quick-card {
    min-width: 0;
    padding: 14px 8px;
  }

  .quick-card h3 {
    font-size: 1.1rem;
  }

  .quick-card p {
    font-size: 0.95rem;
  }

  .quick-links a {
    font-size: 0.95rem;
    padding: 6px 8px;
  }

  .semester-section .section-header-premium h2 {
    font-size: 1.2rem;
  }

  .department-slider-container {
    padding: 0 4px;
  }

  .department-slider {
    gap: 10px;
  }

  .department-card {
    min-width: 220px;
    padding: 10px 6px;
  }

  .semester-grid {
    gap: 10px;
  }

  .semester-box {
    min-width: 160px;
    padding: 10px 6px;
  }


  
  .blog-title {
    font-size: 1.1rem;
  }

  .blog-excerpt {
    font-size: 0.95rem;
  }

  .success-stories-section .content-slider {
    padding: 0 4px;
  }

  .story-card , .blog-card{
    min-width: 220px;
    padding: 10px 6px;
  }

  .legend-name {
    font-size: 1rem;
  }

  .legend-role {
    font-size: 0.9rem;
  }

  .legend-quote {
    font-size: 0.95rem;
  }

  .chatbot-container {
    width: 100vw;
    max-width: 100vw;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0;
  }

  .footer {
    padding: 24px 0 10px 0;
  }
}

@media (max-width: 600px) {

  /* .nav-container {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 2px;
  } */
  .menu-dropdown {
    width: 98vw;
    min-width: 0;
    max-width: 98vw;
    left: 0;
    border-radius: 0 0 12px 12px;
  }

  .menu-header h3 {
    font-size: 1.1rem;
  }

  .menu-section h4 {
    font-size: 1rem;
  }

  .menu-section ul {
    gap: 6px;
  }

  .menu-section li a {
    font-size: 0.98rem;
    padding: 8px 6px;
  }

  .menu-tag {
    font-size: 0.8rem;
    padding: 2px 6px;
  }

  .search-section {
    padding: 10px 0;
  }

  .search-box input {
    font-size: 1rem;
    padding: 8px 8px 8px 32px;
  }

  .popular-tags {
    gap: 6px;
    flex-wrap: wrap;
  }

  .tag {
    font-size: 0.95rem;
    padding: 4px 10px;
  }

  .quick-access-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-card {
    padding: 10px 4px;
  }

  .department-slider {
    gap: 6px;
  }

  .department-card {
    min-width: 160px;
    padding: 8px 4px;
  }

  .semester-grid {
    gap: 6px;
  }

  .semester-box {
    min-width: 120px;
    padding: 8px 4px;
  }

  
  .blog-card {
    padding: 8px 4px;
  }

  .success-stories-section .content-slider {
    gap: 6px;
  }

  .story-card, .blog-card {
    min-width: 160px;
    padding: 8px 4px;
  }

  .footer {
    padding: 12px 0 6px 0;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.2rem 0.1rem;
  }

  .logo {
    height: 28px;
  }

  .hero-content {
    padding: 40px 2px 18px 2px;
  }

  .hero h1 {
    font-size: 1.1rem;
  }

  .hero-badge {
    font-size: 0.95rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .stat-item h3 {
    font-size: 1.1rem;
  }

  .stat-item p {
    font-size: 0.9rem;
  }

  .quick-card h3 {
    font-size: 1rem;
  }

  .quick-card p {
    font-size: 0.9rem;
  }

  .quick-links a {
    font-size: 0.9rem;
    padding: 4px 6px;
  }

  .department-card {
    min-width: 100px;
    padding: 4px 2px;
  }

  .semester-box {
    min-width: 80px;
    padding: 4px 2px;
  }

  .blog-title {
    font-size: 1rem;
  }

  .blog-excerpt {
    font-size: 0.9rem;
  }

  .legend-name {
    font-size: 0.95rem;
  }

  .legend-role {
    font-size: 0.85rem;
  }

  .legend-quote {
    font-size: 0.9rem;
  }

  .footer {
    padding: 6px 0 2px 0;
  }

  .notification-message.expanded {
    max-height: 80px; /* Even smaller on very small screens */
  }
  
  .show-more-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Responsive notification dropdown */
@media (max-width: 1024px) {
  .notification-dropdown {
    right: 0;
    max-width: calc(100vw - 1rem);
  }
}

@media (max-width: 640px) {
  .notification-dropdown {
    right: 0;
    max-width: calc(100vw - 0.5rem);
    width: 320px;
  }
}

@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 60px !important;
    right: 0.5rem !important;
    left: 0.5rem !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 70vh;
  }
}

@media (max-width: 600px) {
  .notification-dropdown {
    position: fixed;
    top: 60px !important;
    right: 0.25rem !important;
    left: 0.25rem !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 65vh;
  }

  .notification-header,
  .notification-filters,
  .notification-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .notification-list {
    max-height: 45vh;
    min-height: 120px;
  }

  .notification-item {
    font-size: 1rem;
    padding: 12px 8px;
  }

  .notification-title h3 {
    font-size: 1.1rem;
  }

  .filter-btn {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .notification-actions {
    margin-top: 0.75rem;
  }
  
  .show-more-btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }
  
  .notification-message.expanded {
    max-height: 100px; /* Smaller max height on mobile */
  }
}

@media (max-width: 480px) {
  .notification-dropdown {
    position: fixed;
    top: 50px !important;
    right: 0.125rem !important;
    left: 0.125rem !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    max-height: 60vh;
  }

  .notification-header,
  .notification-filters,
  .notification-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .notification-list {
    max-height: 40vh;
  }

  .notification-item {
    padding: 10px 6px;
  }

  .notification-title h3 {
    font-size: 1rem;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  .notification-center {
    position: relative;
  }

  .notification-bell {
    padding: 0.375rem;
  }

  .notification-bell i {
    font-size: 1.1rem;
  }

  .notification-badge {
    min-width: 16px;
    height: 16px;
    font-size: 0.7rem;
    top: -1px;
    right: -1px;
  }
}

/* Responsive Footer Section */
@media (max-width: 800px) {
  .footer-content {
    padding: 0 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contact {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 12px auto;
    display: block;
  }

  .footer-links ul {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    padding: 10px 0;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
  }

  .footer-contact p {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .footer-links h3,
  .footer-contact h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
  }

  .footer-brand p {
    font-size: 1rem;
  }

  .social-links {
    justify-content: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 500px) {
  .footer {
    padding: 24px 0 10px 0;
  }

  .footer-logo {
    width: 60px;
    height: auto;
  }

  .footer-links ul {
    font-size: 0.98rem;
  }

  .footer-contact p,
  .footer-brand p {
    font-size: 0.95rem;
  }

  .footer-bottom {
    font-size: 0.92rem;
  }
}

/* === FIX: Department Slider Proper Horizontal Sliding === */
.department-slider {
  display: flex !important;
  flex-direction: row;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.department-card {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Make sure the container hides overflow */
.department-slider-container {
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .department-card {
    min-width: 100vw;
    width: 100vw;
  }

  .department-slider {
    min-width: 100vw;
  }
}





.logout-btn {
  margin-left: 10px;
  padding: 8px 12px;
  background-color: #dc3545;
  /* Bootstrap danger color */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background-color: #c82333;
}

.logout-btn i {
  margin-right: 5px;
}

/* --- Custom Modal Styles for Logout Confirmation --- */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.custom-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  min-width: 320px;
  max-width: 90vw;
  padding: 2rem 2.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInAlert 0.4s forwards;
}

.custom-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1rem;
}

.custom-modal-header i {
  font-size: 1.5rem;
  color: #2563eb;
}

.custom-modal-body {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

.custom-modal-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}

.modal-btn {
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.modal-btn.confirm {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.modal-btn.confirm:hover {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
}

.modal-btn.cancel {
  background: #f3f4f6;
  color: #1e293b;
  border: 1px solid #e5e7eb;
}

.modal-btn.cancel:hover {
  background: #e5e7eb;
}

@media (max-width: 600px) {
  .custom-modal-content {
    min-width: 90vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }

  .custom-modal-header {
    font-size: 1.1rem;
  }

  .modal-btn {
    font-size: 0.98rem;
    padding: 0.6rem 1.1rem;
  }
}

body.dark-mode .custom-modal-content {
  background: #23263a;
  color: #fff;
}

body.dark-mode .custom-modal-header,
body.dark-mode .custom-modal-header i {
  color: #60a5fa;
}

body.dark-mode .modal-btn.cancel {
  background: #23263a;
  color: #fff;
  border: 1px solid #353a50;
}

body.dark-mode .modal-btn.cancel:hover {
  background: #353a50;
}

@keyframes fadeInAlert {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- End Custom Modal Styles --- */


@media (max-width: 993px) {
  .main {
    display: block;
  }
}


/* Custom styles to enhance Tailwind */
.blog-card {
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-left: 20px;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
  aspect-ratio: 16 / 9;
  /* Maintain consistent image ratio */
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure image fills container without distortion */
  object-position: center;
  /* Center the image */
}

/* Ensure blog grid responsiveness */
@media (max-width: 640px) {
  .blog-card {
    margin-bottom: 1.5rem;
  }
}


.blog-card {
    margin: 15px; /* Adds space around each card */
    padding: 10px; /* Adds internal padding */
    background: #fff; /* Ensure background contrasts with spacing */
    border-radius: 8px; /* Optional: for a rounded look */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: for depth */
}

#latestBlogs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between cards */
    padding: 20px;
}


.blog-image {
    display: flex;
    justify-content: center; /* Horizontally centers the image */
    align-items: center; /* Vertically centers the image */
    height: 150px; /* Set a fixed height if needed */
    overflow: hidden; /* Prevents image overflow */
}

.blog-image img {
    max-width: 100%; /* Ensures image fits container */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes any default inline spacing */
    margin: 0 auto; /* Centers the image if flexbox isn't used */
}


@media (max-width: 453px) {
  .notification-dropdown{
    right: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    border-radius: 0 0 12px 12px !important;
    top: 48px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0 0 16px 0;
  }
}

@media (max-width: 769px) {
    .blogs-grid {
        display: grid; /* Ensure grid display is explicitly set */
        grid-template-columns: none; /* Remove column constraints */
        grid-auto-flow: column; /* Arrange items in a row */
        overflow-x: auto; /* Allow horizontal scrolling */
        gap: 16px; /* Add spacing between grid items */
        padding: 16px; /* Add padding around the grid container */
        scroll-snap-type: x mandatory; /* Smooth scrolling behavior */
        scroll-padding: 16px; /* Ensure content isn't cut off when scrolling */
        scrollbar-width: thin; /* Firefox: Slimmer scrollbar */
    }

    .blogs-grid::-webkit-scrollbar {
        height: 8px; /* Chrome/Safari: Custom scrollbar height */
    }

    .blogs-grid::-webkit-scrollbar-thumb {
        background: #888; /* Scrollbar color */
        border-radius: 4px; /* Rounded scrollbar */
    }

    .blogs-grid::-webkit-scrollbar-thumb:hover {
        background: #555; /* Hover effect for scrollbar */
    }

    .blog-card {
        padding: 16px; /* Slightly more padding for better spacing */
        min-width: 280px; /* Ensure cards have a minimum width */
        scroll-snap-align: start; /* Snap cards to the start of the scroll */
        background: #fff; /* Example background for cards */
        border-radius: 8px; /* Rounded corners for a modern look */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        box-sizing: border-box; /* Prevent padding from increasing card size */
        transition: transform 0.3s ease; /* Smooth hover effect */
    }

    .blog-card:hover {
        transform: translateY(-4px); /* Slight lift on hover for interactivity */
    }
}