/* Home Page Styles - Jinan University */

/* Section Title Styling - Unified and consistent */
.section-title {
  color: var(--dark-teal);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  font-weight: 700;
  font-size: 2.25rem;
  text-align: center;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  bottom: 0;
  background-color: var(--gold-accent);
  left: 50%;
  transform: translateX(-50%);
}

.section-title::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  bottom: -8px;
  background-color: var(--gold-accent);
  opacity: 0.5;
  left: 50%;
  transform: translateX(-50%);
}

/* Left-aligned section titles */
.section-title.text-start {
  text-align: left;
}

.section-title.text-start::after {
  left: 0;
  transform: none;
}

.section-title.text-start::before {
  left: 0;
  transform: none;
}

/* Mobile adjustments for section titles */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
  }

  /* Make sure all titles are centered on mobile for consistency */
  .section-title.text-start {
    text-align: center;
  }

  .section-title.text-start::after,
  .section-title.text-start::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Removed duplicate academic programs section title override - using unified styles above */

/* Welcome Section Styling - Exact match from commit 5d973919 */
.welcome-section {
  padding-top: 5rem;
  padding-bottom: 6rem;
  background-color: var(--white);
  position: relative;
}

.welcome-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--medium-grey),
    transparent
  );
}

.welcome-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 100%;
  margin: 0 auto;
}

.welcome-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  height: 400px;
}

.welcome-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.welcome-image-container:hover .welcome-img {
  transform: scale(1.05);
}

.welcome-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #a06900;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.welcome-text-container {
  max-width: 100%;
  text-align: center;
  padding: 0 1rem;
}

.lead {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark-charcoal);
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--dark-teal);
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--gold-accent);
  opacity: 0.4;
}

.welcome-stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem auto;
  max-width: 90%;
}

.welcome-stat {
  text-align: center;
  padding: 1.25rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.welcome-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--light-grey);
  z-index: -1;
  transform: skewX(-5deg);
  transition: all 0.3s ease;
}

.welcome-stat:hover::before {
  background-color: var(--dark-teal);
  transform: skewX(-5deg) translateY(-5px);
  box-shadow: 0 8px 15px rgba(49, 102, 103, 0.15);
}

.welcome-stat:hover .stat-number,
.welcome-stat:hover .stat-label {
  color: var(--white);
}

.stat-number {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark-teal);
  line-height: 1.2;
  font-family: "Lato", "Droid Arabic Kufi", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  transition: color 0.3s ease;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.welcome-action {
  margin-top: 2.5rem;
  text-align: center;
}

.welcome-action .btn {
  padding: 0.75rem 2.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.welcome-action .btn::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 200%;
  background-color: rgba(255, 255, 255, 0.2);
  top: -50%;
  left: -100px;
  transform: rotate(20deg);
  transition: left 0.8s ease;
}

.welcome-action .btn:hover::after {
  left: calc(100% + 50px);
}

/* Desktop layout for welcome section */
@media (min-width: 992px) {
  .welcome-container {
    grid-template-columns: 5fr 7fr;
    gap: 0;
    align-items: center;
  }

  .welcome-image-container {
    height: 100%;
    margin-right: -50px;
    position: relative;
    z-index: 1;
    box-shadow: 15px 0 30px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
  }

  .welcome-text-container {
    padding: 3rem 2rem 3rem 6rem;
    text-align: left;
    position: relative;
    z-index: 2;
  }

  .welcome-stats-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .lead,
  p.mb-5 {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .welcome-action {
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .welcome-text-container {
    padding-right: 4rem;
  }

  .welcome-stats-container {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .welcome-image-container {
    height: 350px;
  }

  .welcome-text-container {
    padding: 0;
  }

  .stat-number {
    font-size: 1.75rem;
  }
}

/* Academic Programs Section Styling - Enhanced from commit 5d973919 */
.academic-programs-section {
  padding: 4rem 0;
  background: #f8f9fa;
  position: relative;
}

.academic-programs-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 71, 42, 0.02) 0%,
    rgba(201, 176, 55, 0.02) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.program-category {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: visible;
}

.program-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.program-category-title {
  color: var(--dark-teal);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
}

.program-category-title::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  width: 80px;
  height: 3px;
  bottom: 0;
  background-color: var(--gold-accent);
  left: 50%;
  transform: translateX(-50%);
}

.program-list {
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: visible;
  margin-bottom: 1.5rem;
  padding-right: 4px;
  padding-left: 4px;
}

/* Enhanced Scrollbar Styling */
.program-list::-webkit-scrollbar {
  width: 8px;
}

.program-list::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 10px;
  margin: 4px 0;
}

