/* ========================================= */
/* ABOUT SPECIFIC STYLES */
/* ========================================= */

/* Font Fix for Hero Title */
.about-hero .display-3 {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px;
}

.about-hero h1 {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-hero h1 small {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 400 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.about-hero .text-warning {
    font-weight: 800 !important;
}

/* Additional font fixes for all headings in about page */
.about-hero h1,
.about-hero h2,
.about-hero h3,
.about-hero .display-3,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Kanit', sans-serif !important;
}

.about-hero p,
.story-content p,
.objective-content p,
.service-content p {
    font-family: 'kanit', sans-serif !important;
}

/* Deer Badge Font */
.deer-badge {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 600 !important;
}

/* Enhanced Button Fonts */
.btn.enhanced {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 500 !important;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--primary) 50%, var(--earth-brown) 100%);
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(152, 251, 152, 0.1) 0%, transparent 50%);
    opacity: 0.3;
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero-img {
    transition: transform 0.3s ease;
    max-height: 400px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.about-hero-img:hover {
    transform: scale(1.05);
}

/* Smooth Scrolling */
.smooth-scroll {
    scroll-behavior: smooth;
}

#project-overview {
    scroll-margin-top: 100px;
}

#progress {
    scroll-margin-top: 100px;
}

/* Deer Badge */
.deer-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--warning) 0%, #f39c12 100%);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(245, 213, 71, 0.4);
}

/* Enhanced Buttons */
.btn.enhanced {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn.enhanced:hover::before {
    left: 100%;
}

.btn.enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Show on Load Animation */
.show-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

.show-on-load:nth-child(1) {
    animation-delay: 0.1s;
}

.show-on-load:nth-child(2) {
    animation-delay: 0.3s;
}

.show-on-load:nth-child(3) {
    animation-delay: 0.5s;
}

.show-on-load:nth-child(4) {
    animation-delay: 0.7s;
}

/* Story Section */
.story-section {
    background: var(--soft-cream);
}

.story-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.story-img-container img {
    transition: transform 0.3s ease;
}

.story-img-container:hover img {
    transform: scale(1.1);
}

.story-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--success) 0%, var(--forest-green) 100%);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-content .story-text p {
    color: var(--dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Research Objective Items */
.research-objectives {
    margin-top: 20px;
}

.objective-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0.8;
    transform: translateX(-20px);
}

.objective-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.objective-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.objective-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.objective-icon i {
    font-size: 1.5rem;
    color: white;
}

.objective-content h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Kanit', sans-serif !important;
}

.objective-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Kanit', sans-serif !important;
}

/* Mission Cards */
.mission-section {
    background: var(--light);
}

.mission-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid transparent;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.mission-icon i {
    font-size: 2rem;
    color: white;
}

.mission-card:hover .mission-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

.mission-card h4 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Kanit', sans-serif !important;
}

.mission-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-family: 'Kanit', sans-serif !important;
}

/* Progress Items (แทนที่ Achievement Items แบบเก่า) */
.progress-item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
    height: 100%;
}

.progress-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.progress-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
    font-family: 'Kanit', sans-serif !important;
}

.progress-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    font-family: 'Kanit', sans-serif !important;
}

.progress-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Kanit', sans-serif !important;
}

/* Enhanced Achievement Items */
.achievement-item {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
    height: 100%;
}

.achievement-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.achievement-icon i {
    font-size: 1.8rem;
    color: white;
}

.achievement-item:hover .achievement-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

.achievement-content h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'Kanit', sans-serif !important;
}

.achievement-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Kanit', sans-serif !important;
}

/* Team Section */
.team-section {
    background: var(--light);
}

.team-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-item:hover .team-img img {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-item:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 10px;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--warning);
    color: white;
    transform: scale(1.1);
}

.team-content {
    padding: 25px 20px;
    text-align: center;
}

.team-content h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Kanit', sans-serif !important;
}

.team-role {
    color: var(--warning);
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    font-family: 'Kanit', sans-serif !important;
}

.team-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Kanit', sans-serif !important;
}

/* Service Overview Items */
.services-overview {
    background: var(--white);
}

.service-overview-item {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    border-left: 4px solid var(--primary);
}

.service-overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-overview-item .service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-overview-item .service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-content h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Kanit', sans-serif !important;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Kanit', sans-serif !important;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-content ul li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
    font-family: 'Kanit', sans-serif !important;
}

.service-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Service Content Buttons */
.service-content .btn {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Kanit', sans-serif !important;
}

