/* General styling */
body,
html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

/* Slider Section */
.hp-slider-container {
    padding: 0;
}

.slider-gallery {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.upload-form {
    display: block;
    margin-top: 10px;
    text-align: center;
}

/* Gallery styling */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
}

.gallery-item {
    position: relative;
    width: 220px;
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.gallery-item form {
    position: absolute;
    top: 5px;
    right: 5px;
    margin: 0;
}

.delete-btn {
    padding: 2px 6px;
    font-size: 14px;
    background-color: rgba(220, 53, 69, 0.85);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.delete-btn:hover {
    opacity: 0.7;
}

/* About Section */
.about-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.about-image-wrapper {
    flex: 1 1 45%;
    max-width: 400px;
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.about-text {
    flex: 1 1 50%;
    font-size: 20px;
    line-height: 1.6;
}

.upload-form-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.btn-upload {
    display: inline-block;
    padding: 6px 10px;
    background: #00989b;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-upload input[type="file"] {
    display: none;
}

/* Goals Section */
.hp-our-goals {
    position: relative;
    padding: 40px 0;
    background: url('../img/index/main_background.jpg') no-repeat center center / cover;
}

.hp-our-goals:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(232, 244, 247, 0.85);
    z-index: 0;
}

.hp-our-goals h2,
.hp-our-goals .goals-col {
    position: relative;
    z-index: 1;
}

.hp-our-goals .goals-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 280px;
    padding: 20px;
    text-align: center;
}

.goals-icon-wrapper {
    width: 100px;
    height: 100px;
    background: #50bcc6;
    border: 2px solid #00a4b0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 18px;
    box-sizing: border-box;
}

.goals-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.5;
}

.hp-our-goals .goals-text p {
    max-width: 300px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 25px;
}

/* Team Section */
.hp-our-team {
    padding: 40px 0;
}

.eq-wrap {
    display: flex;
    flex-wrap: wrap;
}

.eq-wrap .member-col {
    flex: 1 1 50%;
    position: relative;
    padding: 20px;
    display: flex;
}

.team-member-wrapper {
    flex: 1;
    position: relative;
    margin-top: 140px;
    padding: 140px 30px 20px;
    border: 1px solid #00a2ac;
}

.member-img-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    width: 240px;
    height: 240px;
    border: 2px solid #00a4b0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    background: #fff;
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-name {
    font-size: 25px;
    line-height: 30px;
    font-weight: 300;
    text-align: center;
}

.member-name .job-title {
    display: block;
    max-width: 200px;
    margin: 5px auto 20px;
    padding-top: 5px;
    border-top: 1px solid #00a4b0;
    font-size: 18px;
    line-height: 24px;
}

.member-desc {
    font-size: 16px;
    line-height: 24px;
    text-align: justify;
}

.item-buttons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.centered-form {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* Marquee */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    background: #cae6e9;
    padding: 5px 0;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 20s linear infinite;
    color: black;
    font-size: 1.5em;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Carousel */
#hp-main-slider {
    background-color: #cce5e9;
}

#hp-main-slider .carousel-inner {
    max-height: 600px;
    overflow: hidden;
}

#hp-main-slider .carousel-inner img {
    max-height: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.main-info-wrapper {
    position: absolute;
    z-index: 2;
    padding: 20px;
    width: 510px;
    max-height: 100vw;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #00a2ac;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.associates a {
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .member-desc {
        text-align: initial;
    }
}

@media (max-width: 800px) {
    .about-section {
        flex-direction: column;
    }

    .about-image-wrapper,
    .about-text {
        flex: 1 1 100%;
    }

    .about-text {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 30px;
    }

    .hp-our-goals {
        padding: 20px 0;
    }

    .goals-col {
        min-height: auto;
    }

    .associates a img {
        max-height: 30px;
    }
}

@media (max-width: 767px) {
    .eq-wrap {
        display: block;
    }

    .main-info-wrapper {
        width: 350px;
        padding: 0 5px;
    }

    .main-info-wrapper h1 {
        font-size: 20px;
    }

    .main-info-wrapper .lead {
        font-size: 16px;
    }

}

@media (max-width: 480px) {
    .member-col {
        padding: 0;
    }
}

/* Miscellaneous */
.associates {
    padding: 0;
    margin: 0;
}

.associates img {
    height: 60px;
    width: auto;
    margin: 3px;
}

.centered_img img {
    display: block;
    margin: 0 auto;
}

/* Notification Overlay Styles */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Semitransparent background */
    z-index: 9999;
    /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    /* Optional: adds a nice blur to the background */
}

.notification-modal {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: fadeInScale 0.3s ease-out;
}

.notification-body {
    font-size: 1.25rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.notification-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
    font-style: italic;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}