:root {
    --green-primary: #ffc815;
    --green-light: #585858;
    --green-accent: #ffc815;
    --text-color: #ffffff;
    --highlight-text: #FAFAFA;
    --card-bg: #FFFFFF;
    --card-border: #A9DFBF;
}

/* Body and Global Styling */
/* General Reset for Mobile */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 16px; /* Default font size */
    overflow-x: hidden;
}

body {
    background-color: var(--green-light);
    color: #333;
}

.navbar {
    background-color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    max-width: 100%;
}

.navbar-brand img {
    height: 70px; /* Adjust height as needed */
    width: 100; /* Maintain aspect ratio */
    margin-left : 10px;
}

.navbar-nav .nav-link {
    color: #585858;
    font-weight: 200;
    font-size: 1.5rem;
    margin-right: 40px;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffc815;
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}
.navbar-nav .nav-link:hover {
    color: #ffc815;
}
/* Video Section */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1; /* Video stays below other elements */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay Text */
.overlay-text {
    position: absolute;
    top: 50%; /* Position in the center */
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--highlight-text);
    font-size: 2rem; /* Adjusted font size for better line length */
    line-height: 1.2; /* Adjusted line height for better readability */
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 90%; /* Increased max-width to allow more words */
    white-space: nowrap; /* Prevents text from wrapping to the next line */
    overflow: hidden; /* Ensures overflowing text is hidden */
    text-overflow: ellipsis; /* Adds an ellipsis if text overflows */
    z-index: 2; /* Overlay text above the video */
}

.overlay-text h4 {
    font-size: 2.3rem; /* Adjusted font size */
    font-weight: bold;
    margin-bottom: 10px; /* Increased bottom margin */
}
.overlay-text div {
    font-size: 2.8rem; /* Adjusted font size */
    margin-bottom: 20px; /* Increased bottom margin */
}
.overlay-text .welcome-text {
    font-size: 1.8rem; /* Adjusted font size */
}

/* Button Styling */
.app-button {
    position: absolute;
    top: 70%; /* Position button */
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffc815 0%, #ff9d00 100%);
    color: #333;
    font-size: 1.5rem; /* Base button font size */
    font-weight: 600;
    padding: 10px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(255, 200, 21, 0.3);
    z-index: 2; /* Button above the video */
}

.app-button:hover {
    background-color: var(--green-primary);
    transform: translate(-50%, calc(-50% - 2px));
    box-shadow: 0 6px 12px rgba(var(--green-accent), 0.3);
}

.app-button:active {
    transform: translate(-50%, calc(-50% + 1px));
    box-shadow: 0 2px 4px rgba(var(--green-accent), 0.3);
}

@media (max-width: 768px) {
    .overlay-text {
        font-size: 1rem; /* Further reduced font size for mobile */
        line-height: 1.2; /* Adjusted line height for readability */
        max-width: 90%; /* Adjust max-width for mobile */
        white-space: 1rem; /* Allow wrapping for mobile */
        text-align: center; /* Ensure text remains centered */
    }

    .overlay-text h4 {
        font-size: 2rem; /* Adjust h4 font size */
        margin-bottom: 10px; /* Increased bottom margin */
    }

    .overlay-text div {
        white-space: normal; 
        font-size: 3rem; 
    }

    .app-button {
        font-size: 1rem; /* Reduce button font size */
        padding: 8px 20px; /* Adjust padding */
        top: 75%; /* Adjust button position */
    }
}


#quality-learning {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.main-heading {
    color: #333333;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.sub-heading {
    font-size: 2rem;
    font-weight: bold;
    color: var(--green-primary);
    margin: 0;
    text-align: center;
}

.d-flex {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 150px;
    max-width: 940px;
    margin: auto;
    overflow: hidden;
}

.number {
    background: #585858;
    color: #ffffff;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.green-heading {
    color: var(--green-primary);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.description {
    color: #555;
    font-size: 1.2rem;
    margin: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-heading {
        font-size: 1.5rem; /* Smaller font size for the main heading */
    }

    .sub-heading {
        font-size: 1.5rem; /* Smaller font size for the subheading */
    }

    .d-flex {
        flex-direction: column; /* Stack items vertically */
        height: auto; /* Remove fixed height */
    }

    .number {
        width: 100%; /* Make the number full width */
        text-align: center; /* Center align number */
    }

    .p-3 {
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .green-heading {
        font-size: 1.5rem; /* Smaller font size for subheadings */
    }

    .description {
        font-size: 1rem; /* Smaller font size for paragraphs */
    }
}



/* Main Content Styling */
.section {
    padding: 60px;
    background-color: #F5F5F5;
    text-align: center;
}

/* Eco-Friendly Importance Section Header Styling */
.section h1 {
    color: var(--green-primary);
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
}

/* Eco-Friendly Importance Section Paragraph Styling */
.section p {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

#best-offerings .container {
    max-width: 1200px;
    margin: 0 auto;
}

#best-offerings h2 {
    color: var(--green-primary);
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px; /* Increased bottom margin for better spacing */
}

#best-offerings p {
    font-size: 1.8rem;
    color: #555;
    margin: 0;
}

#best-offerings .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#best-offerings .col-md-3 {
    flex: 0 0 22%; /* Adjusted the percentage to fit larger content */
    margin-bottom: 40px; /* Increased bottom margin for better spacing */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#best-offerings .col-md-3 .text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 40px; /* Increased padding for larger content */
    height: 350px; /* Increased height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 350px;
}

#best-offerings .col-md-3:hover .text-center {
    transform: translateY(-10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#best-offerings .col-md-3 .text-center h5 {
    font-size: 2.2rem; /* Increased font size */
    margin-top: 20px; /* Increased top margin */
    transition: color 0.3s ease;
}

#best-offerings .col-md-3 .text-center p {
    font-size: 1.6rem; /* Increased font size */
    transition: color 0.3s ease;
}

/* Colors for each offering */
#best-offerings .col-md-3:nth-child(1) .text-center {
    background-color: #f8d7da;
}

#best-offerings .col-md-3:nth-child(2) .text-center {
    background-color: #d1ecf1;
}

#best-offerings .col-md-3:nth-child(3) .text-center {
    background-color: #fff3cd;
}

#best-offerings .col-md-3:nth-child(4) .text-center {
    background-color: #d4edda;
}

/* Hover effects on text */
#best-offerings .col-md-3:nth-child(1):hover .text-center h5 {
    color: #721c24;
}

#best-offerings .col-md-3:nth-child(2):hover .text-center h5 {
    color: #0c5460;
}

#best-offerings .col-md-3:nth-child(3):hover .text-center h5 {
    color: #856404;
}

#best-offerings .col-md-3:nth-child(4):hover .text-center h5 {
    color: #155724;
}

/* Hover effects for paragraphs */
#best-offerings .col-md-3:nth-child(1):hover .text-center p {
    color: #721c24;
}

#best-offerings .col-md-3:nth-child(2):hover .text-center p {
    color: #0c5460;
}

#best-offerings .col-md-3:nth-child(3):hover .text-center p {
    color: #856404;
}

#best-offerings .col-md-3:nth-child(4):hover .text-center p {
    color: #155724;
}

footer {
    padding: 20px 0;
    text-align: center;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 250px;
    margin-bottom: 10px;
}

.footer-contact {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: left;
    max-width: 300px;
}

.footer-contact p {
    margin: 5px 0;

}

.footer-social a {
    margin: 0 10px;
    display: inline-block;
}