/* R Spatial Notebooks Page Specific Styles */

.page-hero {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--light-gray);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--gray);
    font-weight: 300;
    max-width: 800px;
}

/* Overview Section */
.overview {
    margin-bottom: 6rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 1.5rem;
    max-width: 900px;
}

/* CTA Section */
.cta-section {
    margin-bottom: 6rem;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cta-card {
    padding: 2rem;
    border: 1px solid var(--black);
    display: flex;
    flex-direction: column;
}

.cta-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.cta-link {
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s ease;
    display: inline-block;
}

.cta-link:hover {
    color: var(--gray);
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Webinars Section */
.webinars {
    margin-bottom: 6rem;
}

.webinar-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.webinar-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.webinar-item:last-child {
    border-bottom: none;
}

.webinar-date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
}

.upcoming-badge {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    color: var(--black);
    font-weight: 600;
}

.webinar-title {
    color: var(--black);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.webinar-title:hover {
    color: var(--gray);
}

/* More Info Section */
.more-info {
    margin-bottom: 6rem;
}

.info-link {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    text-decoration: none;
    color: var(--black);
    transition: color 0.2s ease;
    align-items: center;
}

.info-link:hover {
    color: var(--gray);
}

.info-date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-title {
    font-size: 1.1rem;
    line-height: 1.4;
}

.info-source {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray);
}

/* Chapters Section */
.chapters {
    margin-bottom: 6rem;
}

.chapter-block {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.5rem 0;
    user-select: none;
}

.chapter-header:hover .chapter-heading {
    color: var(--gray);
}

.chapter-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.chapter-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.chapter-header.collapsed .chapter-arrow {
    transform: rotate(-90deg);
}

.chapter-list {
    list-style: none;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.chapter-list.collapsed {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
}

.chapter-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.chapter-list li:last-child {
    border-bottom: none;
}

.chapter-list a {
    color: var(--black);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.chapter-list a:hover {
    color: var(--gray);
}

.chapter-list .coming-soon {
    color: var(--gray);
    font-style: italic;
}

.chapter-sublist ul {
    list-style: none;
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.chapter-sublist ul li {
    border-bottom: none;
    padding: 0.5rem 0;
}

.coming-soon-note {
    color: var(--gray);
    font-size: 1rem;
    font-style: italic;
    padding: 0;
    margin: 0;
}

.coming-soon-note a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s ease;
}

.coming-soon-note a:hover {
    color: var(--gray);
}

/* FAQ Section */
.faq {
    margin-bottom: 4rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--gray);
    line-height: 1.7;
    max-width: 900px;
}

/* Responsive Design for R Spatial Page */
@media (max-width: 768px) {
    .webinar-item,
    .info-link {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .chapter-sublist ul {
        margin-left: 1rem;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
}
