/* About Page Specific Styles - Optimized for founder cards */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 140, 66, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Company History Section */
.company-history {
    padding: 100px 0;
    background: #1a1a1a;
    color: white;
}

.history-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.company-history .section-title {
    color: #ff8c42;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.history-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.history-feature {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s, background 0.3s;
}

.history-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 140, 66, 0.1);
}

.history-feature .feature-icon {
    background: #ff8c42;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.feature-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make PNG icons white */
}

.history-feature .feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.history-feature .feature-content p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.history-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #ff8c42;
}

/* Founders Section */
.founders-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.founders-section .section-title {
    color: #ff8c42;
    text-align: center;
    margin-bottom: 4rem;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.founder-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.founder-image {
    height: 240px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.founder-photo {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.founder-card:hover .founder-photo {
    transform: scale(1.03);
}

/* Remove placeholder - we have actual images now */
.founder-image::before {
    display: none;
}

.founder-info {
    padding: 1.5rem 1.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.founder-name {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.founder-name::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ff8c42, #ffa726);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.founder-card:hover .founder-name {
    color: #ff8c42;
}

.founder-card:hover .founder-name::after {
    width: 60px;
}

.founder-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    transition: color 0.3s ease;
}

.founder-card:hover .founder-description {
    color: #555;
}

/* Loading and animation states for dark theme */
.loading .founder-card {
    opacity: 0;
    transform: translateY(30px);
}

.loaded .founder-card {
    opacity: 1;
    transform: translateY(0);
}

/* Focus states for accessibility - Dark Theme */
.founder-card:focus {
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}

.founder-card:focus-visible {
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}

/* Keyboard navigation styles - Dark Theme */
.keyboard-navigation .founder-card:focus {
    outline: 3px solid #ff8c42 !important;
    outline-offset: 3px !important;
}

.founder-card:hover .founder-photo {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.2);
}

.founder-card:focus-within {
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}

.founder-card:focus-within .founder-photo {
    transform: scale(1.02);
}

/* Smooth transitions for better UX - Dark Theme */
.founder-card * {
    transition: all 0.3s ease;
}

/* Better accessibility for dark theme */
.founder-card:focus {
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}

.founder-card[tabindex]:focus {
    outline: 2px solid #ff8c42;
    outline-offset: 2px;
}

/* Mission Vision Section */
.mission-vision-section {
    padding: 100px 0;
    background: white;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-card, .vision-card, .values-card {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before, .vision-card::before, .values-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.1), transparent);
    transition: left 0.6s;
}

.mission-card:hover::before, .vision-card:hover::before, .values-card:hover::before {
    left: 100%;
}

.mission-card:hover, .vision-card:hover, .values-card:hover {
    border-color: #ff8c42;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 140, 66, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.mission-card h3, .vision-card h3, .values-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
}

.mission-card p, .vision-card p, .values-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ff8c42, #ffa726);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 400px;
    }
    
    .founder-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .company-history .section-title {
        font-size: 2rem;
    }
    
    .history-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .history-feature {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .history-feature .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon-img {
        width: 35px;
        height: 35px;
    }
    
    .history-text p {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .founder-card {
        max-width: 100%;
    }
    
    .founder-image {
        height: 200px;
        padding: 0.8rem;
    }
    
    .founder-photo {
        width: 150px;
        height: 180px;
    }
    
    .founder-info {
        padding: 1.2rem 1.2rem 1.5rem;
    }
    
    .founder-name {
        font-size: 1.1rem;
    }
    
    .founder-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mission-card, .vision-card, .values-card {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .company-history {
        padding: 60px 0;
    }
    
    .founders-section {
        padding: 60px 0;
    }
    
    .mission-vision-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .founders-grid {
        max-width: 320px;
    }
    
    .founder-image {
        height: 180px;
        padding: 0.6rem;
    }
    
    .founder-photo {
        width: 130px;
        height: 160px;
    }
    
    .founder-info {
        padding: 1rem 1rem 1.3rem;
    }
    
    .founder-name {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .founder-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}
/* การปรับแก้ CSS สำหรับขยายรูปผู้ก่อตั้งให้เต็มกรอบ */

/* ปรับขนาด container ของรูปภาพให้เต็มพื้ที่ */
.founder-image {
    height: 350px; /* เพิ่มความสูงมากขึ้น */
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0.2rem; /* ลด padding ให้น้อยที่สุด */
}

/* ขยายรูปภาพให้เต็มกรอบจริงๆ */
.founder-photo {
    width: 100%; /* ใช้ความกว้างเต็ม */
    height: 100%; /* ใช้ความสูงเต็ม */
    object-fit: cover;
    object-position: center 5%; /* เลื่อนรูปขึ้นมาอีก 10% */
    border-radius: 6px;
    transition: transform 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2); /* เพิ่มเงาให้เข้มขึ้น */
}

/* ปรับขนาดการ์ดให้รองรับรูปที่ใหญ่ขึ้น */
.founder-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    max-width: 400px; /* เพิ่มจาก 380px เป็น 400px */
    margin: 0 auto;
}

/* ปรับ hover effect ให้เหมาะสมกับรูปที่ใหญ่ขึ้น */
.founder-card:hover .founder-photo {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.25);
}

/* Responsive Design สำหรับหน้าจอขนาดกลาง */
@media (max-width: 1024px) {
    .founder-image {
        height: 330px;
        padding: 0.2rem;
    }
    
    .founder-photo {
        width: 100%;
        height: 100%;
        object-position: center 8%; /* ปรับตำแหน่งสำหรับหน้าจอกลาง */
    }
}

/* Responsive Design สำหรับ Tablet */
@media (max-width: 768px) {
    .founder-image {
        height: 300px;
        padding: 0.15rem;
    }
    
    .founder-photo {
        width: 100%;
        height: 100%;
        object-position: center 10%; /* ปรับตำแหน่งสำหรับ tablet */
    }
    
    .founder-card {
        max-width: 100%;
    }
}

/* Responsive Design สำหรับมือถือ */
@media (max-width: 480px) {
    .founder-image {
        height: 280px;
        padding: 0.1rem;
    }
    
    .founder-photo {
        width: 100%;
        height: 100%;
        object-position: center 15%; /* ปรับตำแหน่งสำหรับมือถือ */
    }
    
    .founders-grid {
        max-width: 340px;
    }
}