.service-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.contact-detail {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.contact-detail i {
    width: 20px;
}

.contact-infos {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-infos h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Kanit', sans-serif !important;
}

/* Contact Methods Enhancement */
.contact-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-methods .btn {
    padding: 12px 25px;
    font-weight: 600;
    font-family: 'Kanit', sans-serif !important;
}

/* Facebook Link Styling */
a[href*="facebook"] {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
    border: none;
    transition: all 0.3s ease;
}

a[href*="facebook"]:hover {
    background: linear-gradient(135deg, #166fe5, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Partners Section */
.partners-section {
    background: var(--light);
}

.partner-item {
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-item:hover img {
    opacity: 1;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.objective-item {
    animation: fadeInLeft 0.6s ease-out;
}

.objective-item:nth-child(1) {
    animation-delay: 0.1s;
}

.objective-item:nth-child(2) {
    animation-delay: 0.2s;
}

.objective-item:nth-child(3) {
    animation-delay: 0.3s;
}

.objective-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Mobile Font Fixes */
@media (max-width: 991.98px) {
    .about-hero .display-3 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    .about-hero h1 small {
        font-size: 1.1rem !important;
        display: block;
        margin-top: 10px;
    }

    .about-hero-img {
        max-height: 300px;
        margin-top: 20px;
    }

    .objective-item {
        flex-direction: column;
        text-align: center;
    }

    .objective-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .contact-methods {
        justify-content: center;
    }

    .progress-number {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .about-hero .display-3 {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
    }

    .about-hero h1 small {
        font-size: 1rem !important;
    }

    .about-hero-img {
        max-height: 250px;
    }

    .objective-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .objective-icon {
        width: 50px;
        height: 50px;
    }

    .objective-icon i {
        font-size: 1.2rem;
    }

    .mission-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .progress-item {
        margin-bottom: 20px;
        padding: 25px 15px;
    }

    .progress-number {
        font-size: 2.5rem;
    }

    .achievement-icon {
        width: 60px;
        height: 60px;
    }

    .achievement-icon i {
        font-size: 1.5rem;
    }

    .achievement-item {
        margin-bottom: 20px;
    }

    .team-img img {
        height: 450px;
    }

    .service-overview-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .service-overview-item .service-icon {
        margin-bottom: 15px;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-methods .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }

    .story-content {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .about-hero .display-3 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .about-hero h1 small {
        font-size: 0.9rem !important;
    }

    .deer-badge {
        font-size: 0.95rem !important;
        padding: 8px 16px !important;
    }

    .objective-content h5 {
        font-size: 1.1rem;
    }

    .objective-content p {
        font-size: 0.9rem;
    }

    .mission-icon {
        width: 60px;
        height: 60px;
    }

    .mission-icon i {
        font-size: 1.5rem;
    }

    .progress-number {
        font-size: 2.2rem;
    }

    .progress-label {
        font-size: 1.1rem;
    }

    .achievement-content h5 {
        font-size: 1.1rem;
    }

    .team-content {
        padding: 20px 15px;
    }

    .service-overview-item .service-icon {
        width: 50px;
        height: 50px;
    }

    .service-overview-item .service-icon i {
        font-size: 1.2rem;
    }
}

/* Accessibility Improvements */
.objective-item:focus,
.progress-item:focus,
.achievement-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.25);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .objective-item,
    .progress-item,
    .achievement-item {
        border: 2px solid var(--dark);
    }

    .objective-icon,
    .achievement-icon {
        background: var(--dark) !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .objective-item,
    .progress-item,
    .achievement-item,
    .show-on-load {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }

    .smooth-scroll {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {

    .about-hero::before,
    .btn,
    .contact-methods,
    .service-content .btn,
    .team-overlay,
    .team-social {
        display: none !important;
    }

    .about-hero {
        background: white !important;
        color: black !important;
    }

    .about-hero .text-warning {
        color: #333 !important;
    }

    .objective-item,
    .progress-item,
    .achievement-item,
    .team-item,
    .mission-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .research-objectives {
        display: block;
    }

    .objective-item {
        margin-bottom: 15px;
        padding: 15px;
        border: 1px solid #ddd;
    }
}

/* Research Team Section Additional Styles */
.expertise-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.expertise-tag {
    background: linear-gradient(135deg, var(--warning) 0%, #f39c12 100%);
    color: var(--dark);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-family: 'Kanit', sans-serif !important;
}

/* Team Summary */
.team-summary {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.team-summary h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Kanit', sans-serif !important;
}

.expertise-summary {
    padding: 20px;
    background: var(--soft-cream);
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.expertise-summary:hover {
    background: var(--deer-cream);
    transform: translateY(-5px);
}

.expertise-summary i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.expertise-summary h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Kanit', sans-serif !important;
}

.expertise-summary p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Kanit', sans-serif !important;
}

/* Mobile Responsive for Team */
@media (max-width: 768px) {
    .expertise-tags {
        justify-content: center;
    }

    .team-summary {
        padding: 30px 20px;
    }

    .expertise-summary {
        padding: 15px;
        margin-bottom: 15px;
    }

    .expertise-summary i {
        font-size: 2rem;
    }
}