/* ORAN-TWIN Optimized Styles */
/* ========================== */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Skip Link Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    z-index: 1000;
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* Back to Top Button */
.backtotop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0066cc;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
    z-index: 1000;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.backtotop.visible {
    opacity: 1;
    transform: translateY(0);
}

.backtotop:hover {
    background: #0052a3;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.backtotop:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Content Spacing */
.entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.8rem;
    line-height: 1.3;
}

.entry-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #444;
    font-size: 1.4rem;
}

.entry-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Challenge Section Styling */
.challenge-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #0066cc;
}

.challenge-section h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Team Section Styling */
.team-section, .researcher-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0066cc;
}

.team-member {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.member-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 2rem;
    border: 4px solid #0066cc;
    flex-shrink: 0;
    display: block;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    color: #0066cc;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.member-role a {
    color: #0066cc;
    text-decoration: none;
}

.member-role a:hover {
    text-decoration: underline;
}

.member-bio {
    line-height: 1.6;
    color: #555;
}

/* Researcher Grid */
.researcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.researcher-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.researcher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.researcher-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #0066cc;
    display: block;
}

.researcher-info h4 {
    color: #0066cc;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.researcher-role {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Industry Partners */
.industry-partners {
    margin: 3rem 0;
    text-align: center;
}

.industry-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.industry-logos a {
    transition: transform 0.3s ease;
}

.industry-logos a:hover {
    transform: scale(1.05);
}

/* Work Package Styling */
.work-package {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #0066cc;
}

.wp-title {
    color: #0066cc;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.task-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.task-item:hover {
    transform: translateX(5px);
}

.task-item h4 {
    color: #0066cc;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Partner Logo Styling - Simple Images Only */
.partner-logos {
    margin: 3rem 0;
    text-align: center;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.logo-grid a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-grid a:hover {
    transform: scale(1.05);
}

.logo-grid img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contact Info Styling */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #dee2e6;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* News and Videos Page Styles */
/* =========================== */

.news-section, .videos-section, .publications-section, .events-section {
    margin: 3rem 0;
}

/* News Items */
.news-item {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #0066cc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-date {
    color: #0066cc;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-item h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.video-placeholder i {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.video-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-placeholder small {
    color: #999;
    font-size: 0.9rem;
}

.video-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin: 1.5rem 1.5rem 0.5rem;
}

.video-item p {
    color: #666;
    margin: 0 1.5rem 1.5rem;
    line-height: 1.6;
}

/* Publications */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.publication-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #0066cc;
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateX(5px);
}

.publication-item h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.publication-venue {
    color: #0066cc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.publication-status {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Events */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    display: flex;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: #0066cc;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-right: 2rem;
    min-width: 80px;
    flex-shrink: 0;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .year {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.event-details {
    flex: 1;
}

.event-details h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-details p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.event-location {
    color: #0066cc;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .site-header .wrapper {
        padding: 1rem;
    }
    
    .team-member {
        flex-direction: column;
        text-align: center;
    }
    
    .member-photo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .researcher-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .challenge-section,
    .work-package {
        padding: 1.5rem;
    }
    
    .backtotop {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    .news-item, .publication-item, .event-item {
        padding: 1.5rem;
    }
    
    /* Mobile responsiveness for partner logos */
    .logo-grid {
        gap: 1.5rem;
    }
    
    .logo-grid img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content h3 {
        font-size: 1.2rem;
    }
    
    .team-member {
        padding: 1rem;
    }
    
    .member-photo {
        width: 150px;
        height: 150px;
    }
    
    .researcher-photo {
        width: 120px;
        height: 120px;
    }
    
    .video-placeholder {
        height: 150px;
    }
    
    .video-placeholder i {
        font-size: 2rem;
    }
    
    .event-date {
        min-width: 60px;
        padding: 0.8rem;
    }
    
    .event-date .day {
        font-size: 1.5rem;
    }
    
    /* Mobile responsiveness for partner logos */
    .logo-grid {
        gap: 1rem;
    }
    
    .logo-grid img {
        max-width: 100px;
    }
}

/* Print Styles */
@media print {
    .backtotop,
    .skip-link {
        display: none;
    }
    
    .team-member,
    .researcher-card {
        break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .backtotop {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .team-member,
    .researcher-card,
    .task-item {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .backtotop,
    .team-member,
    .researcher-card,
    .task-item {
        transition: none;
    }
    
    .backtotop:hover,
    .team-member:hover,
    .researcher-card:hover {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}
