@charset "UTF-8";

/* ------------------ BASE STYLES ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, sans-serif;
    background: #f5f5f5;
    color: black;
    line-height: 1.6;
}

#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: grid;
    grid-template-areas:
        "header"
        "nav"
        "main"
        "footer";
    grid-template-rows: auto auto 1fr auto;
    padding-bottom: 2em;
}

/* ------------------ HEADER STYLES ------------------ */
header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1em 2em;
    background: #fff;
    border-bottom: 2px solid #eee;
    text-align: center;
    grid-area: header;
}

header img {
    align-items: flex-start;
    height: auto;
    margin-bottom: 0.5em;
}

header h1 {
    font-family: Verdana, Arial, sans-serif;
    font-weight: 700;
    color: #2F412A;
    font-size: 2.2em;
    margin-left: 1em;
}

/* ------------------ NAVIGATION - FLEXBOX MENU ------------------ */
nav {
    width: 100%;
    grid-area: nav;
    padding: 1em 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5em;
    margin-top: 1em;
    flex-wrap: wrap;
    justify-content: space-around;
}

nav a {
    text-decoration: none;
    color: black;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 600;
    font-family: Verdana, Arial, sans-serif;
}

nav a:hover {
    background: #2F412A;
    color: white;
}

/* ------------------ MAIN CONTENT ------------------ */
main {
    padding: 3em 2.5em;
    grid-area: main;
    line-height: 1.7;
}

/* ------------------ HERO SECTION ------------------ */

#hero {
    position: relative;
    text-align: left;
    margin-bottom: 2em;
    background: #eee;
    border-radius: 8px;
    padding: 2em;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
}

#hero img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1em;
}

#hero h2 {
    font-family: Verdana, Arial, sans-serif;
    font-weight: 700;
    color: #2F412A;
    font-size: 2em;
    margin-bottom: 0.5em;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    color: black;
    max-width: 600px;
}




button {
    background: #2F412A;
    color: white;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.3s ease;
    font-family: Verdana, Arial, sans-serif;
    width: auto;
    min-width: 120px;
    margin: 0.35em 2em 0.35em 2em;
}

#hero button, .contact button {
    margin: 0.35em 0 0.35em 1em;
}


.civilisation-list button {
    margin: 0.35em 1.2em 1em 1.2em;
}

button:hover {
    background: #426438;
}

.btn.secondary {
    background: #e8e8e8;
    color: #333;
    border: 1px solid #ccc;
    margin: 0.35em 2em 2em 2em;
}

.btn.secondary:hover {
    background: #d4d4d4;
    border-color: #999;
}

/*
.btn,
button {
    margin: 0.35em 0.5em 0.35em 0.5em;
} */


/* ------------------ FEATURED CATEGORIES ------------------ */
#featured-myths {
    margin-bottom: 3em;
}

#featured-myths h3,
#early-civilisations h3, .civilisations-list h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #96B164;
    font-size: 1.6em;
    margin-bottom: 1.5em;
    text-align: left;
}

/* ------------------ MYTHOLOGIES / CARDS - FLEXBOX LAYOUT ------------------ */

.myth.list,
.myth-list,
.early-civilisation-list,
.civilisation-list,
.art-list,
.contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    list-style: none;
    justify-content: flex-start;
    padding-left: 0;
    margin: 0;
}


.myth.list li,
.myth-card,
.early-civilisation-list li,
.civilisation-list li,
.civilisation-card,
.art-list li,
.art-item,
.contact-list li {
    flex: 1 1 calc(25% - 2em);
    min-width: 200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.myth.list li:hover,
.myth-list li:hover,
.early-civilisation-list li:hover,
.civilisation-list li:hover,
.art-list li:hover, 
.contact-list li:hover {
    transform: translateY(-5px);
}


.myth.list img,
.myth-list img,
.myth-card img,
.early-civilisation-list img,
.civilisation-list img,
.civilisation-card img,
.art-list img,
.art-item img,
.contact-list img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}



