/**
 * Projekt Widget Styles
 */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

.projekt-widget {
    position: relative;
    width: 100%;
    background-color: #e8e6df;
}

.projekt-widget__inner {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* ==========================================================================
   HEADING
   ========================================================================== */

.projekt-widget__heading {
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    color: #6b9b37;
    line-height: 1.2;
    margin: 0 0 30px 0;
}

/* ==========================================================================
   IMAGE CONTAINER
   ========================================================================== */

.projekt-widget__image-container {
    position: relative;
}

.projekt-widget__image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   TEXTBOX
   ========================================================================== */

.projekt-widget__textbox {
    position: absolute;
    width: 45%;
    background-color: #ffffff;
    padding: 40px;
    box-sizing: border-box;
    z-index: 2;
}

/* Positions */
.projekt-widget__textbox--top-left {
    top: -60px;
    left: 0;
}

.projekt-widget__textbox--top-right {
    top: -60px;
    right: 0;
}

.projekt-widget__textbox--bottom-left {
    bottom: -60px;
    left: 0;
}

.projekt-widget__textbox--bottom-right {
    bottom: -60px;
    right: 0;
}

.projekt-widget__textbox-content {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin: 0;
}

/* ==========================================================================
   BUTTON
   ========================================================================== */

.projekt-widget__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    background-color: #6b9b37;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-sizing: border-box;
}

.projekt-widget__button:hover {
    background-color: #5a8830;
    color: #ffffff;
}

.projekt-widget__button-text {
    display: inline-block;
}

.projekt-widget__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.projekt-widget__button-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.projekt-widget__button--icon-after:hover .projekt-widget__button-icon {
    transform: translateX(5px);
}

.projekt-widget__button--icon-before:hover .projekt-widget__button-icon {
    transform: translateX(-5px);
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1024px) {
    .projekt-widget__inner {
        padding: 50px 30px;
    }
    
    .projekt-widget__heading {
        font-size: 38px;
    }
    
    .projekt-widget__image {
        height: 400px;
    }
    
    .projekt-widget__textbox {
        width: 55%;
        padding: 30px;
    }
    
    .projekt-widget__textbox-content {
        font-size: 16px;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    .projekt-widget__inner {
        padding: 40px 20px 80px 20px;
    }
    
    .projekt-widget__heading {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .projekt-widget__image {
        height: 250px;
    }
    
    .projekt-widget__textbox {
        position: relative;
        width: 100%;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: -30px;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
    
    .projekt-widget__textbox-content {
        font-size: 15px;
    }
    
    .projekt-widget__button {
        width: 100%;
        justify-content: center;
    }
}
