/* Others Page Specific Styles - Scoped to prevent conflicts */
/* All styles prefixed with .others-page to avoid affecting other pages */

/* Main Content Container */
.others-content {
    min-height: 100vh;
    background-color: #000249;
    padding: 180px 0 60px 0;
}

.others-content h1 {
    color: white;
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.others-content p {
    color: white;
    text-align: center;
    font-size: 18px;
    margin-bottom: 60px;
}

/* Product Showcase Layout */
.product-showcase-new {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.product-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Product Image Section */
.product-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 0px;
}

.main-product-img {
    width: 100%;
    aspect-ratio: 1.5;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.main-product-img:hover {
    transform: scale(1.05);
}

/* Thumbnail Grid */
.product-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 0;
}

.thumbnail-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.thumbnail-item.active {
    border-color: #dd1717;
    box-shadow: 0 0 0 2px rgba(230, 13, 46, 0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Video Thumbnail Styles */
.thumbnail-item.video-thumbnail {
    position: relative;
    aspect-ratio: 1.5;
    overflow: hidden;
    border-radius: 6px;
}

.thumbnail-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.thumbnail-item.video-thumbnail:hover .play-icon {
    background: rgba(230, 13, 46, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Main Video Player Styles */
.video-container {
    position: relative;
}

.main-product-video {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.main-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(230, 13, 46, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.main-video-play-icon:hover {
    background: rgba(230, 13, 46, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.main-video-play-icon i {
    color: white;
    font-size: 28px;
    margin-left: 4px; /* Slight offset for visual centering */
}

.main-video-play-icon.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Product Details Section */
.product-details {
    padding: 20px 0;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.8;
    color: #666;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #333;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

.product-description p {
    margin-bottom: 15px;
}

.product-description ul {
    list-style-type: none;
    padding-left: 0;
    margin: 15px 0;
    padding-left: 20px;
}

.product-description ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.product-description ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #dd1717;
    font-weight: bold;
}

/* Enquiry Button - Using standardized styling from pjsigns-style-custom.css */

/* Others Page Section Navigation */
.others-section-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 0;
    border-bottom: 3px solid #dd1717;
    margin-bottom: 40px;
}

.section-nav-wrapper {
    text-align: center;
}

.section-nav-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.section-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-nav-link:hover {
    background: #dd1717;
    color: white;
    border-color: #dd1717;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 13, 46, 0.3);
    text-decoration: none;
}

.section-nav-link.active {
    background: #dd1717;
    color: white;
    border-color: #dd1717;
    box-shadow: 0 4px 15px rgba(230, 13, 46, 0.4);
}

.section-nav-link i {
    font-size: 24px;
    margin-bottom: 8px;
}

.section-nav-link span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* Mobile Responsive for Section Navigation */
@media (max-width: 768px) {
    .others-section-nav {
        padding: 20px 0;
    }
    
    .section-nav-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .section-nav-links {
        gap: 15px;
    }
    
    .section-nav-link {
        min-width: 140px;
        padding: 15px 20px;
    }
    
    .section-nav-link i {
        font-size: 20px;
    }
    
    .section-nav-link span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .section-nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .section-nav-link {
        width: 100%;
        max-width: 280px;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .section-nav-link i {
        margin-right: 15px;
        margin-bottom: 0;
    }
}

/* Back to Top Button - Using standardized styling from pjsigns-style-custom.css */

/* Mobile Responsive Design */
@media (max-width: 1024px) {
    .product-layout-container {
        gap: 30px;
    }
    
    .main-product-img {
        aspect-ratio: 1.5;
    }
    
    .product-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .others-content {
        padding: 120px 0 40px 0 !important;
    }
    
    .product-showcase-new {
        margin-bottom: 30px !important;
        padding: 30px 20px !important;
    }
    
    .product-layout-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-product-img {
        aspect-ratio: 1.5;
    }
    
    .product-thumbnails-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .thumbnail-item img {
        height: 60px;
    }
    
    .thumbnail-item.video-thumbnail {
        aspect-ratio: 1.5;
    }
    
    .product-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .product-description {
        font-size: 15px;
    }
    
    .btn-enquiry {
        width: 100%;
        justify-content: center;
        padding: 15px 24px !important;
    }
    
    /* Back to Top Button mobile styles handled by pjsigns-style-custom.css */
}

@media (max-width: 480px) {
    .others-content h1 {
        font-size: 28px !important;
    }
    
    .others-content p {
        font-size: 16px !important;
    }
    
    .product-showcase-new {
        padding: 25px 15px !important;
    }
    
    .main-product-img {
        aspect-ratio: 1.5;
    }
    
    .product-thumbnails-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail-item.video-thumbnail {
        aspect-ratio: 1.5;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-description {
        font-size: 14px;
    }
}

/* Animation for smooth loading */
.product-showcase-new {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better interactivity */
.product-showcase-new .product-details h2 {
    transition: color 0.3s ease;
}


/* Focus states for accessibility */
.thumbnail-item:focus {
    outline: 2px solid #dd1717;
    outline-offset: 2px;
}

.btn-enquiry:focus {
    outline: 2px solid #0f4392;
    outline-offset: 2px;
}

/* ===== ABOUT US PAGE MOBILE OPTIMIZATIONS ===== */
/* Mobile optimizations specifically for about_us.html */

/* MOBILE ONLY - Desktop view preserved above 1140px */
@media only screen and (max-width: 1140px) {
    
    /* Mobile Team Section - Main Container (Mobile Only) */
    .team-section div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: clamp(30px, 8vw, 40px) !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* Mobile Order: 1st - Title (from right column) */
    .team-section div[style*="grid-template-columns: 1fr 1fr"] > div:nth-child(2) {
        order: 1 !important;
        width: 100% !important;
    }
    
    /* Mobile Order: 2nd - Image (from left column) */
    .team-section div[style*="grid-template-columns: 1fr 1fr"] > div:nth-child(1) {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    /* Mobile Team Title - Center Aligned */
    .team-section h2 {
        text-align: center !important;
        font-size: clamp(28px, 7vw, 42px) !important;
        margin: 0 auto clamp(20px, 5vw, 30px) auto !important;
        padding: 0 clamp(15px, 4vw, 20px) !important;
        width: 100% !important;
        max-width: 800px !important;
    }
    
    /* Mobile Team Photo - Centered */
    .team-section .team-photo {
        max-width: clamp(350px, 85vw, 450px) !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .team-section .team-photo img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Mobile Order: 3rd - Content (paragraph from right column) */
    .team-section div[style*="margin-bottom: 30px"] {
        order: 3 !important;
        width: 100% !important;
    }
    
    .team-section p {
        text-align: center !important;
        font-size: clamp(16px, 4vw, 18px) !important;
        line-height: 1.7 !important;
        max-width: 700px !important;
        margin: 0 auto !important;
        padding: 0 clamp(15px, 4vw, 20px) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Force center alignment for team section content */
    .team-section div[style*="margin-bottom: 30px"] p {
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    /* Mobile Feature Boxes - 3 Column to Single Column */
    section div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
    }
    
    /* Mobile Maps Section - Maintain 2 Columns as per memory */
    .maps-section div[style*="grid-template-columns: 1fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: clamp(15px, 4vw, 30px) !important;
        margin-bottom: 40px !important;
    }
    
    .maps-section iframe {
        height: clamp(250px, 50vw, 350px) !important;
        border-radius: clamp(6px, 2vw, 10px) !important;
    }
    
    .maps-section h3 {
        font-size: clamp(18px, 4vw, 22px) !important;
        margin-bottom: clamp(10px, 3vw, 20px) !important;
    }
    
    /* Mobile Timeline Section - Perfect Center Alignment */
    .story-section div[style*="padding-left: 40px"] {
        padding-left: clamp(30px, 8vw, 40px) !important;
    }
    
    /* Timeline vertical line - perfectly centered */
    .story-section div[style*="position: absolute; left: 15px"] {
        left: 12px !important;
        transform: translateX(-50%) !important;
        width: 3px !important;
    }
    
    /* Timeline circles - perfectly centered on the line */
    .story-section div[style*="left: -32px"] {
        left: -35px !important;
        transform: translateX(50%) !important;
        width: 12px !important;
        height: 12px !important;
        top: 8px !important;
    }
    
    /* Timeline content boxes - proper spacing */
    .story-section p.story-text {
        margin-left: clamp(10px, 3vw, 12px) !important;
        padding: clamp(12px, 3vw, 15px) clamp(15px, 4vw, 20px) !important;
        border-left-width: clamp(3px, 1vw, 4px) !important;
    }
    
    /* Mobile Values Grid */
    .values-section .values-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
    }
    
    /* Mobile Contact Grid - 4 Columns to 2x2 Grid */
    .contact-details-section div[style*="grid-template-columns: repeat(4, 1fr)"] {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }
    
    /* Mobile Section Headers - Perfect Center Alignment */
    .section-header {
        text-align: center !important;
        margin-bottom: clamp(30px, 8vw, 60px) !important;
    }
    
    .section-title {
        font-size: clamp(24px, 6vw, 36px) !important;
        text-align: center !important;
    }
    
    .section-description {
        font-size: clamp(16px, 4vw, 18px) !important;
        text-align: center !important;
    }
    
    /* Mobile Container Padding */
    .modern-section .container,
    .modern-section div[style*="max-width: 1300px"] {
        padding: 0 clamp(15px, 4vw, 20px) !important;
        margin: 0 auto !important;
    }
    
    /* Mobile Typography Scaling */
    .story-text {
        font-size: clamp(14px, 3.5vw, 16px) !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }
    
    /* Mobile CTA Section */
    .cta-section h2 {
        font-size: clamp(24px, 6vw, 32px) !important;
        text-align: center !important;
    }
    
    .cta-section p {
        font-size: clamp(16px, 4vw, 18px) !important;
        text-align: center !important;
    }
}

@media only screen and (max-width: 768px) {
    
    /* Small Mobile Maps - Keep 2 Columns but Smaller */
    .maps-section iframe {
        height: clamp(220px, 45vw, 300px) !important;
    }
    
    /* Small Mobile Contact Grid - 2 Columns to Single Column */
    .contact-details-section div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Small Mobile Timeline - Center Alignment */
    .story-section div[style*="padding-left: 40px"] {
        padding-left: 25px !important;
    }
    
    /* Small Mobile Timeline Line - centered */
    .story-section div[style*="position: absolute; left: 15px"] {
        left: 12px !important;
        width: 2px !important;
    }
    
    /* Small Mobile Timeline Circles - centered on line */
    .story-section div[style*="left: -32px"] {
        left: -27px !important;
        width: 10px !important;
        height: 10px !important;
        top: 6px !important;
    }
    
    /* Small Mobile Timeline Content */
    .story-section p.story-text {
        margin-left: 8px !important;
        padding: 10px 15px !important;
        border-left-width: 3px !important;
    }
}

@media only screen and (max-width: 480px) {
    
    /* Extra Small Mobile Maps - Still 2 Columns but Compact */
    .maps-section div[style*="grid-template-columns: 1fr 1fr"] {
        gap: 10px !important;
    }
    
    .maps-section iframe {
        height: clamp(200px, 40vw, 250px) !important;
    }
    
    .maps-section h3 {
        font-size: clamp(16px, 4vw, 18px) !important;
    }
}
