/* Section 2 specific styles */
#section2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 20px 10px; /* Add padding to the top and bottom */
    border: 1px solid transparent; /* Invisible border for debugging */
}

/* Features Section */
#section2 .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Feature Box */
#section2 .grid-item {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px;
    background-color: #f0f0f0; /* New background color */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex: 1; /* Allow the boxes to grow and shrink equally */
    max-width: 300px; /* Maximum width of each box */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    height: 400px; /* Fixed height for each box */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for hover effect */
    overflow: hidden; /* Ensure content does not overflow */
}

#section2 .grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#section2 .grid-item h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#section2 .grid-item p {
    font-size: 1em;
    line-height: 1.5;
}

#section2 .grid-item .small-box {
    background-color: gray; /* Gray color */
    width: 10vw; /* Adjusted width relative to viewport width */
    height: 10vw; /* Adjusted height relative to viewport width */
    max-width: 120px; /* Adjusted maximum width */
    max-height: 120px; /* Adjusted maximum height */
    min-width: 150px; /* Increased minimum width */
    min-height: 100px; /* Increased minimum height */
    margin: 10px auto; /* Center the box and add vertical margin */
    display: block; /* Make the box take the full width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    border-radius: 10px; /* Rounded corners */
}

#section2 .grid-item ul {
    list-style-type: disc; /* Use disc bullets */
    padding-left: 20px; /* Add padding to the left */
    margin-bottom: 20px; /* Add margin to the bottom */
}

#section2 .grid-item ul li {
    margin-bottom: 10px; /* Add space between bullet points */
    color: #666; /* Change color to gray */
    font-size: clamp(0.9em, 2vw, 1em); /* Responsive font size */
    line-height: 1.6; /* Increase line height for better readability */
}

#section2 .hero-text h1 {
    font-size: clamp(2em, 5vw, 10em); /* Responsive font size */
    text-align: center; /* Center the text */
    width: 100%; /* Ensure it takes the full width of the container */
    margin: 0 auto; /* Center the element itself */
}

#section2 .hero-text h1 .outlined-text {
    padding: 2px 4px; /* Minimal padding around the text */
    border: 2px solid black; /* Black outline */
    border-radius: 10px; /* Rounded corners */
    background-color: transparent; /* Transparent background */
    color: #C66B6B; /* Pink text color */
    position: relative; /* Ensure the pseudo-element is positioned correctly */
}

/* Media query for larger screens */
@media (min-width: 1200px) {
    #section2 .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Ensure a maximum of two columns */
    }

    #section2 .grid-item {
        flex-basis: 600px; /* Increase base size for larger screens */
        max-width: 600px; /* Increase max width for larger screens */
    }

    #section2 .grid-item .small-box {
        width: 25vw; /* Increase width relative to viewport width */
        height: 25vw; /* Increase height relative to viewport width */
        max-width: 300px; /* Increase maximum width */
        max-height: 300px; /* Increase maximum height */
    }

    #section2 .hero-text h1 {
        font-size: clamp(2em, 5vw, 10em); /* Responsive font size */
        text-align: center; /* Center the text */
        width: 100%; /* Ensure it takes the full width of the container */
        margin: 0 auto; /* Center the element itself */
    }

    #section2 {
        padding-bottom: 80px; /* Add padding to the bottom to move the arrow down */
    }

    #section2 .arrow-container {
        bottom: 40px; /* Move the arrow container down */
    }
}

/* Media query for medium screens */
@media (max-width: 1200px) {
    #section2 .grid-container {
        grid-template-columns: repeat(2, 1fr); /* Ensure a maximum of two columns */
        padding: 15px; /* Adjust padding for medium screens */
    }

    #section2 .grid-item {
        margin: 5px; /* Adjust margin for smaller screens */
    }

    #section2 {
        padding-bottom: 80px; /* Add padding to the bottom to move the arrow down */
    }
}

/* Media query for small screens */
@media (max-width: 768px) {
    #section2 .grid-container {
        grid-template-columns: 1fr; /* Single column layout for small screens */
        padding: 10px; /* Adjust padding for small screens */
    }

    #section2 .grid-item {
        margin: 5px; /* Adjust margin for smaller screens */
    }

    #section2 {
        padding-bottom: 60px; /* Add padding to the bottom to move the arrow down */
    }
}

/* Ensure the text size remains manageable */
#section2 .grid-item h2 {
    font-size: clamp(1em, 2.5vw, 1.5em); /* Responsive font size */
    margin-bottom: 8px;
}

#section2 .grid-item p {
    font-size: clamp(0.8em, 2vw, 1em); /* Responsive font size */
    color: #666;
    margin-top: auto;
}

/* Media queries for responsive text size */
@media (max-width: 768px) {
    #section2 .grid-item h2 {
        font-size: 0.9em; /* Smaller font size for smaller screens */
    }

    #section2 .grid-item p {
        font-size: 0.7em; /* Smaller font size for smaller screens */
    }
}

@media (min-width: 1200px) {
    #section2 .grid-item h2 {
        font-size: 1.5em; /* Larger font size for larger screens */
    }

    #section2 .grid-item p {
        font-size: 1.0em; /* Larger font size for larger screens */
    }
}

#section2 .hero-text h1 {
    text-align: center; /* Center the text */
    width: 100%; /* Ensure it takes the full width of the container */
    margin: 0 auto; /* Center the element itself */
}

/* Arrow styles for Section 2 */
#section2 .arrow-container {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 1000;
}

#section2 .arrow {
    width: 30px;
    height: 30px;
    border: solid #333;
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 5px;
    transform: rotate(45deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#section2 .arrow:hover {
    transform: rotate(45deg) scale(1.2);
}

#section2 .arrow.outline {
    animation: outline 1s infinite alternate;
}