.program-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--dark-teal), #2a5151);
  border-radius: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.program-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2a5151, var(--gold-accent));
  transform: scaleY(1.1);
}

/* Firefox scrollbar styling */
.program-list {
  scrollbar-width: thin;
  scrollbar-color: var(--dark-teal) #f1f3f4;
}

.program-item {
  margin-bottom: 0.75rem;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.program-item:last-child {
  margin-bottom: 0;
}

.program-link-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark-teal);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.program-link-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 176, 55, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.program-link-item:hover::before {
  left: 100%;
}

.program-link-item:hover {
  background: linear-gradient(135deg, var(--dark-teal), #2a5151);
  color: white;
  transform: translateX(8px);
  border-color: var(--dark-teal);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(26, 71, 42, 0.2);
  z-index: 10;
  position: relative;
}

.program-link-item i {
  font-size: 0.8rem;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
  color: var(--gold-accent);
}

.program-link-item:hover i {
  color: var(--gold-accent);
  transform: translateX(5px) scale(1.1);
}

.program-link-item span {
  flex-grow: 1;
  line-height: 1.4;
}

.program-type-header {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-accent);
  margin: 1rem 0 0.5rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.program-type-header:first-child {
  margin-top: 0;
}

.program-link {
  color: var(--dark-teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.program-link:hover {
  color: var(--gold-accent);
  text-decoration: none;
  transform: translateX(3px);
}

.program-link i {
  transition: transform 0.3s ease;
}

.program-link:hover i {
  transform: translateX(3px);
}

/* Featured Program Styling */
.featured-program {
  background: linear-gradient(135deg, var(--dark-teal), #2a5151);
  border-radius: 16px;
  padding: 0;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.featured-program:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.featured-program::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 71, 42, 0.9),
    rgba(42, 81, 81, 0.8)
  );
  z-index: 1;
}

.featured-program > * {
  position: relative;
  z-index: 2;
}

.featured-program .program-category-title {
  color: white;
  padding: 2rem 2rem 1.5rem 2rem;
  margin-bottom: 0;
}

.featured-program .program-category-title::after {
  background: var(--gold-accent);
  box-shadow: 0 0 10px rgba(201, 176, 55, 0.5);
}

.featured-program-content {
  padding: 0 2rem 2rem 2rem;
  color: white;
}

.featured-program-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.featured-program-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.featured-program-header {
  margin-bottom: 1rem;
}

.featured-badge {
  background: var(--gold-accent);
  color: var(--dark-teal);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(201, 176, 55, 0.3);
}

.featured-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1rem 0 0 0;
  line-height: 1.3;
}

.featured-program-body {
  margin-bottom: 1.5rem;
}

.featured-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.featured-faculty {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.featured-faculty i {
  color: var(--gold-accent);
  margin-right: 0.5rem;
}

.featured-program-footer .btn {
  background: var(--gold-accent);
  border: none;
  color: var(--dark-teal);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(201, 176, 55, 0.3);
}

.featured-program-footer .btn:hover {
  background: #e0b030;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 176, 55, 0.4);
}

.program-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.program-loading .spinner-border-sm {
  margin-right: 0.5rem;
}

/* Enhanced Responsive Design */
@media (max-width: 992px) {
  .program-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
  }

  .featured-program {
    margin-top: 0;
  }

  .program-category:hover {
    transform: translateY(-5px);
  }

  .featured-program:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .academic-programs-section {
    padding: 3rem 0;
  }

  .program-category {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .program-category-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .featured-program .program-category-title {
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    font-size: 1.3rem;
  }

  .featured-program-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }

  .featured-title {
    font-size: 1.2rem;
  }

  .program-list {
    max-height: 260px;
  }

  .program-link-item {
    padding: 0.7rem 0.9rem;
  }

  .program-link-item:hover {
    transform: translateX(5px);
    z-index: 10;
    position: relative;
  }
}

@media (max-width: 576px) {
  .academic-programs-section {
    padding: 2.5rem 0;
  }

  .academic-programs-section .container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .program-category {
    padding: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .program-category-title {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .program-link-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .program-list {
    max-height: 220px;
    margin-bottom: 1.2rem;
  }

  .featured-program .program-category-title {
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    font-size: 1.2rem;
  }

  .featured-program-content {
    padding: 0 1.2rem 1.2rem 1.2rem;
  }

  .featured-program-card {
    padding: 1.2rem;
    margin-top: 0.3rem;
  }

  .featured-title {
    font-size: 1.1rem;
  }

  .featured-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .featured-badge {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
  }

  .program-type-header {
    font-size: 0.85rem;
    margin: 0.8rem 0 0.4rem 0;
  }
}

/* RTL (Arabic) Support */
html[data-lang="ar"] .program-link-item {
  direction: rtl;
}

html[data-lang="ar"] .program-link-item i {
  margin-right: 0;
  margin-left: 0.75rem;
  transform: scaleX(-1);
}

html[data-lang="ar"] .program-link-item:hover {
  transform: translateX(-5px);
}

html[data-lang="ar"] .program-link-item:hover i {
  transform: scaleX(-1) translateX(3px);
}

html[data-lang="ar"] .program-link i {
  transform: scaleX(-1);
}

html[data-lang="ar"] .program-link:hover i {
  transform: scaleX(-1) translateX(-3px);
}

html[data-lang="ar"] .featured-faculty {
  direction: rtl;
}

html[data-lang="ar"] .featured-faculty i {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Campuses Section Styling - Exact match from commit 5d973919 */
.campuses-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
}

.campuses-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 71, 42, 0.02) 0%,
    rgba(201, 176, 55, 0.02) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.campus-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  height: 100%;
  position: relative;
  z-index: 1;
}

.campus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(26, 71, 42, 0.15);
}

