.sidebar {
  transition: transform 0.3s ease-in-out;
}
* {
  font-family: 'Poppins', sans-serif;
}
.sidebar {
  transition: transform 0.3s ease-in-out;
}

.hero {
  background-image: url('./imgs/Sastra_bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
}

#content > div {
  position: relative;
  z-index: 2;
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.profile-image {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.profile-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
  border-radius: 50%;
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-card {
  border-radius: 1rem;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #3b82f6, #60a5fa);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3b82f6;
}

.contact-form input,
.contact-form textarea {
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* How to Reach accordion */
.reach-item {
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
  box-shadow:
    0 8px 20px -14px rgba(30, 64, 175, 0.38),
    0 3px 8px -4px rgba(59, 130, 246, 0.18);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.reach-item[open] {
  border-color: #93c5fd;
}

.reach-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e3a8a;
  transition: background-color 0.25s ease;
}

.reach-summary:hover {
  background: #eff6ff;
}

.reach-summary::-webkit-details-marker {
  display: none;
}

.reach-title {
  line-height: 1.3;
}

.reach-icon {
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid #2563eb;
  border-bottom: 2px solid #2563eb;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.reach-item[open] .reach-icon {
  transform: rotate(225deg);
  margin-top: 0.3rem;
}

.reach-content {
  padding: 0 1.25rem 1.2rem;
  border-top: 1px solid #dbeafe;
  animation: reachFadeDown 0.22s ease;
}

@keyframes reachFadeDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accommodation Styles */
.accommodation-carousel-wrapper {
  position: relative;
}

.accommodation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.accommodation-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 18px 36px -22px rgba(15, 23, 42, 0.9);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.accommodation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px -20px rgba(15, 23, 42, 0.95);
}

.accommodation-summary-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #1e293b;
}

.accommodation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.accommodation-card:hover .accommodation-image {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.accommodation-title {
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.accommodation-overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.9) 52%, rgba(15, 23, 42, 0.98) 100%);
}

.accommodation-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #d1fae5;
  background: rgba(5, 150, 105, 0.26);
  border: 1px solid rgba(52, 211, 153, 0.55);
}

.accommodation-brief {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(241, 245, 249, 0.96);
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.accommodation-note {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  font-style: italic;
}

.accommodation-website-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.7rem;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.accommodation-website-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px -8px rgba(37, 99, 235, 0.75);
}

.accommodation-link-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.4;
}

.accommodation-modal-content {
  max-width: 760px;
}

.accommodation-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.accommodation-modal-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.9rem;
  object-fit: cover;
  box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.7);
}

.accommodation-modal-title {
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

.accommodation-modal-description {
  margin: 0;
  color: #334155;
  font-size: 1rem;
  line-height: 1.72;
}

.accommodation-modal-actions {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Canteen Card Styles */
.canteen-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: auto;
}

.canteen-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.canteen-card-image {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

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

.canteen-card:hover .canteen-card-image img {
  transform: scale(1.08);
}

.canteen-type-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.canteen-type-emoji {
  font-size: 1.25rem;
}

.canteen-card-content {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
  overflow: hidden;
}

.canteen-title {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.25;
  flex-shrink: 0;
}

.canteen-description {
  font-size: clamp(0.84rem, 1vw, 0.93rem);
  color: #6b7280;
  line-height: 1.45;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
  pointer-events: none;
}

.canteen-card:hover .canteen-description {
  max-height: 170px;
  opacity: 1;
  pointer-events: auto;
  color: #374151;
}

.canteen-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.canteen-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.62rem;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  color: #92400e;
  border-radius: 999px;
  font-size: clamp(0.72rem, 0.92vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.canteen-highlight:nth-child(2) {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid rgba(30, 64, 175, 0.2);
}

.canteen-highlight:nth-child(3) {
  background: linear-gradient(135deg, #fbcfe8, #f9a8d4);
  color: #831843;
  border: 1px solid rgba(131, 24, 67, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .accommodation-grid {
    grid-template-columns: 1fr;
  }

  .accommodation-summary-media {
    aspect-ratio: 16 / 10;
  }

  .accommodation-modal-header {
    grid-template-columns: 1fr;
  }

  .accommodation-modal-content {
    padding: 1.15rem;
  }

  .canteen-description {
    max-height: 280px;
    opacity: 1;
    pointer-events: auto;
  }

  .canteen-card-content {
    padding: 0.95rem 0.95rem 1rem;
  }

  .canteen-title {
    font-size: 1.02rem;
  }
}

@media (hover: none) {
  .canteen-description {
    max-height: 280px;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 480px) {
  .accommodation-title {
    font-size: 1rem;
  }

  .accommodation-brief {
    font-size: 0.92rem;
  }
}

@media (min-width: 1024px) {
  .accommodation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
