
/* Student Sections */
.student-section {
    padding: 20px 0;
    position: relative;
}

.student-section:nth-child(even) {
    background: var(--light-gray);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.guild-section .section-content,
.outside-section .section-content {
    grid-template-columns: 1fr 1fr;
}

.section-text h1 {
    font-size: 2.5rem;
    color: var(--monaco-blue);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
    
}

.section-text p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    margin-bottom: 15px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.feature-item .material-icons {
    color: var(--monaco-orange);
    font-size: 28px;
    margin-top: 20px;
}

.feature-item h3 {
    color: var(--monaco-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-item p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    margin-top: 10px;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--monaco-orange);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-top: 5px;
    font-weight: 500;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-blue);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    margin-bottom: 10px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.cta-button .material-icons {
    font-size: 20px;
}

/* Image + button column */
.section-image-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Section Images */
.section-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.section-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 25px 25px;
}

.image-overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.image-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}


/* =============================================
   MOBILE  (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* ── Section spacing ── */
  .student-section {
    padding: 24px 0;
  }

  /* ── Section intro headings (inline style override) ── */
  .student-section .container > div[style] h1 {
    font-size: 1.6rem !important;
    margin-bottom: 10px !important;
  }

  .student-section .container > div[style] p {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }

  .student-section .container > div[style] {
    margin-bottom: 20px !important;
  }

  /* ── Also reduce the hardcoded 40px inline margin on section intros ── */
  .student-section .container > div[style*="margin-bottom:40px"],
  .student-section .container > div[style*="margin-bottom: 40px"] {
    margin-bottom: 18px !important;
  }

  /* ── section-content: single column, text first, image below ── */
  .section-content,
  .guild-section .section-content,
  .outside-section .section-content,
  .engagement-section .section-content,
  .studying-section .section-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ── Image+button column: full width, stretch button ── */
  .section-image-col {
    width: 100%;
    align-items: stretch;
    gap: 12px;
  }

  /* ── Section image ── */
  .section-image {
    width: 100%;
  }

  .section-image img {
    height: 210px;
  }

  .image-overlay {
    padding: 16px 14px 14px;
  }

  .image-overlay h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .image-overlay p {
    font-size: 0.8rem;
  }

  /* ── Section text headings ── */
  .section-text h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .section-text p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  /* ── Feature items — 2 per row ── */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .feature-item {
    flex-direction: column;
    gap: 0;
    padding: 12px 10px;
    border-radius: 8px;
  }

  .feature-item:hover {
    transform: none;
  }

  .feature-item .material-icons {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 4px;
  }

  .feature-item h3 {
    font-size: 0.82rem;
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .feature-item p {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-top: 0;
  }

  /* ── Stats row — compact ── */
  .stats-row {
    gap: 0;
    justify-content: space-between;
    margin-bottom: 14px;
    background: #f5f8ff;
    border-radius: 10px;
    padding: 10px 8px;
  }

  .stat-item {
    flex: 1;
    border-right: 1px solid #dde5f5;
    padding: 0 8px;
  }

  .stat-item:last-child {
    border-right: none;
  }

  .stat-number {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .stat-label {
    font-size: 0.65rem;
    margin-top: 3px;
    line-height: 1.3;
  }

  /* ── CTA button — full width ── */
  .cta-button {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
    font-size: 0.88rem;
    border-radius: 30px;
    gap: 6px;
    justify-content: center;
    margin-bottom: 0;
  }

  .cta-button .material-icons {
    font-size: 16px;
  }
}

/* =============================================
   SMALL MOBILE  (≤ 400px)
   ============================================= */
@media (max-width: 400px) {

  .student-section .container > div[style] h1 {
    font-size: 1.35rem !important;
  }

  .student-section .container > div[style] p {
    font-size: 0.82rem !important;
  }

  .section-image img { height: 170px; }

  .feature-item h3  { font-size: 0.75rem; }
  .feature-item p   { font-size: 0.7rem; }
  .feature-item .material-icons { font-size: 18px; }

  .stat-number { font-size: 0.95rem; }
  .stat-label  { font-size: 0.6rem; }

  .features-grid { gap: 8px; }
}
