/* --- CSS Variables --- */
:root {
    --color-primary: #2563eb; /* Blue */
    --color-secondary: #14b8a6; /* Teal */
    --color-accent: #ec4899; /* Pink (optional accent) */
    --color-success: #16a34a; /* Green for completed categories */
    --color-text: #374151; /* Gray-700 */
    --color-text-light: #6b7280; /* Gray-500 */
    --color-heading: #1f2937; /* Gray-800 */
    --color-bg: #f9fafb; /* Gray-50 */
    --color-bg-page: #f8f9fa; /* Off-white body background */
    --color-white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1140px;
    --header-height: 80px;
    --banner-height: 0px;
    --banner-bg-color: #D1E8E2; /* Light yellow for banner */
    --banner-text-color: #575757; /* Darker gray for banner text */
    --radius: 12px; /* base rounded corners */
    --radius-lg: 18px; /* larger rounding */
    --shadow: 0 6px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 25px rgba(0,0,0,0.12);
    --spacing-section: 7rem; /* more breathing room between sections */
    --easing-bounce: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Basic Reset & Defaults --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-primary); line-height: 1.3; margin-bottom: 0.75em; font-weight: 700; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.5rem; }
h2 .emoji, h3 .emoji { display: inline-block; margin-right: 0.5rem; vertical-align: -0.1em; }
h2 .emoji { font-size: 1.8rem; } h3 .emoji { font-size: 1.3rem; }
p { margin-bottom: 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-secondary); }
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}
ul { list-style: none; padding-left: 0; }
/* Default list styling applies FontAwesome check */
ul:not(.nav-menu):not(.contact-links):not(.flags-container ul):not(.coach-type ul):not(.blog-content ul):not(.support-column ul) li { margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
ul:not(.nav-menu):not(.contact-links):not(.flags-container ul):not(.coach-type ul):not(.blog-content ul):not(.support-column ul) li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--color-secondary); position: absolute; left: 0; top: 0.1em; font-size: 0.9em; }
/* Specific override for lists inside blog content that SHOULD use discs */
.blog-content ul:not(.tck-checklist-card ul):not(.support-column ul) {
    list-style: disc;
    padding-left: 1.5rem;
    margin-left: 1rem;
}
.blog-content ul:not(.tck-checklist-card ul):not(.support-column ul) li {
    padding-left: 0;
    margin-bottom: 0.5rem;
}
.blog-content ul:not(.tck-checklist-card ul):not(.support-column ul) li::before {
    content: none; /* Remove FontAwesome check */
}


/* --- Utility Classes --- */
.container { max-width: var(--container-width); margin-left: auto; margin-right: auto; padding-left: 5%; padding-right: 5%; }
.page-container {
    padding-top: 3rem;
    background-color: var(--color-bg-page);
}
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.btn-primary { background-color: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background-color: #1d4ed8; color: var(--color-white); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-secondary { background-color: var(--color-secondary); color: var(--color-white); }
.btn-secondary:hover { background-color: #0d9488; color: var(--color-white); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.section-padding {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}
/* Uniform light background */
main > section { background-color: transparent; }
main > section.section-card > .container {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
}
#home { background: #f8f9fa; }
#contact { color: var(--color-heading); }
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-light { color: var(--color-text-light); }
.disclaimer { font-size: 0.85rem; color: var(--color-text-light); margin-top: 1rem; font-style: italic;}

/* --- Back Link Styling --- */
.back-link {
    color: var(--color-text-light); font-weight: 600; display: inline-block;
    margin-bottom: 2.5rem; text-decoration: underline; text-underline-offset: 3px;
}
.back-link i { margin-right: 0.4rem; }
.back-link:hover { color: var(--color-primary); text-decoration: none; }

/* --- Header & Navigation --- */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: var(--banner-height, 0);
    left: 0;
    width: 100%;
    z-index: 1000;
    height: auto;
}
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background-color: var(--color-secondary);
    z-index: 1100;
    transition: width 0.25s ease-out;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}
