/* Shared Styles for Materials Section */

/* From index.html */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.material-card {
    background: #fff;
    border: 1px solid rgba(78, 79, 115, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-dark);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-dark);
}

.material-title {
    font-family: 'Lithium', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    line-height: 1.1;
}

.material-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.material-footer {
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* From class-d.html */
.meeting-block {
    background: #fff;
    border: 1px solid rgba(78, 79, 115, 0.1);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.meeting-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.meeting-number {
    font-family: 'Lithium', serif;
    font-size: 3rem;
    color: var(--primary-dark);
    line-height: 1;
}

.meeting-title {
    font-family: 'OpenSans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.resource-group {
    margin-bottom: 25px;
}

.resource-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.resource-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.resource-item:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
}

.resource-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap */
    flex-grow: 1;
}

/* Icon styles */
.resource-link.doc::before {
    content: "📄";
    font-size: 1.2rem;
}

.resource-link.slides::before {
    content: "📊";
    /* Chart/Slides icon */
    font-size: 1.2rem;
}

.resource-link.game::before {
    content: "🎮";
    /* Controller icon */
    font-size: 1.2rem;
}

.resource-link:hover {
    color: var(--primary-dark);
}

.homework-section {
    background: var(--primary-dark);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.homework-title {
    font-family: 'Lithium', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.homework-list {
    list-style: none;
}

.homework-item {
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
    gap: 10px;
}

.homework-item strong {
    font-weight: 700;
    color: var(--gold);
}

.alert-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
}

/* Collapsible Styles */
details.meeting-block-details {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(78, 79, 115, 0.1);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

details.meeting-block-details[open] {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

summary.meeting-summary {
    list-style: none;
    padding: 25px 30px 25px 60px;
    /* Increased left padding */
    cursor: pointer;

    /* Ensure content inside doesn't overflow if padding is large */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    transition: background 0.2s;
}

.details-content {
    padding: 0 60px;
    /* Match the left padding of summary */
}

summary.meeting-summary::-webkit-details-marker {
    display: none;
}

summary.meeting-summary:hover {
    background-color: #fcfcfc;
}

/* Password Protection Styles */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#content-protected {
    display: none;
    /* Hidden by default */
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-title {
    font-family: 'Lithium', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.login-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.login-btn {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #3d3e5c;
}

.error-msg {
    color: #cc0000;
    margin-top: 10px;
    display: none;
    font-size: 0.9rem;
}

/* Quick Nav Pills */
.nav-pill {
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(78, 79, 115, 0.2);
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    background: #fff;
}

.nav-pill:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .meeting-header {
        flex-direction: column;
        gap: 5px;
    }

    .meeting-block {
        padding: 20px;
    }
}

/* =========================================
   Assessment & Toolkit Styles (Added) 
   ========================================= */

.assessment-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tool-block {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(78, 79, 115, 0.1);
}

.tool-header {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.tool-title {
    font-family: 'Lithium', serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.tool-desc {
    color: #666;
    font-style: italic;
}

/* Script / Interview Box */
.script-box {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid var(--gold);
    margin-bottom: 25px;
    font-family: 'OpenSans', sans-serif;
}

.script-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
    display: block;
}

.question-group {
    margin-bottom: 30px;
}

.q-main {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.q-sub {
    list-style: none;
    padding-left: 20px;
    color: #444;
}

.q-sub li {
    margin-bottom: 8px;
    position: relative;
}

.q-sub li::before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* FIAT-Q / Numbered List Styles */
.fiat-list {
    counter-reset: fiat-counter;
    list-style: none;
    display: grid;
    gap: 15px;
}

.fiat-item {
    position: relative;
    padding-left: 40px;
    line-height: 1.5;
    padding-top: 5px;
}

.fiat-item::before {
    counter-increment: fiat-counter;
    content: counter(fiat-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.bg-pattern {
    background-color: #fffcf5;
    padding: 15px;
    border-radius: 8px;
}

.scale-visual {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eee;
    height: 4px;
    margin: 30px 0;
    position: relative;
}

.scale-point {
    width: 12px;
    height: 12px;
    background: var(--primary-dark);
    border-radius: 50%;
}

.scale-label {
    position: absolute;
    top: 15px;
    font-weight: bold;
    color: var(--primary-dark);
}

/* Therapist Questions Styles */
.therapist-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 15px;
}

.therapist-item {
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.t-question {
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
}

.t-tag {
    font-size: 0.75rem;
    color: #888;
    background: #eef;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 600;
    align-self: flex-start;
    flex-shrink: 0;
}

/* Downloads */
.download-container {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px dashed rgba(78, 79, 115, 0.2);
    display: flex;
    justify-content: flex-end;
}

.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: #fff;
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-family: 'OpenSans', sans-serif;
}

.pdf-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 4px 10px rgba(78, 79, 115, 0.2);
}