/*Whole page on screen*/
body { 
    color:rgb(115, 115, 115);
    margin: 0;
    padding: 0;
    background-color: lightgray;

}

/*Heading one*/
h1 {
    font-family:garamond;
}

/*paragraphs*/
p {
    font-family:garamond;
}

/* Designing navbar and setup */
.navbar {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0 10px;                 
    background-color: rgb(4, 65, 4); 
    width: 100%;
    box-sizing: border-box; 
    justify-content: space-around; 
    align-items: stretch;
}

/* 1. ADD THIS NEW RULE: Force the list items to fill the height too */
.navbar li {
    display: flex;
    align-items: stretch;
}

/* Navbar Links */
.navbar a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(186, 184, 184);
    font-family: Garamond, serif;
    padding: 10px 20px; 
    width: 100%; /* Ensures the link fills the full width of the li */
}

/* Navbar Links Hover */
.navbar a:hover {
    color: #98DB84;           
    background-color: #D5FFC8; 
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Tablet and smaller */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
}

/* Phone */
@media (max-width: 480px) {
    .navbar a {
        font-size: 14px;
    }
}

/*splits page into section*/
.page-container {
    display: flex;
    min-height: 100vh;
}

/*side section containing contacts info*/
.sidebar {
    width: 250px;
    background-color: #79A87A;
    padding: 20px;
    text-align: center;
    font-family: garamond;
}

/*main page content (faqs, services, etc.)*/
.main-content {
    flex: 1;
    padding: 20px;
    font-family: garamond;
}


/*Hero Section for homepage*/
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: rgb(5, 2, 2);
    z-index: 2;
    text-shadow: 2px 2px 5px black;
}

.company-name h1 {
    font-size: 60px;
    margin: 0;
}

.company-name p {
    font-size: 24px;
}

.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.company-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    text-shadow: 2px 2px 5px black;
}

.company-name h1 {
    font-size: 60px;
    margin: 0;
}

.company-name p {
    font-size: 24px;
}