/* ===================================
   Manufacturer Template Styles
   =================================== */

/* Main Content Wrapper */
.manufacturer_content_wrapper {
    padding: 60px 0;
    position: relative;
}

/* Back Button */
.manufacturer_content_wrapper .back_to_btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.manufacturer_content_wrapper .back_to_btn:hover {
    background: #000;
    color: #fff;
}

.manufacturer_content_wrapper .back_to_btn img {
    width: 20px;
    height: auto;
    transition: transform 0.3s ease;
}

.manufacturer_content_wrapper .back_to_btn:hover img {
    transform: translateX(-5px);
}

/* Content Header */
.content_header_wrapper {
    margin-bottom: 60px;
}

.content_header_wrapper .hm_section_subTitle {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content_header_wrapper .hm_section_title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .content_header_wrapper .hm_section_title {
        font-size: 32px;
    }
}

/* Intro Content */
.manufacturer_intro_content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 80px;
}

.manufacturer_intro_content p {
    margin-bottom: 20px;
}

.manufacturer_intro_content strong {
    font-weight: 700;
    color: #000;
}

/* Aircraft Families Section */
.aircraft_families_wrapper {
    margin-bottom: 80px;
}

.aircraft_family_section {
    margin-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 60px;
}

.aircraft_family_section:last-child {
    border-bottom: none;
}

.family_image_wrapper {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.family_image_wrapper img {
    transition: transform 0.5s ease;
}

.aircraft_family_section:hover .family_image_wrapper img {
    transform: scale(1.05);
}

.family_content .family_title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.family_description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.family_description p {
    margin-bottom: 15px;
}

/* Timeline Section */
.timeline_wrapper {
    margin-bottom: 80px;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.timeline_wrapper .hm_section_title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #000;
}

.timeline_content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Timeline vertical line in center */
.timeline_content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #66b3e0;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline_item {
    position: relative;
    margin-bottom: 100px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    min-height: 200px;
    visibility: visible !important;
    opacity: 1 !important;
}

.timeline_item:last-child {
    margin-bottom: 0;
}

/* Timeline dots */
.timeline_item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #66b3e0;
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 2;
}

/* Text Content Container */
.timeline_text_content {
    flex: 1;
    padding: 20px;
    visibility: visible !important;
    opacity: 1 !important;
}

.timeline_image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    visibility: visible !important;
    opacity: 1 !important;
}

.timeline_image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Odd items - text left, image right */
.timeline_item:nth-child(odd) {
    flex-direction: row;
}

.timeline_item:nth-child(odd) .timeline_text_content {
    text-align: right;
    order: 1;
}

.timeline_item:nth-child(odd) .timeline_image {
    order: 2;
}

/* Even items - image left, text right */
.timeline_item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline_item:nth-child(even) .timeline_text_content {
    text-align: left;
    order: 1;
}

.timeline_item:nth-child(even) .timeline_image {
    order: 2;
}

.timeline_decade {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1;
}

.timeline_subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #66b3e0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.timeline_events {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.timeline_events ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.timeline_events ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.timeline_events ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #66b3e0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.timeline_item:nth-child(odd) .timeline_events ul li {
    padding-left: 0;
    padding-right: 20px;
}

.timeline_item:nth-child(odd) .timeline_events ul li::before {
    left: auto;
    right: 0;
}

/* Handle WYSIWYG paragraph spacing */
.timeline_events p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.timeline_events p:last-child {
    margin-bottom: 0;
}

.timeline_events strong,
.timeline_events b {
    color: #333;
    font-weight: 600;
}

/* Style years/dates in the content */
.timeline_events p strong:first-child {
    color: #66b3e0;
    font-weight: 700;
}

