* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* ----------------------------------------------- Navbar start ------------------------------------------------------------------- */
/* Existing Navbar Styles */
.navbar {
    background: #fff;
    height: 6.25rem; /* 100px */
    display: flex;
    font-size: 2rem;
    z-index: 1000; /* Ensure navbar is above submenu */
    position: fixed;
    top: 0;
    width: 100%; /* Full width */
}

.navbar_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6.25rem;
    width: 100%;
    padding: 0 1rem; /* Padding for smaller screens */
}

#pms_logo {
    height: 3rem;
    width: auto;
    margin: 0;
    margin-left: 112%;
    margin-top: 6%;
}

.navbar_menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin-right: 6%;
    margin-bottom: 1%;
}

.navbar_item {
    display: flex;
    align-items: center;
    position: relative; /* For absolute positioning of submenu */
}

.navbar_button {
    border: none;
    background-color: #fff;
    margin: 0 1.25rem;
    font-size: 1rem;
    color: #00A651;
    cursor: pointer;
    padding: 0;
    position: relative;
    letter-spacing: 1px;
    margin-top: 3rem;
    display: flex;
    align-items: center;
}

/* Underline Effect on Hover for Navbar Button */
.navbar_item .navbar_button::after {
    content: "";
    background-color: #00A651;
    height: 3px;
    position: absolute;
    width: 0; 
    left: 0;
    bottom: -0.35rem;
    opacity: 0;
    transition: all 0.6s;
    pointer-events: none;
}

.services-toggle:hover .navbar_button::after {
    opacity: 1;
    width: 100%; 
}

/* Navbar Links Styling */
.navbar_menu .navbar_links {
    color: #00A651;
    display: flex;
    position: relative;
    text-decoration: none;
    margin: 0 1.25rem;
    font-size: 1rem;
    margin-top: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    align-items: center;
}

.navbar_menu .navbar_links::after {
    content: "";
    background-color: #00A651;
    height: 3px;
    width: 0%;
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    opacity: 0;
    transition: all 0.6s;
    pointer-events: none;
}

.navbar_menu .navbar_links:hover::after {
    opacity: 1;
    width: 100%;
}

/* Language Switcher Button Styling */
.navbar_lang {
    border: none;
    background-color: #fff;
    color: #9e9b9b;
    display: flex;
    position: relative;
    text-decoration: none;
    margin: 0 1.25rem;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-top: 1rem;
    cursor: pointer;
}

/* Sticky Navbar Styling */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    height: 6.25rem;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure navbar is above submenu */
}

.content-wrapper {
    padding-top: 6.25rem; 
}

/* Hover-Based Submenu Display */
.services-toggle {
    position: relative;
}

/* Hover-Maintaining Div Styling */
.hover-maintain {
    height: 2rem; /* Increased height from 1rem to 2rem */
    width: 100%; /* Span the full width */
    /* No box-shadow or background */
}

/* Submenu Styling */
.services-slide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px); /* Slight upward movement for animation */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 105.5%;
    left: -2.7rem;
    background: #fff;
    border: none;
    z-index: 999; /* Below navbar */
    width: 17rem; /* 1rem margin on both sides */
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    list-style-type: none;
}

.services-toggle.active .services-slide {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Move to original position */
}

/* Submenu Links Styling */
.serv-nav-item {
    display: block;
    text-decoration: none;
    color: #00A651;
    padding: 1rem 0.75rem;
    font-size: 1rem;
    text-align: left;
    padding-left: 4rem;
    letter-spacing: 1px;
}

.services-slide .serv-nav-item {
    justify-content: center;
}

.serv-nav-item:hover {
    color: #9e9b9b;
}

.en-slide.show-lang-slide {
    display: block;
}

.toggle-slide {
    display: none;
    position: absolute;
    top: 6.2rem;
    width: 100%;
    background-color: #fff;
    z-index: 999;
    text-align: center;
}

#fiala {
    margin-top: 1%;
}

/* Show the submenu when active */
.services-toggle.active .services-slide {
    display: block;
}

/* Disable transitions when no-transition class is present */
.services-toggle.no-transition .services-slide {
    transition: none;
}

.language-switcher-container {
    position: relative;
    display: inline-block;
}

.language-toggle {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
}

#language-toggle-button {
    font-size: 1rem;
    margin-top: 3rem;
    border: none;
    color: #9e9b9b;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.1);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-dropdown li {
    width: 100%;
}

.language-dropdown li button {
    width: 100%;
    padding: 1.2rem 0.75rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #9e9b9b;
    font-size: 1rem;
}

.language-dropdown li button:hover {
    color: #00A651;
}

#anchor_nav {
    color: #00A651;
    margin-left: -1rem !important;
    margin-right: 0.9rem;
    padding: 0;
    font-size: 1rem;
    margin-top: 1rem;
}
    


