/* disability-care.css */

/* Hero Section */
.hero-section {
    background-color: #f7e9ed;
    /* Light pink inspired by carnations */
    padding: 60px 20px;
    text-align: center;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    color: #057c85;
    /* Carnation-inspired pink */
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
}

.btn-primary {
    background-color: #057c85;
    color: #ffffff;
    padding: 15px 50px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    align-self: center; /* Center the button */
    margin-left: 340px;
}

.btn-primary:hover {
    background-color: #b8295a;
    transform: scale(1.05);
}

/* Services Overview Section */
.services-overview {
    padding: 80px 20px;
    background-color: #f8f9fa;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.services-overview.active {
    opacity: 1;
    transform: translateY(0);
}

.services-overview .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-overview h2 {
    font-size: 2.5rem;
    color: #555;
    margin-bottom: 40px;
    font-weight: bold;
}

.services-overview p {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 60px;
}

/* Services List */
.services-list {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-item {
    flex: 1 1 30%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.service-item.active {
    opacity: 1;
    transform: translateY(0);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 1.8rem;
    color: #057c85;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}


/* Timeline section */
.aged-care-timeline {
    padding: 60px 20px;
    background-color: #f9f9f9;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.aged-care-timeline.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-header {
    text-align: center;
    font-size: 2.5rem;
    color: #057c85;
    margin-bottom: 40px;
}

.timeline-container {
    display: flex;
    gap: 20px;
}

.timeline-item {
    flex: 0 0 45%;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    white-space: normal;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

.timeline-details h3 {
    font-size: 1.5rem;
    color: #057c85;
    margin-bottom: 10px;
}

.timeline-details p {
    font-size: 1rem;
    color: #333;
}

/* Get in touch button */
.button-container {
    display: flex;
    justify-content: flex-start;
    /* Use flex-end for right, center for middle */
    margin-top: 50px;
    margin-left: 160px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .services-list {
        flex-direction: column;
        gap: 30px;
    }
    .service-item {
        flex: 1 1 100%;
    }

    .button-container {
        justify-content: center;   /* ✅ Center the button on mobile */
        margin-left: 0;            /* ❌ Remove left margin on mobile */
    }

    .btn-primary {
        width: auto;               /* Ensure the button fits content */
        margin: 0 auto;            /* Center horizontally */
    }

    .timeline-header {
        font-size: 1.5rem;          /* Reduce font size slightly */
        white-space: nowrap;        /* Prevent text from wrapping to the next line */
        overflow: hidden;           /* Hide any overflow beyond the screen */
        text-overflow: ellipsis;    /* Add '...' if the text overflows */
        padding: 0 10px;            /* Add some horizontal padding */
        text-align: center;         /* Keep it centered */
    }
}