.logo-banner { max-height: calc(var(--header-height) - 20px); width: auto; }
.nav-menu { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
.nav-menu li:last-child { margin-left: auto; }
.nav-link {
    color: var(--color-text);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s, transform 0.2s;
}
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--color-secondary); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}
/* Student Login Button in Navigation */
.nav-link.nav-login {
    background-color: transparent;
    color: var(--color-primary);
    padding: 0.4rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.nav-link.nav-login::after {
    display: none;
}
.nav-link.nav-login:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}
.nav-link.nav-login.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    border-color: var(--color-text);
    color: var(--color-text);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--color-heading); cursor: pointer; }

/* --- Cookie Consent Banner Styles --- */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    max-width: 500px;
    background: rgba(31, 41, 55, 0.98);
    color: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    animation: slideUp 0.4s ease-out;
}
.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cookie-text {
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}
.cookie-text a {
    color: var(--color-secondary);
    text-decoration: underline;
}
.cookie-text a:hover {
    color: var(--color-white);
}
#cookie-accept {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Push reCAPTCHA badge to bottom-right and ensure it doesn't overlap */
.grecaptcha-badge {
    z-index: 1999 !important;
}

@keyframes slideUp {
    from {
        transform: translateY(150%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem; /* On mobile, position at bottom since reCAPTCHA is smaller */
        max-width: calc(100% - 2rem);
        padding: 0.75rem;
        left: 1rem;
        right: 1rem;
    }
    .cookie-banner-content {
        flex-direction: column;
        gap: 0.75rem;
    }
    .cookie-text {
        font-size: 0.8rem;
        text-align: center;
    }
    #cookie-accept {
        width: 100%;
        padding: 0.5rem;
    }
}

/* --- Update Banner Styles (deprecated but kept for compatibility) --- */
#update-banner {
    display: none; /* Hidden by default - can be re-enabled if needed */
    background-color: var(--banner-bg-color);
    color: var(--banner-text-color);
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1100;
    justify-content: center;
    align-items: center;
}
#update-banner .banner-close {
    margin-left: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
}
#update-banner a { color: var(--banner-text-color); font-weight: 600; text-decoration: underline; }
#update-banner a:hover { color: var(--color-primary); }

/* --- Hero Section --- */
.hero {
    background-color: transparent;
    color: var(--color-heading);
    padding: 6rem 0;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-heading);
    font-weight: 700;
}
.hero p.tagline {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    color: var(--color-text-light);
}
.hero .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}
.hero .btn-primary:hover {
    background-color: #1d4ed8;
    color: var(--color-white);
}
.hero a[href*="members-area"] {
    color: var(--color-primary);
    background: rgba(0,0,0,0.05);
    padding:0.5rem 1rem;
    border-radius:4px;
    display:inline-block;
    margin-top:1.5rem;
    font-size:0.9rem;
}


/* --- Content Sections Layout (Generic) --- */
.content-section-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) {
    .content-section-layout { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .content-section-layout.image-left .content-image { order: -1; }
}
.content-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 0 auto;
}
.content-image video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.content-text { max-width: 600px; }


/* --- Blog Post / Announcement / Tips Page Styles --- */
.blog-post-container { padding-top: 3rem; padding-bottom: 4rem; background-color: var(--color-white); }
.blog-content { max-width: 800px; margin: 0 auto; }
.blog-content h1 { font-size: 2.2rem; margin-bottom: 1.5rem; color: var(--color-primary); text-align: center; }
.blog-content > p:first-of-type { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 3rem; text-align: center; }
.blog-content h2 { font-size: 1.6rem; margin-top: 2rem; margin-bottom: 1rem; color: var(--color-secondary); }
.blog-content h3 { font-size: 1.3rem; margin-top: 1.5rem; margin-bottom: 0.8rem; color: var(--color-heading); }
.blog-content p, .blog-content li { color: var(--color-text); line-height: 1.7; }
.blog-content strong { font-weight: 600; color: var(--color-heading); }
.blog-content a { text-decoration: underline; font-weight: 600; }
.blog-content a:hover { color: var(--color-secondary); }