.campus-img-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.campus-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.campus-card:hover .campus-img {
  transform: scale(1.05);
}

.campus-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 71, 42, 0.4) 0%,
    rgba(201, 176, 55, 0.3) 100%
  );
  opacity: 0;
  transition: all 0.3s ease;
}

.campus-card:hover .campus-img-overlay {
  opacity: 1;
}

.campus-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold-accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.campus-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.campus-title {
  color: var(--dark-teal);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.campus-description {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.campus-explore-btn {
  background: linear-gradient(135deg, var(--dark-teal), #2a5151);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
}

.campus-explore-btn:hover {
  background: linear-gradient(135deg, #2a5151, var(--dark-teal));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 71, 42, 0.3);
}

.campus-explore-btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.campus-explore-btn:hover i {
  transform: translateX(3px);
}

.campus-loading {
  text-align: center;
  padding: 3rem;
  color: var(--dark-teal);
}

.campus-loading .spinner-border {
  color: var(--gold-accent);
  width: 3rem;
  height: 3rem;
}

/* Campus Section Responsive Design */
@media (max-width: 768px) {
  .campuses-section {
    padding: 3rem 0;
  }

  .campus-img-container {
    height: 200px;
  }

  .campus-body {
    padding: 1.5rem;
  }

  .campus-title {
    font-size: 1.25rem;
  }

  .campus-description {
    font-size: 0.9rem;
  }
}

/* Calendar Section Styling - Exact match from commit 5d973919 */
.calendar-section {
  background-color: var(--light-grey);
  padding: 3.5rem 0;
}

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

.calendar-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-standard);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.calendar-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(49, 102, 103, 0.2);
}

.calendar-date {
  background-color: var(--dark-teal);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-date .day {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.calendar-date .month {
  font-size: 0.9rem;
}

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

.calendar-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--dark-teal);
}

.calendar-details {
  color: var(--dark-grey);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.calendar-time {
  margin-top: 0.5rem;
  color: var(--dark-teal);
  font-weight: 500;
}

.calendar-location {
  display: flex;
  align-items: center;
  color: var(--dark-grey);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--light-grey);
}

.calendar-location i {
  margin-right: 0.5rem;
  color: var(--dark-teal);
}

/* Date Picker Calendar Styling */
.date-picker-calendar {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.event-preview {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 100%;
}

.event-preview-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark-teal);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--light-grey);
}

