/* --- General Section & Container Styles --- */
.page-section {
    padding: 5rem 1rem; /* Generous padding for spacing */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
        margin-top: 66px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, red, blue);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-content p {
    margin-bottom: 1rem;
    max-width: 500px; /* Limits text width for readability */
    text-align: justify;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: block;
}

/* --- Specific Section Styles --- */
.signboards-section {
    background-color: #e6e6e6; /* Slightly different background for visual separation */
}

/* --- Fade-in Animation on Scroll --- */
.page-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.page-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-content,
.image-content {
    flex: 1; /* Each column will take up equal space */
    min-width: 0; /* Prevents flex items from overflowing on smaller screens */
}


/* --- Your existing image rule is correct --- */
.image-content img {
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: block;
}


/* --- Responsive Design (Mobile First Approach) --- */
@media (max-width: 768px) {
    .page-section {
        padding: 3rem 1rem;
    }

    .container {
        flex-direction: column; /* Stack columns vertically on mobile */
        gap: 2rem;
    }

    /* Reverse the visual order for the services section on mobile */
    .services-container {
        flex-direction: column-reverse;
    }
    
    .section-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .text-content {
        text-align: center;
    }

    .text-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .image-content img {
        height: auto; /* Revert to default height on mobile */
        object-fit: initial; /* Reset the object-fit property */
    }
}




/* --- Scroll To Top Button --- */
#scrollToTopBtn {
    position: fixed; /* Keep it in place while scrolling */
    bottom: 20px;
    right: 20px;
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    
    /* Styling */
    background: linear-gradient(45deg, #d946ef, #2563eb);
    color: white;
    border: none;
    border-radius: 50%; /* Makes it circular */
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    /* Center the icon inside */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of other content */
}

/* This class will be added by JavaScript to show the button */
#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    opacity: 0.9;
}