/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) { 

    .navbar_container {
        display: flex;
        justify-content: space-between;
        margin-left: 0;
    }

    .navbar_menu,
    .services-slide,
    .en-slide {
        display: none;
    }

    .navbar.sticky {
        position: fixed;
        top: 0;
        width: 100%;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    #mobile_dash_menu {
        margin-right: 3rem;
        cursor: pointer;
        display: block;
    }

    #mobile_dash_menu .bar {
        display: block;
        width: 1.9rem;
        height: 3px;
        background-color: #00A651;
        margin: 0.4rem 0;
    } 

    #pms_logo {
        height: 3rem;
        width: auto;
        margin: 0; /* Remove margin to center it better */
        margin-left: 44%;
        margin-top: 7%;
    }

    /* Styling the toggle-slide */
    .toggle-slide {
        display: none;
        position: absolute;
        top: 6.2rem;
        width: 100%;
        background-color: #fff;
        z-index: 999;
        text-align: center;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
        left: 0;
        right: 0;
    }

    .toggle-slide.show-toggle-slide {
        display: block;
    }

    /* Show the toggle sublists */
    .toggle-slide .show-sublist {
        display: block !important;
    }

    /* Ensure the navbar links are styled correctly for mobile */
    .toggle-slide a {
        display: block;
        padding: 3vh;
        text-decoration: none;
        color: #00A651;
        margin: 0;
        font-size: 2.6vw;
    }

    .navbar_links::after {
        display: none;
    }

    /* Styling the sublists */
    .sub-services {
        padding-left: 0;
        display: none; /* Hidden by default */
        transition: max-height 0.5s ease, opacity 0.5s ease;
    }

    .sub-services a {
        display: block;
        text-decoration: none;
        color: #fff !important;
        text-align: center;
        margin-right: 0;
        background-color: #00A651 !important;
        padding: 3vh;
        width: 100%;
        margin-left: 0 !important;
        font-size: 2.6vw;
    }

    .toggle-slide #language-toggle-button {
        padding: 0;
        margin: 0;
    }

    #language-toggle-button .navbar_lang {
        display: block;        /* Make it cover the full width */
        width: 100%;           /* Ensure the button takes up the full width */
        height: 8vh;
        padding: 0;
        text-align: center;      /* Align the text to the left */
        cursor: pointer;       /* Ensure the pointer cursor is shown */
        background-color: transparent; /* No background */
        border: none;          /* Remove button border */
        color: #9e9b9b;        /* Button text color */
        margin: 0;
        font-size: 2.6vw;
    }
    
    #language-toggle-button .navbar_lang:hover {
        background-color: #f0f0f0; /* Optional: Background change on hover */
        color: #007f45;            /* Optional: Text color change on hover */
    }

    .services-container {
        display: flex;
        justify-content: center;
        gap: 1.5rem; /* Adjust as needed */
        align-items: first baseline;
        margin-right: 1rem;
    }

    #toggle-services {
        padding-right: 0;
    }

    #toggle-services,
    #anchor_nav {
        display: inline-block;
    }

    #anchor_nav {
        font-size: 2.6vw;
    }
    
    #language-toggle-button-toggle {
        width: 100vw;
        border: none;
        padding: 3vh;
        font-size: 2.4vw;
        color: #9e9b9b;
        align-items: center;
        margin-left: 1%;
    }

    #language-dropdown-toggle {
        width: 100vw;
    }

    .language-btn {
        font-size: 2.4vw !important; /* Ensure the font-size is applied to language buttons */
        color: #9e9b9b;
        background-color: transparent;
        border: none;
        width: 100%;
        text-align: center !important;
        padding: 3vh !important;
    }
}

/* Large Mobile Phones (480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {

    .navbar_menu,
    .services-slide,
    .en-slide {
        display: none;
    }

    .navbar_container {
        display: flex;
        justify-content: space-between; /* Space out the logo and the menu icon */
        align-items: center; /* Vertically center the items */
        height: 6.25rem; /* Ensure the height is consistent */
        padding: 0 1rem; /* Add padding to the sides */
    }

    #mobile_dash_menu {
        cursor: pointer;
        display: block;
        margin-right: 5%;
    }

    #mobile_dash_menu .bar {
        display: block;
        width: 1.9rem;
        height: 3px;
        background-color: #00A651;
        margin: 0.4rem 0;
    } 

    .toggle-slide {
        display: none; /* Initially hidden */
        position: absolute;
        top: 6.2rem;
        width: 100%;
        background-color: #fff;
        z-index: 999;
        text-align: center;
        left: 0;
        right: 0;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    }
    
    .toggle-slide.show-toggle-slide {
        display: block; /* This will make it visible */
        
    }

    .sub-services a,
    .sub-lang a {
        display: block;
        text-decoration: none;
        color: #fff !important;
        text-align: center;
        margin-right: 1.5rem;
        background-color: #00A651 !important;
        padding: 3.2vh;
        font-size: 3.6vw;
    }

    .toggle-slide a {
        display: block;
        padding: 3.2vh;
        text-decoration: none;
        color: #00A651;
        margin: 0;
        font-size: 3.6vw;
    }

    .navbar_links::after {
        display: none;
    }

    #pms_logo {
        margin-left: 11%;
        margin-top: 7%;
    }

    .toggle-slide #language-toggle-button {
        padding: 0;
        margin: 0;
    }
    
    .services-container {
        display: flex;
        justify-content: center;
        gap: 1.5rem; /* Adjust as needed */
        align-items: first baseline;
        margin-right: 1rem;
    }

    #toggle-services {
        padding-right: 0;
    }

    #toggle-services,
    #anchor_nav {
        display: inline-block;
    }

    #anchor_nav {
        font-size: 3.6vw;
    }
    
    #language-toggle-button-toggle {
        width: 100vw;
        border: none;
        padding: 3vh;
        font-size: 3.6vw;
        color: #9e9b9b;
        align-items: center;
        margin-left: 1%;
    }

    #language-dropdown-toggle {
        width: 100vw;
    }

    .language-btn {
        font-size: 3.6vw !important; /* Ensure the font-size is applied to language buttons */
        color: #9e9b9b;
        background-color: transparent;
        border: none;
        width: 100%;
        text-align: center !important;
        padding: 3vh !important;
    }
}


/* For phones */
@media (max-width: 479px) {

    .navbar_menu,
    .services-slide,
    .en-slide {
        display: none;
    }

    .navbar_container {
        display: flex;
        justify-content: space-between; /* Space out the logo and the menu icon */
        align-items: center; /* Vertically center the items */
        height: 6.25rem; /* Ensure the height is consistent */
        padding: 0 1rem; /* Add padding to the sides */
    }

    #mobile_dash_menu {
        cursor: pointer;
        display: block;
        margin-right: 5%;
    }

    #mobile_dash_menu .bar {
        display: block;
        width: 1.9rem;
        height: 3px;
        background-color: #00A651;
        margin: 0.4rem 0;
    } 

    .toggle-slide {
        display: none; /* Initially hidden */
        position: absolute;
        top: 6.2rem;
        width: 100%;
        background-color: #fff;
        z-index: 999;
        text-align: center;
        left: 0;
        right: 0;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    }
    
    .toggle-slide.show-toggle-slide {
        display: block; /* This will make it visible */
        
    }

    .sub-services a,
    .sub-lang a {
        display: block;
        text-decoration: none;
        color: #fff !important;
        text-align: center;
        margin-right: 1.5rem;
        background-color: #00A651 !important;
        padding: 3.2vh;
        font-size: 4.6vw;
    }

    .toggle-slide a {
        display: block;
        padding: 3.2vh;
        text-decoration: none;
        color: #00A651;
        margin: 0;
        font-size: 4.6vw;
    }

    .navbar_links::after {
        display: none;
    }

    #pms_logo {
        margin-left: 11%;
        margin-top: 7%;
    }

    .toggle-slide #language-toggle-button {
        padding: 0;
        margin: 0;
    }
    
    .services-container {
        display: flex;
        justify-content: center;
        gap: 1.5rem; /* Adjust as needed */
        align-items: first baseline;
        margin-right: 1rem;
    }

    #toggle-services {
        padding-right: 0;
    }

    #toggle-services,
    #anchor_nav {
        display: inline-block;
    }

    #anchor_nav {
        font-size: 4.6vw;
    }
    
    #language-toggle-button-toggle {
        width: 100vw;
        border: none;
        padding: 3vh;
        font-size: 4.6vw;
        color: #9e9b9b;
        align-items: center;
        margin-left: 1%;
    }

    #language-dropdown-toggle {
        width: 100vw;
    }

    .language-btn {
        font-size: 4.6vw !important; /* Ensure the font-size is applied to language buttons */
        color: #9e9b9b;
        background-color: transparent;
        border: none;
        width: 100%;
        text-align: center !important;
        padding: 3vh !important;
    }
}

