/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); */
    /* Subtle shadow */
}

.logo {
    max-height: 60px;
    /* Adjust based on logo appearance */
}

/* Header */
.main-header {
    background: transparent;
    /* Or white if preferred, screenshot looks clean */
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
}

.logo {
    max-height: 50px;
    margin: 0 auto;
}

/* New Hero Section */
.hero-section.new-hero {
    background-color: #f4f7fa;
    /* Light background */
    background-image: url('assets/hero-bg.jpeg');
    /* Assuming this is the map background */
    background-size: cover;
    background-position: center;
    padding: 20px 0 60px;
    color: #333;
    position: relative;
    /* Remove the dark overlay from previous code if it existed, we are overwriting */
}

/* Remove old pseudo-element overlay if it leaks through, effectively resetting it */
.hero-section.new-hero::before {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Left Content */
.hero-text-content {
    padding-top: 20px;
}

/* Top Features (Icons on Dark Blue) */
.top-features {
    background-color: #3A4A84;
    /* Match the dark blue mainly used */
    padding: 60px 0;
    color: #fff;
    text-align: center;
}

.feature-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.feature-item {
    flex: 1;
    padding: 0 10px;
}

.icon-wrapper {
    margin-bottom: 20px;
}

.feature-icon {
    height: 60px;
    /* Adjust based on icon actual size */
    margin: 0 auto;
    filter: brightness(0) invert(1);
    /* Make whitespace icons white if they aren't already */
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e6ed;
}

/* Responsiveness for Features */
@media (max-width: 768px) {
    .feature-grid {
        flex-direction: column;
        gap: 40px;
    }
}

.sub-headline {
    color: #c0392b;
    /* Red */
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.main-headline {
    color: #3A4A84;
    /* Dark Blue/Greyish */
    font-size: 2.5rem;
    font-weight: 400;
    /* Lighter weight for the bulk, verifying screenshot */
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    /* Optional shadow */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-main-img {
    width: 100%;
    display: block;
}

/* Form Card */
.hero-form-card {
    background: #fff;
    border-top: 3px solid #2c3e50;
    /* Fallback or part of design */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    /* The screenshot shows a blue header block */
}

.form-header {
    background-color: #3A4A84;
    /* Dark Blue */
    color: #fff;
    text-align: center;
    padding: 20px;
    /* Add inner border or styling if matches exactly */
    border: 5px solid #fff;
    /* Inner white border effect often seen in these landing pages? 
                            Screenshot shows a solid blue block inside white padding or just blue header?
                            Looking at screenshot: It's a blue header box INSIDE the white card or flush?
                            It looks like a blue box with white text "START NOW" inside the main white card area?
                            Actually looks like the blue header spans full width of card content area. */
    margin: 20px 20px 0;
    /* Inset header? */
    border: 1px solid #fff;
    /* outline? */
    outline: 1px solid #3A4A84;
    /* If needed */
}

.form-header h3 {
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px;
}

.form-body {
    padding: 20px 30px 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Slightly rounded or square */
    font-size: 1rem;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #aaa;
}

.btn-submit {
    width: 100%;
    background-color: #c0392b;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 5px;
    /* Slight radius */
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.input-error {
    border: 1px solid #e74c3c !important;
    background-color: #fdf2f2;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    text-align: left;
}

.btn-submit:hover {
    background-color: #a93226;
}

.form-disclaimer {
    font-size: 0.65rem;
    color: #777;
    margin-top: 15px;
    line-height: 1.4;
    text-align: justify;
}

.form-disclaimer a {
    color: #3498db;
    text-decoration: none;
}

.mobile-break {
    display: none;
}

/* Responsiveness for Hero */
@media (max-width: 900px) {
    .main-header {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .hero-form-card {
        order: 1;
        /* Form after text on mobile as per screenshot flow/standard */
        /* margin-top: 30px; */
    }

    .hero-text-content {
        text-align: center;
    }

    .hero-image-wrapper {
        display: none;
        /* Hide laptop image on mobile */
    }

    .main-headline {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .sub-headline {
        font-size: 1.4rem;
        font-weight: 400;
    }

    .qualified-text {
        display: block;
        font-style: italic;
        font-weight: 300;
        font-size: 0.8em;
        /* Smaller than main headline */
        margin-top: 5px;
        color: #333;
        /* Dark/Black color */
    }

    .mobile-break {
        display: block;
        /* Force break if needed */
    }
}


/* Right Aid Section */
.right-aid-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #3A4A84;
    /* Dark Blue */
    margin: 5px 0 0;
    text-transform: uppercase;
    line-height: 1.1;
}

.aid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    /* Two rows */
    gap: 40px 20px;
    align-items: center;
    /* Center items vertically relative to the image span */
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.aid-item {
    text-align: center;
    padding: 10px;
}

/* Butterfly Layout Alignment */
/* Left Column Items (1 and 4) -> Align Right towards image */
.aid-item:nth-child(1),
.aid-item:nth-child(4) {
    text-align: right;
    padding-right: 20px;
}

/* Right Column Items (3 and 5) -> Align Left towards image */
.aid-item:nth-child(3),
.aid-item:nth-child(5) {
    text-align: left;
    padding-left: 20px;
}

/* Specific Grid Placement */
/* Items: 1=Plan, 2=Image, 3=Finance, 4(was 5 after spacer removal)=Financial */
/* Wait, HTML order: Plan, CenterImage, Smart Finance, Lower Costs, Financial Resources */
/* Removed spacer, so indices: 1, 2, 3, 4, 5 */

.aid-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.aid-item:nth-child(3) {
    /* Smart Finance */
    grid-column: 3;
    grid-row: 1;
}

.aid-item:nth-child(4) {
    /* Lower Costs */
    grid-column: 1;
    grid-row: 2;
}

.aid-item:nth-child(5) {
    /* Financial Resources */
    grid-column: 3;
    grid-row: 2;
}

.aid-image-center {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.circle-image-wrapper {
    /* width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden; */
    /* Thick white border/gap effect if needed, usually image is cut */
}

.circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure the girl's face is visible */
    object-position: top center;
}

.aid-icon {
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Align icons for butterfly layout */
.aid-item:nth-child(1) .aid-icon,
.aid-item:nth-child(4) .aid-icon {
    margin-left: auto;
    margin-right: 0;
}

.aid-item:nth-child(3) .aid-icon,
.aid-item:nth-child(5) .aid-icon {
    margin-right: auto;
    margin-left: 0;
}


.aid-item h3 {
    color: #3A4A84;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.aid-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    max-width: 300px;
    /* Centered block margin reset for specific alignments */
    margin: 0;
}

/* Reset margin for left/right aligned blocks */
.aid-item:nth-child(1) p,
.aid-item:nth-child(4) p {
    margin-left: auto;
    margin-right: 0;
}

.aid-item:nth-child(3) p,
.aid-item:nth-child(5) p {
    margin-right: auto;
    margin-left: 0;
}

.btn-red {
    display: inline-block;
    background-color: #c0392b;
    color: #fff;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(192, 57, 43, 0.4);
    /* margin-top: 50px; */
}

.btn-red:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.5);
}

/* Footer */
.main-footer {
    background-color: #f9f9f9;
    padding: 60px 0 30px;
    color: #999;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    text-align: center;
}

.disclosure {
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #555;
    margin: 0 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #c0392b;
}

.copyright {
    color: #aaa;
    line-height: 1.6;
}

.mt-50 {
    margin-top: 50px;
}

/* Responsiveness */
@media (max-width: 900px) {
    .aid-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 40px;
    }

    .aid-item,
    .aid-image-center {
        grid-column: 1 !important;
        grid-row: auto !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .aid-item p,
    .aid-item .aid-icon {
        margin: 0 auto !important;
        text-align: center !important;
    }

    .aid-image-center {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 20px;
    }

    .circle-image-wrapper {
        width: 250px;
        height: 250px;
    }

    .section-header h1 {
        font-size: 2.5rem;
    }
}

/* Financial Aid Section */
.financial-aid-section {
    position: relative;
    background-image: url('assets/midbanner.jpeg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    /* Reduced from 100px */
    color: #fff;
    /* Ensure text alignment handles the right-side placement */
}

.financial-aid-section .container {
    max-width: 100%;
    padding: 0 40px;
    /* Ensure some breathing room on edges */
    /* Override default container max-width */
}

.financial-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from transparent to solid blue, smoother transition */
    /* background: linear-gradient(to right, rgba(59, 77, 112, 0) 20%, rgba(59, 77, 112, 0.9) 60%, rgba(59, 77, 112, 1) 100%); */
    z-index: 1;
}

.financial-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}

.financial-content {
    max-width: 650px;
    text-align: left;
    padding-left: 40px;
    /* Add some spacing from the gradient edge */
}

.financial-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0;
    /* Reduced from 5px */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.financial-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    /* Reduced from 25px */
    text-transform: uppercase;
    line-height: 1;
}

.financial-content p {
    font-size: 1.05rem;
    line-height: 1.4;
    /* Reduced line-height */
    margin-bottom: 20px;
    /* Reduced from 30px */
    color: #f0f4f8;
}

.financial-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    /* Reduced from 20px */
}

.aid-list {
    list-style: none;
    margin-bottom: 30px;
    /* Reduced from 40px */
}

.aid-list li {
    margin-bottom: 8px;
    /* Reduced from 12px */
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
    font-weight: 400;
}

.aid-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c0392b;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2rem;
}

/* Make button distinct in this section if needed, or rely on btn-red */
.financial-content .btn-red {
    display: inline-block;
    /* Or block if full width desired, screenshot shows block-like width */
    width: 100%;
    text-align: center;
    max-width: 400px;
    /* Constraint width */
}

/* Media Query for Financial Section */
@media (max-width: 900px) {
    .financial-overlay {
        /* Solid overlay on mobile for readability */
        background: rgba(59, 77, 112, 0.95);
    }

    .financial-wrapper {
        justify-content: center;
    }

    .financial-content {
        text-align: center;
        padding-left: 0;
    }

    .financial-content h1 {
        font-size: 2.5rem;
    }

    .aid-list {
        display: inline-block;
        text-align: left;
    }

    .financial-content .btn-red {
        width: 100%;
        max-width: none;
    }
}
