/* HOMEAPGE DESIGN */

/* Hero Section */
.hero-section {
    padding: 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-content {
	display: flex;
	flex-direction: row-reverse;
	background-color: var(--white);
	border-radius: 20px;
	padding-inline: 2rem;
	overflow: hidden;
	box-shadow: var(--shadow);
}


.hero-image .video-container {
    width: 100%;
    justify-content: center;
    align-items: center;
}

.fade {
    transition: opacity 0.5s ease-in-out;
}

/* Hidden state: not visible */
.hidden-hero {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevent interaction when hidden */
	display: none;
}

.visible-hero {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.hero-text {
	flex: 1;
    padding: 2rem;
    align-self: center;
	padding-left: 0;
}

.hero-title {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 1rem;
	color: var(--button-text);
	line-height: 1;
	text-align: right;
}

.hero-highlight {
	color: var(--purple);
	font-size: 3.1rem;
	display: inline-block;
}



.testimonials-section p, .cta-section p {
	white-space: normal;
	border-bottom: none;
    color: var(--white);
}



iframe {
	background: transparent;
	padding: 15px; /* Or as much as needed to hide the grey background */
}


.hero-description {
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--text-color);
	font-weight: 400;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
}

.primary-button {
	padding: 1rem 3rem;
	font-size: 1.2rem;
	font-weight: 600;
	background-color: var(--purple);
	color: var(--white);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex: none;
	align-items: center;
	gap: 0.5rem;
	box-shadow: var(--shadow);
    justify-content: center;
}

.primary-button:hover {
	background-color: var(--button-hover);
	transform: translateY(-3px);
	box-shadow: var(--shadow);
	border: none;
	color: var(--white);
}


.secondary-button {
	padding: 1rem 3rem;
	font-size: 1.2rem;
	font-weight: 600;
	background-color: transparent;
	color: var(--purple);
	border: 2px solid var(--purple);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex: none;
	align-items: center;
	gap: 0.5rem;
    justify-content: center;
}

.secondary-button:hover {
	background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    border: 2px solid var(--purple);
	color: var(--purple);
}


.hero-img {
	flex: 1;
	z-index: 2;
	max-height: 30rem;
}

/* Feature Section */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Feature card */
.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #d1d4f7;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(94, 53, 177, 0.1);
}

/* Feature image */
.feature-image {
    height: 310px;
    overflow: hidden;
	border-bottom: 1px solid var(--border-color);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Feature content */
.feature-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.feature-title {
	margin-top: 0px;
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: var(--button-text);
}

.feature-description {
	border-bottom: none;
	line-height: 1.6;
    color: var(--button-text);
    flex-grow: 1;
	font-weight: 400;
	padding-bottom: initial;
}

.feature-link {
    align-self: flex-start;
    text-decoration: none;
    color: #7e57c2;
    font-weight: bold;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: #5e35b1;
}

.author-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	margin-left: 1rem;
	background-color: var(--light-purple);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-weight: bold;
}

.author-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.author-name {
	font-weight: 600;
	color: var(--button-text);
}

.author-title {
	font-size: 0.9rem;
	color: var(--text-color);
}


/* FAQ Section */
.faq-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: 2rem;
}

.faq-container {
    /* Use a multi-column layout for independent column heights */
    column-count: 2;
    column-gap: 1rem;
}

.faq-item {
	background-color: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #d1d4f7;
}


.faq-question {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}
.faq-question i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
}
.faq-item.active .faq-answer {
    padding: 0rem 1rem;
	padding-bottom: 1rem;
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
    border-bottom: initial;
    padding: initial;
	white-space: pre-line;
}


/* CTA Section */
.cta-section {
	padding: 2rem;
	max-width: 1400px;
	margin: 2rem auto;
	text-align: center;
}

.cta-container {
	background: linear-gradient(135deg, var(--purple) 0%, var(--button-hover) 100%);
	border-radius: 20px;
	padding: 2rem 2rem;
	color: var(--white);
	box-shadow: var(--shadow);
}