@media (min-width: 1920px) {
    
    .navbar_button {
        border: none;
        background-color: #fff;
        margin: 0 1.25rem;
        font-size: 1.2rem;
        color: #00A651;
        cursor: pointer;
        padding: 0;
        position: relative;
        letter-spacing: 1px;
        margin-top: 3rem;
        display: flex;
        align-items: center;
    }

    /* Navbar Links Styling */
    .navbar_menu .navbar_links {
        color: #00A651;
        display: flex;
        position: relative;
        text-decoration: none;
        margin: 0 1.25rem;
        font-size: 1.2rem;
        margin-top: 1rem;
        letter-spacing: 1px;
        cursor: pointer;
        align-items: center;
    }

    #language-toggle-button {
        font-size: 1.2rem;
        margin-top: 3.2rem;
        border: none;
        color: #9e9b9b;
    }

    .language-dropdown li button {
        width: 100%;
        padding: 1.2rem 0.75rem;
        border: none;
        background: none;
        text-align: left;
        cursor: pointer;
        color: #9e9b9b;
        font-size: 1.2rem;
    }

    #anchor_nav {
        color: #00A651;
        margin-left: -1rem !important;
        margin-right: 0.9rem;
        padding: 0;
        font-size: 1.2rem;
        margin-top: 1rem;
    }

    .serv-nav-item {
        display: block;
        text-decoration: none;
        color: #00A651;
        padding: 1rem 0.75rem;
        font-size: 1.2rem;
        text-align: left;
        padding-left: 4rem;
        letter-spacing: 1px;
    }
}



/* ----------------------------------------------- Info start ------------------------------------------------------------------- */

#con {
    height: auto;
}

.content-wrapper h1 {
    margin-top: 6%;
    text-align: center;
    font-weight: 300;
    font-size: 2.5rem;
    color: #4a4a4a;
}

.content-wrapper #veta {
    margin-top: 2rem;
    text-align: center;
    max-width: 45%; /* Set the maximum width */
    margin-left: auto; /* Align left margin to auto */
    margin-right: auto; /* Align right margin to auto */
    font-size: 1.2rem;
    font-weight: 200;
    color: #4a4a4a;
}

.deleni {
    display: flex;
    justify-content: space-between;
    margin-top: 7.5%;
    background-color: #fff;
    width: 86%;
    height: auto;
    margin-left: 7%;
    box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    margin-bottom: 6%;
}

.container {
    display: flex;
}

.column {
    flex: 1;
    padding: 0 10px;
}

.item {
    margin-bottom: 10px;
}


.telefon1 {
    margin: 0 auto; /* Center the content horizontally */
    text-align: left; /* Reset text alignment */
    margin-left: 18%;
    margin-top: 28%;
}

.tel {
    width: 31%;
}

.telefon2,
.telefon3 {
    margin: 0 auto; /* Center the content horizontally */
    text-align: left; /* Reset text alignment */
    margin-left: 18%;
    margin-top: 13%;
}

.telefon1 h2,
.telefon2 h2,
.telefon3 h2 {
    color: #00A651;
    font-weight: 300;
}

.telefon1 p,
.telefon2 p,
.telefon3 p  {
    line-height: 150%;
    color: #4a4a4a;
}

/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) { 
    
    .deleni {
        margin-top: 11%;
        background-color: #fff;
        width: 86%;
        height: auto;
        margin-left: 7%;
        box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.06);
        position: relative;
        margin-bottom: 12%;
    }

    .content-wrapper h1 {
        margin-top: 10%;
        text-align: center;
        font-weight: 300;
        font-size: 2rem;
    }
    
    .content-wrapper #veta {
        margin-top: 2%;
        text-align: center;
        max-width: 67%; /* Set the maximum width */
        margin-left: auto; /* Align left margin to auto */
        margin-right: auto; /* Align right margin to auto */
        font-size: 1rem;
        font-weight: 200;
    }

    .telefon1 {
        margin-top: 43%;
    }
    
    .telefon1 h2 {
        color: #00A651;
        font-size: 1rem;
    }
    
    .telefon1 p {
        line-height: 150%;
        font-size: 0.9rem;
    }
    
    .telefon2 h2 {
        color: #00A651;
        font-size: 1rem;
    }
    
    .telefon2 p {
        line-height: 150%;
        font-size: 0.9rem;
    }

    .telefon3 h2 {
        color: #00A651;
        font-size: 1rem;
    }
    
    .telefon3 p {
        line-height: 150%;
        font-size: 0.9rem;
    }
}

/* Large Mobile Phones (480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {

    .tel {
        width: 100%;
    }

    .deleni {
        display: flex;
        flex-direction: column;
        margin-top: 7.5%;
        width: 100%;
        height: auto;
        margin-left: 0;
        box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.06);
        margin-bottom: 0;
    }

    .telefon1,
    .telefon2,
    .telefon3 {
        text-align: center;
        margin-left: 0;
    }

    .telefon1 p,
    .telefon2 p,
    .telefon3 p {
        font-size: 1.1rem;
    }

    .telefon1 h2,
    .telefon2 h2,
    .telefon3 h2 {
        margin-bottom: 2%;
    }

    .content-wrapper h1 {
        padding-top: 8%;
        font-size: 1.7rem;
    }
    
    .content-wrapper #veta {
        margin-top: 5%;
        text-align: center;
        max-width: 80%; /* Set the maximum width */
        margin-left: auto; /* Align left margin to auto */
        margin-right: auto; /* Align right margin to auto */
        font-size: 1.1rem;
        font-weight: 200;
        padding-bottom: 6%;
    }
}