/* Mobile responsive */
@media (max-width: 992px) {
    .timeline_content::before {
        left: 30px;
        transform: none;
    }
    
    .timeline_item::after {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline_item,
    .timeline_item:nth-child(odd),
    .timeline_item:nth-child(even) {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline_text_content,
    .timeline_item:nth-child(odd) .timeline_text_content,
    .timeline_item:nth-child(even) .timeline_text_content {
        text-align: left;
        padding-left: 70px;
        padding-right: 20px;
        order: 1;
    }
    
    .timeline_image,
    .timeline_item:nth-child(odd) .timeline_image,
    .timeline_item:nth-child(even) .timeline_image {
        margin-left: 70px;
        order: 2;
    }
    
    .timeline_events ul li,
    .timeline_item:nth-child(odd) .timeline_events ul li {
        padding-left: 20px;
        padding-right: 0;
    }
    
    .timeline_events ul li::before,
    .timeline_item:nth-child(odd) .timeline_events ul li::before {
        left: 0;
        right: auto;
    }
    
    .timeline_decade {
        font-size: 36px;
    }
    
    .timeline_subtitle {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .timeline_wrapper {
        padding: 40px 15px;
    }
    
    .timeline_decade {
        font-size: 28px;
    }
    
    .timeline_subtitle {
        font-size: 18px;
    }
    
    .timeline_events {
        font-size: 15px;
    }
}

/* Featured Aircraft Carousel */
.carousel_container {
    position: relative;
    margin-top: 40px;
    margin-bottom: 60px;
    padding: 0 60px;
}

.featured_aircraft_carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Carousel Navigation */
.carousel_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #000;
}

.carousel_nav:hover {
    background: #000;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel_nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel_prev {
    left: 0;
}

.carousel_next {
    right: 0;
}

.carousel_nav svg {
    width: 24px;
    height: 24px;
}

/* Carousel Dots */
.carousel_dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel_dot:hover {
    background: #999;
    transform: scale(1.2);
}

.carousel_dot.active {
    background: #000;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .carousel_container {
        padding: 0 50px;
    }
    
    .carousel_nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel_nav svg {
        width: 20px;
        height: 20px;
    }
}

.aircraft_card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.aircraft_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.aircraft_card_image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.aircraft_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aircraft_card:hover .aircraft_card_image img {
    transform: scale(1.1);
}

.aircraft_card_content {
    padding: 30px;
    text-align: center;
}

.aircraft_name {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.aircraft_card .hm_btn {
    display: inline-block;
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.aircraft_card .hm_btn:hover {
    background: #333;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .featured_aircraft_carousel {
        grid-template-columns: 1fr;
    }
}

/* Bottom CTA Section */
.bottom_cta_wrapper {
    padding: 60px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-top: 60px;
    margin-bottom: 40px;
}

.bottom_cta_wrapper .hm_section_title {
    color: #fff;
    margin-bottom: 30px;
    font-size: 36px;
}

.bottom_cta_wrapper .hm_btn {
    background: #fff;
    color: #667eea;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    transition: all 0.3s ease;
}

.bottom_cta_wrapper .hm_btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Responsive Typography */
@media (max-width: 992px) {
    .manufacturer_content_wrapper {
        padding: 40px 0;
    }
    
    .family_content .family_title {
        font-size: 28px;
    }
    
    .timeline_decade {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .manufacturer_content_wrapper .back_to_btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .content_header_wrapper .hm_section_title {
        font-size: 28px;
    }
    
    .manufacturer_intro_content {
        font-size: 16px;
    }
    
    .family_content .family_title {
        font-size: 24px;
    }
    
    .timeline_decade {
        font-size: 22px;
    }
    
    .timeline_subtitle {
        font-size: 18px;
    }
    
    .aircraft_name {
        font-size: 20px;
    }
    
    .bottom_cta_wrapper .hm_section_title {
        font-size: 28px;
    }
}

/* AOS Animation Support */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .back_to_btn,
    .bottom_cta_wrapper {
        display: none;
    }
    
    .aircraft_card {
        page-break-inside: avoid;
    }
}