/* About Vertex Widget Styles */
.about-vertex-container {
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header Section */
.about-vertex-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-end!important;
    margin-bottom: 60px;
}

.about-vertex-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-vertex-label {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    letter-spacing: 1px;
    margin: 0;
}

.about-vertex-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: #333333;
    margin: 0;
}

.about-vertex-title .elementor-heading-title {
    margin: 0;
}

.about-vertex-description {
    font-size: 20px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    align-self: center;
}

/* Media Banner Section */
.about-vertex-media-wrapper {
    margin-bottom: 40px;
}

.about-vertex-media {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-vertex-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-vertex-media video,
.about-vertex-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.vertex-youtube-video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    width: 60px;
    height: 60px;
}

/* Statistics Section - Updated to match the design */
.about-vertex-stats-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 60px;
}

.about-vertex-stats {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    text-align: left;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.counter-number {
    font-size: 64px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    color: #333333;
    margin: 0;
}

.counter-title {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    color: #666666;
    margin: 0;
    white-space: nowrap;
}

/* Bottom Description - Now part of stats section */
.about-vertex-bottom-description {
    font-size: 18px!important;
    font-weight: 500!important;
    line-height: 24px;
    color: #666666;
    max-width: 67%;
    margin: 0;
    justify-self: end;
}

/* Animation States */
.counter-number.counting {
    transition: none;
}

.counter-number.completed {
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-vertex-stats-wrapper {
        gap: 60px;
    }
    
    .about-vertex-stats {
        gap: 60px;
    }
    
    .counter-number {
        font-size: 56px;
    }
}

@media (max-width: 1024px) {
    .about-vertex-container {
        padding: 40px 20px;
    }
    
    .about-vertex-header {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .about-vertex-title {
        font-size: 40px;
    }
    
    .about-vertex-stats-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-vertex-stats {
        justify-content: center;
        gap: 20px;
        margin-bottom: 0px;
    }
    
    .about-vertex-bottom-description {
        text-align: center;
        max-width: none;
		font-size: 14px !important;
    }
    
    .about-vertex-media-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .about-vertex-container {
        padding: 30px 15px;
    }
    
    .about-vertex-header {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .about-vertex-description {
        align-self: center;
        text-align: center;
    }
    
    .about-vertex-title {
        font-size: 32px;
    }
    
    .about-vertex-media {
        height: 300px;
    }
    
    .about-vertex-stats-wrapper {
        margin-bottom: 30px;
    }
    
    .about-vertex-stats {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .stat-item {
        align-items: center;
    }
    
    .counter-number {
        font-size: 48px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 40px;
        height: 40px;
    }
    
    .about-vertex-media-wrapper {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .about-vertex-title {
        font-size: 28px;
    }
    
    .about-vertex-description,
    .about-vertex-bottom-description {
        font-size: 14px;
    }
    
    .about-vertex-media {
        height: 250px!important;
        border-radius: 8px;
    }
    
    .counter-number {
        font-size: 26px!important;
    }
    
    .counter-title {
        font-size: 14px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button svg {
        width: 30px;
        height: 30px;
    }
    
    .about-vertex-stats {
        gap: 0px;
    }
}

/* Dark Theme Support */
.elementor-widget-about_vertex_widget.elementor-element-edit-mode .about-vertex-container,
body.dark-mode .about-vertex-container {
    color: #ffffff;
}

body.dark-mode .about-vertex-title {
    color: #ffffff;
}

body.dark-mode .about-vertex-description,
body.dark-mode .about-vertex-bottom-description {
    color: #cccccc;
}

body.dark-mode .counter-number {
    color: #ffffff;
}

body.dark-mode .counter-title {
    color: #cccccc;
}

body.dark-mode .about-vertex-media {
    background: #333333;
}

/* Loading State */
.about-vertex-stats.loading .stat-item {
    opacity: 0.7;
}

.about-vertex-stats.loading .counter-number {
    position: relative;
}

.about-vertex-stats.loading .counter-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Focus States for Accessibility */
.play-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .about-vertex-title {
        color: #000000;
    }
    
    .about-vertex-description,
    .about-vertex-bottom-description,
    .counter-title {
        color: #333333;
    }
    
    .counter-number {
        color: #000000;
    }
    
    .play-button {
        background-color: #000000;
        border: 2px solid #ffffff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .play-button,
    .counter-number {
        transition: none !important;
    }
    
    .play-button:hover {
        transform: translate(-50%, -50%) !important;
    }
    
    .about-vertex-stats.loading .counter-number::after {
        animation: none !important;
    }
}