* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

main {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 100%;
    overflow-x: hidden;
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../assets/images/flood.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 200px 20px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-learn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-learn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-status {
    background-color: #377586;
    color: white;
    border: 2px solid #377586;
}

.btn-status:hover {
    background-color: #4a9aa5;
    border-color: #4a9aa5;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #60B0C6 0%, #457e8e 100%);
    padding: 70px 20px 60px 20px;
    margin: 40px 20px;
    border-radius: 18px;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.about-section::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -50px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.about-section::after {
    content: '';
    position: absolute;
    left: -100px;
    bottom: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.about-section h2 {
    font-size: 34px;
    margin-bottom: 18px;
    font-weight: 700;
}

.about-section .section-heading {
    color: white;
}

.about-section p {
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 35px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 24px 22px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.16);
}

.about-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.92;
}

/* Shared Section Styling */
.section-heading {
    color: #377586;
    font-size: 34px;
    margin-bottom: 18px;
    font-weight: 700;
}

.section-subtitle {
    color: #444;
    max-width: 900px;
    margin: 0 auto 35px auto;
    font-size: 16px;
    line-height: 1.65;
    opacity: 0.9;
}

/* How It Works */
.how-it-works {
    padding: 60px 20px;
    background-color: #f4fbff;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 35px auto 0 auto;
    max-width: 1200px;
}

.step-card {
    background-color: white;
    border: 1px solid #d6e8ee;
    border-radius: 12px;
    padding: 30px 22px;
    text-align: left;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 42px;
    height: 42px;
    line-height: 42px;
    border-radius: 50%;
    background-color: #377586;
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
}

.step-card h3 {
    color: #2d4d5a;
    font-size: 19px;
    margin-bottom: 12px;
}

.step-card p {
    color: #5f6b74;
    font-size: 15px;
    line-height: 1.6;
}

/* Features */
.features-section {
    padding: 60px 20px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 35px auto 0 auto;
    max-width: 1200px;
}

.feature-card {
    background-color: white;
    border: 1px solid #d6e8ee;
    border-radius: 12px;
    padding: 30px 22px;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.11);
}

.feature-card h3 {
    color: #377586;
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: #5f6b74;
    font-size: 15px;
    line-height: 1.6;
}

/* Cards Section */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    width: 100%;
}

.card {
    background-color: white;
    border: 3px solid #377586;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px #00000026;
}

.card h3 {
    color: #377586;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card a {
    color: #377586;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.card a:hover {
    text-decoration: underline;
}

/* Mission Section */
.mission-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.mission-content h2 {
    color: #377586;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.mission-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.mission-content .btn {
    display: inline-block;
    background-color: #377586;
    color: white;
    padding: 12px 40px;
}

.mission-content .btn:hover {
    background-color: #377586;
}

.mission-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
}

.info-box h4 {
    color: #5eb9c5;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-box p {
    color: #666666;
    font-size: 15px;
    line-height: 1.6;
}

/* Latest Flood Reports Section */
.reports-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../assets/images/aboutusbackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 40px 80px 40px;
    text-align: center;
}

.reports-section h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
}

.reports-section .subtitle {
    color: white;
    font-size: 16px;
    margin-bottom: 30px;
}

.reports-section .btn {
    background-color: #377586;
    color: white;
    padding: 12px 40px;
}

.reports-section .btn:hover {
    background-color: #4495ab;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.report-card {
    display: flex;
    gap: 20px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    transition: box-shadow 0.3s;
}

.report-card:hover {
    box-shadow: 0 4px 12px #0000001a;
}

.report-image {
    width: 100px;
    height: 100px;
    background-color: #e8e8e8;
    border-radius: 5px;
    flex-shrink: 0;
}

.report-content h3 {
    color: #377586;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.report-content .date {
    color: #999999;
    font-size: 14px;
    margin-bottom: 12px;
}

.report-content p {
    color: #377586;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding: 140px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 15px;
    }

    /* About Section */
    .about-section {
        margin: 30px 15px;
        padding: 40px 20px 35px 20px;
    }

    .about-section h2 {
        font-size: 30px;
    }

    .about-section p {
        font-size: 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    /* How It Works */
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Cards Container */
    .cards-container {
        padding: 30px 20px;
        gap: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .card {
        padding: 25px;
    }

    .card h3 {
        font-size: 24px;
    }

    /* Mission Section */
    .mission-section {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .mission-content h2 {
        font-size: 28px;
    }

    .mission-content p {
        font-size: 15px;
    }

    /* Reports Section */
    .reports-section {
        padding: 40px 20px 60px 20px;
    }

    .reports-section h2 {
        font-size: 32px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .report-card {
        padding: 20px;
    }
}

@media (max-width: 425px) {
    /* Hero Section */
    .hero-section {
        padding: 100px 15px;
    }

    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }

    /* About Section */
    .about-section {
        margin: 20px 10px;
        padding: 25px 20px;
    }

    .about-section h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .about-section p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    /* Cards Container */
    .cards-container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 15px;
        width: 100%;
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .card p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .card a {
        font-size: 15px;
    }

    /* Mission Section */
    .mission-section {
        grid-template-columns: 1fr;
        padding: 20px 15px;
        gap: 25px;
    }

    .mission-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .mission-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .mission-content .btn {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }

    .mission-boxes {
        gap: 15px;
    }

    .info-box {
        padding: 20px;
    }

    .info-box h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .info-box p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Reports Section */
    .reports-section {
        padding: 30px 15px 50px 15px;
    }

    .reports-section h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .reports-section .subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .reports-section .btn {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .report-card {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .report-image {
        width: 100%;
        height: 180px;
    }

    .report-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .report-content .date {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .report-content p {
        font-size: 14px;
        line-height: 1.5;
    }
}
