/* Hero Section */
.hero-section {
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #667eea;
}

.hero-section h2 {
    font-size: 24px;
    font-weight: 500;
    color: #555;
    margin-bottom: 20px;
}

/* Layout Sections */
.section-wrapper {
    padding: 0px 20px 60px;
    width: 100%;
    position: relative;
    background-color: #fff;
}

.container-grid {
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 20px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    column-gap: 60px;
    row-gap: 0;
    align-items: start;
}

@media (max-width: 900px) {
    .container-grid {
        grid-template-columns: 1fr;
        padding-left: 5%;
        padding-right: 5%;
        row-gap: 30px;
    }

    /* Mobile Order: Intro - Image - Main Text */
    .intro-segment {
        order: 1;
    }

    .image-col {
        order: 2;
        margin-bottom: 30px;
        grid-column: auto;
        grid-row: auto;
    }

    .main-segment {
        order: 3;
    }
}

/* Text Styling */
/* Ensure desktop grid positioning for segments */
@media (min-width: 901px) {
    .intro-segment, .main-segment {
        grid-column: 1;
    }

    .image-col {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

.text-col h3 {
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 30px;
    color: #667eea;
}

.text-col p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.text-col ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.text-col ul li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.text-col ul li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Image Styling */
.image-col {
    position: relative;
    z-index: 1;
}

.image-wrapper {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    margin-bottom: 40px;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Testimonial Box */
.testimonial-box {
    background-color: #f8faff;
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    font-style: italic;
    color: #555;
}

.testimonial-box p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: bold;
    font-style: normal;
    font-size: 15px;
    color: #1a2b4e;
}

/* Call to Action */
.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: #1a2b4e;
    color: white;
    border-radius: 20px;
}

.cta-section h3 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: #e2e8f0;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #5a67d8;
}

/* Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
}