/* ==========================================================================
   WordPress Additional CSS Customizer Stylesheet
   Copy the entire contents of this file and paste it into:
   Appearance > Customize > Additional CSS
   ========================================================================== */

/* ==========================================================================
   1. Details and Accordion Container Styling
   ========================================================================== */
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;
}

/* 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;
}

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

/* Lists inside details blocks */
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;
}

/* ==========================================================================
   2. Nested Subcategory Card Accordions
   ========================================================================== */
details details {
    box-shadow: none;
    border: 1px solid #e0e7e3;
    margin-top: 10px;
}

details details summary {
    background-color: #ffffff;
    font-size: 1.15em; 
    padding: 15px 20px;
}

details details summary:hover {
    background-color: #fbfbfb;
}

details details > *:not(summary) {
    background-color: #fbfbfb; 
    border-top: 1px solid #eee;
}

.topic-link {
    display: block;
    text-decoration: none !important;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #ffffff;
    transition: all 0.2s ease;
    color: inherit;
}

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

.topic-title {
    margin: 0 0 6px 0;
    color: #0056b3 !important;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none !important;
}

.topic-link:hover .topic-title {
    text-decoration: underline !important; 
}

.topic-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #495057 !important;
    line-height: 1.4;
    text-decoration: none !important;
}

/* 2-column card grid (Scoped only to pages with actual topic-links) */
.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;
}

/* ==========================================================================
   3. GCSE Maths Syllabus Accordion List Spacing (Bulletproof)
   ========================================================================== */
.category-content h4.topic-title,
.category-content h4 {
    color: #3464af;
    font-size: 1.15em;
    font-weight: 700;
    margin: 0 0 6px 0 !important;
}

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

.category-content p:last-of-type {
    margin-bottom: 0 !important;
}

/* Strip out empty paragraphs and WordPress-injected spacers */
.category-content p:empty,
.category-content p:has(br),
.category-content p + p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   4. GCSE Subject Grid & Card Row
   ========================================================================== */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 20px 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

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

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

.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 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

/* ==========================================================================
   5. Tutoring Approach & Strategy Styling
   ========================================================================== */
.tutoring-approach-section {
    background-color: #f4f7f5;
    border: 2px solid #e0e7e3;
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.tutoring-intro {
    font-size: 1.15rem;
    color: #3464af;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.tutoring-approach-section h3 {
    color: #212529;
    border-bottom: 2px solid #739483;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.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;
}

.approach-list li::before {
    content: "✓"; 
    position: absolute;
    left: 0;
    top: 0;
    color: #739483;
    font-weight: bold;
    font-size: 1.3rem;
}

.approach-list strong {
    color: #3464af;
    font-size: 1.1rem;
}

/* ==========================================================================
   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;
}

