/* Team & Achievements Section */
/* Styles applied to existing .about-section */
.about-section {
    /* Ensure we have relative positioning for absolute children if any */
    position: relative;
    /* Overflow hidden to contain marquees */
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Marquee Container */
.marquee-container {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
    overflow: hidden; /* Added to prevent horizontal scroll */
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.marquee-label {
    text-align: center;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    opacity: 0.8;
}

.marquee-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-track.reverse {
    animation-direction: reverse;
}

/* Marquee Item - Vertical Layout */
.marquee-item {
    display: flex;
    flex-direction: column; /* Changed to column */
    align-items: center;
    justify-content: center;
    gap: 12px; /* Space between icon and text */
    background: rgba(255, 255, 255, 0.02); /* Lighter background */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border */
    padding: 20px 24px;
    border-radius: 8px;
    max-width: 260px;
    transition: border-color 0.3s, background 0.3s;
    min-width: 200px; /* Ensure uniform width */
    text-align: center;
}

.marquee-item:hover {
    border-color: rgba(255, 255, 255, 0.2); /* Subtle hover */
    background: rgba(255, 255, 255, 0.05);
}

.marquee-item.expired {
    opacity: 0.4;
    filter: grayscale(100%);
}

.marquee-item.expired:hover {
    opacity: 0.6;
}

.marquee-icon {
    width: 48px; /* Increased for detail */
    height: 48px;
    color: #ccc; /* Muted icon color */
    margin-bottom: 8px;
}

.marquee-text {
    font-weight: 500;
    color: #ccc;
    font-size: 0.85rem; /* Smaller font for full names */
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    text-wrap: balance;
}

.marquee-text.is-long {
    line-height: 1.3;
}

.marquee-subtext {
    font-size: 0.68rem;
    color: #666;
    margin-top: 4px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02px;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Wargaming Block - Compact Version */
.wargaming-block {
    max-width: 600px; /* Further reduced from 800px */
    margin: 0 auto;
    background: rgba(15, 15, 15, 0.6); /* Flat, dark background */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px; /* Sharper corners */
    padding: 24px; /* Compact padding */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.wargaming-block::after {
    content: none; /* Removed gradient line */
}

.wargaming-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px; /* Tighter gap */
}

.wg-info h3 {
    font-size: 1.2rem; /* Smaller title */
    color: #e0e0e0; /* Muted white */
    margin-bottom: 5px;
    line-height: 1.2;
    font-weight: 500;
}

.wg-highlight {
    color: #fff; /* White highlight instead of accent color */
    font-weight: 600;
}

.wg-desc {
    color: #888;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.85rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.wg-stats {
    display: none; /* Removed stats completely for compactness */
}

.wg-partners {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    width: 100%;
}

.wg-partners span {
    display: block;
    font-size: 0.65rem;
    color: #444;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partner-logos {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666; /* Darker text */
    font-size: 0.8rem;
    font-weight: 400;
    justify-content: center;
}

/* Years List - Simplified Visual */
.wg-years-list {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.wg-year-simple {
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.02);
}

.wg-year-simple.active,
.wg-year-simple.recent {
    color: #ccc; /* Muted white */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* License Blocks */
.license-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: stretch; /* Ensure blocks have same height */
}

.license-block {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove link underline */
    height: 100%; /* Fill the grid cell */
}

.license-block:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.license-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.license-icon svg {
    width: 28px;
    height: 28px;
}

.license-content {
    flex: 1;
    text-align: left;
}

.license-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.license-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 8px;
}

.license-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .wargaming-block {
        padding: 25px;
    }
    
    .wg-stats {
        gap: 20px;
    }
    
    .partner-logos {
        gap: 15px;
        font-size: 0.8rem;
    }
    
    .license-row {
        grid-template-columns: 1fr;
    }
    
    .license-block {
        padding: 20px;
        gap: 16px;
    }
    
    .license-icon {
        width: 48px;
        height: 48px;
    }
    
    .license-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .license-title {
        font-size: 1rem;
    }
}