.cta-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 0rem;
	color: var(--white);
}

.cta-description {
	font-size: 1.3rem;
	max-width: 800px;
	opacity: 0.9;
}

.cta-button {
	padding: 1.5rem;
	font-size: 1.3rem;
	font-weight: 600;
	background-color: var(--white);
	color: var(--purple);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	align-items: center;
	gap: 0.5rem;
	box-shadow: var(--shadow);
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.cta-buttons {
	display: flex;
	gap: 1rem;
}


/* HOME MODAL - NO SUBMISSIONS */

/* Modal */
.home-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: none;
}

.home-modal.visible {
	opacity: 1;
	pointer-events: all;
}

.home-modal-content {
	background-color: var(--white);
	border-radius: 16px;
	padding: 3rem;
	max-width: 500px;
	width: 90%;
	text-align: center;
	box-shadow: var(--shadow);
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.home-modal.visible .home-modal-content {
	transform: translateY(0);
}

.home-modal-icon {
	font-size: 3rem;
	color: var(--purple);
    line-height: normal;
}

.home-modal-title {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--button-text);
}

.home-modal-text {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: var(--text-color);
}

.home-modal-buttons {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}



.home-modal-content h2 {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 0rem;
	color: var(--button-text);
    margin-top: 0rem;
}


.home-modal-content p {
	font-size: 1.2rem;
	margin-bottom: 1.5rem;
	color: var(--text-color);
	border-bottom: none;
	padding-bottom: initial;
}





/* EXAMPLE PDF MODAL! */
/* Modal */
.form-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.form-modal.visible {
	opacity: 1;
	visibility: visible;
}

.form-modal-content {
	background-color: var(--white);
	border-radius: 16px;
	padding: 2rem 3rem;
	max-width: 500px;
	width: 90%;
	text-align: center;
	box-shadow: var(--shadow);
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.form-modal.visible .form-modal-content {
	transform: translateY(0);
}


.modal-icon {
	font-size: 3rem;
	color: var(--purple);
}

.form-modal-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--button-text);
    margin-top: 0rem;
}

.form-modal-text {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: var(--text-color);
	border-bottom: none;
	padding-bottom: initial;
}

.form-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
	flex-flow: column;
}

.form-modal-buttons a {
	text-decoration: none;
	width: 100%;
}

.form-modal-buttons .secondary-button {
	width: 100%;
	flex-grow: initial;
	flex: initial;
}



/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
}


/* ========================================= */
/*  Styles for School Check Section          */
/* ========================================= */
.school-check-section {
    padding: 2rem 2rem;
    background-color: #f8f7ff; /* A light lavender background */
    text-align: center;
	margin-bottom: 1rem;
}

.school-check-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
	border: 1px solid var(--border-color);
    padding: 2rem 2rem;
    color: var(--white);
    box-shadow: var(--shadow);
}

.school-check-icon {
    font-size: 2.5rem;
	font-weight: 500;
    color: var(--purple);
    margin-bottom: 1rem;
    line-height: 1;
}

.school-check-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--button-text);
    margin-bottom: 0.5rem;
}


.school-title-flex {
	display: flex;
	gap: 0.5rem;
	align-items: baseline;
	justify-self: center;
}

.school-check-description {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
    border-bottom: none;
    padding-bottom: 0;
	white-space: initial;
}

.school-check-section .primary-button {
    padding: 1rem 3rem;
	justify-self: center;
}

/* ========================================= */
/*  Styles for School Search Modal           */
/* ========================================= */
/* Make the modal content a flex container */
.school-search-modal .home-modal-content {
    max-width: 600px;
    max-height: 90vh; /* Use vh for viewport height, it's more reliable */
    text-align: right;
    display: flex; /* ADD: Turn on flexbox */
    flex-direction: column; /* ADD: Arrange items vertically */
	padding: 2rem;
	overflow-y: auto; /* ADD: Make this element scroll if content overflows */
}

/* Keep the header at its natural height */
.school-search-modal .home-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0; /* ADD: Prevent header from shrinking */
}

