/* style/about.css */

:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #002e6e; /* A darker shade of primary for contrast */
    --border-color: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.page-about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-about-section {
    padding: 60px 0;
    text-align: center;
}

.page-about-section:nth-of-type(even) {
    background-color: #e9ecef;
}

.page-about h1,
.page-about h2,
.page-about h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about h1 {
    font-size: 2.8em;
    color: var(--text-light);
}

.page-about h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
}

.page-about h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-about p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
    padding: 80px 0;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-about-hero-image {
    width: 100%;
    max-width: 800px; /* Adjust based on desired visual impact */
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-about-hero-content p {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-about-cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about-cta-button:hover {
    background-color: #e0a800; /* Darker secondary color */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about-grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-about-card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about-card-image {
    width: 100%;
    max-width: 400px; 
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-about-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    text-align: center;
}

.page-about-card p {
    color: var(--text-dark);
    text-align: justify;
}

.page-about-timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
}

.page-about-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.page-about-timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    text-align: left;
}

.page-about-timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.page-about-timeline-item:nth-child(odd) {
    left: 0;
}

.page-about-timeline-item:nth-child(even) {
    left: 50%;
}

.page-about-timeline-item:nth-child(even)::after {
    left: -16px;
}

.page-about-timeline-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.page-about-timeline-item p {
    color: var(--text-dark);
}

.page-about-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about-feature-item {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-about-feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-about-feature-item h3 {
    color: var(--primary-color);
    font-size: 1.4em;
}

.page-about-feature-item p {
    color: var(--text-dark);
    font-size: 1em;
    text-align: center;
}

.page-about-call-to-action {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(90deg, var(--primary-color), var(--bg-dark));
    border-radius: 10px;
    color: var(--text-light);
}

.page-about-call-to-action p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-about-content-block {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.page-about-content-block img {
    flex: 1;
    max-width: 500px; /* Ensure images are large */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-about-content-block > div {
    flex: 2;
}

.page-about-content-block h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.page-about-content-block p {
    text-align: justify;
}

.page-about-faq-list {
    margin-top: 40px;
    text-align: left;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--text-light);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 15px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-about-final-cta {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about h1 {
        font-size: 2.2em;
    }
    .page-about h2 {
        font-size: 1.8em;
    }
    .page-about h3 {
        font-size: 1.4em;
    }
    .page-about-grid-2-cols {
        grid-template-columns: 1fr;
    }
    .page-about-timeline::after {
        left: 20px;
    }
    .page-about-timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }
    .page-about-timeline-item::after {
        left: 13px;
    }
    .page-about-timeline-item:nth-child(even) {
        left: 0;
    }
    .page-about-timeline-item:nth-child(even)::after {
        left: 13px;
    }
    .page-about-content-block {
        flex-direction: column;
    }
    .page-about-content-block img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about-hero {
        padding: 60px 0;
    }
    .page-about h1 {
        font-size: 1.8em;
    }
    .page-about h2 {
        font-size: 1.6em;
    }
    .page-about h3 {
        font-size: 1.2em;
    }
    .page-about p {
        font-size: 1em;
    }
    .page-about-cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about-section {
        padding: 40px 0;
    }
    .faq-question h3 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-about-container {
        padding: 10px;
    }
    .page-about-hero-image {
        margin-bottom: 20px;
    }
    .page-about-hero-content p {
        font-size: 1em;
    }
    .page-about-timeline-item {
        padding-left: 40px;
    }
    .page-about-timeline::after {
        left: 15px;
    }
    .page-about-timeline-item::after {
        left: 8px;
        width: 20px;
        height: 20px;
        top: 18px;
    }
    .page-about-feature-icon {
        width: 80px;
        height: 80px;
    }
    .page-about-call-to-action p {
        font-size: 1.2em;
    }
}