/* General Styles */
html {
    scroll-behavior: smooth;
}

.about-section {
    background-color: white;
    padding: 50px 20px;
}

/* Container to align the image and text side by side */
.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left side: Image */
.about-image img {
    width: 100%;
    max-width: 400px;
    /* Limit image size */
    height: auto;
    border-radius: 8px;
    border: 2px solid black;
}

/* Right side: Content (Heading, Paragraph, Button) */
.about-content {
    flex: 1;
    padding-left: 20px;
}

/* Heading Styles */
.about-heading {
    font-size: 32px;
    font-weight: bold;
    color: black;
    margin-bottom: 15px;
}

/* Heading span styles */
.about-heading-span1,
.about-heading-span2,
.about-heading-span3 {
    display: inline-block;
}

.about-heading-span1,
.about-heading-span3 {
    color: black;
}

/* Paragraph Styles */
.about-paragraph {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Button Styles */
.know-more-btn {
    background-color: green;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button Hover effect */
.know-more-btn:hover {
    background-color: rgb(61, 60, 60);
}

/* Responsive Styles for smaller screens */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        /* Stack image and content vertically */
        text-align: center;
    }

    /* Adjust image styling for smaller screens */
    .about-image img {
        max-width: 100%;
        /* Image should take full width on small screens */
    }

    /* Adjust content styling for smaller screens */
    .about-content {
        padding-left: 0;
        padding-top: 20px;
    }

    /* Adjust Heading font size */
    .about-heading {
        font-size: 28px;
    }

    /* Mobile View Adjustments for Heading */
    .about-heading-span1,
    .about-heading-span2,
    .about-heading-span3 {
        display: block;
        /* Ensure each part of the heading is on a new line */
        font-size: 32px;
        /* Adjust font size if necessary */
    }

    .about-heading-span1 {
        font-size: 40px;
        /* Adjust size for "About" */
        margin-bottom: 5px;
    }

    .about-heading-span2,
    .about-heading-span3 {
        font-size: 28px;
        /* Adjust for "Anya Contracts" and "Private Limited" */
    }

    /* Adjust Paragraph font size */
    .about-paragraph {
        font-size: 10px;
    }

    /* Adjust button size for smaller screens */
    .know-more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    /* Further adjustments for very small screens (e.g., phones in portrait mode) */
    .about-heading {
        font-size: 24px;
    }

    .about-heading-span1,
    .about-heading-span2,
    .about-heading-span3 {
        display: block;
        font-size: 24px;
    }

    .about-heading-span1 {
        font-size: 28px;
        /* "About" in larger size */
    }

    .about-heading-span2,
    .about-heading-span3 {
        font-size: 40px;
        /* Slightly smaller size for "Anya Contracts" and "Private Limited" */
    }

    .about-paragraph {
        font-size: 14px;
    }

    .know-more-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}