.school-search-modal {
    margin: 0;
    font-size: 1.5rem;
}


.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0;
    line-height: 1;
}
.modal-close-btn:hover {
    color: var(--purple);
}

/* Make the body the scrollable area */
.school-search-modal .home-modal-body {

}

.school-search-modal .home-modal-body .home-modal-text {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Form Styles inside Modal */
.school-search-modal .filter-group {
    margin-bottom: 1rem;
}

.school-search-modal .filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--button-text);
}

.school-search-modal .search-wrapper {
    position: relative;
    display: flex;
}

.school-search-modal .search-wrapper input,
.school-search-modal .filter-select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
	margin-bottom: initial;
}

.school-search-modal .filter-select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.school-search-modal .search-submit-btn {
    background-color: var(--purple);
    color: white;
    border: none;
    padding: 0rem 1rem;
    border-radius: 8px 0px 0px 8px;
    margin-right: -10px; /* Overlap with input */
    cursor: pointer;
    transition: background-color 0.3s;
}

.school-search-modal .search-submit-btn:hover {
    background-color: var(--button-hover);
}

.school-search-modal .search-submit-btn i {
    font-size: 1.2rem;
}

/* Results Area */
.school-search-results {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9fafb;
    min-height: 80px;
	font-size: 1rem;
}

.school-search-results .meta-placeholder {
    color: #6b7280;
    font-style: italic;
	font-size: 1rem;
}

/* IMPORTANT: Remove the fixed height from the list */
.school-search-results ul {
    list-style: none;
    padding: 0rem 1rem;
    margin: 0;
	font-weight: 500;
    /* REMOVE max-height: 200px; The parent now handles scrolling */
}

.school-search-results li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.school-search-results li:last-child {
    border-bottom: none;
}

.school-search-results .notfound,
.school-search-results .ok,
.school-search-results .partial {
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}


.school-search-results .partial {
	margin-top: 0.5rem;
}

.school-search-results .notfound {
    background-color: #d1f7d8; /* Light green */
    color: #10852e;
}

.school-search-results .ok {
    background-color: #fde2e2; /* Light red */
    color: #c53030;
}

.school-search-results .partial {
    background-color: #e0e7ff; /* Light blue */
    color: #4338ca;
}



@keyframes slide-down {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(0);
    }
}


#purchaseButtonModal, #closeModalButton {
    background-color: transparent;
    color: var(--button-text);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: none;
}

#purchaseButtonModal:hover, #closeModalButton:hover {
	color: var(--purple);
	border-color: var(--purple);
}


/* Floating shapes */
.shape {
	position: absolute;
	opacity: 0.1;
	z-index: 1;
}

.shape-1 {
	top: 10%;
	left: 5%;
	width: 100px;
	height: 100px;
	border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
	background-color: var(--purple);
	animation: morph 15s linear infinite alternate;
}

.shape-2 {
	bottom: 15%;
	right: 10%;
	width: 150px;
	height: 150px;
	border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
	background-color: var(--light-purple);
	animation: morph 18s linear infinite alternate;
}

.shape-3 {
	top: 50%;
	left: 15%;
	width: 80px;
	height: 80px;
	border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
	background-color: var(--button-hover);
	animation: morph 20s linear infinite alternate;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
}

@keyframes morph {
	0% {
		border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
	}
	25% {
		border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
	}
	50% {
		border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
	}
	75% {
		border-radius: 20% 80% 50% 50% / 75% 20% 80% 25%;
	}
	100% {
		border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
	}
}


