/* ==========================================================================
   EDURICH INTERNATIONAL CAMPUS - STUDENT LIFE STYLES
   Source of Truth: EDURICH WEBSITE DEVELOPMENT.pdf (Pages 13-14)
   Visual references: Picture4.jpg / A820A8E8-3DC4-4588-BB15-413183F11AB2.PNG
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Student Life Hero Banner (Matches Picture4.jpg / A820A8E8)
   -------------------------------------------------------------------------- */
.student-hero {
  position: relative;
  background-color: #0B1325;
  background-image: linear-gradient(
      to right,
      #0B1325 0%,
      #0B1325 45%,
      rgba(11, 19, 37, 0.85) 60%,
      rgba(11, 19, 37, 0.2) 85%,
      transparent 100%
    ),
    url('../assets/images/student-life-hero-premium.jpg');
  background-size: cover;
  background-position: center right;
  padding-top: var(--spacing-3xl);
  padding-bottom: 90px; /* Space for overlapping floating tabs */
  color: #FFFFFF;
  overflow: hidden;
}

.student-hero .container {
  position: relative;
  z-index: 2;
}

.student-hero .breadcrumb {
  margin-bottom: var(--spacing-md);
}

.student-hero .breadcrumb a,
.student-hero .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.7);
}

.student-hero .breadcrumb-current {
  color: #FFFFFF;
}

.student-hero-content {
  max-width: 650px;
}

.student-hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.student-hero-title .dot {
  color: var(--color-primary);
}

.student-hero-subtitle {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.3;
  margin-bottom: 12px;
}

.student-hero-rule {
  width: 48px;
  height: 3px;
  background-color: var(--color-primary);
  margin-bottom: 14px;
}

.student-hero-desc {
  font-size: 1rem;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. Floating Sub-Navigation Tabs Bar (Picture4.jpg)
   -------------------------------------------------------------------------- */
.student-subtabs-wrapper {
  position: relative;
  z-index: 10;
  margin-top: -46px; /* Overlaps hero bottom */
  margin-bottom: var(--spacing-3xl);
}

.student-subtabs-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(11, 19, 37, 0.08);
  border: 1px solid var(--color-border);
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.student-subtabs-container::-webkit-scrollbar {
  display: none;
}

.student-tab-btn {
  flex: 1;
  min-width: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  background-color: transparent;
  color: var(--color-text-main);
  font-size: 0.95rem;
  font-weight: 700;
  border-right: 1px solid var(--color-border-light);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-align: left;
}

.student-tab-btn:last-child {
  border-right: none;
}

.student-tab-btn svg {
  width: 22px;
  height: 22px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.student-tab-btn:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

.student-tab-btn:hover svg {
  color: var(--color-primary);
}

.student-tab-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.student-tab-btn.active svg {
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. Tab 1: The Edurich Experience Main Layout
   -------------------------------------------------------------------------- */
.student-content-section {
  padding-bottom: var(--spacing-4xl);
}

.student-tab-panel {
  display: none;
}

@keyframes studentTabFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.student-tab-panel.active {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .student-tab-panel.active {
    animation: studentTabFade 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

/* Left Narrative Column */
.experience-kicker {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
  position: relative;
}

.experience-kicker::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--color-primary);
  margin-left: 8px;
  vertical-align: middle;
}

.experience-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

.experience-title .dot {
  color: var(--color-primary);
}

.experience-desc {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-xl);
}

/* 4 Circular Feature Cards */
.experience-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg) var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.experience-feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.experience-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background-color: #FFF1F6;
  border: 1px solid #FFE4EE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  flex-shrink: 0;
  transition: transform var(--transition-normal), background-color var(--transition-normal);
}

.experience-feature-item:hover .experience-feature-icon {
  transform: scale(1.08);
  background-color: #FFE4EE;
}

.experience-feature-icon svg {
  width: 22px;
  height: 22px;
}

.experience-feature-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.experience-feature-sub {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   4. Right Column: Bento Visual Grid (Matches Picture4.jpg)
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

/* Bento Item 1: Top-Left Collaboration Image */
.bento-collab-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 215px;
  background-color: #E2E8F0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-collab-card:hover {
  transform: translateY(-4px) perspective(1000px) rotateX(0.8deg);
  box-shadow: 0 16px 32px -6px rgba(11, 19, 37, 0.15);
}

.bento-collab-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-collab-card:hover img {
  transform: scale(1.045);
}

/* Bento Item 2: Top-Right Solid Magenta Quote Card */
.bento-quote-card {
  background-color: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 215px;
  box-shadow: 0 8px 24px var(--color-primary-glow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-quote-card:hover {
  transform: translateY(-4px) perspective(1000px) rotateX(0.8deg);
  box-shadow: 0 18px 36px -4px rgba(196, 0, 98, 0.42);
}

.bento-quote-mark {
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.6;
  margin-bottom: 4px;
}

.bento-quote-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.bento-quote-author {
  font-size: 0.82rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Bento Item 3: Bottom-Left Video Card */
.bento-video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 200px;
  cursor: pointer;
  background-color: #0B1325;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-video-card:hover {
  transform: translateY(-4px) perspective(1000px) rotateX(0.8deg);
  box-shadow: 0 18px 34px -6px rgba(11, 19, 37, 0.22);
}

.bento-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bento-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 19, 37, 0.9) 0%,
    rgba(11, 19, 37, 0.3) 60%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 16px;
  gap: 12px;
}

.bento-play-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.bento-video-card:hover .bento-play-btn {
  transform: scale(1.12);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.bento-video-info h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 2px 0;
}

