@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --primary-color: #0a4976;
  --secondary-color: #b4a682;
  --text-dark: #333333;
  --text-light: #111111;
  --bg-light: #eee;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

input:focus {
  box-shadow: none !important;
}

body {
  font-family: "Libre Baskerville", serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  width: 150px;
}

.navbar {
  padding: 12px 0;
}

.navbar-brand {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color) !important;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 7px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 180px;
}

.dropdown-item {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

.dropdown-item.active {
  background-color: var(--primary-color);
  color: var(--white) !important;
}

/* Language Toggle Switch */
.lang-toggle-container {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

/* Language toggle in navbar */
.navbar-nav .nav-item .lang-toggle-container {
  padding: 4px 0;
  margin-left: 15px;
}

.lang-switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 35px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-label {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 35px;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-sizing: border-box;
}

.toggle-label:before {
  content: "";
  position: absolute;
  height: 27px;
  width: 27px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-text {
  font-size: 12px;
  font-weight: bold;
  color: var(--white);
  transition: 0.3s;
  z-index: 1;
  position: relative;
}

.toggle-text.en {
  opacity: 1;
}

.toggle-text.ar {
  opacity: 1;
}

/* When AR is selected (checkbox checked) */
.toggle-input:checked + .toggle-label {
  background-color: var(--secondary-color);
}

.toggle-input:checked + .toggle-label:before {
  transform: translateX(45px);
}

.toggle-input:checked + .toggle-label .toggle-text.en {
  opacity: 1;
}

.toggle-input:checked + .toggle-label .toggle-text.ar {
  opacity: 1;
}

/* Hover effect */
.toggle-label:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Hide toggler on desktop, show desktop menu */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}

/* Show toggler on mobile/tablet, hide desktop menu */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none !important;
  }
}

/* Offcanvas Styles */
.offcanvas {
  width: 280px !important;
}

.offcanvas-header {
  background-color: var(--primary-color);
  color: var(--white);
}
.offcanvas-body {
  padding: 15px 0;
}

.offcanvas-body .nav-link {
  padding: 12px 16px;
  margin: 0;
  border-bottom: 1px solid #eee;
}
.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none;
}
.navbar-toggler-spacing {
  padding: 5px 5px;
}
.btn-close {
  opacity: 1;
}
button:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  padding: 0px 0;
  /* background: linear-gradient(135deg, var(--primary-color) 0%, #070f16 100%); */
}

.hero-slide {
  position: relative;
  overflow: hidden;
}
.slick-dotted.slick-slider {
  margin-bottom: 0;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 73, 118, 0.2) 0%,
    rgba(7, 15, 22, 0.2) 100%
  );
  z-index: 1;
}

.hero-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 32px;
}

