
.content-grid {
    display: grid;
    grid-template-columns: 200px 1fr 200px; /* Sidebar, Content, Empty space for balance */
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.toc-sidebar {
    position: relative;
}

.toc-container {
    position: relative; /* Changed from sticky */
    top: 0;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--fe-dark-green-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.toc-container .sidebar-list {
    list-style: none;
    position: relative;
    padding-left: 0;
    margin: 0;
}

.toc-container .sidebar-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.toc-container .sidebar-item {
    margin-bottom: 8px;
    position: relative;
}

.toc-container .sidebar-link {
    display: flex;
    align-items: center;
    padding: 8px 12px 8px 20px;
    text-decoration: none;
    color: var(--dark-grey);
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.toc-container .sidebar-link::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: var(--fe-primary-green);
    transition: height 0.3s ease;
}

.toc-container .sidebar-link:hover {
    color: var(--fe-primary-green);
    background: rgba(30, 169, 155, 0.05);
}

.toc-container .sidebar-link:hover::before {
    height: 100%;
}

.toc-container .sidebar-link.active {
    color: var(--fe-primary-green);
    font-weight: 600;
    background: rgba(30, 169, 155, 0.1);
}

.toc-container .sidebar-link.active::before {
    height: 100%;
}

.main-content {
    min-width: 0; 
}


@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 250px 1fr; 
        gap: 30px;
        padding: 20px;
    }

    .empty-spacer {
        display: none;
    }
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

}

@media (max-width: 768px) {
    .content-grid {
        padding: 10px;
    }

    .toc-container {
        padding: 15px;
    }

    .toc-container .sidebar-link {
        padding: 6px 10px 6px 16px;
        font-size: 13px;
    }
}

.faq-accordion {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	border-left: 3px solid transparent;
	padding: 20px 0 20px 20px;
	transition: border-color 0.3s ease;
}

.faq-item:hover {
	border-left-color: var(--fe-light-green-1);
}

.faq-item.active {
	border-left-color: var(--fe-primary-green);
}

.faq-item:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}

.faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.faq-question h5 {
	color: var(--fe-dark-green-1);
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
	flex: 1;
	padding-right: 20px;
}

.faq-toggle {
	font-size: 28px;
	color: var(--fe-primary-green);
	font-weight: 300;
	transition: transform 0.3s ease;
	min-width: 28px;
	text-align: center;
	line-height: 1;
}

.faq-item.active .faq-toggle {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
	padding: 0;
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 16px 0 0 0;
}

.faq-answer p {
	color: var(--dark-grey);
	margin: 0;
	line-height: 1.6;
	margin-bottom: 15px;
}

.faq-answer a {
	color: var(--fe-primary-green);
	font-weight: 500;
}

.faq-answer a:hover {
	color: var(--fe-dark-green-1);
}

@media (max-width: 768px) {
	.faq-item {
		padding: 16px 0 16px 16px;
	}

	.faq-question h5 {
		font-size: 1rem;
	}

	.faq-toggle {
		font-size: 24px;
		min-width: 24px;
	}

	.faq-item.active .faq-answer {
		padding: 12px 0 0 0;
	}
}


.srec-intro-section {
    position: relative;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.srec-intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/img/solar/solar-4.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.srec-intro-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
		135deg, var(--fe-dark-green-1) 0%, 
		rgba(30, 169, 155, 1.0) 60%,
		rgba(30, 169, 155, 0.8) 75%,
		rgba(30, 169, 155, 0.55) 85%, 
		rgba(22, 99, 91, 0.1) 100%
	);
    z-index: 2;
}

.srec-intro-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.srec-intro-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.srec-intro-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.stat-bubble { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--fe-dark-green-1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	width: 200px;
    text-align: center;
}

@media (max-width: 992px) {
    .srec-intro-section {
        padding: 30px;
    }

    .srec-intro-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .srec-intro-section::after {
		background: linear-gradient(
			135deg, var(--fe-dark-green-1) 0%, 
			rgba(30, 169, 155, 1.0) 75%,
			rgba(30, 169, 155, 0.8) 85%,
			rgba(30, 169, 155, 0.55) 95%, 
			rgba(22, 99, 91, 0.1) 100%
		);
	}

    .srec-intro-section {
        padding: 25px 20px;
    }

    .srec-intro-content h2 {
        font-size: 1.4rem;
    }

    .srec-intro-content p {
        font-size: 0.95rem;
    }
}