
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f4eb;
    color: #173f36;
}

/* =====================================
   NAVBAR
===================================== */

.navbar {
    background: #ffffff;
    height: 85px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 5%;

    border-bottom: 4px solid #d54b35;

    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-circle {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: #e9b73f;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
}

.logo-container h2 {
    font-size: 16px;
    letter-spacing: 1px;
}

.logo-container span {
    font-size: 10px;
    color: #d54b35;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 10px;
}

nav button {
    border: none;
    background: none;

    padding: 10px;

    font-size: 12px;
    font-weight: bold;

    cursor: pointer;

    color: #173f36;
}

nav button:hover {
    color: #d54b35;
}

#language {
    padding: 8px;
    border-radius: 20px;
    border: 1px solid #ddd;
}


/* =====================================
   PAGE SYSTEM
===================================== */

.page {
    display: none;
    min-height: 80vh;
}

.page.active {
    display: block;
}


/* =====================================
   HERO / HOME
===================================== */

.hero {
    display: grid;
    grid-template-columns: 40% 60%;

    min-height: 500px;

    background: #f3eadc;
}

.hero-text {
    padding: 80px 8%;

    display: flex;
    justify-content: center;
    flex-direction: column;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.05;

    color: #175442;
}

.hero-text h1 span {
    color: #d9a62e;
}

.hero-text h1 strong {
    color: #d54b35;
}

.hero-text p {
    margin-top: 25px;

    font-size: 18px;
    line-height: 1.6;

    max-width: 500px;
}

.hero-image {
    min-height: 500px;
}

.hero-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.main-button {
    margin-top: 30px;

    width: fit-content;

    padding: 15px 25px;

    background: #175442;
    color: white;

    border: none;
    border-radius: 7px;

    font-weight: bold;

    cursor: pointer;
}

.main-button:hover {
    background: #d54b35;
}


.home-cards {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    padding: 35px 5%;
}

.home-card {
    background: white;

    padding: 25px;

    border-radius: 10px;

    border: 1px solid #ddd;

    cursor: pointer;

    transition: 0.2s;
}

.home-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.home-card h3 {
    color: #175442;
    margin-bottom: 10px;
}

.home-card p {
    color: #555;
    line-height: 1.5;
}


/* =====================================
   PAGE HEADER
===================================== */

.page-header {
    padding: 60px 5% 30px;

    text-align: center;
}

.page-header h1 {
    color: #175442;

    font-size: 38px;
}

.page-header p {
    margin-top: 10px;

    color: #666;
}


/* =====================================
   PROVINCE GRID
===================================== */

.province-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    padding: 20px 5% 60px;
}

.province-card {
    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 3px 10px rgba(0,0,0,0.08);

    cursor: pointer;

    transition: 0.2s;
}

.province-card:hover {
    transform: translateY(-5px);
}

.province-card img {
    width: 100%;

    height: 180px;

    object-fit: cover;
}

.province-card-content {
    padding: 20px;
}

.province-card h2 {
    color: #175442;

    margin-bottom: 8px;
}

.province-card p {
    color: #555;

    line-height: 1.5;

    font-size: 14px;
}


/* =====================================
   PROVINCE DETAIL
===================================== */

.back-button {
    margin: 30px 5%;

    padding: 10px 18px;

    border: none;

    background: #175442;

    color: white;

    border-radius: 5px;

    cursor: pointer;
}

.back-button:hover {
    background: #d54b35;
}

.province-detail {
    padding: 20px 5%;
}

.province-hero {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    background: white;

    padding: 30px;

    border-radius: 15px;
}

.province-hero img {
    width: 100%;

    height: 350px;

    object-fit: cover;

    border-radius: 10px;
}

.province-hero h1 {
    font-size: 45px;

    color: #175442;
}

.province-hero h3 {
    margin: 10px 0;

    color: #d54b35;
}

.province-info {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 25px;
}

.info-card {
    background: white;

    padding: 25px;

    border-radius: 10px;

    border-top: 4px solid #d54b35;
}

.info-card h3 {
    color: #175442;

    margin-bottom: 10px;
}

.info-card p {
    color: #555;

    line-height: 1.5;
}


/* =====================================
   QUIZ
===================================== */

.quiz-container {
    background: white;

    max-width: 800px;

    margin: 20px auto 60px;

    padding: 40px;

    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.08);
}

#question-number {
    color: #d54b35;

    font-weight: bold;

    margin-bottom: 20px;
}

#question {
    margin-bottom: 25px;

    color: #173f36;
}

.answer-button {
    display: block;

    width: 100%;

    padding: 15px;

    margin: 10px 0;

    background: #f3f0e8;

    border: 1px solid #ddd;

    border-radius: 7px;

    text-align: left;

    cursor: pointer;

    font-size: 16px;
}

.answer-button:hover {
    background: #e3eadf;
}

.answer-button.correct {
    background: #9bc9a0;
}

.answer-button.wrong {
    background: #e9a19a;
}

.quiz-bottom {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 30px;
}

#next-button {
    padding: 12px 25px;

    background: #175442;

    color: white;

    border: none;

    border-radius: 5px;

    cursor: pointer;
}

#next-button:hover {
    background: #d54b35;
}


/* =====================================
   ABOUT
===================================== */

.about-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;

    padding: 70px 8%;

    background: white;
}

.about-section h1 {
    color: #175442;

    margin-bottom: 20px;
}

.about-section p {
    line-height: 1.7;

    margin-bottom: 20px;
}

.about-section img {
    width: 100%;

    height: 350px;

    object-fit: cover;

    border-radius: 15px;
}

.about-cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    padding: 40px 8%;
}

.about-cards > div {
    background: #f3eadc;

    padding: 30px;

    border-radius: 10px;
}

.about-cards h3 {
    color: #175442;

    margin-bottom: 10px;
}


/* =====================================
   SOURCES
===================================== */

.sources-list {
    max-width: 900px;

    margin: auto;

    padding: 20px 5% 60px;
}

.source {
    background: white;

    padding: 25px;

    margin-bottom: 15px;

    border-radius: 10px;

    border-left: 5px solid #d54b35;
}

.source h3 {
    color: #175442;

    margin-bottom: 8px;
}

.source p {
    margin-bottom: 10px;
}

.source a {
    color: #d54b35;

    font-weight: bold;
}


/* =====================================
   FOOTER
===================================== */

footer {
    background: #064538;

    color: white;

    padding: 45px 5%;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 30px;
}

footer h2,
footer h3 {
    margin-bottom: 15px;
}

footer p {
    color: #d9ddd9;

    line-height: 1.5;
}

footer button {
    display: block;

    background: none;

    color: white;

    border: none;

    margin-bottom: 8px;

    cursor: pointer;
}

footer button:hover {
    color: #e9b73f;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 900px) {

    .navbar {
        height: auto;

        flex-direction: column;

        gap: 15px;
    }

    nav {
        flex-wrap: wrap;

        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .home-cards {
        grid-template-columns: 1fr 1fr;
    }

    .province-grid {
        grid-template-columns: 1fr 1fr;
    }

    .province-hero {
        grid-template-columns: 1fr;
    }

    .province-info {
        grid-template-columns: 1fr 1fr;
    }

    .about-section {
        grid-template-columns: 1fr;
    }

    .about-cards {
        grid-template-columns: 1fr 1fr;
    }

    footer {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .home-cards,
    .province-grid,
    .about-cards,
    .province-info {
        grid-template-columns: 1fr;
    }

    footer {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 38px;
    }

}