/* Tip Card Styling */
.tip-card {
    background-color: var(--color-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
    overflow: hidden;
    border-left: 5px solid var(--color-secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.tip-card h2, .tip-card h3 { border-bottom: none; padding-bottom: 0; margin-bottom: 1rem; margin-top: 0; font-size: 1.6rem; color: var(--color-secondary); }
.tip-card h3 { font-size: 1.3rem; }

/* --- Tool Content Wrapper (for interactive tools) --- */
.tool-content { max-width: 800px; margin: 0 auto; }
.tool-content p.intro-text { max-width: 700px; margin: 0 auto 2rem auto; text-align: center; color: var(--color-text-light); }


/* --- Testimonial Carousel Styles --- */
#testimonials { background-color: transparent; }
.testimonial-carousel-container {
    overflow: hidden;
    padding-bottom: 2rem;
}
.testimonial-track {
    display: flex;
    transition: transform 0.6s var(--easing-bounce);
    padding: 0 1rem;
    gap: 2rem;
}
.testimonial-card {
    flex: 0 0 100%;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-float:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.testimonial-card .stars { color: #facc15; margin-bottom: 1rem; font-size: 1.1rem; }
.testimonial-card .quote { font-style: italic; color: var(--color-text-light); margin-bottom: 1rem; line-height: 1.7; }
.testimonial-card .author { font-weight: 600; color: var(--color-heading); }
.testimonial-wrapper { position: relative; max-width: 800px; margin: 2rem auto 0; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--color-primary);
    font-size: 1.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.2s, transform 0.2s;
}
.carousel-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-50%) scale(1.05);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-btn:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 900px) { .carousel-btn.prev { left: 5px; } .carousel-btn.next { right: 5px; } .testimonial-card { margin: 0; } }


/* --- Contact Form Styling --- */
#contact h2 { color: var(--color-primary); }
#contact p { color: var(--color-text); }
#contact .contact-form { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 600px; margin: 2rem auto 0; }
@media (min-width: 768px) { #contact .contact-form { grid-template-columns: 1fr 1fr; } }
#contact .contact-form input,
#contact .contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    background-color: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}
#contact .contact-form textarea { grid-column: 1 / -1; min-height: 150px; resize: vertical; }
#contact .contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
#contact .contact-form button:hover {
    background-color: #0d9488;
    border-color: #0d9488;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
#contact .contact-form.sent button {
    animation: pulse 0.6s var(--easing-bounce);
}
#contact .contact-form.sent button:disabled {
    opacity: 0.7;
}
#form-feedback.sent {
    animation: pulse 0.6s var(--easing-bounce);
}
#contact .contact-form input::placeholder, #contact .contact-form textarea::placeholder { color: var(--color-text-light); opacity: 1; }
#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.25);
}
#form-feedback { grid-column: 1 / -1; text-align: center; margin-top: 1rem; min-height: 1.5em; color: var(--color-primary); font-weight: 600; }
#contact .contact-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
#contact .contact-links a { background-color: var(--color-white); border: 1px solid #e5e7eb; color: var(--color-primary); padding: 0.6rem 1.2rem; border-radius: 6px; transition: background-color 0.3s ease, box-shadow 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; box-shadow: var(--shadow); }
#contact .contact-links a:hover { background-color: #f0f0f0; box-shadow: var(--shadow-hover); }

