/* About Page Styles */

/* ============================================
   HERO SECTION - Expertise Focus
   ============================================ */
.hero-expertise {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    color: #1d1d1f;
    padding: 140px 20px 80px;
    text-align: center;
}

.hero-expertise h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-expertise p {
    font-size: 20px;
    color: #a1a1a6;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.section-expertise {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title-expertise {
    text-align: center;
    margin-bottom: 48px;
}

.section-title-expertise h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.section-title-expertise p {
    font-size: 18px;
    color: #6e6e73;
}

.timeline {
    position: relative;
    padding: 16px 0 16px 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #CC0633, #e85555);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    padding-right: 0;
    margin-bottom: 24px;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 24px;
    width: 14px;
    height: 14px;
    background: #CC0633;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(204, 6, 51, 0.3);
    z-index: 1;
    flex-shrink: 0;
}

.timeline-content {
    background: #f5f5f7;
    padding: 20px;
    border-radius: 16px;
    max-width: calc(100% - 40px);
    margin-left: 36px;
    flex: 1;
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: #CC0633;
    margin-bottom: 8px;
    display: inline-block;
    min-width: 50px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.timeline-item.featured {
    background: linear-gradient(135deg, #fef5f5 0%, #fff5f5 100%);
    border-radius: 16px;
    padding: 4px;
    margin: 8px 0;
    border: 2px solid #CC0633;
}

.timeline-item.featured .timeline-dot {
    background: #CC0633;
    width: 16px;
    height: 16px;
    box-shadow: 0 2px 12px rgba(204, 6, 51, 0.5);
}

.timeline-item.featured .timeline-content {
    background: transparent;
    padding: 16px 20px;
}

.timeline-content p {
    font-size: 14px;
    color: #6e6e73;
}

/* Timeline Period Headers */
.timeline-period {
    margin-bottom: 60px;
}

.timeline-period:last-child {
    margin-bottom: 0;
}

.period-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #CC0633;
}

.period-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 6px 12px;
    background: #CC0633;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.period-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.certifications-section {
    background: #f5f5f7;
    padding: 80px 20px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.cert-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.cert-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cert-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.cert-card p {
    font-size: 14px;
    color: #6e6e73;
}

/* ============================================
   PRODUCTS SLIDER SECTION
   ============================================ */
.products-slider-section {
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    padding: 140px 20px;
}

.products-slider-content {
    max-width: 900px;
    margin: 0 auto;
}

.products-slider-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.products-slider-section p {
    color: #6e6e73;
    margin-bottom: 40px;
}

/* Hero Slider (like index.html) */
.hero-slider {
    max-width: 900px;
    margin: 16px auto;
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: #f5f5f7;
}

.hero-slider .slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    background: #f5f5f7;
    padding: 8px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.slider-arrow {
    width: 30px;
    height: 10px;
    border-radius: 5px;
    background: #CC0633;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: #b0052c;
    transform: scale(1.2);
}

.slider-arrow svg {
    width: 8px;
    height: 8px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d1d6;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.slider-dot:hover {
    background: #86868b;
}

.slider-dot.active {
    background: #CC0633;
    transform: scale(1.2);
}

/* Legacy about-slider class */
.about-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-slider .slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.about-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.about-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.about-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

/* ============================================
   RESEARCH SECTION
   ============================================ */
.research-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
}

.research-content {
    max-width: 900px;
    margin: 0 auto;
}

.research-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.research-section > div > div:first-child {
    text-align: center;
    margin-bottom: 48px;
}

.research-section > div > div:first-child p {
    color: #6e6e73;
    font-size: 1.1rem;
}

.research-table-wrapper {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.research-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.research-table-wrapper th {
    padding: 20px 24px;
    text-align: left;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    background: #CC0633;
}

.research-table-wrapper th:last-child {
    text-align: right;
}

.research-table-wrapper td {
    padding: 18px 24px;
    color: #1d1d1f;
    font-size: 1.05rem;
    border-bottom: 1px solid #e5e5e7;
}

.research-table-wrapper tr:last-child td {
    border-bottom: none;
}

.research-table-wrapper tr:nth-child(even) {
    background: #fafafa;
}

.research-table-wrapper td:last-child {
    text-align: right;
    color: #34c759;
    font-weight: 700;
    font-size: 1.3rem;
}

.research-note {
    text-align: center;
    color: #6e6e73;
    font-size: 0.95rem;
    margin-top: 24px;
    line-height: 1.6;
}

.research-note span {
    color: #1d1d1f;
}

/* ============================================
   PM-INTERNATIONAL SECTION
   ============================================ */
.about-catalog-section {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    padding: 80px 20px;
}

.about-catalog-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-catalog-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    text-align: center;
}

.about-catalog-section > div > p {
    font-size: 18px;
    color: #3d3d3d;
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.about-catalog-section > div > p strong {
    font-weight: 700;
}

.pm-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.08);
}