.myth.list p,
.myth-list p,
.early-civilisation-list p,
.civilisation-list p,
.art-list p,
.contact-list p {
    padding: 1.2em 1.2em;
    font-weight: 400;
    color: black;
    margin: 0;
    font-size: 0.95em;
    flex: 1 0 auto;
    line-height: 1.5;
    text-align: left;
}

.contact-list li p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.myth.list h3,
.myth-list h3,
.early-civilisation-list h3,
.civilisation-list h3,
.art-list h3,
.contact-list h3 {
    padding: 0.8em 1.2em 0.3em;
    text-align: left;
}

/* ------------------ CIVILISATIONS ------------------ */
#early-civilisations {
    margin-bottom: 2em;
}


/* ------------------ FOOTER ------------------ */
footer {
    background: black;
    color: white;
    padding: 2em;
    text-align: center;
    margin-top: 3em;
    grid-area: footer;
}

footer p {
    margin-bottom: 1em;
}

footer a {
    color: #96B164;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2F412A;
    text-decoration: underline;
}


#contact-form input[
    type="text"
],
#contact-form input[
    type="email"
],
#contact-form textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 1em;
    font-family: Verdana, Arial, sans-serif;
}

/*
#contact-form button.btn {
    display: inline-block;
}
*/

#contact-form textarea {
    resize: vertical;
    max-width: 100%;
    box-sizing: border-box;
}

/* ------------------ SECTION HEADERS ------------------ */
 
#civilisations-header,
#myths-header,
#art-header {
    margin-bottom: 2em;
    text-align: left;
}

 
#civilisations-header h2,
#myths-header h2,
#art-header h2, 
#contact-header h2 {
    font-family: Verdana, Arial, sans-serif;
    font-weight: 700;
    color: #2F412A;
    font-size: 2em;
    margin-bottom: 0.5em;
}

 
#civilisations-header p,
#myths-header p,
#art-header p, 
#contact-header p {
    margin-bottom: 1em;
    font-size: 1.2em;
    color: black;
}

/*
#myths-grid .filter-buttons {
    margin-bottom: 5em;
} */

#filters {
    margin-bottom: 2em;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.filter-buttons .btn.secondary.active {
    background: #96B164;
    color: white;
}


/* ------------------ MEDIA QUERIES FOR RESPONSIVE DESIGN ------------------ */
@media (max-width: 1024px) {
        #wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "nav"
            "main"
            "footer";
    }

    .myth.list li,
    .early-civilisation-list li,
    .civilisation-list li {
        flex: 1 1 calc(50% - 1.5em);
    }
    
    #hero {
        min-height: 250px;
    }
    
    #hero h2 {
        font-size: 1.8em;
    }

}

@media (max-width: 768px) {
    #wrapper {
        grid-template-columns: 1fr;
    }

    header {
        padding: 1em;
    }
    
    
/* additional responsive rules handled later */
    header h1 {
        font-size: 1.8em;
    }
    
    nav ul {
        gap: 1em;
    }
    
    main {
        padding: 1em;
    }
    
    #hero {
        min-height: 200px;
        padding: 1.5em;
        text-align: left;
        align-items: flex-start;
    } 
    
    #hero h2 {
        font-size: 1.5em;
    }
    
    #hero p {
        font-size: 1em;
    }

}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.4em;
    }

    nav ul {
        gap: 0.6em;
        font-size: 0.9em;
    }

    #hero {
        padding: 1em;
    }

    #hero h2 {
        font-size: 1.4em;
    }

    #filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    /* Removed product/cart-specific responsive rules */

}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5em;
    }
    
    #hero {
        min-height: 150px;
        padding: 1em;
    }
    
    #hero h2 {
        font-size: 1.3em;
    }
    
    #hero button {
        padding: 0.5em 1em;
        font-size: 0.9em;
        min-width: 100px;
    }
    
    #featured-myths h3,
    #early-civilisations h3 {
        font-size: 1.3em;
        text-align: center;
    }


    footer {
        padding: 1em;
    }
    
    footer p {
        font-size: 0.9em;
    }
}