/* ============================================================================
   Competitive Exams — landing page for the 6 backbone subjects.
   Card styling reuses study-material.php's own .ls-hub-card pattern (same
   $SM_COLOURS strip colors) so this page reads as a native part of the
   site, not a one-off design.
   ============================================================================ */

.ce-page { max-width: 980px; margin: 0 auto; }

.ce-head { background: linear-gradient(180deg,#5a3a1a,#3d2810); border-radius: 14px; padding: 24px 24px 20px; margin-bottom: 18px; border-bottom: 2px solid #2e1c0a; }
.ce-head-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.ce-head-row i { font-size: 30px; color: #F5E6C8; flex-shrink: 0; }
.ce-head-text { min-width: 0; }
.ce-eb { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #FFC04D; margin: 0 0 4px; }
.ce-h1 { font-family: 'Lexend', sans-serif; font-size: 26px; font-weight: 800; color: #F5E6C8; margin: 0; }
.ce-lead { font-size: 14px; color: rgba(245,230,200,0.82); margin: 0; max-width: 60ch; }

.ce-milestones { position: relative; margin: 0 0 24px; padding: 18px 10px 0; }
.ce-ms-track { display: flex; justify-content: space-between; position: relative; }
.ce-ms-track::before { content: ''; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background-image: linear-gradient(to right, #1E4D5F 50%, transparent 50%); background-size: 14px 2px; background-repeat: repeat-x; opacity: 0.3; }
.ce-ms-node { position: relative; width: 38px; height: 38px; border-radius: 50%; background: #FFC04D; box-shadow: 0 0 0 4px #FAFAF7; display: flex; align-items: center; justify-content: center; font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 10.5px; color: #1E4D5F; text-align: center; }
.ce-ms-cap { text-align: center; font-size: 11px; color: #a89d8a; font-style: italic; margin: 10px 0 0; }

@media (max-width: 520px) {
  .ce-ms-node { width: 30px; height: 30px; font-size: 8.5px; }
}

.ce-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 20px; }

.ce-card {
  background: #fff; border-radius: 14px; border: 1px solid #e8e4dc; padding: 0;
  text-decoration: none; display: flex; flex-direction: column; align-items: center;
  text-align: center; transition: transform 0.2s, box-shadow 0.2s; overflow: hidden;
}
.ce-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(30,77,95,0.12); }

.ce-top { width: 100%; padding: 30px 18px 20px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.ce-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ce-icon i { font-size: 32px; color: #fff; }
.ce-name { font-size: 17px; font-weight: 700; color: #1E4D5F; line-height: 1.3; margin: 0; }
.ce-desc { font-size: 13px; color: #8a9494; margin-top: 8px; line-height: 1.5; }
.ce-bar { height: 5px; width: 100%; }

.ce-more { text-align: center; font-size: 13.5px; color: #5a6b72; margin: 8px 0 0; }
.ce-more a { color: #1F947F; font-weight: 700; text-decoration: none; }
.ce-more a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .ce-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ce-icon { width: 60px; height: 60px; }
  .ce-icon i { font-size: 28px; }
  .ce-name { font-size: 15px; }
}
@media (max-width: 520px) {
  .ce-grid { grid-template-columns: 1fr; }
  .ce-head { padding: 18px; }
  .ce-h1 { font-size: 22px; }
}