/* --- Footer --- */
.footer{background-color:var(--color-heading);color:#d1d5db;padding:2.5rem 0 1.5rem;font-size:.9rem;line-height:1.6}
.footer .container{max-width:var(--container-width);margin-left:auto;margin-right:auto;padding-left:5%;padding-right:5%}
.footer-main-content{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2rem;margin-bottom:2rem;text-align:left}
.footer-section{flex:1;min-width:220px;margin-bottom:1rem}
.footer-section h4{color:var(--color-white);font-size:1.05rem;margin-bottom:.85rem;font-weight:600;font-family:var(--font-heading)}
.footer-section p{margin-bottom:.5rem}
.footer-section a{color:#9ca3af;text-decoration:none}
.footer-section a:hover{color:var(--color-white);text-decoration:underline}
.footer-bottom{text-align:center;padding-top:1.5rem;border-top:1px solid #374151}
.footer-bottom p{margin-bottom:.25rem}
.footer .disclaimer{font-size:.8rem;color:#9ca3af;margin-top:.5rem}
@media (max-width:768px){ .footer-main-content{flex-direction:column;align-items:center;text-align:center;gap:1.5rem} .footer-section{min-width:100%;margin-bottom:1.5rem} .footer-section:last-child{margin-bottom:0} }

/* --- Scroll Animations --- */
.fade-in { opacity: 0; transition: opacity 0.8s ease-out; } .fade-in.visible { opacity: 1; }
.slide-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; } .slide-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) { .fade-in, .slide-up { transition: none; opacity: 1; transform: none; } }


/* --- Feelings Flags Tool --- */
.flags-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 580px; width: 100%; margin: 2rem auto 3rem auto; padding: 0; box-sizing: border-box; }
.feeling-flag { appearance: none; border: none; background-color: var(--color-white); color: var(--color-text); font-family: var(--font-body); cursor: pointer; aspect-ratio: 1 / 1; padding: 1rem; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border: 2px solid transparent; overflow: hidden; box-sizing: border-box; }
.feeling-flag .emoji-icon { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; display: block; }
.feeling-flag span:not(.emoji-icon) { font-weight: 600; font-size: clamp(0.8rem, 2.5vw, 1rem); color: var(--color-heading); line-height: 1.2; }
.feeling-flag:hover { transform: translateY(-5px) scale(1.03); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12); }
.feeling-flag.selected { border-color: var(--color-secondary); box-shadow: 0 6px 12px rgba(20, 184, 166, 0.2); transform: scale(1.02); }
.feeling-flag:active { transform: scale(0.98); transition-duration: 0.1s; }
#selected-feeling-display { background-color: var(--color-bg); padding: 2rem; border-radius: 8px; margin-top: 2rem; border-left: 5px solid var(--color-primary); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); opacity: 1; max-height: 1000px; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.6s ease, padding 0.5s ease, margin 0.5s ease, border-width 0.3s ease; overflow: hidden; }
#selected-feeling-display.hidden-display { opacity: 0; transform: translateY(15px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; border-width: 0; overflow: hidden; }
#selected-feeling-display h3 { color: var(--color-primary); margin-top: 0; margin-bottom: 0.25rem; font-size: 1.8rem; }
.dutch-phrase { font-style: italic; color: var(--color-text-light); font-size: 1.1rem; margin-top: -0.2rem; margin-bottom: 1.5rem; }
#selected-feeling-display #display-child-message { color: var(--color-text); font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.7; }
.coping-tip { display: block; margin-top: 0.8rem; font-style: italic; color: var(--color-secondary); font-weight: 600; font-size: 0.95rem; }
#selected-feeling-display #display-parent-tip { background-color: var(--color-white); padding: 1rem 1.5rem; border-radius: 6px; border-top: 3px solid var(--color-secondary); margin-top: 1.5rem; }
#selected-feeling-display #display-parent-tip h4 { color: var(--color-secondary); display: block; margin-bottom: 0.5rem; font-size: 1rem; margin-top: 0; font-weight: 700; }
#selected-feeling-display #display-parent-tip p { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 0; line-height: 1.6; }
.conclusion-text { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; text-align: center; font-size: 1rem; color: var(--color-text-light); }
.conclusion-text a { font-weight: 600; color: var(--color-primary); text-decoration: underline; }
.conclusion-text a:hover { color: var(--color-secondary); }


/* --- Integration Flashcards Styles (Flippable) --- */
.flashcard-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}
.flashcard-carousel .carousel-btn {
    position: static;
    transform: none;
}
.flashcard-grid {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 3rem 0;
}
.flashcard-grid::-webkit-scrollbar { display: none; }
.flashcard-card {
    background-color: transparent;
    height: 400px;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: translateZ(0);
    flex: 0 0 500px;
}
.flashcard-card.flipped { transform: rotateY(180deg); }
.flashcard-card.active {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}
.flashcard-card.flipped.active {
    transform: rotateY(180deg) scale(1.05);
}
.flashcard-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 20px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); overflow: hidden; box-sizing: border-box; transition: box-shadow 0.8s ease; }
.flashcard-front { background-color: var(--color-white); color: var(--color-primary); font-family: var(--font-heading); font-size: 1.2em; font-weight: 700; z-index: 2; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.flashcard-card:not(.flipped) .flashcard-front:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12); }
.flashcard-back { background-color: var(--color-bg); color: var(--color-text); transform: rotateY(180deg); flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--font-body); overflow-y: auto; padding: 1.5rem 1.5rem 3rem 1.5rem; }
.flashcard-back h4 { color: var(--color-primary); font-size: 1.1em; margin-top: 0; margin-bottom: 0.5rem; font-weight: 600; flex-shrink: 0; }
.flashcard-back p { font-size: 1.05em; line-height: 1.5; margin-bottom: 0; word-break: break-word; }
.flashcard-back a { color: var(--color-secondary); text-decoration: underline; font-weight: 600; display: inline; word-break: break-word; }
.flashcard-back a:hover { color: var(--color-primary); text-decoration: none; }
.flashcard-back a i { margin-left: 0.2em; font-size: 0.8em; vertical-align: middle; }

