html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: white;
    place-content: center;
    font-family: 'Poppins', sans-serif;
}

div {
    text-align: center;
}

.mainrows {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    text-align: center;

}


.ht:hover .tooltip {
    display: block;
}


.whorwe {
    display: grid;
    grid-row-gap: 1em;
    grid-template-columns: repeat(2, 1fr);
    padding-top: 2rem;
    padding-left: 13%;
    grid-auto-rows: minmax(400px, auto);
    /* font-family: Bodoni MT, Didot, Didot LT STD, Hoefler Text, Garamond, Times New Roman, serif; */
    font-size: 20px;
}

.whorwe>div {
    align-self: center;
}

.whorwe>div>h3 {
    float: left;
    color: #1A5D3C;
    font-weight: bold;
    font-size: 26px;
    margin-bottom: 1.5rem;
}

.whorwe>div>p {
    text-align: left;
    font-weight: bold;
    line-height: 1.6;
    padding: 0 1rem;
}

.whorwe-image {
    width: 350px;
    height: 350px;
    /* border: 2%; */
    align-self: center;
    justify-self: center;
}

.achslider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(400px, auto);
    padding-left: 10%;
    padding-right: 10%;
}

.achslider>div {
    height: 30rem;
    padding: 10%;
    background-image: linear-gradient(to right, #56b829, #4eb856, #15ce81);
    border: 1rem solid white;
}

.achslider>div>p {
    font-weight: bold;
    color: white;
    line-height: 140%;
}

.achslider-title {
    height: 30rem;
    background: #1A5D3C;
    color: white;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-size: 20px;
    line-height: 1.6;
    padding: 2rem 0;
    width: 100%;
}

.achslider-title>div {
    margin-top: 5%;
    padding: 1rem;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.flip_horizontaly {
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

.spgreen {
    display: grid;
    align-items: center;
    grid-auto-rows: minmax(350px, auto);
    background-image: url("/resources/Bay2.png");
    background-color: #cccccc;
    height: 350px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 1%;
}

.spgreen>h3 {
    text-align: center;
    padding: 70px 0;
    font-size: 130%;
    line-height: 130%;
    color: white;
    top: 50%;
    left: 50%;
    padding-left: 20%;
    padding-right: 20%;
}

.presence {
    display: grid;
    align-items: center;
    background-image: url("/resources/Bayariqcat-earth.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 300px;
    padding-bottom: 40px;
    font-size: 24px;
    position: relative;
    overflow: hidden;
}

.presence>p {
    text-align: center;
    font-size: 130%;
    line-height: 130%;
    font-weight: bolder;
    padding-left: 10%;
    padding-right: 10%;
    color: #1A5D3C;
}

.presence-image>img {
    width: 60%;
    height: 45%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.presence-title {
    -webkit-text-decoration: white double underline;
    text-decoration: white double underline;
}

.presence-title>h3 {
    color: black;
    background-image: linear-gradient(to right, #4eb856, #15ce81);
    font-size: 130%;
}

.ht:hover .tooltip {
    display: block;
}

@media screen and (max-width: 768px) {
    .whorwe {
        display: block;
        padding-right: 5px;
        overflow: hidden;
        font-size: 18px;
    }

    #whorwe_titeid {
        padding-right: 20px;
    }

    .whorwe-image {
        margin: 0 auto;
    }

    .whorwe>div>p {
        text-align: left;
        font-weight: bold;
        width: 90%;
        line-height: 1.5;
        padding: 0 0.8rem;
    }

    .achslider {
        display: block;
        padding-left: 0%;
        padding-right: 0%;
    }


    .achslider-title{
        display: block;
        height: 41rem;
    }

    .achslider-title>div {
        display: block;
        height: 18rem;
        background: #1A5D3C;
        color: white;
        font-size: 18px;
        line-height: 1.5;
        padding: 0.8rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1000px) {
    .achslider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(400px, auto);
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
    .achslider>div {
        height: 90%;
        padding: 10%;
        background-image: linear-gradient(to right, #56b829, #4eb856, #15ce81);
        border: 0.5rem solid white;
    }
}

/* Video Section Styles */
.video-section {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    margin: 2rem 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-section {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .video-section {
        height: 50vh;
    }
}

/* Merged Video and Achievements Section Styles */
.video-achievements-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem auto;
    padding: 4rem 5%;
    align-items: stretch;
    min-height: 80vh;
    max-width: 1800px;
    width: 100%;
    box-sizing: border-box;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
    z-index: 2;
}

.achievements-content {
    padding: 0 2rem 0 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievements-content h2 {
    color: #1A5D3C;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.achievements-content p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.achievements-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements-content li {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
}

#achslider_list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#achslider_list li {
    position: relative;
    padding: 10px 50px;
    margin: 15px 0;
    text-align: center;
    display: block;
    border-left: 3px solid #1A5D3C;
    border-right: 3px solid #1A5D3C;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .video-achievements-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 5%;
    }

    .video-container {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .video-achievements-section {
        padding: 1rem 5%;
    }

    .video-container {
        min-height: 300px;
    }

    .achievements-content h2 {
        font-size: 2rem;
    }

    .achievements-content p {
        font-size: 1rem;
    }
}