.hero {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1)), url('/images/MEDIUM/0.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
    width: 100%;
    height: 500px;
}

.hero-content {
    background: rgba(0, 0, 0, 0.5); 
    padding: 50px;
}

.hero-content2 {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px;
    text-align: right;
    margin-left: auto; /* Pushes the content to the right */
}

.cta-button {
    background: #6e8ca4;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.catalog {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    justify-content: center;
    max-width: 100%;
    margin-top: 50px;
}

.house {
    flex: 1 1 calc(25% - 20px);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0);
    text-align: center;
    max-width: 350px;
    height: 400px;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}


.house img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.house:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.details {
    display: none;
    color: #6e8ca4;
    font-weight: bold;
    margin-top: 10px;
}

.house:hover .details {
    display: block;
}

h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 36px;
}

.contacts a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease-in-out;
}

.contacts a:hover {
color: #ff6600;
}

.contacts i {
    font-size: 20px;
}

.title-fr {
    background: #6f8ba3;
    padding-bottom: 10px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 150px;
    width: 100%;
}
.title-fr h1 {
    color: #162335;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.title-fr h2 {
    color: #162335;
    margin-top: 84px;
}

.title-unh {
    color: #000000;
    background-color: #6f8ba3;
    text-align: center;
    padding: 10px;
}

main {
    flex: 1;
}


@media (max-width: 1100px) {
    .hero {
        flex-direction:column;
        align-items: center;
    }

    .hero-content, .hero-content2 {
        margin: 0px;
    }

    .title-fr h1 {
        font-size: 28px;
    }

    .title-fr h2 {
        font-size: 20px;
    }

    .catalog {
        flex-direction: row;
        align-items: center;
        justify-items: center;
    }

    .house {
        flex: 1 1 calc(25% - 20px);
        background: white;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0);
        text-align: center;
        max-width: 350px;
        height: 400px;
        transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
        position: relative;
        cursor: pointer;
        box-sizing: border-box;
    }

    .house img {
        width: 100%;
        height: 50%;
        object-fit: fill;
        border-radius: 5px;
    }
}

@media (min-width: 1101px) {
    .title-fr {
        margin-top: 104px;
    }

    .title-unh {
        margin-bottom: 10px;
    }
}

#popup-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup-field {
    margin-bottom: 10px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup-button {
    padding: 10px 20px;
    background-color: #6e8ca4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.popup-button:hover {
    background-color: #5a7a8c;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.contact-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1 1 100%;
    max-width: 1000px;
    margin-top: 20px;
  }
  .contact-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
  }
  .contact-form button {
    background: #6e8ca4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
  }
  .contact-form button:hover {
    background: #5a768c;
  } 