body {
    background-color: #F6F5F2;
}
p, b {
    color: black;
}

/* DRAWER LOGOs */
.drawer ul {
    text-align: left;
}
.drawer li {
    display: flex; /* Use flexbox */
    align-items: center; /* Center items vertically */
}
.drawer ul li img {
    width: 50px;
    margin-right: 10px;
}

/* HEADER */
header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), url('../mpmc/img/bg.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

}
header h3 {
    font-size: clamp(1rem, 2.5vw, 2.5rem);
    margin: 50px;
}

/* HISTORY */
.history, .contact{
    display: flex;
    margin: 50px;
}
.history img {
    width: 350px;
}
.history p {
    margin-right: 20px;
}
.history h2, .events h2, .activities h2, .chart h2, .services h2, .about h2, .contact h2, .dept h2 {
    font-size: 64px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    color: black;
}
.history h2, .contact h2 {
    text-align: left;
}

/* DEPARTMENTS */
.dept ol {
    list-style: decimal;
    list-style-position: inside;
}
.dept ol li, .dept ul li {
    color: black;
    font-weight: 600;
    font-size: 18px;
}
.dept ol p,.dept ol ul p {
    text-align: justify;
}
.dept ol ul {
    list-style:disc;
    list-style-position: inside;
}
.dept ol ul li, .dept ul li {
    font-weight: 400;
}
.dept ol ul li b {
    font-weight: 600;
}

/* EVENTS */
.events, .chart, .activities, .services, .about,  .dept{
    margin: 50px;
}
.events p, .activities p, .services li, .about p, .history p{
    text-align: justify;
}
.events p {
    color: white;
}
.cards {
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../mpmc/img/card.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
    width: 400px;
    margin: 0px 8px 20px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    padding: 0 20px;
}
.card h4 {
    font-size: 21px;
}
.card p {
    text-align: center;
}

/* CMS */
#kinder {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../cms/img/kinder.jpg');
}
#elem {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../cms/img/grade_school.webp');
}
#highschool {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../cms/img/high_school.avif');
}


#faith {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../cms/img/faith.jpg');
}
#concerned {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../cms/img/concerned.avif');
}
#co-creator {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../cms/img/co-creation.jpg');
}
.cms-req {
    list-style-position:inside;
}
.cms-req li {
    text-align: center;
}

/* 7 Eleven */
#team {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../7eleven/img/team.jpg');
}
#integrity {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../7eleven/img/integrity.webp');
}
#reliability {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../7eleven/img/RELIABILITY.png');
}
#focus {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../7eleven/img/focus.jpg');
}
#data {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../7eleven/img/data.avif');
}

/* Image slider styles */
.slider {
    position: relative;
    max-width: 70%;
    margin: auto;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slider img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 18px;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 3px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Animation styles */
.slide-enter {
    opacity: 0;
    transform: translateX(100%);
}

.slide-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.slide-exit {
    opacity: 1;
    transform: translateX(0);
}

.slide-exit-active {
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* ACTIVITIES */
.activities img {
    width: 450px;
    margin-right: 20px;
    border-radius: 10px;
}
.activities .act {
    display: flex;
    margin-bottom: 50px;

}
.activities .act .txt {
    display: block;
}
.activities .act .txt h3 {
    font-size: clamp(1rem, 2.5vw, 2.0rem);
}
.activities #act2 p {
    margin-right: 20px;
}
.activities #act2 img {
    margin-right: 0px;
}
.activities .act .txt  h3, .activities .act .txt p {
    color: black;
}

