
/* === GCSE Study Section === */
.study-section.gcse-bg {
  background-color: #f0fbf8;
  padding: 4rem 1rem;
  border-top: 4px solid #3f87a6;
  border-radius: 0 0 16px 16px;
  margin-bottom: 0 !important;
}

.section-title {
  font-size: 2.2rem;
  background-color: #e7f4f8;
  color: #3f87a6;
  text-align: center;
  margin-bottom: 2rem;
  padding: 5rem;
  border-radius: 0 0 16px 16px;
}

.main-heading {
  font-size: 1.8rem;
  color: #3f87a6;
  margin-bottom: 0.5rem;
  text-align: center;
  margin-top: 3rem;
}

.subtext {
  font-size: 1rem;
  color: #444;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

/* Category Grid */

.category-grid {
  display: grid;
  column-gap: 1.5rem;
  row-gap: 3rem; /* 👈 This is the line you need */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-items: center;
  margin: 2rem auto;
  margin-top: 3rem;
  max-width: 1000px;
  margin-bottom: 5rem;
}


/* Flip Card Style */
.flip-card {
  width: 100%;
  max-width: 280px;
  height: 240px;
  perspective: 1000px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.flip-card-front {
  background: #f0f8ff;
  color: #3f87a6;
}

.flip-card-back {
  background: #3f87a6;
  color: white;
  transform: rotateY(180deg);
}

/* Category card content */
.study-section .container {
  padding-top: 3rem;
  margin-bottom: 0 !important;
}

.category-content-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.category-icon-inline {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.category-labels h2 {
  font-size: 1.1rem;
  margin: 0;
}

.subcategory-count {
  font-size: 0.9rem;
  color: #3f87a6;
}

/* Subcategory Preview */
.subcategory-preview {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.subcategory-preview li {
  font-size: 0.9rem;
  color: white;
}

/* Buttons */
.button.small {
  display: inline-block;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  background-color: white;
  color: #3f87a6;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.button.small:hover {
  background-color: #e6f3ff;
}

/* Ad placeholder */
.adsense-placeholder {
  width: 970px;
  height: 90px;
  border: 1px solid #ccc;
  background-color: #fff;
  position: relative;
  margin: 2rem auto;
  margin-top: 3rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.adsense-label {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 11px;
  color: #999;
  font-family: sans-serif;
}

@media (max-width: 1024px) {
  .adsense-placeholder {
    width: 100%;
    max-width: 320px;
    height: 50px;
  }
}


/* Tutorial Cards */
.gcse-tutorials {
  background: #f8fcfe;
  padding: 3rem 1rem;
  margin-top: 3rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  text-align: center;
}

.gcse-tutorials .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gcse-tutorials .main-heading {
  font-size: 1.6rem;
  margin: 0;
  color: #3f87a6;
}

.gcse-tutorials .see-all-btn {
  background: #3f87a6;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.gcse-tutorials .see-all-btn:hover {
  background: #326d88;
}

.gcse-tutorials .subtext {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
  text-align: center;
}

.tutorial-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
}

.tutorial-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: #003f5c;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  border-color: #3f87a6;
}

.tutorial-card img.tutorial-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.tutorial-card h4 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #222;
}

.tutorial-card .tutorial-preview {
  font-size: 0.95rem;
  color: #555;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-header .see-all-btn {
  margin-top: 0.5rem;
}

.tutorial-footer {
  margin-top: 1.5rem;
  margin-right: 1.5rem;
  text-align: right;
}
/* Exam Papers */
/* ===== GCSE EXAM PAPERS ===== */

.gcse-exam-papers {
  text-align: center;
  padding: 2rem 1rem;
}

.gcse-exam-papers .exam-paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gcse-exam-papers .exam-paper-card {
  background: #fffbea;
  border: 2px solid #e0cd00;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;          /* Center the text */
  display: flex;               /* Enable flex layout */
  flex-direction: column;     /* Stack vertically */
  align-items: center;        /* Center horizontally */
  justify-content: center;    /* Center vertically if needed */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #3f87a6;
}


.gcse-exam-papers .exam-paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gcse-exam-papers .exam-paper-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.gcse-exam-papers .exam-paper-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.gcse-exam-papers .exam-footer {
  margin-top: 1.5rem;
  text-align: right;
}

/* Worksheets */


.gcse-worksheets {
  padding: 2rem 1rem;
  text-align: center;
  background: #fdfdf9;
  margin-top: 2rem;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.worksheet-card {
  background: #f0f8ff; /* subtle blue */
  border: 1px solid #c6e2f5; /* light border */
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #003f5c;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: background 0.2s ease;
}

.worksheet-card:hover {
  background: #e6f3ff; /* slightly stronger tint on hover */
}

.worksheet-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #3f87a6; ;
}

.worksheet-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.worksheet-footer {
  margin-top: 1.5rem;
  text-align: right;
}

/* ===== GCSE TUTORING CALL TO ACTION ===== */

.tutor-cta {
  background: #eaf7ff;
  padding: 2.5rem 1rem;
  border-radius: 12px;
  margin-top: 3rem;
  text-align: center;
  color: #003f5c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.tutor-cta .main-heading {
  color: #3f87a6;
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.tutor-cta .subtext {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444;
}

.tutor-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #2d4e60;
}

.tutor-benefits li::before {
  content: "✔ ";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* A-Level Styling */

.alevel {
  background-color: #e7f4f8;
  margin-top: 0 !important;
  padding-bottom: 3rem;
}

.alevel .container {
  padding-top: 0 !important;
  margin-top: -2rem; /* Optional: only if small gap remains */
}

/* Remove top spacing from A-Level section completely */
.level-section.alevel {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-radius: 0 !important;  /* Optional: clean transition */
}

/* A-Level Flip Card Styling */

.alevel .category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* exactly 4 columns */
  gap: 3rem; /* spacing between items */
  justify-items: center;
  max-width: 1200px; /* optional: limits total width */
  margin: 5rem auto;
}

.alevel .category-card {
  background-color: #1e2b38;
  color: #3f87a6;
  border: 1px solid #4a4a4a;
}

.alevel .category-card:hover {
  background-color: #263544;
}
.alevel .flip-card {
  height: 120px; /* half of 240px */
}

.alevel .flip-card-back {
  background-color: #3f87a6;
  color: white;
}
.alevel-section-title {
  font-size: 2.2rem;
  background-color: #f0fbf8;
  color: #3f87a6;
  text-align: center;
  margin-top: 0;
  padding: 5rem;
  border-radius: 0 0 16px 16px;
  
}

.alevel .main-heading {
  padding: 1rem 0;
}

.alevel-exam-papers {
  padding: 5rem 2rem;
  background-color: #f0fbf8;
}

.alevel-exam-papers .exam-paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.alevel-exam-papers .exam-paper-card {
  background: #fffbea;
  border: 2px solid #e0cd00;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #3f87a6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alevel-exam-papers .exam-paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.alevel-exam-papers .exam-paper-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.alevel-exam-papers .exam-paper-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.alevel-exam-papers .exam-footer {
  margin-top: 2rem;
  text-align: right;
  padding-right: 1rem;
}

.alevel-exam-papers .see-all-btn {
  margin-top: 4rem;
  justify-self: end;
}

.alevel-worksheets {
  padding: 5rem 2rem;
  background-color: #f0fbf8;
  text-align: center;
}

.alevel-worksheets .worksheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.alevel-worksheets .worksheet-card {
  background: #f0f8ff;
  border: 1px solid #c6e2f5;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #003f5c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
}

.alevel-worksheets .worksheet-card:hover {
  background: #e6f3ff;
}

.alevel-worksheets .worksheet-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #3f87a6;
}

.alevel-worksheets .worksheet-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.alevel-worksheets .worksheet-footer {
  margin-top: 2rem;
  text-align: right;
  padding-right: 1rem;
}

.alevel-tutoring {
  background: #fffceb; /* very light yellow */
  padding: 3rem 1rem;
  border-radius: 12px;
  margin: 5rem auto;
  max-width: 1000px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  color: #3f87a6;
}

.alevel-tutoring .main-heading {
  font-size: 1.8rem;
  color: #e0a800; /* golden highlight */
  margin-bottom: 1rem;
}

.alevel-tutoring .subtext {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 2rem;
}

.alevel-tutoring .tutor-benefits {
  list-style: none;
  padding: 0;
  font-size: 1rem;
  color: #2c3e50;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.alevel-tutoring .tutor-benefits li::before {
  list-style: none;
  content: "✔ ";
  color: #e0a800;
  font-weight: bold;
  margin-right: 0.5rem;
}

.alevel-tutoring .center-button {
  margin-top: 1.5rem;
}

.alevel-tutoring .see-all-btn {
  background-color: #e0a800;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  padding: 0.7rem 1.4rem;
  transition: background 0.3s ease;
}

.alevel-tutoring .see-all-btn:hover {
  background-color: #c69300;
}

.alevel-tutoring .tutor-benefits {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
}

.functional-section-title {
  font-size: 2.2rem;
  background-color: #fffbea;
  color: #e0cd00;
  text-align: center;
  margin-top: 0;
  padding: 5rem;
  border-radius: 0 0 16px 16px;
}

.functional {
  background-color: #fefdf5;
}

.functional .flip-card {
  height: 120px; /* half of 240px */
}

.functional-tutoring {
  background: #fffbea;
  padding: 4rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  margin-top: 4rem;
}

.functional-tutoring .main-heading {
  color: #e0cd00;
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.8rem;
}

.functional-tutoring .subtext {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.functional-tutoring ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  font-size: 1.05rem;
  color: #3f87a6;
}

.functional-tutoring ul li::before {
  content: "✔ ";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
}

.functional-exam-papers {
  padding: 5rem 2rem;
  background-color: #fffbea; /* soft yellow background */
}

.functional-exam-papers .main-heading {
  color: #b58900; /* strong gold tone */
}

.functional-exam-papers .subtext {
  color: #444;
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.functional-exam-papers .exam-paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.functional-exam-papers .exam-paper-card {
  background: #fffde6;
  border: 2px solid #f0c000;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #3f87a6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.functional-exam-papers .exam-paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #e0b800;
}

.functional-exam-papers .exam-paper-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.functional-exam-papers .exam-paper-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.functional-exam-papers .exam-footer {
  margin-top: 2rem;
  text-align: right;
  padding-right: 1rem;
}

.functional-exam-papers .see-all-btn {
  margin-top: 3rem;
  background-color: #f0c000;
  color: white;
  font-weight: bold;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.functional-exam-papers .see-all-btn:hover {
  background-color: #d4a700;
}

.functional-worksheets {
  padding: 3rem 2rem; /* top-bottom 3rem, left-right 2rem */
  text-align: center;
  background: #fdfbea;
  margin-top: 2rem;
  border-radius: 12px;
}

/* Remove underline and reset text color in all modes */
.exam-card h3,
.exam-card p {
  text-decoration: none !important;
  color: inherit;
}



