
/* GENERAL WEBSITE */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: white;
}

* {
    box-sizing: border-box;
}

/* TOP MENU */

.main-nav {
    background: #990033;
}

.main-nav > ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: #fcf119;
    color: #990033;
}

/* SECOND MENU */

.second-nav {
    background: #fcf119;
    position: relative;
    z-index: 100;
}

.second-nav > ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.second-nav li {
    position: relative;
    list-style: none;
}

.second-nav a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #990033;
    font-size: 14px;
    font-weight: bold;
}

.second-nav a:hover,
.second-nav li:focus-within > a {
    background: #990033;
    color: #fcf119;
}

/* DROPDOWN MENUS */

.second-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    margin: 0;
    padding: 0;
    background: #fcf119;
    border: 1px solid #990033;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.second-nav .submenu li {
    display: block;
}

.second-nav .submenu a {
    white-space: nowrap;
}

/* Open dropdown on hover or keyboard focus */

.second-nav .dropdown:hover > .submenu,
.second-nav .dropdown:focus-within > .submenu {
    display: block;
}

/* Hide inactive section menus */

.second-nav [hidden] {
    display: none !important;
}

/* MAIN PAGE CONTENT */

main {
    padding: 30px;
}


/* HOMEPAGE */

.homepage {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

.homepage h1 {
    font-size: 32px;
    color: #990033;
    margin-bottom: 15px;
}

.homepage p {
    font-size: 16px;
    color: #444444;
    line-height: 1.6;
}

/* CATEGORY PICTURES - FOR LATER */

.homepage-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 35px;
}

/* FOOTER */

footer {
    background: #424242;
    color: white;
    padding: 20px;
    text-align: center;
}

footer p {
    color: white;
    margin: 0;
}

/* SMALLER SCREENS */

@media (max-width: 800px) {
    .homepage-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .homepage-categories {
        grid-template-columns: 1fr;
    }
}

/* HOMEPAGE CATEGORY GRID */

.homepage-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 35px;
}

/* Each category */
.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333333;
}

/* Images - same size */
.category img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 2px solid #990033;
    border-radius: 5px;
}

/* Heading underneath */
.category h2 {
    font-size: 20px;
    color: #990033;
    margin: 12px 0 5px;
}

/* Description underneath */
.category p {
    font-size: 14px;
    color: #555555;
    margin: 0;
    line-height: 1.5;
}

/* Hover effect */
.category:hover img {
    border-color: #fcf119;
}

.category:hover h2 {
    text-decoration: underline;
}

/* Tablet */
@media (max-width: 800px) {
    .homepage-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 500px) {
    .homepage-categories {
        grid-template-columns: 1fr;
    }
}