/* For phones */
@media (max-width: 479px) {

    .tel {
        width: 100%;
    }

    .deleni {
        display: flex;
        flex-direction: column;
        margin-top: 7.5%;
        width: 100%;
        height: auto;
        margin-left: 0;
        box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.06);
        margin-bottom: 0;
    }

    .telefon1,
    .telefon2,
    .telefon3 {
        text-align: center;
        margin-left: 0;
    }

    .telefon1 p,
    .telefon2 p,
    .telefon3 p {
        font-size: 1.1rem;
    }

    .telefon1 h2,
    .telefon2 h2,
    .telefon3 h2 {
        margin-bottom: 2%;
    }

    .content-wrapper h1 {
        padding-top: 8%;
        font-size: 1.7rem;
    }
    
    .content-wrapper #veta {
        margin-top: 5%;
        text-align: center;
        max-width: 80%; /* Set the maximum width */
        margin-left: auto; /* Align left margin to auto */
        margin-right: auto; /* Align right margin to auto */
        font-size: 1.1rem;
        font-weight: 200;
        padding-bottom: 6%;
    }
}

@media (min-width: 1920px) {

    .content-wrapper h1 {
        margin-top: 6%;
        text-align: center;
        font-weight: 300;
        font-size: 2.8rem;
        color: #4a4a4a;
    }
    
    .content-wrapper #veta {
        margin-top: 2.2rem;
        text-align: center;
        max-width: 45%; /* Set the maximum width */
        margin-left: auto; /* Align left margin to auto */
        margin-right: auto; /* Align right margin to auto */
        font-size: 1.2rem;
        font-weight: 200;
        color: #4a4a4a;
    }

    .tel {
        width: 31%;
        font-size: 1.2rem;
    }

    .telefon1 {
        margin: 0 auto; /* Center the content horizontally */
        text-align: left; /* Reset text alignment */
        margin-left: 18%;
        margin-top: 20%;
    }
    

}

/* ----------------------------------------------- conform start ------------------------------------------------------------------- */

.conform {
    margin: 0 auto; /* Center the content horizontally */
    text-align: center; /* Center the text within the container */
    max-width: 30%; /* Adjust the maximum width as needed */
    margin-left: 7%;
    margin-bottom: 4%;
}

.conform form {
    display: inline-block; /* Ensure the form takes up only the necessary width */
    text-align: left; /* Reset text alignment for form elements */
    margin: 0 auto; /* Center the form horizontally */
}

form {
    transform: scale(0.9);
}

form .title {
    margin-bottom: 3rem; 
    margin-left: auto; 
    margin-right: auto; 
    position: relative;
    text-align: center;
}

form .title::after {
    content: "";
    position: absolute;
    bottom: 9.5rem;
    width: 26%; 
    height: 3px; 
    background-color: #00A651; 
    right: 68%;
}

form .title h2 {
    text-transform: none;
    font-size: 2.1rem;
    margin-top: 1.5rem;
    font-weight: 300;
    color: #4a4a4a;
}

form .first {
    display: flex;
    flex-direction: column;
}

form .second {
    display: flex;
    justify-content: space-between;
    
}

form .second .item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1%;
}

form .third {
    display: flex;
    flex-direction: column;
}

form .third #message {
    margin-bottom: 3%;
    height: 7rem;
    border: 1px solid #bcbcbc;
    font-size: 1rem;
    font-size: 1.2rem;
    outline: none;
    padding-top: 0.7rem;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #504f4f;
}

form .fourth {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 52vw;
}

#submitBtn{
    position: relative;
    background-color: #00A651;
    color: #fff;
    border: none;
    padding: 1.3rem 1.7rem;
    margin-top: 3%;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
    cursor: pointer;
    margin-left: 10%;
    overflow: hidden;
    z-index: 1; 
    white-space: nowrap;
}

#submitBtn::before {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 0;
    background-color: #04753b;
    transition: height 0.3s ease-in-out; 
    z-index: -1;
}

#submitBtn:hover::before {
    height: 100%;
}

form .fourth .item p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #504f4f;
}

form label {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #7a7a7a;
}

form input {
    margin-bottom: 1%;
    height: 3.2rem;
    border: 1px solid #bcbcbc;
    font-size: 1.2rem;
    outline: none;
    padding: 1rem;
    color: #504f4f;
    padding-right: 1rem;
    margin-top: 1%;
}

form textarea {
    margin-top: 1%;
}

form .first input {
    width: 52vw;
}

form .second {
    width: 52vw;
}

form .second .item input {
    width: 25.8vw;
}

form .third textarea {
    width: 52vw;
}

mark.green {
    color: #00A651;
    background-color: #fff;
    font-size: 1.1rem;
}

mark.white {
    color: #fff;
    background-color: #fff;
    font-size: 1.1rem;
}

.clickable-text {
    color: #00A651;
    background-color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.overlay-content2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 120vh;
    max-height: auto;
    background-color: #fff;
    color: #fff;
    text-align: left;
    overflow-y: auto; /* Enable scrolling if content exceeds max-height */
}

.overlay-content2 img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; 
}

.close-btn {
    position: absolute;
    margin-top: 0;
    right: 0;
    cursor: pointer;
    color: rgba(255, 255, 255,);
    background-color: #00A651;
    font-size: 3rem;
    z-index: 1001;
    padding: 0 7px;

}

/* CSS for the animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}

/* Apply animation to the overlay */
.overlay2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    animation-duration: 0.5s;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 0;
}

.opened {
    animation-name: slideDown;
    display: block;
}

.closed {
    animation-name: slideUp;
    display: block;
}

/* If dont manage to debug the sliding effect
.overlay2.opened .overlay-content2 {
    transform: translate(-50%, -50%) scale(1); 
}ontent Visible State */

/* If dont manage to debug the sliding effect
.overlay2.closed .overlay-content2 {
    transform: translate(-50%, -50%) scale(0.9); 
}
Overlay Content Hidden State */

