:root {
    /* Define color variables */
    --primary-color: #7b0505;
    --secondary-color: #020202;
    --background-color: #f4f4f4;
    --text-color: #333;
    --button-color: #7b0505;
    --button-text-color: #fff;
    --header-background: #f4f4f4;
    --header-text-color: #020202;
}

.open-sans-font {
  /* Font settings for Open Sans */
  font-family: "Open Sans", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

* {
    /* Reset margin and padding, set box-sizing and scroll behavior */
    /* margin: 0; */
    /* padding: 0; */
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: .2s linear;
}

body {
    /* Body styling */
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2 {
    /* Heading color */
    /* color: var(--primary-color); */
}

a {
    /* Remove text decoration from links */
    text-decoration: none;
}

header {
    /* Header styling */
    background: var(--header-background);
    color: var(--header-text-color);
    position: fixed;
    width: 100%;
    height: 80px;
    box-shadow: 30px 10px 20px 0px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

header .logo img {
    /* Logo image styling */
    height: 80px;
    position: fixed;
}

header .close, header .menu {
    /* Hide close and menu buttons by default */
    display: none;
}

nav ul {
    /* Navigation list styling */
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    /* Navigation list item styling */
    margin: 0 1rem;
    padding-top: 20px;
    position: relative;
}

nav ul li a {
    /* Navigation link styling */
    color: var(--header-text-color);
    text-decoration: none;
}

nav ul li > a i.fa-chevron-down {
    margin-left: 8px;
    font-size: 12px;
}

nav ul li a::after {
    /* Underline effect for navigation links */
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.5s;
}

nav ul li a:hover::after {
    /* Hover effect for navigation links */
    width: 100%;
}

.btn {
    /* Button styling */
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--button-color);
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  list-style: none;
  padding: 2px 0;
  margin: 0;
  width: 450px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu li a:hover {
  background: #f2f2f2;
}

/* Desktop dropdown behavior for current nav markup */
@media only screen and (min-width: 1051px) {
    nav ul li > ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 320px;
        padding: 10px 0;
        margin-top: 14px;
        background-color: #ffffff;
        border: 1px solid #e6e6e6;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    nav ul li > ul li {
        margin: 0;
        padding: 0;
    }

    nav ul li > ul li a {
        display: block;
        padding: 10px 16px;
        color: #222;
        white-space: nowrap;
    }

    nav ul li > ul li a:hover {
        background-color: #f5f5f5;
    }
}


@media only screen and (max-width: 1050px) {
    /* Responsive styling for screens smaller than 1050px */
    header nav {
        margin: 0;
        padding: 0;
        position: fixed;
        width: 220px;
        background-color: #333;
        min-height: 100vh;
        right: -220px;
        z-index: 2;
        transition: 1s;
        text-align: left;
    }
    header nav ul {
        flex-direction: column;
    }
    nav ul li > ul {
        position: static;
        min-width: 100%;
        margin-top: 8px;
        background-color: rgba(255, 255, 255, 0.12);
        border-left: 2px solid rgba(255, 255, 255, 0.35);
        box-shadow: none;
    }
    nav ul li > ul li a {
        display: block;
        padding: 8px 12px;
        color: #fff;
        font-size: 14px;
    }
    nav ul li {
        margin: 0 1rem;
        padding-top: 20px;
        position: relative;
    }
    nav ul li a {
        color: #fff;
    }
    header .close, header .menu {
        display: list-item;
        list-style: none;
        font-size: 30px;
    }
    header .close {
        margin: 10px;
        color: #fff;
        top: 10px;
    }
    header .menu {
        margin-right: 20px;
        margin-top: 10px;
        color: #333;
        position: absolute;
        top: 10px;
        right: 40px;
    }
}

@media only screen and (max-width: 600px) {
    /* Responsive styling for screens smaller than 600px */
    header .menu {
        margin-right: 10px;
        right: 20px;
    }
}
