/* 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 */
.services-overview {
    padding: 80px 20px;
    background-color: #fff;
}

.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: #666;
    margin-bottom: 60px;
}

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

.service-item {
    flex: 1;
    min-width: 280px;
    background-color: #fafafa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

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

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

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

/* Timeline Section Styles */
.timeline-section {
    padding: 60px 20px;
    background-color: #f5e1e1;
}

.timeline-section .container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.timeline-section h2 {
    font-size: 2.5rem;
    color: #057c85;
    margin-bottom: 40px;
}

/* Timeline Base */
.timeline {
    position: relative;
    padding: 20px 0;
}

/* The vertical line in the center */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #d6336c;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin: 20px 0;
    width: 45%;
    padding: 20px;
    background-color: #057c85;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    /* Start hidden and shifted down */
    opacity: 0;
    transform: translateY(50px);
    
    /* Transition for smooth reveal */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Reveal class to show the item */
.timeline-item.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Positioning: odd items on the left, even items on the right */
.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

/* Timeline bullet indicator */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background-color: #d6336c;
    border-radius: 50%;
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: -15px;
}


/* 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;
}

/* FAQ Section */
.faq-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.faq-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 2.5rem;
    color: #d6336c;
    margin-bottom: 40px;
    text-align: center;
}

.faq-item {
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-answer {
    padding: 0 20px;
    font-size: 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-question {
    background-color: #f3f3f3;
}

/* Reveal Animation for the webpage */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1.0s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

    .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 */
    }
}