.hero-content h1 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 0px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 16px;
  margin-bottom: 32px !important;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-btn {
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary-custom {
  background-color: var(--secondary-color);
  color: #fff;
  border: 2px solid var(--secondary-color);
}

.btn-primary-custom:hover {
  color: #fff;
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline-custom:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Slick Slider Custom Arrows */
.slick-prev,
.slick-next {
  width: 50px;
  height: 50px;
  z-index: 100;
}

.slick-prev:before,
.slick-next:before {
  font-size: 40px;
  opacity: 1;
}

.slick-prev {
  left: 30px;
}

.slick-next {
  right: 30px;
}

.slick-dots {
  bottom: 30px;
}

.slick-dots li button:before {
  font-size: 12px;
  color: var(--white);
  opacity: 0.5;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--secondary-color);
}

/* About Section */
.about-section {
  padding: 80px 0;
  /* background-color: var(--bg-light); */
}

.section-title {
  font-size: 40px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 0;
}

.about-content {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

.about-features {
  margin-top: 48px;
}

.feature-card {
  background-color: var(--white);
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.feature-description {
  color: var(--text-light);
}

/* Vision & Mission Cards */
.vision-mission {
  margin-top: 32px;
}

.vm-card {
  background-color: var(--white);
  padding: 24px;
  border-radius: 10px;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.vm-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.vm-card h4 {
  color: var(--primary-color);
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 12px;
}

.vm-card h4 i {
  margin-right: 8px;
  color: var(--secondary-color);
}

.vm-card p {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background-color: var(--white);
}

.pricing-card {
  background-color: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  padding: 15px 25px 30px 25px;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.premium {
  background: linear-gradient(135deg, var(--primary-color) 0%, #070f16 100%);
  color: var(--white);
  border-color: var(--secondary-color);
}

.pricing-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 14px;
}

.pricing-badge.freemium {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.pricing-badge.premium-badge {
  background-color: var(--secondary-color);
  color: var(--white);
}

.pricing-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
}

.pricing-description {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 15px 0 30px 0;
}

.pricing-features li {
  padding: 5px 0;
  font-size: 16px;
}

.pricing-features li i {
  margin-right: 8px;
  color: var(--secondary-color);
}

.pricing-btn {
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.pricing-card:not(.premium) .pricing-btn {
  background-color: var(--primary-color);
  color: var(--white);
}

.pricing-card.premium .pricing-btn {
  background-color: var(--secondary-color);
  color: var(--white);
}

.pricing-btn:hover {
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.footer-link:hover {
  color: var(--secondary-color);
  opacity: 1;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  font-size: 19px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  color: var(--white);
  opacity: 0.9;
}

.demo-text {
  color: var(--secondary-color);
  opacity: 0.8;
}

.demo-text i {
  margin-right: 4px;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 40px;
  }

  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .about-features {
    margin-top: 32px;
  }

  .feature-card {
    margin-bottom: 24px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .slick-prev {
    left: 10px;
  }

  .slick-next {
    right: 10px;
  }

  .slick-prev,
  .slick-next {
    width: 40px;
    height: 40px;
  }

  .slick-prev:before,
  .slick-next:before {
    font-size: 40px;
  }
}

/* RTL Support for Arabic */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .section-title:after {
  right: 0;
  left: auto;
}

.rtl .feature-icon {
  text-align: right;
}

.rtl .slick-prev {
  right: 30px;
  left: auto;
}

.rtl .slick-next {
  left: 30px;
  right: auto;
}

/* Custom RTL-Safe Classes */
.navbar-toggler-spacing {
  margin-left: 16px;
}

.navbar-nav-auto {
  margin-left: auto;
}

.hero-btn-spacing {
  margin-right: 16px;
}

.social-spacing {
  margin-right: 16px;
}

/* RTL Adjustments for Custom Classes */
body.rtl .navbar-toggler-spacing {
  margin-left: 0;
  margin-right: 16px;
}

body.rtl .navbar-nav-auto {
  margin-left: 0;
  margin-right: auto;
}

body.rtl .hero-btn-spacing {
  margin-right: 0;
  margin-left: 16px;
}

body.rtl .social-spacing {
  margin-right: 0;
  margin-left: 16px;
}

/* Student Hub Section */
.student-hub-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-subtitle {
  font-size: 19px;
  color: var(--text-light);
  margin-top: 8px;
}

.service-card {
  background-color: var(--bg-light);
  padding: 32px;
  border-radius: 10px;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 16px;
}
.service-icon i {
  color: #b4a683;
}

.service-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.service-description {
  color: var(--text-light);
  line-height: 1.8;
}

/* Law Library Section */
.library-section {
  padding: 80px 0;
  background-color: #eee;
}

/* Breadcrumbs Section */
.breadcrumbs-section {
  background-image: url("../img/breadcumbs.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  position: relative;
}

.breadcrumbs-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(
    135deg,
    rgba(10, 73, 118, 0.85) 0%,
    rgba(7, 15, 22, 0.85) 100%
  ); */
}

.breadcrumbs-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.breadcrumbs-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0;
}

.breadcrumbs-subtitle {
  font-size: 20px;
  margin-bottom: 0;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Library Hero Section */
.library-hero {
  background: linear-gradient(135deg, #0a4976 0%, #070f16 100%);
  color: white;
  padding: 80px 0 60px;
  margin-top: 0;
}

.library-hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
}

.library-hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* Search Section */
.search-section {
  background: white;
  padding: 40px 0 0;
}

.search-bar {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  border: none;
  padding: 15px 50px 15px 20px;
  border-bottom: 2px solid #ccc;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 20px;
}

/* PDF Library Section */
.pdf-library-section {
  padding: 50px 0 70px 0;
}

.pdf-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pdf-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  border: 1px solid #eee;
}

.pdf-card.hidden {
  display: none;
}

.pdf-card:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.pdf-icon {
  width: 55px;
  height: 55px;
  min-width: 55px;
  background: linear-gradient(135deg, #b4a585 0%, #b4a585 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-icon i {
  font-size: 32px;
  color: white;
}

.pdf-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.pdf-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-light);
  font-size: 14px;
}

.pdf-meta i {
  color: var(--secondary-color);
  margin-right: 5px;
}

.view-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}

.view-pdf-btn:hover {
  background: #083a5f;
  color: white;
  transform: scale(1.05);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.no-results.show {
  display: block;
}

.no-results i {
  font-size: 80px;
  color: #ccc;
  margin-bottom: 20px;
}

.no-results h3 {
  color: var(--text-dark);
  margin-bottom: 10px;
}

.no-results p {
  color: var(--text-light);
  font-size: 16px;
}

.library-heading {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.library-text {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.library-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.library-list li {
  padding: 6px 0;
  font-size: 17px;
  color: var(--text-dark);
}

.library-list li i {
  color: var(--secondary-color);
  margin-right: 12px;
}

.library-feature-card {
  background-color: var(--white);
  padding: 32px;
  border-radius: 10px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}
.library-image img {
  border-radius: 10px;
}
.library-feature-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.library-feature-card i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.library-feature-card h4 {
  font-size: 21px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.library-feature-card p {
  color: var(--text-light);
}

/* Career Section */
.career-section {
  padding: 80px 0 0 0;
  background-color: var(--white);
}

.career-card {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 0 10px 10px 0;
  height: 100%;
  border-left: 5px solid var(--primary-color);
}

.career-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.career-header i {
  font-size: 40px;
  color: var(--primary-color);
  margin-right: 16px;
}

.career-header h3 {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
}

.career-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-list li {
  padding: 12px 0;
  font-size: 17px;
  color: var(--text-dark);
  border-bottom: 1px solid #e0e0e0;
}

.career-list li:last-child {
  border-bottom: none;
}

.career-list li i {
  color: var(--secondary-color);
  margin-right: 12px;
  font-size: 19px;
}

.career-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, #070f16 100%);
  padding: 48px;
  border-radius: 15px;
  text-align: center;
  color: var(--white);
  margin-top: 48px;
}

.career-cta h3 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
}

.career-cta p {
  font-size: 19px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-btn {
  padding: 16px 48px;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--white);
  transform: translateY(-3px);
  color: #083856;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Job Opportunities Section */
.job-opportunities-section {
  padding: 80px 0;
  background-color: var(--white);
}

.job-card {
  /* background-color: var(--bg-light); */
  border-radius: 15px;
  padding: 30px 25px;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid #eee;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.job-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.job-company-logo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #b4a585 0%, #b4a585 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.job-company-logo i {
  font-size: 28px;
  color: var(--white);
}

.job-meta {
  flex: 1;
}

.job-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.job-company {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

.job-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: rgba(10, 73, 118, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.job-badge i {
  font-size: 14px;
}

.job-description {
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.job-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-job-apply {
  padding: 12px 32px;
  background: var(--primary-color) 0%;
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-job-apply:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(10, 73, 118, 0.3);
  color: var(--white);
}

.btn-job-apply i {
  transition: transform 0.3s ease;
}

.btn-job-apply:hover i {
  transform: translateX(5px);
}

/* Membership Benefits Section */
.membership-benefits {
  background-color: var(--bg-light);
  padding: 50px;
  border-radius: 15px;
  margin-top: 40px;
}

.membership-benefits h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--white);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
}

.benefit-item h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.benefit-item p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

/* Pricing Section Updates */
.pricing-badge.student {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.pricing-badge.corporate {
  background-color: #f3e5f5;
  color: #4a148c;
}

/* Membership Page Specific Styles */
.membership-icon {
  font-size: 48px;
  color: var(--secondary-color);
}

.pricing-price {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0;
}

.pricing-period {
  color: #fff;
  font-size: 16px;
}

.pricing-card.premium .pricing-price {
  color: var(--secondary-color);
}

.pricing-card.premium .pricing-period {
  opacity: 0.8;
}

.pricing-card.premium .pricing-description {
  opacity: 0.9;
}

.pricing-card-relative {
  position: relative;
  overflow: visible;
}

.popular-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: var(--secondary-color);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pricing-btn-premium {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
}

.pricing-btn-premium:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  opacity: 0.9;
}

.pricing-features li.disabled {
  color: #ccc;
}

.pricing-features li.disabled i {
  color: #ccc;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--white);
}

.contact-info {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 10px;
  height: 100%;
}

.contact-info h3 {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.contact-info > p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item i {
  font-size: 32px;
  color: var(--primary-color);
  margin-right: 24px;
  margin-top: 4px;
}

.contact-item h4 {
  font-size: 19px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--text-light);
  margin: 0;
}

.contact-form {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: 10px;
  height: 100%;
}

.contact-form h3 {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 73, 118, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #083856;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Updates */
@media (max-width: 991px) {
  .library-image-placeholder {
    height: 300px;
  }

  .library-image-placeholder i {
    font-size: 64px;
  }

  .library-image-placeholder p {
    font-size: 20px;
  }

  .career-cta h3 {
    font-size: 28px;
  }

  .career-cta p {
    font-size: 16px;
  }

  .breadcrumbs-section {
    padding: 60px 0;
  }

  .breadcrumbs-title {
    font-size: 32px;
  }

  .breadcrumbs-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .student-hub-section,
  .library-section,
  .career-section,
  .corporate-section,
  .contact-section {
    padding: 48px 0;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .service-card,
  .library-feature-card,
  .career-card,
  .corporate-card {
    margin-bottom: 24px;
  }

  .library-heading {
    font-size: 28px;
  }

  .career-header {
    flex-direction: column;
    text-align: center;
  }

  .career-header i {
    margin-right: 0;
    margin-bottom: 16px;
  }

  .career-cta {
    padding: 32px;
  }

  .career-cta h3 {
    font-size: 24px;
  }

  .contact-item i {
    font-size: 24px;
    margin-right: 16px;
  }

  .breadcrumbs-section {
    padding: 60px 0;
  }

  .breadcrumbs-title {
    font-size: 27px;
  }

  .breadcrumbs-subtitle {
    font-size: 16px;
  }

  .library-hero h1 {
    font-size: 32px;
  }

  .pdf-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .pdf-icon {
    align-self: center;
  }

  .pdf-content {
    text-align: center;
    align-items: center;
  }

  .view-pdf-btn {
    width: 100%;
    justify-content: center;
  }

  .pdf-meta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* RTL Support for New Sections */
body.rtl .library-list li i {
  margin-right: 0;
  margin-left: 12px;
}

body.rtl .career-list li i {
  margin-right: 0;
  margin-left: 12px;
}

body.rtl .career-header i {
  margin-right: 0;
  margin-left: 16px;
}

body.rtl .contact-item i {
  margin-right: 0;
  margin-left: 24px;
}

body.rtl .career-card {
  border-left: none;
  border-right: 5px solid var(--primary-color);
}

@media (max-width: 768px) {
  body.rtl .career-header i {
    margin-left: 0;
  }
}

/* Demo Modal Styling */
.demo-modal-icon {
  font-size: 64px;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.modal-header {
  background-color: var(--primary-color);
  color: var(--white);
  border-bottom: 3px solid var(--secondary-color);
}

.modal-header .modal-title i {
  margin-right: 8px;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body h4 {
  color: var(--primary-color);
  margin-bottom: 16px;
}

.modal-footer .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 8px 32px;
}

.modal-footer .btn-primary:hover {
  background-color: #083856;
  border-color: #083856;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .demo-notice {
    padding: 12px 0;
  }

  .demo-notice i {
    font-size: 20px;
  }

  .demo-notice p {
    font-size: 14px;
  }
}

/* RTL Support for new elements */
body.rtl .demo-notice i {
  margin-right: 0;
  margin-left: 8px;
}

body.rtl .demo-text i {
  margin-right: 0;
  margin-left: 4px;
}

body.rtl .modal-header .modal-title i {
  margin-right: 0;
  margin-left: 8px;
}

body.rtl .vm-card {
  border-left: none;
  border-right: 4px solid var(--secondary-color);
}

body.rtl .vm-card:hover {
  transform: translateX(-5px);
}

body.rtl .vm-card h4 i {
  margin-right: 0;
  margin-left: 8px;
}

/* Button Custom */
.btn-custom {
  display: inline-block;
  padding: 12px 32px;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-custom:hover {
  background-color: #083856;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-custom i {
  margin-left: 8px;
  transition: margin-left 0.3s ease;
}

.btn-custom:hover i {
  margin-left: 12px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #070f16 100%);
  padding: 64px 0 48px;
  margin-top: 0;
}

.page-title {
  color: var(--white);
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 16px;
}

.page-breadcrumb {
  color: var(--white);
  font-size: 16px;
  margin: 0;
}

.page-breadcrumb a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
  color: var(--white);
}

.page-breadcrumb i {
  margin: 0 8px;
  font-size: 13px;
}

/* About Content Section */
.about-content-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}
.our-mission-section {
  padding: 80px 0;
}

.about-text {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-image-placeholder {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 32px;
}

.about-image-placeholder i {
  font-size: 80px;
  margin-bottom: 16px;
}

.about-image-placeholder h3 {
  font-size: 29px;
  font-weight: bold;
  margin-bottom: 8px;
}

.about-image-placeholder p {
  font-size: 19px;
  opacity: 0.9;
}

/* Vision & Mission Large Cards */
.vm-large-card {
  background-color: var(--white);
  padding: 48px;
  border-radius: 15px;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.vm-large-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.vm-large-card.vision-card {
  border-top: 5px solid #b4a682;
}

.vm-large-card.mission-card {
  border-top: 5px solid var(--secondary-color);
}

.vm-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #070f16 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.vm-icon i {
  font-size: 40px;
  color: var(--white);
}

.vm-large-card h3 {
  color: var(--primary-color);
  font-size: 29px;
  font-weight: bold;
  margin-bottom: 16px;
}

.vm-large-card p {
  color: var(--text-dark);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Problem Cards */
.problem-card {
  background-color: var(--white);
  padding: 32px;
  border-radius: 10px;
  height: 100%;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.problem-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.problem-card i {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 16px;
}

.problem-card h4 {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 16px;
}

.problem-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.problem-card ul li {
  padding: 8px 0;
  color: var(--text-dark);
  position: relative;
  padding-left: 24px;
}

.problem-card ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #dc3545;
  font-weight: bold;
}

/* Solution Cards */
.solution-card {
  background-color: var(--white);
  padding: 32px;
  border-radius: 10px;
  height: 100%;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 80px;
}

.solution-card:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.solution-number {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  font-weight: bold;
  color: var(--secondary-color);
  opacity: 0.3;
}

.solution-card h4 {
  color: var(--primary-color);
  font-size: 21px;
  font-weight: bold;
  margin-bottom: 12px;
}

.solution-card p {
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
}

/* RTL Support for About Page */
body.rtl .btn-custom i {
  margin-left: 0;
  margin-right: 8px;
}

body.rtl .btn-custom:hover i {
  margin-left: 0;
  margin-right: 12px;
}

body.rtl .problem-card ul li {
  padding-left: 0;
  padding-right: 24px;
}

body.rtl .problem-card ul li:before {
  left: auto;
  right: 0;
}

body.rtl .solution-card {
  padding-left: 32px;
  padding-right: 80px;
}

body.rtl .solution-card:hover {
  transform: translateX(-10px);
}

body.rtl .solution-number {
  left: auto;
  right: 32px;
}

/* Responsive for About Page */
@media (max-width: 768px) {
  .page-title {
    font-size: 32px;
  }

  .about-image-placeholder {
    height: 300px;
  }

  .about-image-placeholder i {
    font-size: 64px;
  }

  .vm-large-card {
    padding: 32px;
    margin-bottom: 32px;
  }

  .vm-icon {
    width: 60px;
    height: 60px;
  }

  .vm-icon i {
    font-size: 32px;
  }

  .solution-card {
    padding-left: 32px;
    padding-top: 56px;
  }

  .solution-number {
    left: 50%;
    top: 16px;
    transform: translateX(-50%);
  }

  body.rtl .solution-card {
    padding-right: 32px;
    padding-top: 56px;
  }

  body.rtl .solution-number {
    right: 50%;
    transform: translateX(50%);
  }
}

/* Student Hub Page Styles */
.student-hub-page * {
  font-family: "Poppins", sans-serif;
}

.student-hub-page {
  background: #fff;
  min-height: 100vh;
}

.student-hub-container {
  padding: 70px 0;
}

.student-hub-page .section-title {
  color: #1e3a8a;
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 32px;
  text-align: center;
}

.student-hub-page .section-subtitle {
  color: #1e3a8a;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 24px;
}

/* Quiz Section Styles */
.quiz-section {
  background: white;
  margin-bottom: 60px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.question-card {
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
  padding: 25px;
  margin-bottom: 25px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.question-card:hover {
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.question-text {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
  font-size: 18px;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin-bottom: 10px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-label:hover {
  border-color: var(--primary-color);
  background: #eff6ff;
}

.option-label input[type="radio"] {
  margin-right: 8px;
  width: 15px;
  height: 15px;
  min-width: 15px;
}

.option-label.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.option-label.wrong {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #083856;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.submit-btn:disabled {
  background: #b4b4b4;
  cursor: not-allowed;
  transform: none;
}

.feedback-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  display: none;
}

.feedback-message.correct {
  background: #dcfce7;
  color: #166534;
  display: block;
}

.feedback-message.wrong {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

.score-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  margin-top: 30px;
  display: none;
}

.score-card h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.score-card p {
  font-size: 19px;
  margin-bottom: 20px;
}

.try-again-btn {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.try-again-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Study Guides Section */
.study-section {
  background: white;
  margin-bottom: 50px;
}

.search-box {
  position: relative;
  margin-bottom: 30px;
}

.search-box input {
  width: 100%;
  border: none;
  padding: 15px 50px 15px 20px;
  border-bottom: 2px solid #ccc;
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

/* Student hub uses same PDF grid styles as law library */

/* AI Tutor Floating Button */
.ai-tutor-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.ai-chat-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #083856 100%);
  border: 1px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 29px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 35px rgba(186, 186, 186, 0.6);
  }
}

.ai-chat-btn:hover {
  transform: scale(1.1);
  /* box-shadow: 0 10px 35px rgba(59, 130, 246, 0.5); */
}

.ai-chat-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 999;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat-window.active {
  display: flex;
  z-index: 9999;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 10px 15px;
  overflow-y: auto;
  background: #f8fafc;
}

.message {
  margin-bottom: 15px;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  text-align: left;
}

.message.user {
  text-align: right;
}

.message-bubble {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 18px;
  max-width: 87%;
  font-size: 13px;
  word-wrap: break-word;
}

.message.bot .message-bubble {
  background: white;
  color: #1e293b;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.user .message-bubble {
  background: var(--primary-color);
  color: white;
  border-bottom-right-radius: 5px;
}

.chat-input-area {
  padding: 10px;
  background: white;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid #e2e8f0;
}

.chat-input-container {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 9px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: var(--primary-color);
}

.chat-send-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  background: #083856;
  transform: scale(1.05);
}

.typing-indicator {
  display: none;
  padding: 10px 15px;
  background: white;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: fit-content;
}

.typing-indicator.active {
  display: inline-block;
}

.typing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  margin: 0 2px;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Student Hub Additional Classes */
.section-intro-text {
  color: #64748b;
  margin-bottom: 30px;
}

.chat-status-name {
  font-weight: 600;
}

.chat-status-online {
  font-size: 14px;
  opacity: 0.9;
}

/* Student Hub Page Responsive */
@media (max-width: 768px) {
  .ai-chat-window {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
  }

  .question-card {
    padding: 20px 10px;
  }
}
@media (max-width: 767px) {
  .option-label {
    padding: 12px 10px;
    line-height: 1.4;
  }
}

/* ========== Professional Tools Page Styles ========== */
.tools-section {
  padding: 60px 0;
  min-height: calc(100vh - 400px);
}

.tools-section .nav {
  border: none;
}

.tool-tabs {
  border-bottom: none;
  margin-bottom: 40px;
  gap: 0px;
}

.tool-tabs .nav-item {
  margin: 0 5px;
}

.tool-tab-btn {
  background-color: #fff;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 12px 30px;
  border-radius: 8px !important;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tool-tab-btn:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-tab-btn.active {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

.tool-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 40px 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.qa-container h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 32px;
}

.faq-item {
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-dark);
  user-select: none;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  font-size: 19px;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-dark);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px 20px;
}

.answer-label {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 16px;
}

.answer-label i {
  color: #28a745;
  margin-right: 5px;
}

.faq-answer p {
  margin-bottom: 10px;
}

.brief-container h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 32px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.tools-section .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: "Libre Baskerville", serif;
}

.tools-section .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

.tools-section textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .tool-card {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .tool-tab-btn {
    padding: 10px 10px;
    font-size: 14px;
  }

  .qa-container h2,
  .brief-container h2 {
    font-size: 26px;
  }

  .tools-section .nav-link {
    margin: 0;
  }
}

/* ========== Forum Page Styles ========== */
.forum-section {
  padding: 60px 0;
  min-height: calc(100vh - 400px);
}

.forum-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 40px 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.forum-container h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 32px;
}

.thread-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.thread-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thread-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(10, 73, 118, 0.1);
}

.thread-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

.thread-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 6px;
  min-width: 80px;
}

.stat-number {
  font-size: 21px;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  font-size: 14px;
  color: #666;
}

.thread-content {
  flex: 1;
}

.thread-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.thread-excerpt {
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.6;
}

.thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: #666;
}

.thread-meta i {
  margin-right: 5px;
}

.thread-detail {
  display: none;
}

.thread-detail.active {
  display: block;
}

.back-btn {
  background-color: #0a4976;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: #083d61;
}

.question-detail {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
}

.question-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.question-body {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 15px;
}

.answers-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 21px;
}

.answer-item {
  background: #eee;
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 8px 8px 0;
  padding: 20px;
  margin-bottom: 15px;
}

.answer-body {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 12px;
}

.answer-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .forum-card {
    padding: 25px 15px;
  }

  .forum-container h2 {
    font-size: 26px;
  }

  .thread-header {
    flex-direction: column;
  }

  .thread-stats {
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }

  .thread-title {
    font-size: 18px;
  }

  .question-title {
    font-size: 21px;
  }
}

/* ========== Events Page Styles ========== */
.events-section {
  padding: 60px 0;
  min-height: calc(100vh - 400px);
}

.events-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 40px 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.calendar-container h2 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 32px;
}

.calendar-intro {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid var(--primary-color);
}

.calendar-intro p {
  margin: 0;
  color: var(--text-dark);
}

#calendar {
  background: #fff;
  padding: 25px 10px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fc {
  font-family: "Libre Baskerville", serif;
}

/* Remove default anchor styling in calendar */
.fc a {
  color: inherit !important;
  text-decoration: none !important;
}

.fc a:hover {
  color: inherit !important;
  text-decoration: none !important;
}

.fc a:focus,
.fc a:active,
.fc a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

/* Calendar Header */
.fc .fc-toolbar {
  padding-bottom: 20px;
  margin-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.fc .fc-toolbar-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Calendar Buttons */
.fc .fc-button {
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: capitalize;
  font-size: 14px;
}

.fc .fc-button-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(10, 73, 118, 0.2);
}

.fc .fc-button-primary:hover {
  background-color: #083d61;
  border-color: #083d61;
  box-shadow: 0 4px 8px rgba(10, 73, 118, 0.3);
}

.fc .fc-button-primary:focus {
  box-shadow: 0 0 0 3px rgba(10, 73, 118, 0.2);
}

.fc .fc-button-primary:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  opacity: 0.5;
}

.fc .fc-button-active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

/* Calendar Days */
.fc .fc-daygrid-day {
  transition: all 0.2s ease;
}

.fc .fc-daygrid-day:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.fc .fc-daygrid-day-number {
  padding: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.fc .fc-day-today {
  background-color: #fff3e0 !important;
}
.fc .fc-daygrid-day-top {
  justify-content: center;
}

.fc .fc-day-today .fc-daygrid-day-number {
  background-color: var(--secondary-color);
  color: #fff !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px;
}
.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
  margin-bottom: 0;
}
/* Column Headers */
.fc .fc-col-header-cell {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  padding: 12px 5px;
  border-color: rgba(255, 255, 255, 0.1);
}

.fc .fc-col-header-cell-cushion {
  color: #fff;
}

/* Calendar Events - Day Grid View (Show as Dots) */
.fc-daygrid-event {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
  margin: 3px auto;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  border-width: 5px;
}

.fc-daygrid-event:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(10, 73, 118, 0.4);
}

/* Hide event title in day grid, show only dot */
.fc-daygrid-event .fc-event-title {
  display: none;
}

.fc-daygrid-event .fc-event-time {
  display: none;
}

/* Day cell with events */
.fc-daygrid-day-events {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
}

/* Multiple events on same day - show multiple dots */
.fc-daygrid-day-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
}

/* List View Styling */
.fc-theme-standard .fc-list {
  border: none;
}

.fc .fc-list-day-cushion {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 15px;
  font-weight: 700;
  font-size: 16px;
}

.fc .fc-list-event {
  background: #fff;
  border: 2px solid #e8f4f8;

  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fc .fc-list-event:hover td {
  background-color: #fff;
}

.fc .fc-list-event td {
  padding: 20px 18px;
  border: none;
  background-color: #fff;
}

.fc .fc-list-event-dot {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  width: 5px;
  height: 5px;
  border-width: 5px;
  border-radius: 50px;
}

.fc .fc-list-event-time {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 15px;
}

.fc .fc-list-event-title {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
}

.fc .fc-list-event-title a {
  color: var(--primary-color) !important;
  text-decoration: none !important;
}

.fc .fc-list-event:hover .fc-list-event-title {
  color: #083d61 !important;
}

.fc .fc-list-event:hover .fc-list-event-title a {
  color: #083d61 !important;
}

.fc .fc-list-table td {
  border-bottom: none;
}

.fc .fc-list-day {
  background-color: transparent;
  margin-bottom: 10px;
}

.fc .fc-list-day th {
  border: none;
  border-radius: 0px;
  overflow: hidden;
}

.fc .fc-list-table {
  border: none;
}

.fc .fc-scroller {
  overflow: visible !important;
}

.fc .fc-list-empty {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  border: 2px dashed #e0e0e0;
}

.fc .fc-list-empty-cushion {
  color: #999;
  font-size: 19px;
  font-weight: 600;
}

/* Add spacing between date groups */
.fc .fc-list-day + .fc-list-day {
  margin-top: 25px;
}
.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
  min-height: 1em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #calendar {
    padding: 15px;
  }

  .fc .fc-toolbar {
    flex-direction: column;
    gap: 15px;
  }

  .fc .fc-toolbar-title {
    font-size: 21px;
    order: -1;
  }

  .fc .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .fc .fc-button {
    padding: 6px 12px;
    font-size: 14px;
  }

  .fc .fc-daygrid-day-number {
    font-size: 14px;
    padding: 6px;
  }

  .fc-event-title {
    font-size: 12px;
  }

  .fc .fc-col-header-cell {
    padding: 8px 2px;
    font-size: 14px;
  }

  /* Switch to list view on very small screens */
  .fc .fc-dayGridMonth-view {
    font-size: 14px;
  }

  /* Enhanced List View for Mobile */
  .fc .fc-list-event td {
    padding: 15px 12px;
  }

  .fc .fc-list-event-title {
    font-size: 16px;
  }

  .fc .fc-list-day-cushion {
    font-size: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 576px) {
  .fc .fc-toolbar-title {
    font-size: 18px;
  }

  .fc .fc-button {
    padding: 5px 10px;
    font-size: 12px;
  }

  .fc .fc-daygrid-day-number {
    font-size: 13px;
  }

  .fc-event-title {
    font-size: 11px;
  }

  /* List View on Small Mobile */
  .fc .fc-list-event td {
    padding: 12px 10px;
  }

  .fc .fc-list-event-title {
    font-size: 15px;
  }

  .fc .fc-list-event-time {
    font-size: 14px;
  }

  .fc .fc-list-day-cushion {
    font-size: 14px;
    padding: 8px 10px;
  }
}

.event-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.event-modal.active {
  display: flex;
}

.event-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.event-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.event-modal-close:hover {
  color: var(--primary-color);
}

.event-modal-title {
  font-size: 29px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-right: 30px;
}

.event-modal-details {
  margin-bottom: 15px;
}

.event-modal-details i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px;
}

.event-modal-details p {
  margin: 10px 0;
  font-size: 16px;
  color: var(--text-dark);
}

.no-event-message {
  text-align: center;
  padding: 20px;
}

.no-event-message i {
  font-size: 48px;
  color: #111;
  margin-bottom: 15px;
}

.no-event-message h3 {
  color: #0a4976;
  font-size: 24px;
  margin-bottom: 10px;
}

.no-event-message p {
  color: #111;
  font-size: 16px;
}

@media (max-width: 768px) {
  .events-card {
    padding: 25px 15px;
  }

  .calendar-container h2 {
    font-size: 26px;
  }

  .event-modal-content {
    padding: 20px;
    max-width: 95%;
  }

  .event-modal-title {
    font-size: 20px;
  }
}

/* ===============================================
   Language Link Styles (for ar/ folder approach)
   =============================================== */
.lang-link,
.lang-link-mobile {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #0a4976 0%, #0d5a8f 100%);
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-link:hover,
.lang-link-mobile:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  text-decoration: none;
}

.lang-link .lang-text,
.lang-link-mobile .lang-text {
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
}

.lang-link-mobile {
  margin-top: 10px;
  width: 100%;
  text-align: center;
}