.overlay2 .text-document {
    display: block;
    background-color: #fff;
    padding: 0;
    color: #111;
    width: 100%;
    max-width: 1200px;
    height: auto;
    text-align: left;
    z-index: 1001;
    overflow-y: auto; /* Allows scrolling for long content */
    max-height: 80vh; /* Ensure content doesn't overflow screen */
}

.overlay2 .text-document #konc {
    padding-bottom: 3rem;
}

.overlay2 .text-document h2 {
    margin-left: 7%;
    margin-top: 4%;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    width: 80%;
}

.overlay2 .text-document p {
    width: 90%;
    margin-left: 7%;
    font-size: 1.05rem;
    font-weight: 300;
    margin-top: 0%;
    width: 87%
}

.hidden {
    display: none;
}

/* Style for invalid fields */
.invalid-input {
    border: 2px solid red;
}

.invalid-label {
    color: red;
}

.invalid-mark {
    color: red;
}

#uploadBtn {
    position: relative;
    background-color: #888585; /* Light grey background */
    color: #fff;
    border: none;
    padding: 19px 25px;
    margin-top: 3%;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
    cursor: pointer;
    margin-right: 10px; /* Adjust this to place it closer to the submit button */
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

#uploadBtn::before {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 0;
    background-color: #504f4f; /* Slightly darker grey for hover effect */
    transition: height 0.3s ease-in-out;
    z-index: -1;
}

#uploadBtn:hover::before {
    height: 100%;
}

#uploadBtn .upload-icon {
    width: 40px;
    height: auto;
    margin-right: 8px; /* Spacing between icon and text */
    vertical-align: middle;
}

/* Ensure the buttons align properly next to each other */
.fourth .item {
    display: flex;
    align-items: center;
}

#submitBtn {
    margin-left: 2%; /* Adjust this to position the buttons properly */
}

#uploadBtn .fas {
    font-size: 22px; /* Adjust this value for different icon sizes */
    vertical-align: middle;
}

.clickable-text {
    font-size: 1.1rem;
}

#fileNameDisplay {
    font-size: 1rem;
    color: #629ed9;
}

.title #thx0 {
    margin-top: 2rem;
}

.first #thx1 {
    font-size: 1.6rem;
    font-weight: 100;
    color: #504f4f;
    margin: auto;
    margin-top: 4rem;
}

.second #thx2 {
    font-size: 1.6rem;
    font-weight: 100;
    color: #504f4f;
    margin: auto;
    margin-top: 0.3rem;
}

.third #thx3 {
    font-size: 1.1rem;
    font-weight: 100;
    color: #504f4f;
    margin-top: 6rem;
    margin-bottom: 5rem;
    text-align: center;
}


/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) { 

    form .title::after {
        content: "";
        position: absolute;
        bottom: 8rem;
        width: 26%; 
        height: 3px; 
        background-color: #00A651; 
        margin-left: 5%;
    }

    .conform {
        width: 85%;
    }


    #submitBtn{
        padding: 1rem 1.3rem;
        margin-top: 0;
        font-size: 1rem;
        margin-left: 0;
    }

    #uploadBtn {
        padding: 0.9rem 1.3rem;
        margin-top: 0;
        font-size: 1rem;
        font-weight: 400;
        margin-right: 4%; /* Adjust this to place it closer to the submit button */
    }

    .overlay-content2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 60vh;
        max-height: auto;
        background-color: #fff;
        color: #fff;
        text-align: left;
        overflow-y: auto; /* Enable scrolling if content exceeds max-height */
    }

    .overlay2 .text-document {
        display: block;
        width: 100%;
        max-width: 1200px;
        height: 65vh;
        color: #111;
        background-color: #fff;
        padding: 2rem; /* Add padding for better readability */
        text-align: left; /* Set text alignment to left */
        z-index: 999; /* Higher z-index for text-document */
    }
    
    .overlay2 .text-document #konc {
        padding-bottom: 2rem;
    }
    
    .overlay2 .text-document h2 {
        margin-left: 5%;
        margin-top: 3%;
        font-size: 1.7rem;
        font-weight: 300;
        margin-bottom: 3rem;
    }
    
    .overlay2 .text-document p {
        width: 90%;
        margin-left: 5%;
        font-size: 1.05rem;
        font-weight: 300;
    }

    form .fourth .item p {
        font-size: 0.9rem;
        font-weight: 300;
        color: #504f4f;
        width: 90%;
    }
    
    .clickable-text {
        color: #00A651;
        background-color: #fff;
        font-size: 0.9rem;
        cursor: pointer;
    }

    .overlay2 {
        z-index: 1001;
    }

    form .title h2 {
        font-size: 1.6rem;
    }
}

/* Large Mobile Phones (480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {

    .container {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        margin-top: 0;
        margin-bottom: 10%;
        width: 100%;
        margin-left: 7.5%;
    }

    .conform {
        margin: 0 auto; /* Center the content horizontally */
        text-align: center; /* Center the text within the container */
        max-width: 100%; /* Adjust the maximum width as needed */
        margin-bottom: 4%;
    }

    form {
        align-items: center;
        width: 100%;
    }

    form .title {
        display: block; /* Ensure it's a block-level element */
        margin-bottom: 5rem;
    }

    form .title h2 {
        font-size: 1.8rem;
        margin: 0;
        margin-top: 35%;
        text-align: center;
        margin-left: 0;
    }

    form .first,
    form .second,
    form .third {
        flex-direction: column;
        align-items: center;
        width: 100vw;
    }

    form .first .item input,
    form .second .item input,
    form .third .item input {
        width: 92vw;
    }

    form .third #message {
        height: 5rem;
        width: 92vw;
    }

    form .fourth {
        flex-direction: column;
        width: 92vw;
        margin: auto;
    }


    form .fourth button{
        position: relative;
        background-color: #00A651;
        color: #fff;
        border: none;
        padding: 1.3rem auto !important;
        margin-top: 3%;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 400;
        cursor: pointer;
        margin-left: 0;
        overflow: hidden;
        z-index: 1;
        align-items: center; 
        width: 44.8vw;
    }

    .overlay-content2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
        max-width: 47vh;
        background-color: #fff;
        color: #fff;
        text-align: left;
        overflow-y: auto; /* Enable scrolling if content exceeds max-height */
    }

    .overlay2 .text-document {
        display: block;
        width: 100%;
        max-width: 1200px;
        height: auto;
        color: #111;
        background-color: #fff;
        padding: 2rem; /* Add padding for better readability */
        text-align: left; /* Set text alignment to left */
        z-index: 999; /* Higher z-index for text-document */
    }
    
    .overlay2 .text-document #konc {
        padding-bottom: 2rem;
    }
    
    .overlay2 .text-document h2 {
        margin-left: 0;
        margin-top: 3%;
        font-size: 1.4rem;
        font-weight: 300;
        margin-bottom: 3rem;
        width: 95%;
    }
    
    .overlay2 .text-document p {
        width: 100%;
        margin-left: 0;
        font-size: 1.05rem;
        font-weight: 300;
    }

    .overlay2 .text-document #konc {
        padding-bottom: 1rem;
    }

    form .title::after {
        content: "";
        position: absolute;
        bottom: 7.5rem;
        width: 26%; 
        height: 3px; 
        background-color: #00A651; 
        left: 39%;
        width: 5rem; 
    }

    #submitBtn{
        font-size: 1rem;
        margin-left: 0;
        text-align: center;
    }

    .overlay2 {
        z-index: 1001;
    }
}

