/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, #1E3475 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-8)) var(--space-6) var(--space-8);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,160,0,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,160,0,0.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(201, 160, 0, 0.15);
  border: 1px solid rgba(201, 160, 0, 0.35);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-gold-light);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-serif-zh);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-6);
  font-weight: 700;
}

.lang-en .hero-title {
  font-family: var(--font-serif-en);
}

.hero-title span {
  color: var(--color-gold-light);
  display: block;
}

.hero-motto {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-10);
  font-style: italic;
  font-family: var(--font-serif-zh);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.5);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  animation: bounce 2s infinite;
}

.hero-scroll i {
  font-size: var(--text-lg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SCHOOLS GRID
   ============================================================ */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .schools-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .schools-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NEWS GRID
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.news-grid.news-featured {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
}

.news-grid.news-featured .card:first-child {
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid.news-featured { grid-template-columns: 1fr; }
  .news-grid.news-featured .card:first-child { grid-row: span 1; }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CAMPUS GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  transition: transform var(--transition-slow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-3) var(--space-3);
  letter-spacing: 0.03em;
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.05);
}

/* Gradient backgrounds for gallery items */
.gallery-bg-1 { background: linear-gradient(135deg, #1A2B5E, #2A3F80); }
.gallery-bg-2 { background: linear-gradient(135deg, #C9A000, #E4BC2A); }
.gallery-bg-3 { background: linear-gradient(135deg, #2C5282, #3182CE); }
.gallery-bg-4 { background: linear-gradient(135deg, #1A3A1A, #276727); }
.gallery-bg-5 { background: linear-gradient(135deg, #3D0A0A, #8B2020); }

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 160px);
  }
  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 120px);
  }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,160,0,0.1) 0%, transparent 70%);
}

.cta-section h2 {
  font-size: var(--text-4xl);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  position: relative;
}

.cta-section p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   TWO COLUMN
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child  { order: 1; }

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .two-col.reverse > *:first-child { order: 0; }
  .two-col.reverse > *:last-child  { order: 0; }
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 3px rgba(201,160,0,0.3);
}

.timeline-year {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-1);
}

.timeline-title {
  font-size: var(--text-lg);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  font-family: var(--font-serif-zh);
}

.timeline-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   PERSON CARD (Leadership)
   ============================================================ */
.person-card {
  text-align: center;
  padding: var(--space-6);
}

.person-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  font-family: var(--font-serif-zh);
}

.person-name {
  font-size: var(--text-xl);
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.person-title {
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.person-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

thead {
  background: var(--color-navy);
  color: var(--color-white);
}

thead th {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.03em;
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover { background: var(--color-bg); }

tbody td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

tbody td strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================================
   NEWS PAGE LAYOUT
   ============================================================ */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  align-items: flex-start;
}

@media (max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
}

.news-sidebar-widget {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.news-sidebar-widget h4 {
  font-size: var(--text-base);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}

/* ============================================================
   BACKGROUND UTILITIES
   ============================================================ */
.bg-light { background: var(--color-bg); }
.bg-white { background: var(--color-white); }
.bg-navy  { background: var(--color-navy); }
.bg-dark  { background: var(--color-navy-dark); }

/* ============================================================
   ICON BOX
   ============================================================ */
.icon-box {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.icon-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.icon-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-gold-light);
  flex-shrink: 0;
}

.icon-box-body h4 {
  font-size: var(--text-base);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.icon-box-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: var(--color-gold-light);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-family: var(--font-serif-en);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: var(--text-base);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
  font-family: var(--font-serif-zh);
  font-weight: 700;
}

.step-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before { display: none; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}