/* Flashcard Category Tags */
.flashcard-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75em;
    font-weight: 600;
    pointer-events: none;
    border: 2px solid currentColor;
}
.tag-school { color: #2563eb; background-color: rgba(37, 99, 235, 0.15); }
.tag-family { color: #ec4899; background-color: rgba(236, 72, 153, 0.15); }
.tag-practical { color: #14b8a6; background-color: rgba(20, 184, 166, 0.15); }

/* Copy button on card back */
.copy-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75em;
    cursor: pointer;
}
.copy-btn:active { transform: scale(0.95); }


/* --- Groningen Checklist Styles --- */
.checklist-container { max-width: 800px; margin: 2rem auto 0; }
.progress-bar-container { width: 100%; background-color: #e0e7ff; border-radius: 8px; margin-bottom: 2.5rem; overflow: hidden; position: relative; height: 30px; }
.progress-bar { height: 100%; width: 0%; background-color: var(--color-secondary); border-radius: 8px 0 0 8px; transition: width 0.5s ease-in-out; display: flex; align-items: center; justify-content: center; }
.progress-text { position: absolute; width: 100%; text-align: center; line-height: 30px; color: var(--color-white); font-weight: 600; font-size: 0.9rem; top: 0; left: 0; z-index: 1; pointer-events: none;}
.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background-color: var(--color-white);
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.checklist-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.checklist-item input[type="checkbox"] { margin-right: 0.8rem; flex-shrink: 0; margin-top: 0.25em; cursor: pointer; width: 1.1em; height: 1.1em; accent-color: var(--color-secondary); }
.checklist-item label { cursor: pointer; flex-grow: 1; font-weight: 500; transition: color 0.3s ease, text-decoration 0.3s ease; }
.checklist-details { display: none; margin-top: 0.75rem; margin-left: 2.3rem; padding: 0.75rem; background-color: var(--color-bg); border-radius: 4px; font-size: 0.9rem; color: var(--color-text-light); border-top: 1px dashed #d1d5db; }
.checklist-details p { margin-bottom: 0.5rem; }
.checklist-details strong { color: var(--color-primary); font-weight: 600; }
.checklist-details a { color: var(--color-secondary); font-weight: 600; text-decoration: underline; }
.checklist-details a:hover { color: #0f766e; }
.checklist-item.checked { background-color: #f0fdfa; border-color: #ccfbf1; }
.checklist-item.checked label { text-decoration: line-through; color: var(--color-text-light); }
.checklist-item.checked .checklist-details { display: block; }
.checklist-cta-button {
    display: block;
    width: fit-content;
    margin: 3rem auto 0;
}
.tool-link-banner { background-color: var(--color-bg); color: var(--color-text); padding: 0.8rem 1rem; text-align: center; font-size: 0.95rem; width: 100%; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.tool-link-banner a { color: var(--color-primary); font-weight: 600; text-decoration: underline; }
.tool-link-banner a:hover { color: var(--color-secondary); }


/* --- Blog Page Listing Styles --- */
.blog-listing{max-width:900px;margin:3rem auto 0;display:grid;grid-template-columns:1fr;gap:2.5rem}
.blog-preview-card{
    background-color:var(--color-white);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow);
    overflow:hidden;
    display:grid;
    grid-template-columns:1fr;
    transition:transform .4s var(--easing-bounce),box-shadow .3s ease;
    border:1px solid #e5e7eb
}
.blog-preview-card:hover{
    transform:translateY(-5px) scale(1.02);
    box-shadow:var(--shadow-hover)
}
.preview-image{width:100%;aspect-ratio:16 / 10;overflow:hidden;border-bottom:1px solid #e5e7eb}
.preview-image img{width:100%;height:100%;object-fit:cover;display:block}
.preview-text{padding:1.5rem 2rem 2rem 2rem;display:flex;flex-direction:column}
.preview-text h3{margin-top:0;margin-bottom:.75rem;font-size:1.5rem;line-height:1.4}
.preview-text h3 a{color:var(--color-primary);text-decoration:none}
.preview-text h3 a:hover{color:var(--color-secondary);text-decoration:underline}
.preview-text p.excerpt{color:var(--color-text-light);font-size:1rem;line-height:1.6;margin-bottom:1.5rem;flex-grow:1}
.preview-text .btn{margin-top:auto;align-self:flex-start;padding:.7rem 1.5rem}


/* --- TCK Practical Support Blog Page Styles --- */
.coach-comparison-container{display:grid;grid-template-columns:1fr;gap:1.5rem;margin:2rem 0;padding:1.5rem;background-color:var(--color-bg);border-radius:8px;border-left:5px solid var(--color-secondary)}
.coach-type h3{color:var(--color-primary);margin-top:0;margin-bottom:.75rem;font-size:1.3rem;border-bottom:1px solid #eee;padding-bottom:.5rem}
.coach-type h4{font-size:1rem;color:var(--color-heading);margin-bottom:.3rem;margin-top:1rem;font-weight:600}
.coach-type p,.coach-type ul{font-size:.95rem;color:var(--color-text-light);margin-bottom:.5rem}
.coach-type ul{list-style:disc;padding-left:1.5rem;margin-left:0}
.coach-type ul li{padding-left:0;margin-bottom:.3rem}
.coach-type ul li::before{content:none}
.coaching-boundary-section h3{font-size:1.2rem;color:var(--color-primary);margin-top:1.5rem;margin-bottom:.5rem}


/* --- TCK Guide Page Dynamic Elements (FINAL & CONSOLIDATED) --- */
.icon-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 2.5rem 0;
}
.icon-card {
    background-color: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border-bottom: 3px solid var(--color-secondary);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.icon-card .card-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}
.icon-card h4 {
    color: var(--color-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.icon-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 0;
}
.tck-checklist-card {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-left: 5px solid var(--color-primary);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin: 2.5rem 0;
}
.tck-checklist-card h3 {
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}
.tck-checklist-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.tck-checklist-card ul li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}
.tck-checklist-card ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.2rem;
}

.support-table-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2.5rem 0;
}
@media (min-width: 768px) {
    .support-table-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}
.support-table-container .support-column h3 {
    position: relative;
    padding-left: 32px;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
}
.support-table-container .support-column h3::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1.1em;
}
.support-table-container .support-column.do h3 {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.support-table-container .support-column.do h3::before {
    content: '\f00c'; /* Check */
}
.support-table-container .support-column.dont h3 {
    color: var(--color-accent);
    border-color: var(--color-accent);
}
.support-table-container .support-column.dont h3::before {
    content: '\f00d'; /* Times/Cross */
}
.support-table-container .support-column ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0 0 0;
}
.support-table-container .support-column ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}
.support-table-container .support-column ul li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-text-light);
}
.support-table-container .support-column.do ul li::before {
    content: '\f058'; /* Check Circle */
    color: var(--color-secondary);
}
.support-table-container .support-column.dont ul li::before {
    content: '\f057'; /* Times Circle */
    color: var(--color-accent);
}
.support-table-container .support-column li strong {
    color: var(--color-heading);
    font-weight: 600;
}

/* --- FAQ Section --- */
.faq-section { max-width: 800px; margin: 2rem auto; }
.faq-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.faq-question { width: 100%; padding: 1rem 1.5rem; background-color: var(--color-white); font-family: var(--font-heading); font-size: 1.1rem; border: none; text-align: left; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-question .icon { transition: transform 0.3s ease; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: var(--color-bg);
    transition: max-height 0.4s var(--easing-bounce), padding 0.4s var(--easing-bounce);
}
.faq-card.open .faq-answer {
    max-height: 500px;
    padding: 1rem 1.5rem;
}
.faq-card.open .faq-question .icon { transform: rotate(180deg); }


/* --- Responsive Design --- */

@media (min-width: 992px) {
     .blog-preview-card { grid-template-columns: 300px 1fr; }
     .preview-text h3 { font-size: 1.6rem; }
}

@media (min-width: 768px) {
    .blog-preview-card { grid-template-columns: 250px 1fr; }
    .preview-image { aspect-ratio: auto; height: 100%; border-bottom: none; border-right: 1px solid #e5e7eb; }
    .preview-text { padding: 2rem; }
    .coach-comparison-container { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem; }
}

@media (max-width: 992px) {
    h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; } .hero p.tagline { font-size: 1.2rem; }
    .blog-content, .tool-content { max-width: 95%; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }

    h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.4rem; }
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .hero { padding: 4rem 0; min-height: calc(70vh - var(--header-height)); }
    .hero h1 { font-size: 2.2rem; } .hero p.tagline { font-size: 1.1rem; }
    .logo-banner { max-height: calc(var(--header-height) - 25px); }
    .nav-toggle { display: block; z-index: 1001; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh; background-color: var(--color-white); flex-direction: column; padding: 6rem 2rem 2rem; box-shadow: -2px 0 5px rgba(0,0,0,0.1); transition: right 0.4s ease-in-out; gap: 1rem; align-items: flex-start; }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.1rem; width: 100%; } .nav-link::after { display: none; }
    .nav-menu li:last-child { margin-left: 0; margin-top: 0.5rem; }
    .nav-link.nav-login { width: auto; display: inline-block; text-align: center; }
    .blog-content h1 { font-size: 1.8rem; }
    .blog-content h2 { font-size: 1.4rem; }
    .tip-card { padding: 1.5rem; }
    .tip-card h2, .tip-card h3 { font-size: 1.4rem; }
    .testimonial-carousel-container { max-width: 90%; }
    .testimonial-card { margin: 0 0.5rem; padding: 1.5rem; }
    .carousel-btn { font-size: 1.5rem; padding: 0.2rem 0.6rem; }
    .carousel-btn.prev { left: 5px; } .carousel-btn.next { right: 5px; }
    #contact .contact-links { justify-content: center; }
    #update-banner { font-size: 0.8rem; padding: 0.5rem 1rem;}
    .checklist-item { flex-direction: column; align-items: flex-start; }
    .checklist-item input[type="checkbox"] { margin-bottom: 0.5rem; }
    .checklist-details { margin-left: 0; }
    .progress-bar-container { height: 25px; }
    .progress-text { line-height: 25px; font-size: 0.8rem;}
    .flags-container { grid-template-columns: repeat(2, 1fr); max-width: 320px; gap: 1rem; }
    .feeling-flag { padding: 0.8rem 0.5rem; }
    #selected-feeling-display { padding: 1.5rem; }
    #selected-feeling-display h3 { font-size: 1.6rem; }
    #selected-feeling-display #display-child-message, #selected-feeling-display .dutch-phrase { font-size: 1rem; }
    #selected-feeling-display #display-parent-tip p { font-size: 0.9rem; }
    .flashcard-grid {
        gap: 3rem;
        padding: 3rem 0;
    }
    .flashcard-card {
        height: 220px;
        flex: 0 0 180px;
    }
    .flashcard-face {
        padding: 1rem;
    }
     .flashcard-front p { /* Assuming there's a p tag in flashcard-front, else target relevant text element */
         font-size: 1.1em;
     }
    .flashcard-back h4 {
         font-size: 1em;
         margin-bottom: 0.2rem;
     }
    .flashcard-back p {
        font-size: 0.95em;
    }
    #further-support .content-section-layout {
         gap: 2rem;
    }
    #further-support .content-text {
        text-align: center;
        max-width: 100%;
    }
    #further-support .content-text h2 {
         margin-bottom: 1rem;
    }
     #further-support .content-text p {
         margin-bottom: 1.5rem;
     }
    #further-support .content-text .text-center {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    #further-support .content-image {
         max-width: 400px;
         margin-left: auto;
         margin-right: auto;
    }
    #further-support .back-link {
        margin-bottom: 0;
    }
    .preview-text { padding: 1.5rem; }
    .coach-comparison-container { padding: 1.5rem; }
}

/* --- About Page Specific Styles --- */
#page-about .content-image img {
    width: 70%;
}

/* --- Micro-interaction Animations --- */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: var(--shadow); }
    50% { transform: scale(1.03); box-shadow: var(--shadow-hover); }
    100% { transform: scale(1); box-shadow: var(--shadow); }
}
