:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --accent-color: #f59e0b;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-bg: rgba(255, 255, 255, 0.9);
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
}

[data-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-color-rgb: 59, 130, 246;
  --bg-light: #0f172a;
  --text-dark: #f1f5f9;
  --white: #1e293b;
  --nav-bg: rgba(15, 23, 42, 0.9);
  --card-bg: #1e293b;
  --border-color: #334155;
  --secondary-color: #94a3b8;
  --input-bg: #1e293b;
}

[data-theme="maroon"] {
  --primary-color: #800000;
  --bg-light: #fdf2f2;
  --text-dark: #4a0404;
  --white: #ffffff;
  --nav-bg: rgba(253, 242, 242, 0.9);
  --card-bg: #ffffff;
  --border-color: #fbd5d5;
  --secondary-color: #9b1c1c;
}

[data-theme="grey"] {
  --primary-color: #4b5563;
  --bg-light: #f3f4f6;
  --text-dark: #111827;
  --white: #ffffff;
  --nav-bg: rgba(243, 244, 246, 0.9);
  --card-bg: #ffffff;
  --border-color: #d1d5db;
  --secondary-color: #6b7280;
}

.modal-content {
  background-color: var(--card-bg);
  color: var(--text-dark);
}

[data-theme="dark"] .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="medical"] {
  --primary-color: #059669;
  --bg-light: #ecfdf5;
  --text-dark: #064e3b;
  --white: #ffffff;
  --nav-bg: rgba(236, 253, 245, 0.9);
  --card-bg: #ffffff;
  --border-color: #d1fae5;
  --secondary-color: #059669;
}

[data-theme="maroon"] .quotes-section,
[data-theme="grey"] .quotes-section,
[data-theme="medical"] .quotes-section {
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
  border-color: var(--border-color);
}

[data-theme="maroon"] #dynamic-quote,
[data-theme="grey"] #dynamic-quote,
[data-theme="medical"] #dynamic-quote {
  color: var(--text-dark);
}

[data-theme="maroon"] .heart-video-section,
[data-theme="grey"] .heart-video-section,
[data-theme="medical"] .heart-video-section {
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
}

[data-theme="maroon"] .mobile-sidebar {
  background: #fdf2f2;
}
[data-theme="grey"] .mobile-sidebar {
  background: #f3f4f6;
}
[data-theme="medical"] .mobile-sidebar {
  background: #ecfdf5;
}

[data-theme="dark"] .quotes-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: var(--border-color);
}

[data-theme="dark"] .quote-icon {
  opacity: 0.4;
}

[data-theme="dark"] #dynamic-quote {
  color: #f1f5f9;
}

[data-theme="dark"] .heart-video-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .heart-video-content h2 {
  color: #f1f5f9;
}

[data-theme="dark"] .heart-video-content p {
  color: #94a3b8;
}

[data-theme="dark"] .announcement-item:hover {
  background: #334155;
}

[data-theme="dark"] .search-container {
  background: #1e293b;
}

[data-theme="dark"] .search-input {
  background: transparent;
  color: var(--text-dark);
}

[data-theme="dark"] .profile-dropdown-menu {
  background: #1e293b;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .profile-header,
[data-theme="dark"] .dropdown-divider,
[data-theme="dark"] .announcement-item,
[data-theme="dark"] .partners-section {
  border-color: var(--border-color);
}

[data-theme="dark"] .mobile-sidebar {
  background: #0f172a;
}

[data-theme="dark"] .modern-card {
  border-color: var(--border-color);
}

[data-theme="dark"] .modern-card:hover {
  background: #1e293b;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card-icon {
  background: rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .modern-pdf-card {
  background: #1e293b;
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .pdf-thumb {
  background: #0f172a;
}

[data-theme="dark"] .doctor-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .quiz-option:hover {
  background: rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .floating-card {
  background: #1e293b;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}

@media (max-width: 991px) {
  .theme-toggle-btn {
    font-size: 1rem;
    padding: 6px;
    margin-left: 5px;
  }
}

.theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modern-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

/* --- Quiz Section --- */
.quiz-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.quiz-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 12px;
  text-align: left;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
  color: var(--text-dark);
  font-weight: 500;
}

.quiz-option:hover {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.quiz-option.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.quiz-progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  transition: width 0.4s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin: 0 0.5rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Desktop specific */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
}

/* Mobile Sidebar Toggle - From Right */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  transition: right 0.4s ease-in-out;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-sidebar.active {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-close {
  align-self: flex-end;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2rem;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
}

.mobile-nav-item {
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-color);
}

.mobile-submenu {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  display: none;
}

.mobile-submenu.active {
  display: block;
}

.mobile-submenu .mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

.dropdown-toggle-custom i:last-child {
  transition: transform 0.3s ease;
}

.dropdown-toggle-custom.active i:last-child {
  transform: rotate(90deg);
}

/* --- Hero Section --- */
.modern-hero {
  padding: 120px 0 60px;
  background: linear-gradient(
    135deg,
    rgba(239, 246, 255, 1) 0%,
    rgba(219, 234, 254, 1) 100%
  );
  min-height: 80vh;
  display: flex;
  align-items: center;
}

[data-theme="dark"] .modern-hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1e3a8a;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image-container {
  position: relative;
}

.hero-image-container img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- Department Cards --- */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modern-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: #eff6ff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.modern-card:hover .card-icon {
  background: var(--primary-color);
  color: var(--white);
}

/* --- PDF Gallery --- */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.modern-pdf-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.modern-pdf-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pdf-thumb {
  height: 200px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.pdf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 99, 235, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.modern-pdf-card:hover .pdf-overlay {
  opacity: 1;
}

.pdf-info {
  padding: 1.5rem;
}

.pdf-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* --- Leadership --- */
.leadership-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .leadership-card {
    flex-direction: row;
  }
  .leader-img {
    width: 40%;
  }
  .leader-content {
    width: 60%;
    padding: 3rem;
  }
}

.leader-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-content {
  padding: 2rem;
}

/* --- Footer --- */
.modern-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 20px;
}

.footer-logo {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: block;
  text-decoration: none;
}

.footer-heading {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-circle {
  width: 40px;
  height: 40px;
  background: #1e293b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 10px;
  transition: var(--transition);
  text-decoration: none;
}

.social-circle:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 60px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Device Specific tweaks */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
}
/* --- Typing Animation --- */
.welcome-typing-container {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  text-align: center;
}

#typing-text {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-color);
  border-right: 4px solid var(--primary-color);
  display: inline-block;
  margin: 0;
  line-height: 1.2;
  animation: blink 0.75s step-end infinite;
}

@media (max-width: 767px) {
  #typing-text {
    font-size: 1.8rem;
  }
  .welcome-typing-container {
    min-height: 200px;
    margin-top: 2rem;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary-color);
  }
}

