/* two-text-field.css */

.two-text-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Urbanist', sans-serif;
    padding: 20px;
    gap: 20px; /* Space between image and content */
    
}

.two-text-field-image img {
    max-width: 100%; /* Ensures image scales on smaller screens */
    height: auto;
    display: block;
}

.two-text-field-content {
    padding-left: 10%;
    flex: 1;
}

.two-text-field-icon-title-container {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.two-text-field-icon-title-container img {
    max-height: 72px;
    margin-right: 15px; /* Space between icon and subtitle */
    margin-top: 10px;
}

.two-text-field-bigTitle {
    font-size: 3em; /* Adapts to screen size */
    color: #333;
    margin-bottom: 50px;
    width: 80%;
}

.two-text-field-subtitle {
    font-size: 1.5em;
    color: #594D6D;
    
    margin-top: 10px;
    padding: 0;
}

.two-text-field-description {
    font-size: 1.2em;
    color: #777;
    padding-left: 90px; /* Adjust or remove based on screen size */
    width: 70%;

    margin-top: -15px
}

.two-text-field-button {
    display: flex;
    align-items: flex-end;
    justify-content:first baseline;
    margin-left: 5%;   
    width: 70%;
}

.two-text-field-button a {
    background-color: buttonColor; /* Replace buttonColor with actual color */
    color: #FFF;
    text-decoration: none;
    font-family: 'Urbanist', sans-serif;
    border-radius: 5px;
    font-size: 1em;
    width: 35%; /* Responsive width */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.two-text-field a:hover {
    background-color: #435a20;
}

/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .two-text-field {
        flex-direction: column; /* Küçük ekranlarda dikey hizala */
        align-items: center; /* Tüm içerikleri ortala */
        padding: 10px;
    }

    .two-text-field-image {
        order: -1; /* Resmi en üste yerleştir */
        width: 100%; /* Resmi tam genişlik yap */
        text-align: center; /* Resmi ortala */
        margin-bottom: 20px; /* Resim ile diğer içerikler arasında boşluk */
    }

    .two-text-field-image img {
        width: 100%; /* Resmi tam genişlik yap */
        height: auto; /* Yüksekliği orantılı olarak ayarla */
    }

    .two-text-field-content {
        width: 100%; /* İçerikleri tam genişlikte yap */
        text-align: center; /* Tüm içerikleri ortala */
        padding: 0; /* Padding'i sıfırla */
    }

    .two-text-field-bigTitle {
        font-size: 1.6em; /* Küçük ekranlarda yazı boyutunu küçült */
        margin-bottom: 20px; /* Altındaki içerikle arayı aç */
        text-align: center;
        width: 100%;
        margin-top: 0px;
    }

    .two-text-field-icon-title-container {
        flex-direction: column; /* İkon ve başlığı alt alta yerleştir */
        align-items: center; /* İkon ve başlığı ortala */
        margin-bottom: 10px; /* Altındaki içerikle arayı aç */
    }

    .two-text-field-icon-title-container img {
        margin-bottom: 10px; /* İkon ile başlık arasında boşluk */
    }

    .two-text-field-subtitle {
        margin: 0 0 10px 0; /* Altındaki içerikle arayı aç */
        width: 100%; /* Tam genişlikte */
    }

    .two-text-field-description {
        font-size: 1em; /* Yazı boyutunu küçült */
        margin: 0; /* Marjinleri sıfırla */
        padding-left: 0; /* Padding'i sıfırla */
        width: 100%; /* Tam genişlikte */
    }

    .two-text-field-button {
        width: 100%;
        display: flex;
        justify-content: center; /* Butonu ortala */
        margin-top: 20px; /* Üstteki içerikle arayı aç */
        margin-right: 30%!important;
    }

    .two-text-field-button a {
        background-color: buttonColor; /* Buton arka plan rengini ayarla */
        color: #FFF; /* Buton metni rengini ayarla */
        text-decoration: none;
        font-family: 'Urbanist', sans-serif;
        border-radius: 5px;
        font-size: 1em;
        width: 60%; /* Buton genişliğini ayarla */
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: left-st; /* Buton metnini ortala */
        text-align: center;
        margin-right: 35%!important;
    }

    .two-text-field-button a:hover {
        background-color: #435a20; /* Hover durumunda buton arka plan rengini değiştir */
    }
}
