/* Tablet styles */
@media (max-width: 1024px) {
    .why-we-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .why-we-container .why-we-item {
        padding: 10px 0px 10px 20px !important;
    }

    .with-us-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .advantage-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-container .advantage-item:nth-child(2n) {
        border-right: none;
    }

    .advantage-container .advantage-item:nth-child(n + 1) {
        border-bottom: 2px solid var(--primary-color);
    }

    .advantage-container .advantage-item:not(:nth-last-child(n + 3)) {
        border-bottom: none !important;
    }

    .advantage-container .advantage-item:nth-child(odd) {
        padding-left: 0px !important;
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
    }

    .first-section-slogan {
        font-size: 36px;
    }

    .ez-button {
        padding: 12px 36px !important;
    }

    .section-header {
        font-size: 28px;
    }

    section {
        padding: 40px 20px;
    }

}

/* Mobile styles */
@media (max-width: 780px) {
    section:nth-child(1) {
        padding-top: 20px !important;
        gap: 10px !important;
        min-height: auto !important;
    }

    .first-section-slogan-content {
        gap: 15px !important;
    }

    .why-we-container {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
        border: none !important;
    }

    .with-us-container {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 15px;
    }

    .grid-container {
        gap: 20px;
    }

    .grid-item {
        padding: 20px !important;
    }

    .advantage-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .advantage-container .advantage-item:nth-child(n + 1) {
        padding-left: 0px !important;
    }

    .advantage-container .advantage-item:not(:last-child) {
        border-bottom: 2px solid var(--primary-color) !important;
        border-right: none !important;
    }

    .advantage-container .advantage-item:last-child {
        border-bottom: none !important;
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .first-section-slogan {
        font-size: 32px;
        text-align: center;
    }

    .first-section-slogan-content {
        padding: 0 15px;
    }

    .first-section-slogan-sub {
        font-size: 16px;
        padding: 0 15px;
    }

    /* Butonlar yan yana kalacak */
    .flex.flex-row.gap-3 {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: nowrap !important;
    }

    .ez-button {
        font-size: 15px !important;
        padding: 12px 24px !important;
        white-space: nowrap;
    }

    .ez-footer-container {
        grid-template-columns: 1fr;
    }

    .footer-item {
        text-align: center;
    }

    .footer-links-inline {
        justify-content: center;
    }

}

/* More Small Phones */
@media (max-width: 550px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .first-section-slogan {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }

    .first-section-slogan-sub {
        font-size: 16px !important;
        padding: 0 15px;
    }

    /* Butonlar yan yana */
    .flex.flex-row.gap-3 {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: nowrap !important;
    }

    .ez-button {
        font-size: 14px !important;
        padding: 12px 20px !important;
        white-space: nowrap;
    }

    section {
        padding: 30px 15px !important;
    }

    .section-header {
        font-size: 24px !important;
    }

    .ez-footer-container {
        grid-template-columns: 1fr !important;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form .ez-input {
        min-width: 100% !important;
        width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }
}