/* ORG CHART */
.chart .people {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.chart .person {
    display: flex;
    margin: 20px;
}
.chart img {
    width: 100%;
    object-fit: cover;
}
.chart .text {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.chart .fullname h3 {
    font-size: 30px;
    font-weight: 600;
}

/* SERVICES */
.services {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.services ul h4, .services ol h4 {
    text-align: center;
    margin-top: 20px;
    font-size: 23px;
}
.services .ul {
    display: flex;
    gap: 300px;
}
.services ul li, .services ol li, .services h4 {
    color: black;
}

/* ABOUT US */
.about img {
    width: 450px;
    margin-right: 20px;
}
.about .abt {
    display: flex;
    margin-bottom: 50px;
}
.about .abt p {
    margin-right: 20px;
}
.vis-mis h3 {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 2rem);;
    color: black;
}
.vis-mis p {
    text-align: center;
}
.vision {
    margin-bottom: 50px;
}

/* CONTACT US */
.contact .text {
    width: 50%;
}
.contact .socmed img {
    width: 50px;
    background-color: white;
    border-radius: 50%;
    margin: 0 5px;
}
.contact form {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin-left: 10px;
}
.contact form input, .contact form textarea{
    color: black;
}
.contact .info img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}
.contact ul li {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

/* FORM */
form input, form textarea, form button {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    color: white;
    background-color: #E6E6E6;
}
form textarea {
    height: 250px;
}
form button {
    font-weight: 600;
    cursor: pointer;
    background-color: #289906;
}
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff; /* Change this color to match your theme */
    width: 20px; /* Size of the spinner */
    height: 20px; /* Size of the spinner */
    animation: spin 1s linear infinite;
    display: inline-block; /* Ensure it aligns properly with text */
    margin-right: 5px; /* Space between spinner and text */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

form label {
    color: black;
}


/* RESPONSIVE MOBILE PHONE*/
@media (max-width: 600px) {
    .history {
        animation: none !important; /* Disable animation */
    }

    header {
        height: 50vh;
    }

    .history h2, .events h2, .activities h2, .chart h2, .services h2, .about h2, .contact h2, .dept h2 {
        font-size: clamp(2rem, 2.5vw, 4rem);
        font-weight: 500;
        text-align: center;
    }

    /* HISTORY */
    .history, .contact{
        flex-direction: column;
        margin: 10px 20px;
        align-items: center;
    }
    .history .text {
        margin-bottom: 20px;
    }
    .history p {
        margin-right: 0;
    }
    .history img {
        display: none;
    }

    /* EVENTS */
    .events .cards {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .events .card {
        margin-bottom: 15px;
        width: 320px;
        margin-left: 0px;
    }
    .events, .chart, .activities, .services, .about {
        margin: 10px 20px;
    }

    /* ACTIVITIES */
    .activities img {
        display: none;
    }
    .activities #act1 {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../mpmc/img/card.jpg');
        padding: 30px;
        border-radius: 10px;
    }
    .activities #act2 {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../mpmc/img/card.jpg');
        padding: 30px;
        border-radius: 10px;
    }
    .activities #act3 {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../mpmc/img/card.jpg');
        padding: 30px;
        border-radius: 10px;
    }
    .activities .act {
        display: flex;
        margin-bottom: 20px;
    }
    .activities .act .txt  h3, .activities .act .txt p {
        color: white;
    }
    .activities .desc p, .activities .desc b {
        color: white;
    }

    /* ORG CHART */
    /* .chart .people {
        justify-content:space-evenly;
    }
    .chart img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
    }
    .chart .text {
        margin-left: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .chart .fullname h3 {
        font-size: 16px;
        font-weight: 600;
    }
    .chart .position p {
        font-size: 14px;
    } */

    /* SERVICES */
    .services .ul {
        flex-direction: column;
        gap: 0px;
    }

    /* ABOUT US */
    .about img {
        display: none;
    }
    .about .abt p {
        margin-right: 0;
    }
    .about {
        margin-bottom: 20px;
    }

    /* CONTACT */
    .contact .text {
        width: 100%;
        margin-bottom: 30px;
    }
    .contact .text h2 {
        margin-bottom: 10px;
    }
    .contact .socmed {
        text-align: center;
    }
    .contact form {
        width:100%;
    }

}

