* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.contain {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    /* Try center if space-between feels too wide */
    gap: 100px;
}


.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.cta-button {
    background-color: #d2691e;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b8621b;
    color: white;
    text-decoration: none;
    /* ← this stops underline on hover */
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image video {
    width: 130%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
@media (max-width: 1028px) {
    .contain {
            margin: 0;
            padding: 0;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            position: relative;
        }
    .hero-section {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 40px;
        padding: 20px;
    }

    .hero-content,
    .hero-image {
        max-width: 100%;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 2.9rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .hero-image video {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 770px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 30px;
        padding: 16px;
        margin: 0;
        /* ← key fix */
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content,
    .hero-image {
        width: 100%;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .cta-button {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .hero-image video {
        width: 100%;
        border-radius: 10px;
    }
}

@media (max-width: 380px) {
    .hero-section {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 32px;
        padding: 12px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content,
    .hero-image {
        width: 105%;
        /* Slight increase without overflow */
        text-align: left;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 9px 18px;
    }

    .hero-image video {
        width: 105%;
        border-radius: 10px;
    }
}

@media (max-width: 320px) {
    .hero-section {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 28px;
        padding: 10px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-content,
    .hero-image {
        width: 110%;
        /* Slight bump to enlarge, still safe */
        text-align: left;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .hero-image video {
        width: 110%;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .divider-image {
        width: 10rem;
        height: auto;
        transform: translateY(0) translateX(0);
        left: 0 !important;
        right: auto !important;
    }
}

@media (max-width: 380px) {
    .divider-image {
        width: 8rem;
        opacity: 0.5;
        transform: translateY(0) translateX(0);
        left: 0 !important;
        right: auto !important;
    }
}

@media (max-width: 320px) {
    .divider-image {
        display: none;
        /* Hide background images on very small screens */
    }
}



.cards-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    margin: 10px auto 0 auto;
    /* moved upwards */
    max-width: 1200px;
    width: 100%;
}
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
        /* reduced from 32px */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card.yellow {
    border-color: #ffc107;
}

.card.red {
    border-color: #dc3545;
}

.card.orange {
    border-color: #fd7e14;
}

.card.green {
    border-color: #28a745;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: none;
    /* remove bottom border */
    transition: none;
    /* remove transition if not needed */
}

.card-link:hover {
    color: #007bff;
    /* keep same color */
    text-decoration: none;
    /* ensure no underline */
    border-bottom: none;
    /* no border change */
}


@media (max-width: 1028px) {
    .cards-section {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns instead of 4 */
        gap: 20px;
        padding: 0 16px;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .card p {
        font-size: 1rem;
    }

    .card-link {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cards-section {
            grid-template-columns: 1fr;
            gap: 16px;
            padding: 0 12px;
            margin-top: 30px;
            /* added to move it downwards */
        }

    .card {
        padding: 16px;
        /* reduce padding for smaller screens */
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.95rem;
    }

    .card-link {
        font-size: 0.95rem;
    }
                                 .section-title {
                                     margin-top: 100px;
                                     /* Adds spacing above the heading */
                                     transform: none;
                                     /* Optional: reset transform if used elsewhere */
                                 }
}

@media (max-width: 380px) {
    .cards-section {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 10px;
    }

    .card {
        padding: 14px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .card-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .cards-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 8px;
    }

    .card {
        padding: 12px;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .card-link {
        font-size: 0.85rem;
    }
}


.content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   
     color: #333;
     line-height: 1.6;
    max-width: 1000px;
    margin: 90px auto 0 auto;
        /* added 20px top margin */
    padding: 40px 20px;
}

.education-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}
.category-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 12px 0px 12px 8px;
    /* Top, Right, Bottom, Left */
    color: #222;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-header {
    padding: 4px 8px;
}

.higher-education {
    background-color: #1e3a8a;
}

.k12-education {
    background-color: #16a34a;
}

.learning-research {
    background-color: #0891b2;
}

.category-content {
    padding: 20px;
}

.category-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.category-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.category-link:hover {
    text-decoration: none;
    /* disables underline */
    color: #007bff;
    /* changes text color on hover */
    border-bottom: none;
    /* ensures no border shows */
}
@media (max-width: 1028px) {
    .content {
        margin: 30px auto 0 auto;
        padding: 30px 16px;
        max-width: 100%;
    }

    .education-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }

    .category-title {
        font-size: 1rem;
        margin: 10px 0 10px 6px;
    }

    .category-content {
        padding: 16px;
    }

    .category-description {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .category-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .content {
        margin: 20px auto 0 auto;
        padding: 20px 12px;
    }

    .education-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-title {
        font-size: 0.95rem;
        margin: 8px 0 8px 4px;
    }

    .category-content {
        padding: 14px;
    }

    .category-description {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .category-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .content {
        padding: 18px 10px;
    }

    .education-categories {
        gap: 16px;
    }

    .category-title {
        font-size: 0.9rem;
    }

    .category-content {
        padding: 12px;
    }

    .category-description {
        font-size: 0.85rem;
    }

    .category-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .content {
        padding: 16px 8px;
    }

    .education-categories {
        gap: 12px;
    }

    .category-title {
        font-size: 0.85rem;
    }

    .category-content {
        padding: 10px;
    }

    .category-description {
        font-size: 0.8rem;
    }

    .category-link {
        font-size: 0.8rem;
    }
}


.news-section {
    margin-top: -10px;
    margin-bottom: 50px;
        /* adds individual spacing under each card */
    /* previously 60px */
}

.news-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}


.news-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 28px;
    overflow-x: auto;
    justify-content: center;
    /* Center items inside the scrollable area */
    padding: 0 24px;
    /* Optional: add horizontal space from edges */
}
.news-card {
    width: 280px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.news-content {
    padding: 22px;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 13px;
    color: #333;
    line-height: 1.3;
}

.news-description {
    color: #666;
    margin-bottom: 18px;
    font-size: 0.93rem;
    line-height: 1.45;
}

.news-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.news-link:hover {
    text-decoration: none;
        /* disables underline */
        color: #007bff;
        /* changes text color on hover */
        border-bottom: none;
        /* ensures no border shows */
}


@media (max-width: 1028px) {
    .news-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
        gap: 24px;
        padding: 0 16px;
        justify-content: center;
        overflow: visible;
        /* remove horizontal scroll */
    }

    .news-section {
        margin-top: 20px;
        margin-bottom: 40px;
        padding: 0 16px;
    }

    .news-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .news-card {
        width: 100%;
        /* Let the grid define the size */
    }

    .news-image {
        height: 160px;
    }

    .news-content {
        padding: 20px;
    }

    .news-card-title {
        font-size: 1.05rem;
    }

    .news-description {
        font-size: 0.9rem;
    }

    .news-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 12px;
        overflow: visible;
    }

    .news-section {
        margin-top: 16px;
        margin-bottom: 30px;
        padding: 0 12px;
    }

    .news-title {
        font-size: 1.7rem;
        margin-bottom: 24px;
    }

    .news-card {
        width: 100%;
    }

    .news-image {
        width: 100%;
        height: 160px;
        /* Smaller height */
        object-fit: cover;
        display: block;
        margin: 0 auto;
        border-radius: 8px;
    }

    .news-content {
        padding: 16px;
    }

    .news-card-title {
        font-size: 1rem;
    }

    .news-description {
        font-size: 0.85rem;
    }

    .news-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 10px;
    }

    .news-section {
        margin-top: 12px;
        margin-bottom: 24px;
        padding: 0 10px;
    }

    .news-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .news-card {
        width: 100%;
    }

    .news-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        display: block;
        margin: 0 auto;
        border-radius: 6px;
    }

    .news-content {
        padding: 14px;
    }

    .news-card-title {
        font-size: 0.95rem;
    }

    .news-description {
        font-size: 0.8rem;
    }

    .news-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 8px;
    }

    .news-section {
        margin-top: 10px;
        margin-bottom: 20px;
        padding: 0 8px;
    }

    .news-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }

    .news-card {
        width: 100%;
    }

    .news-image {
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block;
        margin: 0 auto;
        border-radius: 6px;
    }

    .news-content {
        padding: 12px;
    }

    .news-card-title {
        font-size: 0.9rem;
    }

    .news-description {
        font-size: 0.78rem;
    }

    .news-link {
        font-size: 0.82rem;
    }
}