/* For phones */
@media (max-width: 479px) {

    .container {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        margin-top: 0;
        margin-bottom: 10%;
        width: 100%;
        margin-left: 7.5%;
    }

    .conform {
        margin: 0 auto; /* Center the content horizontally */
        text-align: center; /* Center the text within the container */
        max-width: 100%; /* Adjust the maximum width as needed */
        margin-bottom: 4%;
    }

    form {
        align-items: center;
        width: 100%;
    }

    form .title {
        display: block; /* Ensure it's a block-level element */
        margin-bottom: 5rem;
    }

    form .title h2 {
        font-size: 1.8rem;
        margin: 0;
        margin-top: 35%;
        text-align: center;
        margin-left: 0;
    }

    form .first,
    form .second,
    form .third {
        flex-direction: column;
        align-items: center;
        width: 100vw;
    }

    form .first .item input,
    form .second .item input,
    form .third .item input {
        width: 92vw;
    }

    form .third #message {
        height: 5rem;
        width: 92vw;
    }

    form .fourth {
        flex-direction: column;
        width: 92vw;
        margin: auto;
    }


    form .fourth button{
        position: relative;
        background-color: #00A651;
        color: #fff;
        border: none;
        padding: 1.3rem auto !important;
        margin-top: 3%;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 400;
        cursor: pointer;
        margin-left: 0;
        overflow: hidden;
        z-index: 1;
        align-items: center; 
        width: 44.8vw;
    }

    .overlay-content2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
        max-width: 47vh;
        background-color: #fff;
        color: #fff;
        text-align: left;
        overflow-y: auto; /* Enable scrolling if content exceeds max-height */
    }

    .overlay2 .text-document {
        display: block;
        width: 100%;
        max-width: 1200px;
        height: auto;
        color: #111;
        background-color: #fff;
        padding: 2rem; /* Add padding for better readability */
        text-align: left; /* Set text alignment to left */
        z-index: 999; /* Higher z-index for text-document */
    }
    
    .overlay2 .text-document #konc {
        padding-bottom: 2rem;
    }
    
    .overlay2 .text-document h2 {
        margin-left: 0;
        margin-top: 3%;
        font-size: 1.4rem;
        font-weight: 300;
        margin-bottom: 3rem;
        width: 95%;
    }
    
    .overlay2 .text-document p {
        width: 100%;
        margin-left: 0;
        font-size: 1.05rem;
        font-weight: 300;
    }

    .overlay2 .text-document #konc {
        padding-bottom: 1rem;
    }

    form .title::after {
        content: "";
        position: absolute;
        bottom: 7.5rem;
        width: 26%; 
        height: 3px; 
        background-color: #00A651; 
        left: 39%;
        width: 5rem; 
    }

    #submitBtn{
        font-size: 1rem;
        margin-left: 0;
        text-align: center;
    }

    .overlay2 {
        z-index: 1001;
    }
}

@media (min-width: 1920px) {

    form .title {
        margin-bottom: 3rem; 
        margin-left: auto; 
        margin-right: auto; 
        position: relative;
        text-align: center;
    }

    form .title h5 {
        font-size: 1.2rem;
        font-weight: 300;
        text-transform: none;
    }
    
    mark.green {
        color: #00A651;
        background-color: #fff;
        font-size: 1.2rem;
    }
    
    mark.white {
        color: #fff;
        background-color: #fff;
        font-size: 1.2rem;
    }
    
    .clickable-text {
        color: #00A651;
        background-color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
    }

    #uploadBtn {
        position: relative;
        background-color: #888585; /* Light grey background */
        color: #fff;
        border: none;
        padding: 19px 25px;
        margin-top: 3%;
        font-size: 19px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 400;
        cursor: pointer;
        margin-right: 10px; /* Adjust this to place it closer to the submit button */
        overflow: hidden;
        z-index: 1;
        white-space: nowrap;
    }

    .overlay2 .text-document h2 {
        margin-left: 7%;
        margin-top: 4%;
        font-size: 2.3rem;
        font-weight: 300;
        margin-bottom: 2rem;
        width: 90%;
    }
    
    .overlay2 .text-document p {
        width: 90%;
        margin-left: 7%;
        font-size: 1.2rem;
        font-weight: 300;
        margin-top: 0%;
        width: 87%
    }

    form label {
        font-size: 1rem;
        padding-bottom: 1.2rem;
        padding-top: 0.5rem; /* Add top padding if needed */
        margin-bottom: 0.5rem; /* Use margin to space from inputs */
        color: #7a7a7a;
    }
    
    form input {
        margin-bottom: 1%;
        height: 3.2rem;
        border: 1px solid #bcbcbc;
        font-size: 1.3rem;
        outline: none;
        padding: 1rem;
        color: #504f4f;
        padding-right: 1rem;
    }

}

/*------------------------------------------------ the end part --------------------------------------------------------------------*/

.end {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.end .line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items at the top */
    width: 100%;
    background-color: #36383e;
}