/* --- Quotes Section --- */
.quotes-section {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  padding: 3rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 0 2rem;
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.2;
  margin-bottom: 1rem;
}

#dynamic-quote {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
  transition: opacity 0.5s ease-in-out;
}

#quote-author {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: opacity 0.5s ease-in-out;
}

.quote-fade {
  opacity: 0;
}

.hero-image-container {
  position: relative;
}

/* --- Announcement Sidebar --- */
.announcement-sidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1200;
  transition: var(--transition);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.announcement-sidebar.active {
  right: 0;
}

.announcement-header {
  padding: 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.announcement-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.announcement-item:hover {
  background: #f1f5f9;
}

.announcement-date {
  font-size: 0.8rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.announcement-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

/* --- Visual Aids Section --- */
.visual-aid-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  height: 100%;
}

.visual-aid-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.visual-aid-icon {
  width: 80px;
  height: 80px;
  background: #eff6ff;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.visual-aid-diagram {
  width: 100%;
  height: 200px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 1rem;
  overflow: hidden;
}

.visual-aid-diagram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.visual-aid-card:hover .visual-aid-diagram img {
  transform: scale(1.1);
}

/* --- Heart Video Section --- */
.heart-video-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 2rem;
  padding: 4rem 2rem;
  margin: 4rem 0;
  overflow: hidden;
  position: relative;
}

.video-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heart-video-content h2 {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.heart-video-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--secondary-color);
}

.video-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
  border: none;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
  }
  100% {
    transform: translate(-50%, -50%) scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.video-wrapper:hover .video-overlay-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 991px) {
  .heart-video-section {
    padding: 3rem 1rem;
    text-align: center;
  }
  .heart-video-content {
    margin-bottom: 2rem;
  }
}

/* --- Search Bar --- */
.search-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--card-bg);
  display: none;
  align-items: center;
  padding: 0 1rem;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-container.active {
  display: flex;
  animation: slideDown 0.3s ease-out;
}

@media (min-width: 992px) {
  .search-container {
    padding: 0 2rem;
    height: 80px;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.search-input-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--primary-color);
  padding: 0.5rem 2.5rem 0.5rem 0.5rem;
  font-size: 1.2rem;
  outline: none;
}

.search-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.search-close:hover {
  color: var(--primary-color);
}

/* --- Partnership Section --- */
.partners-section {
  padding: 60px 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.partners-section h4 {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.partners-section h4::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.partner-item:hover {
  transform: translateY(-5px);
}

.partner-item img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.partner-item:hover img {
  transform: scale(1.1);
}

.partner-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .partners-grid {
    gap: 30px;
  }
  .partner-item img {
    height: 45px;
  }
}
/* --- Navbar Profile --- */
.dropdown-toggle-no-caret::after {
  display: none !important;
}

.nav-profile-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  padding: 2px;
  transition: var(--transition);
}

.nav-profile-img:hover {
  transform: scale(1.05);
}

.profile-dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 1rem;
  min-width: 250px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.profile-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
  font-size: 1rem;
}

.profile-email {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.profile-dropdown-item:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary-color);
}

.profile-dropdown-item i {
  width: 20px;
  text-align: center;
}

.mobile-profile-section {
  padding: 1.5rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.mobile-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.mobile-profile-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Graduating Doctor Section --- */
.doctor-showcase-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.doctor-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .doctor-card {
    flex-direction: row;
    height: 500px;
  }
}

.doctor-image-slider {
  position: relative;
  flex: 1;
  min-height: 300px;
  overflow: hidden;
}

.doctor-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.doctor-slide.active {
  opacity: 1;
}

.doctor-info-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.doctor-showcase-badge {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.doctor-showcase-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.doctor-showcase-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-btn {
  background: var(--card-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
}

.notification-dropdown {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
}

.notification-dropdown .dropdown-item:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.notification-dropdown .dropdown-header {
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

.notification-dropdown .dropdown-item {
  color: var(--text-dark);
  white-space: normal;
}

.exam-badge-container .badge {
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
  animation: wave-glow 2s infinite;
}

@keyframes wave-glow {
  0% {
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 15px rgba(220, 53, 69, 0.8),
      0 0 20px rgba(220, 53, 69, 0.4);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
    transform: scale(1);
  }
}

@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1.5rem;
  }
}
