body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}
/* --- Hamburger Menu Styling --- */
.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
    margin-left: auto;
    z-index: 1000;
}

/* --- Mobile Navigation Styling --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        width: 100%;
        border-top: 1px solid #e0e0e0;
    }

    nav button {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        font-size: 16px;
    }

    .line {
        display: none; /* Hide separator line on small screens */
    }
}

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

/* Navigation Bar */
nav {
    background-color: white;
    color: black;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

nav ul {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding-top: 5px;
    /* margin-left: 20px; */
}

nav ul li {
    list-style: none;
}

.logo{
    font-size: 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 8px;
    cursor: pointer;
}

/* Nav Button Styles */
nav button {
    color: black;
    background-color: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    justify-content: center;
    align-items: center;
}

nav button:hover {
    color: black;
    transform: translateY(-2px);
}

/* Line Separator */
.line {
    background-color: black;
    width: 1px;
    height: 30px;
    margin: 0 0px;
}

/* Main Section */
.main {
    background-image: url('/images/main.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 570px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    color: white;
    padding: 0 20px;
}

h1 {
    font-size: 50px;
    margin-bottom: 15px;
}

h4 {
    margin-bottom: 5px;
    font-weight: 500;
}

input {
    width: 80%;
    max-width: 500px;
    height: 40px;
    outline: none;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 20px;
}

/* News Section */
.news {
    max-width: 100%;
    margin: auto;
    padding: 25px;
}

.reselts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Image Row */
.row {
    flex-basis: calc(33.333% - 40px);
    min-width: 280px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    text-align: center;
}

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

.row:hover {
    transform: scale(1.03);
}

/* Download Button */
.download-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #555;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
    }

    .main {
        height: auto;
        padding: 40px 20px;
    }

    h1 {
        font-size: 36px;
    }

    h4 {
        font-size: 16px;
    }

    .reselts {
        gap: 10px;
    }

    .row {
        flex-basis: calc(50% - 20px);
        min-width: 200px;
    }

    .row img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 5px;
    }

    .main {
        padding: 20px 10px;
    }

    h1 {
        font-size: 28px;
    }

    h4 {
        font-size: 14px;
    }

    input {
        width: 100%;
    }

    .row {
        flex-basis: 100%;
        min-width: 180px;
    }

    .row img {
        height: 150px;
    }
}
