/* General Styles */
body, h1, h2, h3, p, a {
    font-family: 'YourCustomFont', sans-serif;
    font-size: 1rem; /* Use relative font sizes */
}


h2 {
    font-size: 3rem; /* Adjusted font size */
    font-weight: bold;
}

/* Make buttons responsive */
.btn {
    width: 100%;
    max-width: 200px;
    font-size: 1rem;
}

/* Responsive Navbar */
.navbar-brand {
    font-size: 1.25rem;
}

.navbar-container {
    padding-top: 30px;
}

.logo {
    padding-bottom: 15px;
    padding-right: 15px;
}

/* Hero Section Responsiveness */
.hero {
    height: 100vh;
    background-image: url('../assets/images/header_img.png'); /* Retained background image */
    background-size: cover;
    background-position: left;
    padding: 0 20px 20px; /* Adjusted padding for smaller screens */


    position: relative;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between; /* Space between the items */
    /* Optional padding for the entire header */
    /*padding: 0 50px 50px;*/
}

.hero-text, h1 {
    font-size: 2rem;
    width: 100%;
    max-width: 580px;
    text-align: left;
    line-height: normal;
}

.list-bar {
    width:350px !important;
}

.logo-text-mobile {
    display: none;
}


@media (max-width: 768px) {
    .hero-text {
        font-size: 1.5rem; /* Smaller font on mobile */
    }

    .btn {
        font-size: 0.875rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .logo-text-mobile {
        display: flex;
    }

    .logo-text {
        display: none;
    }
}

/* Section Background Colors */
#section1, #section5, #section8, #section10, #section11, #section12 {
    background-color: #F1ECE7; /* Restore the background color */
}

/* Section Responsiveness */
#section1, #section6, #section8, #section10 {
    padding: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    #section1 h2, #section6 h2, #section8 h2, #section10 h2 {
        font-size: 2rem; /* Reduced font size */
    }

    #section1 .text, #section6 .text, #section8 .text, #section10 .text {
        width: 100%;
        font-size: 1.25rem;
    }

    .build-smarter {
        text-align: center;
        padding-bottom: 100px;
    }
}

/* Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Adjust List-Bar */
.list-bar {
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .list-bar {
        width: 100%; /* Full width on mobile */
    }
}

/* Image Sections */
#section2 img, #section4 img, #section9 img, #section11 img {
    max-width: 100%;
    height: auto;
}

#section4 img {
    margin-bottom: 20px;
}

#section6 .container, #section8 .container, #section10 .container {
    max-width: 600px;
    text-align: center;
}

#section10 .text {
    max-width: 400px !important;
    margin: 0 auto;
}

#section10 img.t-logo {
    max-width: 150px;
    height: auto;
    padding-top: 50px;
}

#section12 .list-color {
    border-bottom: 1px solid black;
}

#section3 .list-color {
    font-size: 1.25rem;
    text-align: left;
}

.list-color {
    background-color: #F1ECE7;
}

/* Footer */
footer {
    text-align: left;
    padding: 12px;
    background-color: #F1ECE7;
}

.footer-container {
    border-top: 1px solid black;
    padding-top: 5px;
}


#section7 ul {
    padding: 0;
    margin: 0 auto;

    list-style: none;
}

#section7 li {
    margin: 0;
    vertical-align: top; /* Align items to the top */
}

@media screen and (min-width: 992px) {
    #section1 {
        padding-left:200px;
        padding-right:200px;
        padding-bottom:50px;
    }
    #section7 ul {
        display: flex; /* Flex layout to easily align items */
        justify-content: space-between; /* Evenly distribute the <li> items */
    }

    #section7 .line {
        width: 100%;
        height: 0;
        border-top: solid 1px black;
        position: relative;
        display: block;
        transform: translateX(0px) translateY(-15px);
    }

    #section7 li {
        display: inline-block;
        width: 25%;
        vertical-align: top; /* Align each <li> to the top */
    }

    #section7 li span {
        margin: 0 auto;
    }

}

@media screen and (max-width: 991px) {
    #section7 li {
        display: table;
    }

    #section7 .line {
        width: 0;
        height: 130%;
        border-left: solid 1px black;
        position: relative;
        display: table-cell;
        transform: translateX(-7px) translateY(9px);
    }

    #section7 ul {
        text-align: left;
    }

    #section7 li h3 {
        margin-left: 40px;
    }

    #section7 li p {
        margin-bottom: 0;
        margin-left: 10px;
        min-height: 228px;
    }

    .timeline-image {
        min-height: 210px;
        width: 195px;
        padding-bottom: 15px;
        text-align: center;
    }

    .timeline-img-block {
        display: flex;
        flex-wrap: wrap; /* Ensures items wrap in mobile view */
        justify-content: center; /* Centers the images horizontally */
    }
}

#section7 li span {
    background-color: black;
    border: 2px solid black;
    display: inline-block;
    height: 14px;
    width: 14px;
    border-radius: 12px;
}

#section7 li h3 {
    text-align: left;
}

#section7 li p {
    text-align: left;
}


.linkedin a:link {
    color: black;
    text-decoration: none;
}

/* visited link */
.linkedin a:visited {
    color: black;
    text-decoration: none;
}

/* mouse over link */
.linkedin a:hover {
    color: black;
    text-decoration: none;
}

/* selected link */
.linkedin a:active {
    color: black;
}

/* cookies */

#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: gray;
    color: white; /* Balta teksta krāsa */
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}
#cookie-banner p {
    margin: 0;
    padding: 0 10px;
    display: inline;
}
#cookie-banner a {
    color: #FFD700; /* Zeltīta krāsa saitei */
    text-decoration: underline;
}
#cookie-banner button {
    background-color: #ffffff; /* Balta poga */
    border: none;
    color: #4CAF50; /* Zaļa krāsa tekstam */
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
#cookie-banner button:hover {
    background-color: #4CAF50; /* Poga kļūst zaļa peldošā stāvoklī */
    color: white; /* Teksts kļūst balts */
}

/* Responsīvais dizains */
@media (max-width: 600px) {
    #cookie-banner {
        padding: 10px;
    }
    #cookie-banner p {
        font-size: 12px; /* Mazāks teksta izmērs mobilajām ierīcēm */
    }
    #cookie-banner button {
        padding: 8px 10px;
        font-size: 12px; /* Mazāks pogu teksts mobilajām ierīcēm */
    }
}

/* Basic styling for the modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative; /* Enables absolute positioning inside the modal */
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    overflow-y: auto;
    text-align: left;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px; /* Position the button within the modal content */
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}