/* CSS สำหรับหน้าเกี่ยวกับเรา (about.css) */

/* Hero Banner Styles */
.about-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('assets/icon/wallpaper.png');
    background-size: cover;
    background-position: center;
    margin-bottom: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.about-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    width: 80%;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* About Section Styles */
.about-section {
    margin-bottom: 4rem;
}

.about-content {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-image {
    width: 40%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    width: 60%;
    padding: 2rem;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #8B4513;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

/* Mission and Vision Styles */
.mission-vision {
    background-color: #f9f9f9;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.mission-vision-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.mission, .vision {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 48%;
    text-align: center;
    transition: transform 0.3s ease;
}

.mission:hover, .vision:hover {
    transform: translateY(-5px);
}

.mission-icon, .vision-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: #FF8C00;
    color: white;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.mission h2, .vision h2 {
    font-size: 2rem;
    color: #8B4513;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission p, .vision p {
    line-height: 1.6;
    color: #555;
}

/* Values Section Styles */
.values-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.value-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #FF8C00;
    color: white;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.value-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

/* Team Section Styles */
.team-section {
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.team-member h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
    text-align: center;
}

.member-position {
    font-size: 1rem;
    color: #FF8C00;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.member-description {
    padding: 0 1.5rem 1.5rem;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

/* CTA Section Styles */
.cta-section {
    background-color: #FF8C00;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: white;
    color: #FF8C00;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn:hover {
    background-color: #8B4513;
    border-color: #8B4513;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: #FF8C00;
    border-color: white;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero-content h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .about-image, .about-text {
        width: 100%;
    }

    .mission-vision-content {
        flex-direction: column;
    }

    .mission, .vision {
        width: 100%;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    .about-hero-content p {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 576px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        height: 300px;
    }

    .about-hero-content h1 {
        font-size: 2rem;
    }

    .about-hero-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* เพิ่มสไตล์สำหรับลิงก์ที่กำลังเปิดอยู่ในเมนู */
nav ul li a.active {
    color: #8B4513;
}

nav ul li a.active::after {
    width: 100%;
}