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

:root{
    --primary-color:  #52a66e;
    --secondary-color: #ffffff;    
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #333;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 1.5rem;
}

.search-bar {
    flex-grow: 1;
    position: relative;
    display: none;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db; 
    border-radius: 0.5rem; 
    font-size: 1rem;
}

.search-bar button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #1d4ed8; 
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-results.show {
    display: block;
}

.search-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: #f9fafb;
    color: var(--primary-color);
}

.search-item small {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.no-results {
    padding: 1rem;
    color: #6b7280;
    text-align: center;
    font-size: 0.9rem;
}

.social-media-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4b5563;
    font-size: 1rem;
    font-weight: 550;
    transition: color 0.2s;
}

.icon-link:hover {
    color: var(--primary-color);
}

.header-nav {
    background-color: var(--primary-color);
    color: #ffffff;
}

.header-nav .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

.header-links {
    list-style: none;
    display: flex;
    width: 100%;
}

.header-links li {
    flex: 1;
    text-align: center;
}

.header-links li a {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 750;
    transition: background-color 0.2s;
}

.header-links li a:hover {
    background-color: #1aa885;
}

.dropdown-parent {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 320px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0.75rem;
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165,0.84,0.44,1);
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.dropdown-parent:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-menu li {
    display: block;
    width: 100%;
    margin-bottom: 2px;
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1.2rem;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-align: center;
}

.dropdown-menu li a:hover {
    background-color: #f0fdf4;
    color: var(--primary-color);
}

main {
    flex: 1;
    padding-top: 1.5rem;
    padding-bottom: 0rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 0.5rem;
    height: 1000px;
    margin-bottom: 1rem;
}

.hero-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*object-position: top;*/
    transition: transform 0.3s;
}

.hero-item:hover img {
    transform: scale(1.05);
}

.media-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.large-item {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
}

.hero-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-box {
    background-color: var(--primary-color);
    color: white;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 0.5rem;
    text-transform: uppercase;
    cursor: pointer;
}

.hero-box:hover {
    background-color: #1aa885;
}

footer {
    background-color: #111827;
    color: #9ca3af;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 2rem;
}

.logo-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    margin-bottom: 0;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.contact-col {
    text-align: right;
}

.contact-col .footer-links li {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    list-style: none;
    margin-top: 1rem;
}

.footer-links a {
    text-decoration: none;
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom strong {
    color: #ffffff;
}


/* This is a "media query" to show the search bar on large screens */
@media (min-width: 768px) {
    .search-bar {
        display: block;
    }
}

/* This is a "media query" for responsive on mobile screens */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        padding: 1rem 0;
    }

    .header-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
    }

    .header-links.active {
        display: flex;
    }

    .header-links li {
        text-align: center;
        width: 100%;
    }

    .header-links li a {
        padding: 1rem 0;
    }

    .header-top {
        flex-direction: column;
        gap: 0rem;
        text-align: center;
    }

    .icon-link span {
        display: none;
    }

    .icon-link i {
        font-size: 2rem;
    }

    .social-media-icons {
        width: 100%;
        justify-content: center;
        gap: 3rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: rgba(0,0,0,0.05);
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown-parent:hover .dropdown-menu {
        display: block;
        transform: none;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu li a {
        color: #ffffff;
        padding: 0.8rem;
    }
    
    .dropdown-menu li a:hover {
        background-color: rgba(0,0,0,0.1);
        color: #ffffff;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .large-item {
        height: 300px;
    }

    .small-item {
        height: 100px;
    }

    .hero-row {
        grid-template-columns: 1fr 1fr;
    }

    .hero-item img {
        object-position: top;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .logo-title-group {
        justify-content: center;
    }

    .contact-col {
        text-align: center;
    }

    .contact-col .footer-links li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}