.logos {
    margin-right: 6.95rem;
    display: flex;
    cursor: pointer;
    margin-top: 2.5%;
}

#insta,
.fa {
    padding-right: 1rem; /* Adjust as needed */
    margin: 0;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 58%; /* Adjust the width of the .menu */
    margin-left: 10%;
    margin-bottom: 3%;
    margin-top: 3%;
}

.menu h6 {
    margin: 0;
    padding: 0;
    font-weight: 400;
    font-size: 1rem;

}

.logo {
    margin-top: 2.5%;
    margin-left: 10%;
    margin-bottom: 2%;
    width: 34%;

}

.logo img {
    width: 22%;
}

.end .part {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: #202123;
    height: auto;
}

.sentence {
    display: flex;
    margin-top: 1.8%;
    margin-left: auto;
    margin-right: 0%;
}

.sentence p {
    color: #cecdcd;
    font-weight: 300;
    font-size: 0.9rem;
    margin-bottom: 3%; /* Removes default bottom margin */
    margin-right: 6.95rem;
    width: 25.85rem;
}


/* Target only <a> elements with data-localize within .navbar_menu */
.menu a[data-localize] {
    color: #fff; /* Desired navbar link color */
    text-decoration: none; /* Remove underline */
    cursor: pointer;
}

.menu a[data-localize]:hover {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
    color: #00A651;
}

.con_block {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-weight: 300;
    text-decoration: none;
}

.con_part {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: #cecdcd;
    margin-top: 0.5rem;
    font-weight: 200;
}

.con_part a {
    margin-top: 2%;
    color: #cecdcd;
    font-weight: 300;
}

.con_part a[data-localize] {
    color: #cecdcd;
    text-decoration: none; /* Remove underline */
    cursor: pointer;
    font-weight: 300;
    margin-top: 5%;
}


.left_end {
    text-align: left; /* Ensures the text inside <p> starts on the left */
}

@media (min-width: 768px) and (max-width: 1024px) {

    .logo {
        margin-left: 8.1%;
        margin-top: 2.5%;
        align-self: flex-end; /* Align the logo to the bottom */
        width: 25%;
    }   
    
    .end .line {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* Align items at the top */
        width: 100%;
        background-color: #36383e; /* If needed */
    }

    .logo img {
        width: 34%;
    }

    .menu {
        width: 100%; /* Adjust the width of the .menu */
        margin-left: 8.1%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-top: 3%;
    }

    .logos {
        margin-top: 3%;
        margin-right: 3.5rem;
    }

    h6 {
        font-size: 0.8rem;
    }

    .end .part {
        display: flex;
        justify-content: space-between;
        align-items: flex-end; /* Align the logo and sentence to the bottom */
        width: 100%;
        margin-bottom: 0;
    }

    .sentence {
        display: flex;
        margin-top: 1.8%;
        margin-left: auto;
        margin-right: 0%;
    }
    
    .sentence p {
        color: #cecdcd;
        font-weight: 300;
        font-size: 0.7rem;
        margin-bottom: 5.5%; /* Removes default bottom margin */
        margin-right: 3.5rem;
        width: 20.1rem;
    }

    .con_part {
        display: none;
    }
}

@media (min-width: 480px) and (max-width: 767px) {

    .end {
        width: 100%;
        height: auto;
    }

    .menu {
        display: block;
        margin-top: 5%;
        margin-left: 9.1%;
        margin-bottom: 5%;
    }

    .logos {
        margin-top: 5%;
        margin-right: 2rem;
    }

    h6 {
        font-size: 0.7rem;
    }

    .menu a {
        display: block;
        margin-top: 3%;
        color: #fff;
    }

    .end .line {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* Align items at the top */
        width: 100%;
        background-color: #36383e; /* If needed */
    }

    .end .part {
        display: flex;
        justify-content: space-between;
        align-items: flex-end; /* Align the logo and sentence to the bottom */
        width: 100%;
        margin-bottom: 0;
    }

    .sentence {
        display: block;
        width: 100%;
        margin-left: 8%;
        padding-left: 0;
        margin-top: 2%;
        width: 10.1rem;
        margin-right: 2rem;
    }

    .sentence p {
        color: #cecdcd;
        font-weight: 300;
        font-size: 0.5rem;
        margin-bottom: 11.5%; /* Removes default bottom margin */
        width: 10.1rem;
    }

    .logo {
        margin-left: 9.1%;
        margin-top: 4%;
        align-self: flex-end; /* Align the logo to the bottom */
        width: 100%;
        margin-bottom: 4%;
    } 

    .logo img {
        width: 5rem;
        margin-top: 2%;
    }

    .logos {
        display: flex;
        align-items: center; /* Align logos vertically at the center */
    }


    h6 {
        margin: 0;
        padding: 0;
        line-height: 1; /* Ensure no extra space around the text */
    }

    .con_part {
        display: none;
    }
}

/* For phones */
@media (max-width: 479px) {

    .end {
        width: 100%;
        height: auto;
    }

    .menu {
        display: block;
        margin-top: 5%;
        margin-left: 9.1%;
        margin-bottom: 5%;
    }

    .logos {
        margin-top: 5%;
        margin-right: 2rem;
    }

    h6 {
        font-size: 0.7rem;
    }

    .menu a {
        display: block;
        margin-top: 3%;
        color: #fff;
    }

    .end .line {
        display: flex;
        justify-content: space-between;
        align-items: flex-start; /* Align items at the top */
        width: 100%;
        background-color: #36383e; /* If needed */
    }

    .end .part {
        display: flex;
        justify-content: space-between;
        align-items: flex-end; /* Align the logo and sentence to the bottom */
        width: 100%;
        margin-bottom: 0;
    }

    .sentence {
        display: block;
        width: 100%;
        margin-left: 8%;
        padding-left: 0;
        margin-top: 2%;
        width: 10.1rem;
        margin-right: 2rem;
    }

    .sentence p {
        color: #cecdcd;
        font-weight: 300;
        font-size: 0.5rem;
        margin-bottom: 11.5%; /* Removes default bottom margin */
        width: 10.1rem;
    }

    .logo {
        margin-left: 9.1%;
        margin-top: 4%;
        align-self: flex-end; /* Align the logo to the bottom */
        width: 100%;
        margin-bottom: 4%;
    } 

    .logo img {
        width: 5rem;
        margin-top: 2%;
    }

    .logos {
        display: flex;
        align-items: center; /* Align logos vertically at the center */
    }


    h6 {
        margin: 0;
        padding: 0;
        line-height: 1; /* Ensure no extra space around the text */
    }

    .con_part {
        display: none;
    }
}