.event-preview-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-grey);
}

.event-preview-item:last-child {
  border-bottom: none;
}

/* Enhanced Event Preview Styles with Grid Layout */
.event-list-container {
  max-height: 420px;
  overflow-y: auto;
  padding: 0;
  background-color: transparent;
  border: none;
}

.event-list-container::-webkit-scrollbar {
  width: 8px;
}

.event-list-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.event-list-container::-webkit-scrollbar-thumb {
  background: var(--dark-teal);
  border-radius: 4px;
}

.event-list-container::-webkit-scrollbar-thumb:hover {
  background: #2a5151;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 0;
}

.event-grid-item {
  height: 100%;
}

.event-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e9ecef;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-image-container {
  position: relative;
  height: 100px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-teal), var(--gold-accent));
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.event-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-teal), var(--gold-accent));
  color: white;
  font-size: 1.5rem;
}

.event-content {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  color: var(--dark-teal);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-description {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-meta {
  margin-top: auto;
  border-top: 1px solid #f1f1f1;
  padding-top: 0.5rem;
}

.event-time,
.event-location {
  font-size: 0.75rem;
  color: #495057;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
}

.event-time i,
.event-location i {
  color: var(--dark-teal);
  margin-right: 0.25rem;
  width: 10px;
  font-size: 0.7rem;
}

.initial-message {
  padding: 2rem;
  color: #6c757d;
}

/* Event Item Styles for Simple List Layout */
.event-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-grey);
}

.event-item:last-child {
  border-bottom: none;
}

.event-item .event-time {
  color: var(--dark-teal);
  font-weight: 600;
  font-size: 0.9rem;
}

.event-item .event-title {
  margin: 0.25rem 0 0.5rem;
  font-weight: 500;
  color: var(--dark-teal);
  font-size: 1rem;
}

.event-item .event-location {
  color: var(--dark-grey);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.event-item .event-location i {
  margin-right: 0.5rem;
  color: var(--dark-teal);
}

/* Date picker enhancements */
.date-picker-calendar .form-control:focus {
  border-color: var(--dark-teal);
  box-shadow: 0 0 0 0.2rem rgba(26, 71, 42, 0.25);
}

.date-picker-calendar .form-control {
  border: 1px solid var(--medium-grey);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
}

/* No events message styling */
.no-events-message {
  padding: 2rem;
  text-align: center;
  color: #6c757d;
}

.no-events-message i {
  color: #adb5bd;
  margin-bottom: 1rem;
}

/* Calendar Mobile Responsive */
@media (max-width: 768px) {
  .calendar-container {
    grid-template-columns: 1fr;
  }

  .calendar-section {
    padding: 2rem 0;
  }

  .date-picker-calendar,
  .event-preview {
    margin-bottom: 1rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    height: auto;
  }

  .event-image-container {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .calendar-section .row {
    flex-direction: column;
  }

  .date-picker-calendar {
    margin-bottom: 1.5rem;
  }

  .event-list-container {
    max-height: 250px;
  }

  .event-image-container {
    height: 80px;
  }

  .event-content {
    padding: 0.5rem;
  }
}

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(49, 102, 103, 0.8) 0%,
    rgba(49, 102, 103, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  opacity: 0.95;
  line-height: var(--line-height-relaxed);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Student Resources Section */
.student-resources-section {
  padding: var(--section-spacing) 0;
  background: var(--white);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--medium-grey);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  text-align: center;
  transition: var(--transition-standard);
  box-shadow: var(--box-shadow);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
  border-color: var(--dark-teal);
}

.resource-icon {
  width: 50px;
  height: 50px;
  background: var(--gold-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  color: var(--white);
  font-size: var(--font-size-lg);
}

.resource-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-teal);
  margin-bottom: var(--spacing-sm);
}

.resource-description {
  color: var(--dark-grey);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Responsive Design for other sections */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .resource-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* End of file - Clean unified section title styles defined at top */