.pm-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
    text-align: center;
}

.pm-card p {
    font-size: 17px;
    color: #3d3d3d;
    line-height: 1.8;
    text-align: center;
}

.pm-card p:not(:last-child) {
    margin-bottom: 24px;
}

.pm-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.pm-tech-item {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px;
}

.pm-tech-item .pm-tech-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.pm-tech-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.pm-tech-item p {
    font-size: 14px;
    color: #3d3d3d;
    text-align: center;
    margin-top: auto;
}

.pm-tech-item p strong {
    font-weight: 700;
}

.highlight-number {
    font-size: 18px;
    font-weight: 700;
    color: #CC0633;
}

.pm-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pm-stats-item {
    text-align: center;
}

.pm-stats-number {
    font-size: 40px;
    font-weight: 800;
    color: #CC0633;
    margin-bottom: 8px;
    line-height: 1.1;
}

.pm-stats-label {
    font-size: 18px;
    color: #3d3d3d;
    font-weight: 500;
}

/* ============================================
   SCIENCE SECTION
   ============================================ */
.science-section {
    padding: 80px 20px;
    background: #ffffff;
}

.science-content {
    max-width: 900px;
    margin: 0 auto;
}

.institute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.institute-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    text-align: center;
}

.institute-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #1d1d1f;
}

.institute-card p {
    font-size: 14px;
    color: #6e6e73;
    text-align: center;
}

.institute-card p strong {
    font-weight: 600;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
    padding: 80px 20px;
    background: #f5f5f7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #CC0633 0%, #ff4d6d 100%);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: 700;
}

.team-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1d1d1f;
}

.team-card .role {
    font-size: 14px;
    color: #CC0633;
    margin-bottom: 8px;
}

.team-card .bio {
    font-size: 13px;
    color: #6e6e73;
}

/* ============================================
   CTA SECTION (already has classes in main styles)
   ============================================ */

/* ============================================
   FOOTER (uses existing styles)
   ============================================ */
footer .footer-disclaimer {
    color: #6e6e73;
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto 16px;
}

footer .footer-warning {
    color: #86868b;
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.5;
}

footer .footer-note {
    color: #86868b;
    font-size: 14px;
    margin-bottom: 8px;
}

footer .footer-small {
    color: #86868b;
    font-size: 13px;
    margin-bottom: 8px;
}

footer .footer-copyright {
    color: #86868b;
    font-size: 12px;
    margin-top: 24px;
}

