/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* CSS Variable */
:root {
    --navbar-height: 60px;
}

/* Navigation Bar */
#navbar {
    display: flex;
    justify-content: space-between; /* Space out the logo and navigation items */
    align-items: center; /* Vertically center items */
    position: sticky;
    top: 0;
    background-color: #f8f8f8;
    padding: 10px 20px; /* Adjust padding as needed */
    z-index: 1000;
}

#navbar::before {
    content: "";
    background-color: #FC6;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.7;
}

/* Navigation Bar: Logo and Image */
#logo img {
    height: 80px;
    margin: 6px 10px;
}

/* Navigation Bar: List Styling */
#navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navbar ul li {
    margin: 0 0.5em; /* Space between menu items */
}

#navbar ul li a {
    color: #000;
    display: block;
    padding: 5px 24px;
    border-radius: 28px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.3rem; /* Adjust font size for desktop */
}

#navbar ul li a:hover {
    color: #000;
    background-color: #FFF;
}

/* Home Section */
#home {
    display: flex;
    flex-direction: column;
    padding: 5px 10px; /* Padding for larger screens */
    height: 550px;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

#home::before {
    content: "";
    position: absolute;
    background: url('images.jpg') no-repeat center/cover;
    height: 100%;
    width: 100%;
    z-index: -1;
    opacity: 0.89;
}

/* Services Section */
#services {
    display: flex;
    flex-direction: column;
    background: #CCC;
    text-align: center;
}

#services .box {
    border: 2px solid #FFF;
    padding: 36px;
    margin: 40px 80px;
    border-radius: 28px;
    background: #FFF;
    margin-bottom: 40px;
}

#services .box img {
    height: 200px;
    margin: auto;
    display: block;
}

#services .box p {
    font-family: 'Bree Serif', serif;
    font-size: 1.2rem; /* Increased font size for readability */
}

/* About Section */
#about {
    height: 100%;
    flex-wrap: wrap;
    text-align: center;
}

#about-section {
    height: 200%;
    position: relative;
    overflow: hidden;
}

#about-section::before {
    content: "";
    position: absolute;
    background-color: #09F;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#about h1 {
    color: #FFF;
    font-size: 3.0rem;
}

#about p {
    color: #FFF;
    font-size: 2.0rem;
    font-family: 'Bree Serif', serif;
}

/* Footer */
footer {
    margin: 0;
    background: #000;
    color: #FFF;
    padding: 20px;
    font-size: 2.0rem; /* Increased font size for better readability */
    text-align: center;
}

/* Utility Classes */
.h-primary {
    font-size: 3.8rem;
    font-family: 'Bree Serif', serif;
    padding: 12px;
    text-align: center;
}

.h-secondary {
    font-family: 'Bree Serif', serif;
    font-size: 2.3rem;
    padding: 12px;
    text-align: center;
}

button {
    font-size: 1.2rem;
    border: none;
    outline: none;
    padding: 4px 8px;
    border-radius: 10px;
    background-color: transparent;
    color: #FFF;
    cursor: pointer;
    text-align: center;
}

button:hover {
    color: #000;
    background: #FFF;
}

/* Red Button Styling */
.red-button {
    color: white;
    background-color: green;
    border: none;
    padding: 0.75em 1.5em; /* Increased padding */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.0rem; /* Increased font size */
    margin: 0.5em 0.25em;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition for hover effects */
}

.red-button:hover {
    background-color: #006400; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect on hover */
}

.red-button:active {
    transform: translateY(1px); /* Slightly depress button on click */
}

/* Shaking animation */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* WhatsApp chat container */
#whatsapp-chat {
    position: fixed;
    bottom: 100px;
    right: 100px;
    z-index: 1000;
    animation: shake 0.5s ease-in-out infinite;
}

#whatsapp-chat a {
    display: block;
    width: 60px;
    height: 60px;
}

#whatsapp-chat img {
    width: 150px;
    height: 150px;
}

/* App Download Section */
#app-download-teaching-options {
    text-align: center; /* Center text and buttons */
    padding: 40px 20px; /* Add padding for better spacing */
    background: #f4f4f4; /* Light background color for contrast */
    border-radius: 8px; /* Rounded corners for the section */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.container {
    margin: 0 auto; /* Center the container */
    max-width: 800px; /* Limit the width of the container */
    padding: 0 20px; /* Add horizontal padding */
}

.description {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333; /* Dark text color for readability */
    margin-bottom: 20px;
}

.highlight {
    color: indigo;
    font-weight: bold;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.center-button-container {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) { /* Tablets */
    #navbar ul li a {
        font-size: 1.5rem;
    }

    #home {
        padding: 1em;
    }

    #services .box {
        margin: 1em;
    }

    #services .box p, #about p {
        font-size: 1.3rem;
    }

    .h-primary {
        font-size: 1.5rem;
    }

    button {
        font-size: 1rem;
    }
}

@media (max-width: 768px) { /* Small tablets and large phones */
    #navbar ul li a {
        font-size: 1.5rem;
    }

    #home {
        padding: 1em;
    }

    #services .box {
        margin: 1em;
    }

    #services .box p, #about p {
        font-size: 1.3rem;
    }

    .h-primary {
        font-size: 1.5rem;
    }

    button {
        font-size: 1rem;
    }
}

@media (max-width: 480px) { /* Phones */
    #navbar ul li a {
        font-size: 1.2rem;
    }

    #home {
        padding: 0.5em;
    }

    #services .box {
        margin: 0.5em;
    }

    #services .box p, #about p {
        font-size: 1.1rem;
    }

    .h-primary {
        font-size: 1.2rem;
    }

    button {
        font-size: 0.9rem;
    }
}
