/* ========================================
   STUDENT ACTIVITIES SECTION
   Layout: 1 featured + 2 cards per row
   ======================================== */

.kt-student-section {
  width: 100%;
  margin: 32px 0 48px;
}

/* Header */
.kt-student-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.kt-student-section .section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--crimson);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kt-student-section .section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  background: linear-gradient(to bottom, var(--gold), var(--crimson));
  border-radius: 3px;
}

.kt-student-section .view-all {
  font-size: 13px;
  color: var(--crimson);
  text-decoration: none;
  font-weight: 600;
  border: 1.5px solid var(--crimson);
  padding: 5px 14px;
  border-radius: 20px;
}

.kt-student-section .view-all:hover {
  background: var(--crimson);
  color: #fff;
}

/* Grid layout */
.kt-student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Featured full width */
.kt-student-featured {
  grid-column: 1 / -1;
}

/* Base article */
.kt-student-article {
  margin: 0 !important;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.kt-student-article > footer {
  display: none !important;
}

/* ===============================
   Featured card
================================ */

.kt-student-featured .kt-student-article {
  position: relative;
  min-height: 210px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, var(--crimson-dark) 55%, var(--crimson) 100%);
}

/* Featured image */
.kt-student-featured .kt-student-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.kt-student-featured .kt-student-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Featured fallback icon */
.kt-student-featured .kt-student-fallback-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 76px;
  color: rgba(255, 255, 255, 0.18);
}

/* Featured overlay */
.kt-student-featured .kt-student-article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.28) 60%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.kt-student-featured .kt-student-body {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.kt-student-featured .kt-student-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.kt-student-featured .kt-student-date {
  display: none;
}

.kt-student-featured .kt-student-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--crimson-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
}

.kt-student-featured .kt-student-title {
  margin: 0;
}

.kt-student-featured .kt-student-title a {
  color: #fff !important;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.kt-student-featured .kt-student-summary {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13.5px;
  line-height: 1.55;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kt-student-featured .kt-student-info {
  margin-top: 9px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

/* ===============================
   Small cards
================================ */

.kt-student-card .kt-student-article {
  border: 1.5px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.kt-student-card .kt-student-article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--gold);
}

.kt-student-card .kt-student-thumb {
  display: block;
  width: 100%;
  height: 96px;
  background: rgba(123, 63, 160, 0.12);
  color: #7b3fa0;
  text-decoration: none;
  overflow: hidden;
}

.kt-student-card .kt-student-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kt-student-card .kt-student-fallback-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.kt-student-card .kt-student-body {
  padding: 12px;
}

.kt-student-card .kt-student-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.kt-student-card .kt-student-date {
  color: var(--gray-400);
  font-size: 12px;
}

.kt-student-card .kt-student-badge {
  display: inline-block;
  background: rgba(123, 63, 160, 0.12);
  color: #7b3fa0;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 3px 8px;
  border-radius: 4px;
}

.kt-student-card .kt-student-title {
  margin: 0;
}

.kt-student-card .kt-student-title a {
  color: var(--gray-800) !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.42;
  text-decoration: none;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kt-student-card .kt-student-title a:hover {
  color: var(--crimson) !important;
}

.kt-student-card .kt-student-summary {
  display: none;
}

.kt-student-card .kt-student-info {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--gray-400);
  font-size: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .kt-student-grid {
    grid-template-columns: 1fr;
  }

  .kt-student-featured {
    grid-column: auto;
  }

  .kt-student-featured .kt-student-article {
    min-height: 185px;
    padding: 18px;
  }

  .kt-student-featured .kt-student-title a {
    font-size: 17px;
  }

  .kt-student-card .kt-student-thumb {
    height: 86px;
  }
}
/* ========================================
   Student Activity Detail Page
======================================== */

.kt-student-detail {
  max-width: 900px;
  margin: 32px auto 56px;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.kt-student-detail-header {
  margin-bottom: 22px;
}

.kt-student-detail-title {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
}

.kt-student-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray-500);
  font-size: 14px;
}

.kt-student-detail-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(155, 28, 46, 0.08);
  color: var(--crimson);
  font-weight: 700;
}

.kt-student-detail-image {
  margin: 0 0 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.kt-student-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.kt-student-detail-extra {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--crimson);
  background: rgba(155, 28, 46, 0.06);
  color: var(--gray-700);
  font-weight: 600;
}

.kt-student-detail-body {
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.75;
}

.kt-student-detail-body p {
  margin: 0 0 16px;
}

@media (max-width: 768px) {
  .kt-student-detail {
    margin: 20px 0 40px;
    padding: 18px;
  }

  .kt-student-detail-title {
    font-size: 24px;
  }
}