@media (max-width: 768px) {

	.features-section {
		padding: 1rem;
	}
	.cta-section {
		margin: auto;
		padding: 1rem;
	}
	.footer-content p {
		font-size: 10px !important;
	}
	.footer-links a {
		margin: 0.2rem;
		font-size: 12px !important;
	}

	.hero-img {
		max-width: 80%; /* Make it slightly smaller than the container width */
		height: auto; /* THIS IS THE KEY: lets the height adjust automatically */
		margin: 0 auto; /* Center the image horizontally */
		order: -1; /* NEW: Puts the image above the text on mobile */
		z-index: 2;
		animation: none; /* Keep this if you don't want animations on mobile */
	}

	.hero-content {
		flex-direction: column;
		display: flex;
		text-align: center; /* Center-align the text block */
		flex-flow: column;
		padding-inline: initial;
	}

	.hero-title {
		margin-bottom: auto;
		font-size: 2rem;
		text-align: center;
		flex-flow: column;
		margin-top: auto;
	}

	.hero-highlight {
		font-size: 2.2rem;
	}
	
	.hero-text {
		text-align: center;
		width: 100%; /* Ensure it takes up the full width */
		padding-left: 2rem;
		padding-top: 1rem;
	}
	

	.hero-description {
		font-size: 1rem;
		margin-top: 0.5rem;
		margin-bottom: 1rem;
		font-weight: 500;
	}
	.feature-title, .cta-title, .school-check-title {
		font-size: 1.5rem;
		margin-bottom: 0.2rem;
	}
	.cta-description, .feature-description, .school-check-description {
		font-size: 1rem;
		font-weight: 400;
	}

	.school-check-description  {
		margin-bottom: 1rem;
		font-size: 0.9rem;
	}

	.hero-section {
		padding: 1rem;
	}

	.hero-section p, .testimonials-section p, .cta-section p {
		margin-bottom: 1rem;
		font-weight: 400;
	}


	.school-check-icon {
		font-size: 1.6rem;
		margin-bottom: 0rem;
	}

	.cta-button {
        padding: 0.9rem;
        font-size: 0.9rem;
        flex: auto;
	}


	.school-check-section {
		padding: 1rem;
	}

	.school-check-section .primary-button {
		padding: 0.8rem 1.2rem;
		font-size: 0.9rem;
		margin-top: auto;
		justify-self: center;
	}

	.form-modal-title {
		font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 1rem;
	}
	
	.modal-icon {
		display: none;
	}

	.form-modal-text {
		font-size: 1rem;
	}

	.primary-button, .secondary-button {
		font-size: 0.9rem;
		flex: auto;
		padding: 0.8rem;
		justify-content: center;
		display: block;
	}
	
	.hero-buttons, .cta-buttons {
		margin-top: 1rem;
	}


	.school-title-flex {
        display: flex;
        gap: 0.5rem;
        align-items: baseline;
        justify-self: center;
	}


	.home-modal-content h2 {
		font-size: 1.5rem;
		font-weight: 600;
		margin-bottom: 0rem;
		color: var(--button-text);
		margin-top: 0rem;
	}

	.school-check-container, .cta-container {
		padding: 2rem 1rem;
	}


	.home-modal-icon {
		display: none;
	}

	.school-search-modal .home-modal-body .home-modal-text {
		font-size: 0.9rem;
	}

	.school-search-modal .filter-label {
		font-size: 0.9rem;
	}

	.school-search-results .meta-placeholder {
		font-size: 0.8rem;
	}

	.school-search-results .notfound, .school-search-results .ok, .school-search-results .partial {
		font-size: 0.8rem;
	}


	.school-search-results li {
		font-size: 0.8rem;
	}


	.school-search-modal .search-wrapper input,
	.school-search-modal .filter-select {
		font-size: 0.8rem;
	}

    .faq-section {
        padding: 2rem 1rem;
    }
	
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
		margin-top: 1rem;

    }
    .faq-container {
        /* Change to single-column layout */
        column-count: 1;
        column-gap: 0;
    }
    .faq-question {
        padding: 0.5rem 1.5rem;
    }
	.faq-question h3 {
		font-size: 1rem;
	}
	.faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem;
    }
	.faq-answer p {
		font-size: 0.9rem;
		line-height: 1.8;
	}

	.hero-section {
		margin-top: auto;
	}

	.hero-container {
		margin: initial;
		margin-bottom: 1rem;
		padding-bottom: 2rem;
		padding: 1rem;
	}
}



