
/* GENERAL WEBSITE */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: white;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



}

* {
    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 {
    flex: 1;
    padding: 30px;
}



/* ===================================
   HOMEPAGE LAYOUT
   =================================== */

.homepage {
    max-width: 1350px;
    width: 95%;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
}

/* Main title */
.homepage h1 {
    font-size: 28px;
    color: #990033;
    margin: 10px 0 15px;
}

/* Introduction */
.homepage > p {
    font-size: 15px;
    color: #444444;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ===================================
   SIX CATEGORY PICTURES
   =================================== */

.homepage-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 25px;
    row-gap: 35px;
    margin-top: 25px;
}

/* Category container */
.category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333333;
    min-width: 0;
}

/* Category images */
.category img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 2px solid #990033;
    border-radius: 5px;
    transition: border-color 0.2s ease;
}

/* Heading underneath each image */
.category h2 {
    font-size: 19px;
    color: #990033;
    margin: 12px 0 6px;
    line-height: 1.3;
}

/* Description underneath */
.category p {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

/* Image hover */
.category:hover img {
    border-color: #fcf119;
}

.category:hover h2 {
    text-decoration: underline;
}

/* ===================================
   TABLET LAYOUT
   =================================== */

@media (max-width: 800px) {
    .homepage-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

    .homepage h1 {
        font-size: 24px;
    }
}

/* ===================================
   MOBILE LAYOUT
   =================================== */

@media (max-width: 500px) {
    .homepage-categories {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .homepage {
        width: 100%;
        padding: 20px 15px;
    }
}


/* ===================================
   FOOTER
   =================================== */

footer {
    background-color: #424242;
    color: #ffffff;
    width: 100%;
    padding: 20px;
    text-align: center;
}

footer p {
    color: #ffffff;
    font-size: 13px;
    margin: 0;
}




