/* ========================================
   ABOUT SECTION STYLES
   Component: About Us Section
   ======================================== */

/* About Section */
#about {
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .about-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .about-content {
        gap: 28px;
    }
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-text h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

body.th .about-text h3 {
    font-size: 1.6rem;
    line-height: 1.5;
}

body.zh .about-text h3 {
    font-size: 1.8rem;
}

.about-highlight-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: #f5d6b5;
   // border: 1px solid rgba(30, 64, 175, 0.25);
    border-radius: 8px;
    margin-top: 4px;
	box-shadow: rgba(0, 0, 0, 0.45) 0px 20px 15px -15px;
}

.about-highlight-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.about-highlight-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.about-highlight-text {
    display: flex;
    flex-direction: column;
    /* gap: 5px; */
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #c34800;
    text-align: center;
}

body.th .about-highlight-text {
    font-size: 1.2rem;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none; /* Ensure no default underline */
}

.read-more i {
    color: var(--primary);
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.read-more i::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px; /* Adjust as needed to position the line */
    width: 70%; /* Width of the line */
    height: 2px; /* Thickness of the line */
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease, bottom 0.3s ease;
}

.read-more:hover i {
    transform: translateY(-3px); /* Move icon up on hover */
}

.read-more:hover i::before {
    width: 0; /* Shrink line on hover */
    bottom: -2px; /* Move line up slightly on hover */
}

@media (max-width: 600px) {
    .about-highlight-card {
        align-items: flex-start;
        padding: 10px 10px;
    }

    .about-highlight-icon {
        width: 48px;
        height: 48px;
    }
}

.about-copy p {
    font-size: 1.05rem;
    line-height: 1.8;
}

body.th .about-copy p {
    font-size: 1rem;
    line-height: 1.9;
}

.about-copy p {
    color: var(--gray);
    margin: 0;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

@media (max-width: 768px) {
    .about-feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 32px;
    }
}

.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(30, 64, 175, 0.15);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.28);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.5;
}

.about-image {
    display: flex;
    justify-content: flex-end;
    height: 100%;
}

.about-img-wrapper {
    width: 100%;
    height: 100%;
    /* max-width: 480px; */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(30, 64, 175, 0.18);
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.16);
    background: var(--white);
}

.about-img-wrapper > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-placeholder {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(59, 130, 246, 0.65));
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
}

/* About Slider Styles - Like Hero Camera Slider */
.about-slider-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.about-slider-target {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slide left-right animation */
.about-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: hidden;
    z-index: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.about-slide-item.active {
    visibility: visible;
    z-index: 2;
    transform: translateX(0);
}

/* รูปใหม่เข้าจากขวา (กด next) */
.about-slide-item.enter-from-right {
    transform: translateX(100%);
}

/* รูปใหม่เข้าจากซ้าย (กด prev) */
.about-slide-item.enter-from-left {
    transform: translateX(-100%);
}

/* รูปเก่าออกทางซ้าย (กด next) */
.about-slide-item.exit-to-left {
    visibility: visible;
    z-index: 1;
    transform: translateX(-100%);
}

/* รูปเก่าออกทางขวา (กด prev) */
.about-slide-item.exit-to-right {
    visibility: visible;
    z-index: 1;
    transform: translateX(100%);
}

.about-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Arrows */
.about-slider-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
}

.about-nav-prev,
.about-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.about-slider-wrap:hover .about-nav-prev,
.about-slider-wrap:hover .about-nav-next {
    opacity: 1;
}

.about-nav-prev {
    left: 15px;
}

.about-nav-next {
    right: 15px;
}

.about-nav-prev:hover,
.about-nav-next:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Pagination Dots */
.about-slider-pagination {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.about-pag-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-pag-dot:hover,
.about-pag-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .about-nav-prev,
    .about-nav-next {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        opacity: 1;
    }

    .about-nav-prev {
        left: 10px;
    }

    .about-nav-next {
        right: 10px;
    }

    .about-pag-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 1024px) {
    .about-image {
        justify-content: flex-start;
    }
}

@media (max-width: 968px) {
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .about-img-placeholder {
        min-height: 300px;
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .about-img-placeholder {
        min-height: 220px;
        font-size: 1.4rem;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 80px;
}

@media (max-width: 968px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 60px;
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
}

.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(37, 99, 235, 0.12);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .stat-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 25px 20px;
    }
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.2;
}

body.th .stat-number {
    font-size: 2.3rem;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.5;
}

body.th .stat-label {
    font-size: 0.95rem;
    line-height: 1.6;
}
