/* =========================================================
   TeeTalkEnglish
   IELTS STYLES
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

body {
  background: #f4f8f8;
  color: #222;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
  text-align: center;
}

.header h1 {
  color: #222;
}

.header p {
  color: #555;
}


/* =========================================================
   HUB CONTAINER
   ========================================================= */

.hub-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}


/* =========================================================
   TOPIC GRID
   ========================================================= */

.topic-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 18px;
  margin-top: 25px;
}


/* =========================================================
   TOPIC CARD
   ========================================================= */

.topic-card {
  display: block;

  background: #ffffff;

  border: 1px solid #d9e2e2;
  border-radius: 14px;

  padding: 20px;

  text-decoration: none;

  color: #222;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}


.topic-card:hover {
  transform: translateY(-4px);

  border-color: #24B7BD;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   CARD EMOJI
   ========================================================= */

.topic-card .emoji {
  font-size: 32px;
  margin-bottom: 10px;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.topic-card .title {
  font-size: 18px;
  font-weight: 700;

  color: #222;

  margin-bottom: 7px;
}


/* =========================================================
   CARD DESCRIPTION
   ========================================================= */

.topic-card .desc {
  font-size: 14px;
  line-height: 1.5;

  color: #555;
}


/* =========================================================
   LOADING / ERROR
   ========================================================= */

.loading,
.error {
  width: 100%;

  text-align: center;

  padding: 30px;

  color: #555;
}

.error {
  color: #b00020;
}


/* =========================================================
   TOPIC PAGE
   ========================================================= */

.topic-container {
  max-width: 900px;

  margin: 0 auto;

  padding: 20px;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.back-button {
  display: inline-block;

  margin-bottom: 20px;

  color: #168e93;

  font-weight: 700;

  text-decoration: none;
}

.back-button:hover {
  text-decoration: underline;
}


/* =========================================================
   TOPIC HEADER
   ========================================================= */

.topic-header {
  text-align: center;

  margin-bottom: 30px;
}


.topic-emoji {
  font-size: 50px;

  margin-bottom: 10px;
}


.topic-header h1 {
  margin: 0;

  color: #222;

  font-size: 32px;
}


.topic-description {
  max-width: 650px;

  margin: 10px auto 0;

  color: #555;

  line-height: 1.6;
}


/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.section {
  background: #ffffff;

  border: 1px solid #ddd;

  border-radius: 4px;

  padding: 25px;

  margin-bottom: 24px;

  color: #222;
}


.section h2 {
  margin-top: 0;

  margin-bottom: 12px;

  color: #222;
}


.section h3 {
  margin-top: 25px;

  color: #333;
}


.section h4 {
  color: #333;
}


.section p {
  color: #444;

  line-height: 1.65;
}


.section li {
  color: #444;

  line-height: 1.6;

  margin-bottom: 7px;
}


/* =========================================================
   PHRASES
   ========================================================= */

.phrase-list {
  display: grid;

  gap: 10px;

  margin-top: 15px;
}


.phrase {
  background: #f0fafa;

  border-left: 4px solid #24B7BD;

  border-radius: 7px;

  padding: 13px 16px;

  color: #222;

  line-height: 1.5;
}


/* =========================================================
   SCENARIOS
   ========================================================= */

.scenario {
  background: #fafafa;

  border: 1px solid #ddd;

  border-radius: 10px;

  padding: 18px;

  margin-top: 15px;
}


.scenario h3 {
  margin-top: 0;

  color: #222;
}


.scenario p {
  color: #444;
}


.scenario-task {
  margin-top: 12px;

  padding-top: 12px;

  border-top: 1px solid #e5e5e5;

  color: #333;

  font-weight: 600;
}


/* =========================================================
   RESPONSE STRUCTURE
   ========================================================= */

.step {
  background: #f7f7f7;

  border-radius: 8px;

  padding: 15px;

  margin-top: 12px;
}


.step-label {
  font-weight: 700;

  color: #222;
}


.example {
  margin-top: 6px;

  color: #555;

  font-style: italic;
}


/* =========================================================
   CHALLENGE LEVELS
   ========================================================= */

.level {
  background: #f7fafa;

  border-left: 4px solid #24B7BD;

  border-radius: 6px;

  padding: 13px 16px;

  margin-top: 12px;

  color: #333;
}


.level-title {
  font-weight: 700;

  color: #222;

  margin-bottom: 5px;
}


/* =========================================================
   IELTS SECTIONS
   ========================================================= */

.ielts-part {
  margin-top: 28px;

  padding-top: 24px;

  border-top: 1px solid #ddd;
}


.ielts-part:first-child {
  border-top: none;

  padding-top: 0;
}


.ielts-part h3 {
  margin-top: 0;

  color: #222;
}


/* =========================================================
   IELTS QUESTIONS
   ========================================================= */

.question-list {
  padding-left: 25px;
}


.question-list li {
  margin-bottom: 13px;

  color: #333;
}


.question-list li p {
  margin-bottom: 8px;
}


.sample-answer-note {
  margin-top: 0;
  color: #555;
  font-size: 14px;
}


.sample-answer-toggle {
  margin-top: 4px;
  padding: 8px 12px;
  background: #ffffff;
  color: #222;
  border: 1px solid #24B7BD;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}


.sample-answer-toggle:hover,
.sample-answer-toggle:focus-visible {
  background: #f5fafa;
}


.sample-answer-toggle:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
}


.sample-answer {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #ddd;
}


.sample-answer p {
  margin: 0;
  white-space: pre-line;
}


.sample-conversation-toggle {
  margin-top: 12px;
  padding: 8px 12px;
  background: #ffffff;
  color: #222;
  border: 1px solid #24B7BD;
  border-radius: 3px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}


.sample-conversation-toggle:hover,
.sample-conversation-toggle:focus-visible {
  background: #f5fafa;
}


.sample-conversation-toggle:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
}


.sample-conversation {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #ddd;
}


.sample-conversation p {
  margin: 0 0 8px;
}


.sample-conversation p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   CUE CARD
   ========================================================= */

.cue-card {
  background: #ffffff;

  border: 1px solid #ddd;

  border-radius: 4px;

  padding: 20px;

  margin-top: 15px;
}


.cue-card-title {
  font-size: 18px;

  font-weight: 700;

  color: #222;

  margin-bottom: 12px;
}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.error-message {
  text-align: center;

  padding: 50px 20px;
}


.error-message h2 {
  color: #222;
}


.error-message p {
  color: #555;
}


.error-message a {
  color: #168e93;

  font-weight: 700;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .hub-container,
  .topic-container {
    padding: 15px;
  }

  .topic-header h1 {
    font-size: 27px;
  }

  .section {
    padding: 20px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

}