/* --- about.css --- */

/* Hero Section */
.hero-about {
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7)), url('https://images.unsplash.com/photo-1556740738-b6a63e27c4df?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 1s;
}

.hero-about h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Common Section Title */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-navy);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-teal);
    border-radius: 2px;
}

/* Vision & Mission & Technology Grid */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.vm-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.vm-icon {
    font-size: 3rem;
    color: var(--accent-teal);
    display: block;
    margin-bottom: 15px;
}

.vm-card h2 {
    color: var(--primary-navy);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.vm-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
}

/* Our Story Section */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.story-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.story-content h2 {
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.story-content p {
    margin-bottom: 15px;
    color: #444;
    line-height: 1.9;
}

/* Timeline Section */
.timeline-section {
    background-color: var(--white);
    padding: 60px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-teal);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: white;
    border: 4px solid var(--accent-teal);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-container.left { left: 0; }
.timeline-container.right { left: 50%; }

.timeline-container.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--light-gray);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--light-gray);
}

.timeline-container.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--light-gray);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--light-gray) transparent transparent;
}

.timeline-container.right::after {
    left: -12.5px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--light-gray);
    position: relative;
    border-radius: 8px;
}

.timeline-year {
    position: absolute;
    top: -40px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-navy);
}
.timeline-container.left .timeline-year { right: 0; }
.timeline-container.right .timeline-year { left: 0; }

.timeline-content h3 {
    color: var(--primary-navy);
    margin-bottom: 10px;
}

/* Core Values Section */
.values-section {
    padding: 60px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.value-item {
    text-align: center;
    padding: 20px;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    background-color: rgba(57, 204, 204, 0.1);
    color: var(--accent-teal);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
}

.value-item h3 {
    color: var(--primary-navy);
    margin-bottom: 10px;
}

/* Statistics Section */
.stats-section {
    background: var(--primary-navy);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.stats-section .section-title {
    color: var(--white);
}
.stats-section .section-title::after {
    background-color: var(--accent-teal);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--accent-teal);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Team Section */
.team-section {
    padding: 60px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.team-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(50%);
    transition: filter 0.3s;
}
.team-card:hover .team-img img {
    filter: grayscale(0%);
}

.team-info {
    padding: 20px;
}

.team-name {
    font-size: 1.3rem;
    color: var(--primary-navy);
}

.team-role {
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-bio {
    font-size: 0.9rem;
    color: #666;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Sarabun', sans-serif;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-teal);
    transition: transform 0.3s;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}

.faq-answer p {
    padding-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-about h1 { font-size: 2.2rem; }
    .story-section { grid-template-columns: 1fr; }
    .timeline::after { left: 15px; margin-left: 0; }
    .timeline-container { width: 100%; padding-left: 50px; padding-right: 15px; }
    .timeline-container::before { left: 40px; border-width: 10px 10px 10px 0; border-color: transparent var(--light-gray) transparent transparent; }
    .timeline-container.left::after, .timeline-container.right::after { left: 2.5px; }
    .timeline-container.right { left: 0%; }
    .timeline-container.left .timeline-year, .timeline-container.right .timeline-year { left: 0; }
}