:root {
    --font-base: 16px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;

    --color-primary: #E0ECFF;
    --color-secondary: #F3F4F6;
    --color-accent: #FF5A5F;
    --color-accent-hover: #E0484D;
    --color-neutral: #1A1A2E;
}

body {
    font-family: 'Segoe UI', sans-serif;
    font-size: var(--font-base);
    margin-left: 0px;
    margin-right: 0px;
    line-height: 1.6;
    color: #333;
    background-color: var(--color-neutral);
}

h1 {
    display: block;
    width: 100%;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Global layout blocks */
section,
header,
footer,
nav {
    padding: var(--spacing-lg, 40px) var(--spacing-md, 20px);
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('images/hero-background_972x664.png') center center / cover no-repeat;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-text p,
.hero-text h3,
.hero-text h4 {
    color: var(--color-secondary);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    max-width: 500px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hero-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero-text h4 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: var(--color-accent);
    color: var(--color-neutral);
    font-size: 1.1rem;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.hero-button:hover {
    background-color: var(--color-accent-hover);
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

.feature {
    flex: 1 1 calc(33% - 20px);
    background-color: var(--color-neutral);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    border-left: 5px solid var(--color-primary);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h2 {
    color: var(--color-primary);
    font-size: 1.5em;
}

.feature p {
    color: var(--color-primary);
}

/* Services Section */
.services-section {
    background: #FAE3B2;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.services-box {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    position: relative;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 300px; /* adjust as needed */
    overflow: hidden;
}

.services-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* dark overlay */
    z-index: 1;
}

.services-box * {
    position: relative;
    z-index: 2;
}

.bg-highschool {
    background: url('images/math_400x300.png') center/cover no-repeat;
}
.bg-testprep {
    background: url('images/prep_400x300.png') center/cover no-repeat;
}
.bg-techprojects {
    background: url('images/coding_400x300.png') center/cover no-repeat;
}

/* Testimonials Section */
.testimonial-section {
    background: #F3F4F6
}

.testimonials {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.testimonial_box {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.testimonial_content {
    font-size: 1.2em;
    line-height: 1.6;
}

.testimonial_name {
    margin-top: 10px;
    font-weight: bold;
    text-align: right;
}

/* Pricing Section */
.pricing-section {
    background: #D9D9D9;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pricing-box {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    position: relative;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 300px; /* adjust as needed */
    overflow: hidden;
}

.pricing-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* dark overlay */
    z-index: 1;
}

.pricing-box * {
    position: relative;
    z-index: 2;
}

.bg-tutoring {
    background: url('images/tutoring_400x400.png') center/cover no-repeat;
}

.bg-students {
    background: url('images/students_400x400.png') center/cover no-repeat;
}

.bg-texting {
    background: url('images/texting_400x400.png') center/cover no-repeat;
}

footer {
    background: var(--color-secondary);
    color: var(--color-neutral);
}