.bento-video-info span {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.85);
}

/* Bento Item 4: Bottom-Right Student Events & Activities Card */
.bento-events-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 200px;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.bento-events-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(196, 0, 98, 0.25);
}

.bento-events-img {
  height: 120px;
  overflow: hidden;
  background-color: #E2E8F0;
}

.bento-events-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.bento-events-card:hover .bento-events-img img {
  transform: scale(1.04);
}

.bento-events-bar {
  padding: 10px 14px;
  background-color: #FFF1F6;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 80px;
}

.bento-events-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-events-details {
  flex-grow: 1;
}

.bento-events-details h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 0 0 2px 0;
}

.bento-events-details p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.25;
}

.bento-events-arrow {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.bento-events-card:hover .bento-events-arrow {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   5. Structured Panels for Tabs 2 through 5 (PDF Pages 13-14)
   -------------------------------------------------------------------------- */
.student-subpanel {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-sm);
}

.subpanel-header {
  margin-bottom: var(--spacing-2xl);
  max-width: 750px;
}

.subpanel-kicker {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xs);
  position: relative;
}

.subpanel-kicker::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--color-primary);
  margin-left: 8px;
  vertical-align: middle;
}

.subpanel-title {
  font-size: clamp(1.8rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: var(--spacing-sm);
}

.subpanel-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.subpanel-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.subpanel-card {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.subpanel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -4px rgba(11, 19, 37, 0.08), 0 0 0 1px rgba(196, 0, 98, 0.15);
  border-color: rgba(196, 0, 98, 0.28);
}

.subpanel-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}

.subpanel-card:hover .subpanel-card-icon {
  transform: scale(1.12);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.subpanel-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.subpanel-card-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Video Modal Lightbox */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 19, 37, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-backdrop.active {
  display: flex;
}

.video-modal-box {
  background-color: #0B1325;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .video-modal-box {
    animation: none;
  }
}

.video-modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.video-modal-close {
  background: transparent;
  color: #94A3B8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.video-modal-close:hover {
  color: #FFFFFF;
}

.video-modal-body {
  padding: 30px 20px;
  text-align: center;
  color: #F8FAFC;
}

/* --------------------------------------------------------------------------
   6. Responsive Adaptations
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .experience-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .subpanel-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .student-hero {
    padding-bottom: 50px;
  }

  .student-subtabs-wrapper {
    margin-top: 0;
    padding-top: 24px;
    margin-bottom: var(--spacing-xl);
  }

  .student-subtabs-container {
    background-color: #FFFFFF;
    border-radius: 999px;
    padding: 6px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px rgba(11, 19, 37, 0.06);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .student-subtabs-container::-webkit-scrollbar {
    display: none;
  }

  .student-tab-btn {
    flex: 0 0 auto !important;
    min-width: auto !important;
    width: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none !important;
    border-right: none !important;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-text-main);
    background-color: transparent;
    white-space: nowrap;
    transition: all var(--transition-fast);
  }

  .student-tab-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .student-tab-btn.active {
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(196, 0, 98, 0.25);
  }

  .student-tab-btn.active svg {
    color: #FFFFFF;
  }

  .experience-title {
    font-size: clamp(1.65rem, 5.2vw, 2.1rem);
  }

  .experience-desc {
    font-size: 0.92rem;
    line-height: 1.58;
    margin-bottom: 22px;
  }

  .experience-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .experience-feature-item {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bento-collab-card {
    height: 190px;
    border-radius: 14px;
  }

  .bento-quote-card {
    height: auto;
    min-height: 175px;
    padding: 20px 18px;
    border-radius: 14px;
  }

  .bento-quote-text {
    font-size: 0.96rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .bento-quote-mark {
    font-size: 2.2rem;
  }

  .bento-video-card {
    height: 180px;
    border-radius: 14px;
  }

  .bento-events-card {
    border-radius: 14px;
  }

  .student-subpanel {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .subpanel-header {
    margin-bottom: 20px;
  }

  .subpanel-title {
    font-size: clamp(1.5rem, 5vw, 1.85rem);
  }

  .subpanel-desc {
    font-size: 0.90rem;
    line-height: 1.55;
  }

  .subpanel-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .subpanel-card {
    padding: 20px 18px;
    border-radius: 14px;
  }

  .subpanel-card-title {
    font-size: 1.05rem;
  }

  .subpanel-card-desc {
    font-size: 0.86rem;
    line-height: 1.5;
  }
}

@media (max-width: 576px) {
  .student-subtabs-wrapper {
    margin-top: 0;
    padding-top: 20px;
    margin-bottom: var(--spacing-lg);
  }

  .student-subtabs-container {
    border-radius: 999px;
    padding: 5px;
    gap: 4px;
  }

  .student-tab-btn {
    flex: 0 0 auto !important;
    min-width: auto !important;
    width: auto !important;
    padding: 8px 14px;
    font-size: 0.80rem;
    gap: 6px;
    border-radius: 999px;
  }

  .student-tab-btn svg {
    width: 16px;
    height: 16px;
  }

  .student-subpanel {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .bento-video-overlay {
    padding: 12px;
  }

  .bento-play-btn {
    width: 38px;
    height: 38px;
  }

  .video-modal-dialog {
    max-width: 95vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-collab-card:hover,
  .bento-quote-card:hover,
  .bento-video-card:hover,
  .bento-events-card:hover {
    transform: none !important;
  }
  .bento-collab-card img,
  .bento-video-card img,
  .bento-events-img img,
  .bento-video-card:hover .bento-play-btn {
    transform: none !important;
  }
}