/* TABLET RESPONSIVE STYLES (601px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    /* HEADER */
    header {
        height: 70vh;
    }
    
    header h3 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
        margin: 30px;
    }

    /* HISTORY */
    .history {
        flex-direction: column;
        margin: 30px;
    }
    
    .history .img {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
    
    .history img {
        width: 80%;
        max-width: 500px;
    }

    /* EVENTS */
    .cards {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .card {
        width: calc(50% - 30px);
        margin: 0;
        height: 250px;
    }
    
    .card:last-child {
        width: 100%;
        max-width: 500px;
    }

    /* ACTIVITIES */
    .activities .act {
        flex-direction: column;
    }
    
    .activities img {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 20px;
        display: block;
    }
    
    .activities #act2 p {
        margin-right: 0;
    }

    /* ORG CHART */
    .chart .people {
        justify-content: space-around;
    }
    
    .chart .person {
        width: 45%;
        margin: 10px 0;
    }
    
    .chart img {
        width: 100px;
        height: 100px;
    }
    
    .chart .fullname h3 {
        font-size: 1.2rem;
    }

    /* SERVICES */
    .services .ul {
        gap: 100px;
    }

    /* ABOUT US */
    .about .abt {
        flex-direction: column;
    }
    
    .about img {
        width: 100%;
        max-width: 500px;
        margin: 20px auto 0;
        display: block;
    }

    /* CONTACT US */
    .contact {
        flex-direction: column;
    }
    
    .contact .text,
    .contact form {
        width: 100%;
    }
    
    .contact form {
        margin-left: 0;
        margin-top: 30px;
    }
}

/* LARGE TABLET (768px - 1024px) - iPad landscape */
@media (min-width: 768px) and (max-width: 1024px) {
    /* HISTORY */
    .history {
        flex-direction: column;
        align-items: center;
    }
    
    .history .text {
        width: 60%;
    }
    
    .history .img {
        width: 40%;
        margin-top: 10px;
    }
    
    .history img {
        width: 100%;
    }

    /* EVENTS */
    .card {
        height: 300px;
    }

    /* ACTIVITIES */
    .activities p{
        margin-left: 10px;
    }
    .activities .act {
        flex-direction: row;
        align-items: center;
    }
    
    .activities img {
        width: 40%;
    }
    
    .activities #act2 {
        flex-direction: row-reverse;
    }

    /* ORG CHART */
    .chart .person {
        width: 40%;
    }
    .chart img {
        width: 100%;
        height: auto;
    }
    .chart .fullname {
        font-size: 16px;
    }

    /* SERVICES */
    .services .ul {
        gap: 150px;
    }

    /* ABOUT US */
    .about .abt {
        flex-direction: row;
    }
    
    .about img {
        width: 40%;
        margin: 0 0 0 20px;
    }
}

/* ANIMATION */
@keyframes appear {
    from {
        opacity: 0;
        transform: translateX(-300px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.history, .events, .activities, .chart, .services, .about, .contact, .dept {
    animation: appear 5s linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

/* CHATBOT STYLES */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chatbot-header {
    background-color: #289906;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.chatbot-messages {
    flex: 1;
    min-height: 200px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chatbot-questions {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #333;
    max-height: 120px; /* Limit height */
    overflow-y: auto; /* Make it scrollable */
    scrollbar-width: thin; /* For Firefox */
}

/* Custom scrollbar for Webkit browsers */
.chatbot-questions::-webkit-scrollbar {
    width: 6px;
}

.chatbot-questions::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chatbot-questions::-webkit-scrollbar-thumb {
    background: #289906;
    border-radius: 3px;
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #289906;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.chatbot-toggle img {
    width: 30px;
    height: 30px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: #289906;
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background-color: #333;
    color: white;
    border-bottom-left-radius: 5px;
}

.question-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 18px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s;
}

.question-btn:hover {
    background-color: #444;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background-color: #333;
    border-radius: 18px;
    width: fit-content;
    border-bottom-left-radius: 5px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

/* Responsive styles */
@media (max-width: 600px) {
    .chatbot-container {
        width: 90%;
        right: 5%;
        bottom: 10px;
        height: 70vh;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-toggle img {
        width: 25px;
        height: 25px;
    }
}
