/**
* Template Name: Squadfree
* Updated: Jan 29 2024 with Bootstrap v5.3.2
* Template URL: https://bootstrapmade.com/squadfree-free-bootstrap-template-creative/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/


/* ===============================
   SPEAKING TESTS — LANDING PAGE
   Balanced + Premium
   =============================== */

/* Custom Design Enhancements */
:root {
  --primary-color: #4154f1;
  --secondary-color: #717ff5;
  --accent-color: #012970;
  --bg-light: #f6f9ff;
  --card-bg: #ffffff;
  --text-main: #444444;
  --text-light: #888888;
  --gradient-hero: linear-gradient(135deg, #012970 0%, #4154f1 100%);
}

body {
  background-color: var(--bg-light);
  font-family: "Open Sans", sans-serif;
}

/* Hero Section */
.breadcrumbs {
  background: var(--gradient-hero);
  padding: 60px 0;
  text-align: center;
  color: white;
  margin-top: 70px;
  /* Offset for fixed header */
}

.breadcrumbs h2 {
  font-size: 36px;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  margin: 0;
  color: white;
}

.breadcrumbs p {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.9;
}

/* Cards Grid */
.speaking-tests-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.speaking-test-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
  transition: all 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.speaking-test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px 0 rgba(68, 88, 144, 0.2);
  border-bottom: 3px solid var(--primary-color);
}

.test-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 15px;
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.test-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 22px;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.test-desc {
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: auto;
}

/* About Section Enhancements */
#about {
  background: white;
  padding: 60px 0;
  margin-top: 40px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
}

.about .content h3 {
  font-weight: 700;
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  color: var(--accent-color);
}

.icon-box {
  margin-top: 30px;
  padding: 20px;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.icon-box:hover {
  background: var(--bg-light);
}

.icon-box i {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-color);
}

/* ==================================================
   CELPIP SPEAKING — TASK CARD
   ================================================== */

.task-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin-bottom: 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.task-header {
  background: linear-gradient(135deg, #5f6cff, #7b68ee);
  color: #fff;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 1rem;
}

.task-body {
  padding: 22px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #222;
}

.task-meta {
  background: #f8f9fa;
  padding: 12px 22px;
  font-size: 0.85rem;
  border-top: 1px solid #e5e5e5;
  color: #555;
}

/* ==================================================
   SPEAKING — INSTRUCTIONS (FROM PROTOTYPE)
   ================================================== */

.task-instructions {
  background: #f1f3f5;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* ==================================================
   SPEAKING — TASK IMAGE
   ================================================== */

.task-image {
  text-align: center;
  margin: 20px 0;
}

.task-image img {
  max-width: 65%;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ==================================================
   SPEAKING — TIMER UI
   ================================================== */

.timer-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f3f5;
  border-radius: 10px;
  padding: 12px 18px;
  margin: 15px 22px 0;
  flex-wrap: wrap;
}

.timer {
  font-size: 1rem;
  font-weight: 600;
}

.timer.prepare {
  color: #072d8e;
}

.timer.speak {
  color: #dc3545;
}

.timer-btn {
  background: #0d6efd;
  border: none;
  color: #fff;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 20px;
  cursor: pointer;
}

.timer-btn:disabled {
  background: #adb5bd;
  cursor: not-allowed;
}

/* ===============================
   SPEAKING — TASK 5 VISIBILITY CONTROL
   =============================== */

/* Hide all Task 5 parts by default */
.task5-part {
  display: none;
}

/* Show only the active part */
.task5-part.active {
  display: block;
}


/* ==================================================
   SPEAKING — TASK 5 OPTIONS
   ================================================== */
   
.task5-options {
  display: flex;
  gap: 24px;
  margin: 20px 0;
}

.task5-option {
  flex: 1;
  background: #f9fafb;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.task5-option img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
}

.task5-option h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 6px 0;
}

.task5-option ul {
  text-align: left;
  padding-left: 18px;
  font-size: 0.85rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .task5-options {
    flex-direction: column;
  }
}

/* ==================================================
   SPEAKING — EXAM MODE
   ================================================== */

.exam-mode {
  overflow: hidden;
}

.exam-mode .task-card {
  height: calc(100vh - 120px);
  margin-bottom: 12px;
}

.exam-mode .task-header {
  padding: 10px 16px;
  font-size: 0.9rem;
}

.exam-mode .timer-box {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.exam-mode .task-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.exam-mode .task-body p,
.exam-mode .task-body ul,
.exam-mode .task-body ol {
  margin-bottom: 8px;
}

.exam-mode .task-image img {
  max-height: 40vh;
  max-width: 90%;
}

.exam-mode .task-meta {
  padding: 8px 16px;
  font-size: 0.8rem;
}
