/*
Theme Name: Secondary STEM Custom
Theme URI: https://secondarystem.com/
Author: Peter
Description: A custom theme for Secondary STEM tutoring.
Version: 1.0
*/

:root {
    --primary-blue: #3464af;
    --accent-teal: #739483;
    --text-dark: #333;
    --text-muted: #555;
    --bg-light: #f4f7f5;
    --bg-white: #ffffff;
    --border-color: #f0f0f0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    letter-spacing: -0.01em;
}

/* Layout Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.main-header {
    padding: 15px 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 130px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link-login {
    color: var(--primary-blue);
    font-weight: 600;
    border: 1px solid var(--primary-blue);
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link-cta {
    color: #fff;
    background: var(--accent-teal);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: opacity 0.3s ease;
}

.nav-link-cta:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-white);
}

.hero h1 {
    font-size: 3.5em;
    color: var(--primary-blue);
    margin: 0 0 24px 0;
    letter-spacing: -0.04em;
    font-weight: 800;
    line-height: 1.05;
}

.hero p {
    font-size: 1.3em;
    color: #4a4a4a;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 20px 45px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: translateY(2px);
}

.btn-primary {
    background-color: var(--accent-teal);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(115,148,131,0.3);
}

.btn-secondary {
    background-color: #fff;
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 0 20px 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 45px 35px;
    border-radius: 20px;
    border: 2px solid var(--accent-teal);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.feature-icon {
    background: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.feature-icon img {
    width: 28px;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.6em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: #4a4a4a;
    margin-bottom: 25px;
    flex-grow: 1;
}

.feature-link {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1em;
}

/* Steps Section */
.steps-section {
    background: #fbfbfb;
    padding: 100px 20px;
    border-top: 1px solid var(--border-color);
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 60px;
}

.step-item {
    flex: 1;
    min-width: 250px;
}

.step-number {
    font-size: 3.5em;
    font-weight: 800;
    color: var(--accent-teal);
    opacity: 0.6;
    display: block;
    margin-bottom: -30px;
}

.step-item h4 {
    color: var(--primary-blue);
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-item p {
    color: #666;
    font-size: 0.95em;
}

/* Tutors Section */
.tutors-section {
    background: #fff;
    padding: 100px 20px;
}

.tutor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
}

.tutor-card {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #eee;
    text-align: left;
}

