/* content-page.css */
.content-page {
    font-family: 'Roboto', sans-serif;
    position: relative;
    display: flex;
    flex-direction: column; /* Makes it more flexible for different screen sizes */
    justify-content: center; /* Vertically centers content */
    align-items: left; /* Horizontally centers content */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: left;
    padding: 70px 80px; /* Increased padding for a more spacious design */
    box-sizing: border-box;
    min-height: 50vh; /* Ensures the section takes up full viewport height */
}

.content-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1); /* Overlay effect */
    z-index: 1;
}

.content-overlay {
    text-align: left;
    position: relative;
    padding: 20px;
    max-width: 700px; /* Increased max-width for better readability */
    border-radius: 8px;
    z-index: 2;
    text-align: center; /* Center-align the text */
}

.content-title {
    padding-left: 8%;
    text-align: left;
    color: #fff;
    font-size: 4.5rem;
    font-family: 'Roboto', sans-serif; 
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2; /* Adjust line height for better readability */
}

.content-text {
    padding-left: 8%;
    text-align: left;
    color: #fff;
    font-size: 1.6rem; /* Slightly larger font for readability */
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-primary {    
    padding: .875rem 1.5rem;
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 1px;
    border: 2px solid #fff;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    display: inline-block;
    font-weight: 500;
    margin-top: 3rem;
    transition: all .6s;
}

.btn-primary:hover {
    background-color: white;
    color: black;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .content-title {
        font-size: 3.5rem; /* Slightly smaller title on medium screens */
    }
    .content-text {
        font-size: 1.2rem; /* Adjust text size for better readability */
    }
}

@media (max-width: 768px) {
    .content-page {
        padding: 50px 20px; /* Reduced padding for smaller screens */
    }
    .content-title {
        font-size: 3rem;
    }
    .content-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .content-page {
        padding: 30px 15px; /* Adjust padding on very small screens */
    }
    .content-title {
        font-size: 2.5rem; /* Reduced size for mobile screens */
    }
    .content-text {
        font-size: 1rem; /* Increased font size for better readability */
    }
    .btn-primary {
        font-size: 1.4rem; /* Adjust button font size */
        padding: 0.8rem 1.5rem; /* Adjust padding */
    }
}
