/* OTRC About Page Styles */

:root {
    --otrc-navy: #212550;
    --otrc-gold: #d4af37;
    --otrc-light: #f8f9fa;
    --otrc-gray: #6c757d;
}

/* ===== Hero Section ===== */
.learn-hero {
    position: relative;
    min-height: 42vh;
    background: linear-gradient(135deg, var(--otrc-navy) 0%, #1a1c3d 100%);
    background-image: url('/images/frontend/slider/slider2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.learn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 37, 80, 0.9) 0%, rgba(26, 28, 61, 0.85) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: 2;
}

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

.hero-content {
    text-align: center;
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--otrc-gold);
    margin-bottom: 0.3rem;
}

.hero-stats .stat-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Common styles inherited from frontend-modern.css */

/* ===== Who We Are Section ===== */
.who-we-are-section {
    padding: 5rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.who-we-are-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* Common typography styles (section-label, section-title, title-underline, lead-text) inherited from frontend-modern.css */

.description {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Feature list styles are inherited from frontend-modern.css */

.image-collage {
    position: relative;
    padding: 2rem;
}

.collage-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.collage-main:hover {
    transform: rotate(0deg) scale(1.02);
}

.collage-main img {
    width: 100%;
    height: auto;
}

.collage-secondary {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 50%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.collage-secondary:hover {
    transform: rotate(0deg) scale(1.05);
}

.stats-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 120px;
}

.badge-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--otrc-gold);
    margin-bottom: 0.25rem;
}

.badge-label {
    font-size: 0.85rem;
    color: var(--otrc-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== History Timeline Section ===== */
.history-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.history-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(
        45deg,
        var(--otrc-navy),
        var(--otrc-navy) 1px,
        transparent 1px,
        transparent 15px
    );
    z-index: 0;
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    color: var(--otrc-gray);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--otrc-gold) 0%, var(--otrc-navy) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--otrc-gold);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item.left .timeline-dot {
    right: -10px;
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

.timeline-dot.active {
    background: var(--otrc-gold);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0.1); }
}

.timeline-date {
    display: inline-block;
    background: var(--otrc-navy);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item.left .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-item.right .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.timeline-content h3 {
    font-size: 1.25rem;
    color: var(--otrc-navy);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--otrc-gray);
    line-height: 1.7;
    margin: 0;
}

.timeline-image {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Values Section ===== */
.values-section {
    padding: 5rem 0;
    background: white;
}

.value-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--otrc-gold), #e5c157);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--otrc-navy);
    margin-bottom: 1rem;
    font-weight: 600;
}

.value-card p {
    color: var(--otrc-gray);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--otrc-navy) 0%, #2a2f5f 100%);
}

.cta-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.cta-section .btn-light {
    background: white;
    color: var(--otrc-navy);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.cta-section .btn-light:hover {
    background: var(--otrc-gold);
    color: white;
}

.cta-section .btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.cta-section .btn-outline-light:hover {
    background: white;
    color: var(--otrc-navy);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Remove curved wave on mobile - make it straight */
    .hero-wave {
        display: none;
    }

    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        text-align: left;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
        padding-left: 60px;
        padding-right: 1rem;
    }
    
    .timeline-item .timeline-dot {
        left: 20px;
        right: auto;
    }
    
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 20px;
    }
    
    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent white transparent transparent !important;
    }
    
    .collage-secondary {
        display: none;
    }
    
    .stats-badge {
        position: static;
        margin-top: 2rem;
    }
    
    .cta-wrapper {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .cta-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-section .btn-outline-light {
        margin-left: 0 !important;
    }
}