.tutor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.tutor-card h3 {
    color: var(--primary-blue);
    font-size: 1.5em;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.tutor-subject {
    color: var(--accent-teal);
    font-weight: 700;
    margin: 0 0 20px 0;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tutor-card p {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* Reviews Section */
.reviews-section {
    background: #fcfdfe;
    padding: 100px 20px;
    border-top: 1px solid var(--border-color);
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 60px;
}

.review-card {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.review-text {
    color: #555;
    font-size: 1.05em;
    font-style: italic;
    margin-bottom: 25px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewer-initial {
    width: 30px;
    height: 30px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 0.8em;
}

.reviewer-name {
    color: #333;
    font-weight: 700;
    font-size: 0.9em;
}

.reviewer-role {
    font-weight: 400;
    color: #888;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 120px 20px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.contact-email {
    color: var(--accent-teal);
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 800;
    border-bottom: 4px solid #f0f7ff;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--primary-blue);
}

/* Footer */
.main-footer {
    padding: 50px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #fbfbfb;
}

.footer-text {
    color: #999;
    font-size: 0.9em;
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .nav-container {
        justify-content: center;
        gap: 20px;
    }
}

/* ==========================================================================
   ADDITIONAL CUSTOM CSS (IMPORTED FROM WORDPRESS)
   ========================================================================== */

/* 1. Style the outer container of all Details blocks */
details {
    background-color: #f4f7f5;
    border: 2px solid #e0e7e3;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 2. Style the clickable "Summary" bars */
details summary {
    background-color: #f4f7f5;
    color: #3464af;
    padding: 20px 25px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
}

/* Custom plus/minus icon */
details summary::-webkit-details-marker {
    display: none;
}
details summary::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.2em;
    color: #3464af;
    transition: transform 0.3s ease;
}
details[open] summary::after {
    content: '−';
    color: #739483;
}

/* Hover effects */
details summary:hover {
    background-color: #e8f0eb;
}

/* 3. Style the drop-down content area */
details > *:not(summary) {
    padding: 20px 25px;
    background-color: #ffffff;
    border-top: 2px solid #e0e7e3;
}

/* Spacing and typography overrides for GCSE Maths accordion lists */
.category-content h4.topic-title {
    color: #3464af; /* Brand blue */
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.category-content p.topic-desc {
    color: #555;
    font-size: 1em;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

/* Snug up the last paragraph */
.category-content p.topic-desc:last-of-type {
    margin-bottom: 0;
}

/* Completely strip out vertical gap empty paragraph tags injected by WordPress (like &nbsp; spacers) */
.category-content p:empty,
.category-content p:has(br),
.category-content p + p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Make lists inside details blocks look professional */
details ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
details li {
    margin-bottom: 12px;
}
details li a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 1.1em;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
details li a:hover {
    background-color: #f0f4fc;
    color: #3464af;
}
details li a::before {
    content: "→";
    color: #739483;
    margin-right: 10px;
    font-weight: bold;
}
/* --- NESTED DETAILS STYLING --- */
/* Makes the inner accordions sit flat and look distinct from the parent */
details details {
    box-shadow: none;
    border: 1px solid #e0e7e3;
    margin-top: 10px;
}

/* Changes the inner bar to white and slightly smaller text */
details details summary {
    background-color: #ffffff;
    font-size: 1.15em; 
    padding: 15px 20px;
}

/* Light highlight when hovering over the inner subcategories */
details details summary:hover {
    background-color: #fbfbfb;
}

/* Gives the innermost link area a subtle contrast */
details details > *:not(summary) {
    background-color: #fbfbfb; 
    border-top: 1px solid #eee;
}
/* The clickable subcategory card */
.topic-link {
  display: block;
  text-decoration: none !important; /* Forces the underline away */
  padding: 16px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #ffffff;
  transition: all 0.2s ease;
  color: inherit; /* Stops the whole block from turning default blue */
}

.topic-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #007bff;
  transform: translateY(-1px);
}

/* The Title */
.topic-title {
  margin: 0 0 6px 0;
  color: #0056b3 !important; /* A slightly darker, professional blue */
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none !important;
}

/* Optional: Underline the title only when the user hovers over the card */
.topic-link:hover .topic-title {
  text-decoration: underline !important; 
}

/* The Description */
.topic-desc {
  margin: 0;
  font-size: 0.95rem;
  color: #495057 !important; /* A dark grey so it looks like standard paragraph text */
  line-height: 1.4;
  text-decoration: none !important; /* Ensures the underline stays away from the description */
}

/* 2-column grid on wider screens */
.category-content:has(.topic-link) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 600px) {
  .category-content:has(.topic-link) {
    grid-template-columns: 1fr 1fr;
  }
}

.category-content:has(.topic-link) > *:not(.topic-link) {
  display: none !important;
}

.topic-link:empty {
  display: none !important;
}

/* --- TUTORING APPROACH SECTION STYLES --- */

/* Creates a distinct box for the bottom text to separate it from the links */
.tutoring-approach-section {
  background-color: #f4f7f5; /* Matches your accordion background */
  border: 2px solid #e0e7e3; /* Matches your accordion border */
  border-radius: 12px;
  padding: 40px;
  margin-top: 50px; /* Creates the large physical gap between the cards and this text */
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* Styles the intro paragraph to stand out */
.tutoring-intro {
  font-size: 1.15rem;
  color: #3464af; /* Your brand blue */
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* Styles the 'Our Approach' heading */
.tutoring-approach-section h3 {
  color: #212529;
  border-bottom: 2px solid #739483; /* Your brand green */
  padding-bottom: 10px;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

/* Styles the list to replace boring dots with custom checkmarks */
.approach-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}

.approach-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #4a4a4a;
  line-height: 1.6;
}

/* The custom checkmark icon */
.approach-list li::before {
  content: "✓"; 
  position: absolute;
  left: 0;
  top: 0;
  color: #739483; /* Your brand green */
  font-weight: bold;
  font-size: 1.3rem;
}

/* Highlights the bold text (Understanding, Exam Technique, etc.) */
.approach-list strong {
  color: #3464af; /* Your brand blue */
  font-size: 1.1rem;
}

/* --- SUBJECT GRID & CARDS (IMPORTED FROM GCSE HUB) --- */
.subject-grid {
    display: grid;
    /* Force 4 columns (single row) on desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 20px 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Responsiveness overrides for the grid */
@media (max-width: 960px) {
    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 540px) {
    .subject-grid {
        grid-template-columns: 1fr;
    }
}

/* Hides any invisible spaces or paragraphs WordPress injects in grids */
.subject-grid > :not(.subject-card) {
    display: none !important;
}

.subject-card {
    background: #f4f7f5;
    padding: 40px 10px;
    border-radius: 20px;
    border: 2px solid #739483;
    text-align: center;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-decoration: none; /* Removes the default blue link underline */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.subject-card:hover {
    transform: translateY(-5px); /* Lifts the card up slightly */
    box-shadow: 0 10px 20px rgba(115, 148, 131, 0.15);
    background-color: #ffffff;
}

/* ==========================================================================
   6. Breadcrumbs Styling
   ========================================================================== */
.breadcrumbs {
    font-size: 0.95rem;
    color: #8c9ba5;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 500;
}

.breadcrumbs a {
    color: #3464af; /* Brand blue */
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #2a5290;
    text-decoration: underline;
}

.breadcrumbs .sep {
    color: #cbd5e1;
    font-weight: 400;
}

.breadcrumbs .current {
    color: #64748b;
    font-weight: 600;
}