footer .footer-disclaimer-small {
    color: #86868b;
    font-size: 11px;
    margin-top: 8px;
    font-style: italic;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #CC0633;
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,113,227,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top.over-blue {
    background: #ffffff;
    color: #CC0633;
}

.back-to-top span {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
    /* Hero - mobile */
    .hero-expertise {
        padding: 120px 16px 50px !important;
    }
    
    .hero-expertise h1 {
        font-size: 28px !important;
    }
    
    .hero-expertise p {
        font-size: 16px !important;
    }
    
    /* Timeline - mobile */
    .timeline::before {
        display: none;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 30px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }
    
    .timeline-dot {
        left: 4px !important;
        top: 22px;
        width: 12px;
        height: 12px;
    }
    
    .section-expertise {
        padding: 50px 16px !important;
    }
    
    .section-title-expertise h2 {
        font-size: 24px !important;
    }
    
    .section-title-expertise p {
        font-size: 15px !important;
    }
    
    .timeline-content {
        padding: 16px !important;
    }
    
    .timeline-year {
        font-size: 20px !important;
    }
    
    .timeline-content h3 {
        font-size: 16px !important;
        margin-bottom: 6px;
    }
    
    .timeline-item.featured h3 {
        font-size: 20px !important;
    }
    
    .timeline-content p {
        font-size: 13px !important;
    }
    
    /* Timeline Period Headers - Mobile */
    .period-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 18px;
    }
    
    .period-header h3 {
        font-size: 1rem;
    }
    
    .period-badge {
        min-width: 60px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .timeline-period {
        margin-bottom: 40px;
    }
    
    .timeline-item {
        margin-bottom: 20px;
    }
    
    .timeline {
        padding-left: 10px;
    }
    
    .timeline-content {
        margin-left: 20px;
        padding: 12px 14px;
    }
    
    .timeline-item.featured .timeline-content {
        padding: 12px;
    }
    
    .timeline-item.featured .timeline-content h3 {
        font-size: 18px;
    }
    
    .timeline-item.featured .timeline-content p {
        font-size: 13px;
    }
    
    /* Certifications - mobile */
    .certifications-section {
        padding: 50px 16px !important;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .cert-card {
        padding: 20px 12px !important;
    }
    
    .cert-icon {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }
    
    .cert-card h3 {
        font-size: 14px !important;
    }
    
    .cert-card p {
        font-size: 11px !important;
    }
    
    /* Slider - mobile - same as index.html */
    .slider-arrow {
        display: flex !important;
        width: 16px !important;
        height: 16px !important;
        min-width: 16px;
        min-height: 16px;
        padding: 0 !important;
        border-radius: 50% !important;
        margin: 0 2px;
        background: #CC0633 !important;
        color: #fff !important;
    }
    
    .slider-arrow svg {
        display: block;
        width: 5px !important;
        height: 5px !important;
        fill: #fff !important;
        stroke: #fff !important;
    }
    
    .slider-dot {
        width: 6px !important;
        height: 6px !important;
        min-width: 6px;
        min-height: 6px;
        border-radius: 50% !important;
        background: #d1d1d6 !important;
    }
    
    .slider-dot.active {
        background: #CC0633 !important;
    }
    
    .slider-dots {
        gap: 4px !important;
    }
    
    /* Science - mobile */
    .science-section {
        padding: 50px 16px !important;
    }
    
    .institute-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .institute-card {
        padding: 20px !important;
    }
    
    .institute-card h3 {
        font-size: 16px !important;
    }
    
    .institute-card p {
        font-size: 13px !important;
    }
    
    /* Team - mobile */
    .team-section {
        padding: 50px 16px !important;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .team-card {
        padding: 20px !important;
    }
    
    .team-avatar {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    
    /* Products Slider - mobile */
    .products-slider-section {
        padding: 120px 16px 40px !important;
    }
    
    /* Research Section - mobile */
    .research-section {
        padding: 60px 16px !important;
    }
    
    .research-section table {
        font-size: 14px;
    }
    
    .research-section th,
    .research-section td {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    
    .research-section th[style*="font-size: 1.1rem"] {
        font-size: 14px !important;
    }
    
    .research-section td[style*="font-size: 1.05rem"] {
        font-size: 13px !important;
    }
    
    .research-section td[style*="font-size: 1.3rem"] {
        font-size: 18px !important;
    }
    
    /* PM-International Section - mobile */
    .about-catalog-section {
        padding: 50px 16px !important;
    }
    
    .about-catalog-section h2 {
        font-size: 24px !important;
    }
    
    .pm-card {
        padding: 24px 16px !important;
    }
    
    .pm-card h3 {
        font-size: 22px !important;
    }
    
    .pm-card p {
        font-size: 14px !important;
    }
    
    .pm-tech-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .pm-tech-item {
        padding: 16px !important;
    }
    
    .pm-tech-item h4 {
        font-size: 16px !important;
    }
    
    .pm-tech-item p {
        font-size: 13px !important;
    }
    
    .pm-tech-item .pm-tech-icon {
        font-size: 28px !important;
    }
    
    .pm-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .pm-stats-item {
        padding: 16px 0;
    }
    
    .pm-stats-number {
        font-size: 36px !important;
    }
    
    .pm-stats-label {
        font-size: 14px !important;
    }
    
    /* About Catalog section - mobile */
    .about-catalog-section {
        padding: 30px 16px !important;
    }
    
    .about-catalog-section h2 {
        font-size: 20px !important;
    }
    
    .about-catalog-section > div > p {
        font-size: 14px !important;
    }
    
    /* Footer - mobile */
    footer {
        padding: 40px 16px !important;
    }
    
    footer p[style*="font-size: 14px"] {
        font-size: 13px !important;
    }
    
    footer p[style*="font-size: 15px"] {
        font-size: 13px !important;
    }
    
    footer p[style*="font-size: 12px"] {
        font-size: 11px !important;
    }
    
    footer p[style*="font-size: 13px"] {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr !important;
    }
    
    .hero-expertise {
        padding: 100px 12px 40px !important;
    }
    
    .pm-stats-number {
        font-size: 32px !important;
    }
}