@media (min-width: 1920px) {

    .menu h6 {
        margin: 0;
        padding: 0;
        font-weight: 400;
        font-size: 1.2rem;
    }

    .sentence p {
        color: #cecdcd;
        font-weight: 300;
        font-size: 1rem;
        margin-bottom: 3%; /* Removes default bottom margin */
        margin-right: 6.95rem;
        width: 25.85rem;
    }

    .con_part {
        display: flex;
        flex-direction: column;
        font-size: 1.1rem;
        color: #cecdcd;
        margin-top: 0.5rem;
        font-weight: 200;
    }
}

/*------------------------------------------------ career part --------------------------------------------------------------------*/

.content-wrapper {
    background-color: #f9f9f9;
    width: 100%;
    height: auto;
    padding-bottom: 10%;
}

.prolog {
    padding: 0;
    box-sizing: border-box;
    margin-bottom: 5%;
}

.prolog h2 {
    color: #504f4f;
    font-family: Arial, Helvetica, monospace;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5%;
}

.prolog p {
    color: #000;
    font-size: 1rem;
    font-weight: 300;
    width: 90%;
}

/* Container for job listings */
.pozice {
    background-color: #fff;
    max-width: 1200px;
    margin: 6% auto 0 auto;
    box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.06);
    width: 86%;
    padding: 3rem; /* Added padding for better spacing */
    box-sizing: border-box;
    padding-bottom: 1.5rem;
}

.sloupce {
    display: flex;
    flex-direction: column; /* Stack rows vertically */
    gap: 1.5rem; /* Space between rows */
}

/* Each job listing row */
.row {
    display: flex;
    justify-content: space-between; /* Space between prvni and details */
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    padding-bottom: 1rem; /* Space below each row */
    border-top: 1px solid #e0e0e0; /* Optional: separator between rows */
}

/* Prvni: Job Title */
.prvni {
    flex: 1; /* Take up remaining space */
    min-width: 200px; /* Ensure minimum width for readability */
    margin-top: 2.5rem;
}

.prvni a {
    display: block;
    color: #00A651;
    font-size: 1.3rem;
    text-decoration: none;
    font-weight: 400;
}

.prvni a:hover {
    text-decoration: underline;
}

/* Details: Druhy and Treti */
.details {
    display: flex;
    gap: 3rem; /* Small gap between druhy and treti */
    align-items: center;
    min-width: 200px; /* Ensure minimum width */
}

/* Druhy: Location */
.druhy p {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 2.5rem;
}

/* Treti: Employment Type */
.treti p {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 300;
    margin-top: 2.5rem;
}

/* Icons within Druhy and Treti */
.druhy p i, .treti p i {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: #9e9b9b;
}

/* Remove any previous pseudo-elements */
.prvni::before, .druhy::before, .treti::before {
    display: none;
}

/* Media Queries */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .pozice {
        max-width: 800px;
        margin: 30% auto 29% auto;
    }

    .prvni {
        max-width: 61%;
    }

    .prvni a {
        font-size: 1.1rem;
    }

    .druhy p, .treti p {
        font-size: 0.9rem;
    }

    .prolog h2 {
        font-size: 1.8rem;
    }

    .prolog p {
        font-size: 1.1rem;
    }
}

/* Landscape phones and smaller tablets */
@media (max-width: 767px) {
    .pozice {
        max-width: 900px;
        margin: 30% auto 25% auto;
    }

    .row {
        flex-direction: column; /* Stack elements vertically on very small screens */
        align-items: flex-start;
    }

    .prvni, .details {
        min-width: 100%; /* Ensure full width on small screens */
    }

    .prvni a {
        font-size: 1rem;
        width: 100%; /* Make links take full width on small screens */
        margin-bottom: 0.5rem; /* Space below link */
    }

    .details {
        gap: 1rem; /* Reduce gap between druhy and treti */
    }

    .druhy p, .treti p {
        font-size: 0.8rem;
    }

    .prolog h2 {
        font-size: 1.6rem;
        margin-bottom: 3%;
    }

    .prolog p {
        font-size: 0.9rem;
        margin-bottom: 10%;
    }

    .druhy p {
        margin-top: 1rem;
    }
    
    /* Treti: Employment Type */
    .treti p {
        margin-top: 1rem;
    }
}

/* Portrait phones */
@media (max-width: 479px) {
    .pozice {
        max-width: 900px;
        margin: 30% auto 25% auto;
    }

    .row {
        flex-direction: column; /* Stack elements vertically on very small screens */
        align-items: flex-start;
    }

    .prvni, .details {
        min-width: 100%; /* Ensure full width on small screens */
    }

    .prvni a {
        font-size: 1rem;
        width: 100%; /* Make links take full width on small screens */
        margin-bottom: 0.5rem; /* Space below link */
    }

    .details {
        gap: 1rem; /* Reduce gap between druhy and treti */

    }

    .druhy p, .treti p {
        font-size: 0.8rem;
    }

    .prolog h2 {
        font-size: 1.6rem;
        margin-bottom: 3%;
    }

    .prolog p {
        font-size: 0.9rem;
        margin-bottom: 10%;
    }

    .druhy p {
        margin-top: 1rem;
    }
    
    /* Treti: Employment Type */
    .treti p {
        margin-top: 1rem;
    }
}

@media (min-width: 1920px) {

    .prolog h2 {
        color: #504f4f;
        font-family: Arial, Helvetica, monospace;
        font-size: 2.3rem;
        font-weight: 400;
        margin-bottom: 0.5%;
    }
    
    .prolog p {
        color: #000;
        font-size: 1.2rem;
        font-weight: 300;
        width: 90%;
    }

    .druhy p {
        display: flex;
        align-items: center;
        font-size: 1.2rem;
        font-weight: 300;
        margin-top: 2.5rem;
    }
    
    /* Treti: Employment Type */
    .treti p {
        display: flex;
        align-items: center;
        font-size: 1.2rem;
        font-weight: 300;
        margin-top: 2.5rem;
    }

}