/* RAWABET Detail Pages Unified Theme */

/* Root Variables - Consistent across all pages */
:root {
    --primary-red: #E62727;
    --primary-cream: #F3F2EC;
    --primary-gray: #DCDCDC;
    --primary-teal: #1E93AB;
    --dark-teal: #176d82;
    --light-red: #ff4444;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-light: #F9FAFB;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: var(--primary-cream);
    --bg-hero: var(--primary-gray);
    --bg-card: #FFFFFF;
    
    /* Border and Shadow */
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Global Page Wrapper */
.modern-page-wrapper {
    background: var(--bg-secondary) !important;
    min-height: calc(100vh - 56px) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero Section Unified Styles */
.modern-hero {
    background: var(--bg-hero) !important;
    padding: 4rem 0 3rem !important;
    color: var(--text-primary) !important;
    position: relative;
    overflow: hidden;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(30, 147, 171, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 39, 39, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.modern-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.modern-hero-title {
    color: var(--primary-red) !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modern-hero-subtitle {
    color: var(--text-secondary) !important;
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Card Styles */
.modern-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.modern-card-body {
    padding: 0;
}

/* Section Headings */
.section-heading {
    color: var(--primary-red) !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.modern-section-title {
    color: var(--primary-red) !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Text Styles */
.section-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modern-card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Team Member Cards */
.team-member-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-teal);
}

.team-member-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.team-member-detail {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-member-detail i {
    color: var(--primary-teal);
    font-size: 1rem;
}

.team-member-detail a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.team-member-detail a:hover {
    color: var(--dark-teal);
    text-decoration: underline;
}

/* Leader Card Special Styling */
.leader-card {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    color: white;
    border: none;
}

.leader-card .team-member-name,
.leader-card .team-member-detail {
    color: white;
}

.leader-card .team-member-detail i {
    color: rgba(255, 255, 255, 0.8);
}

.leader-card .team-member-detail a {
    color: rgba(255, 255, 255, 0.9);
}

.leader-card .team-member-detail a:hover {
    color: white;
}

.leader-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Project Cards */
.project-card-hover {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.project-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.project-card-hover .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

/* Status Badges */
.status-badge-new {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    line-height: 1;
}

.status-badge-new.status-ongoing {
    background: var(--primary-teal);
    color: white;
}

.status-badge-new.status-finished {
    background: #10B981;
    color: white;
}

/* Button Styles */
.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.modern-btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: var(--shadow-sm);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    background: var(--light-red);
}

.btn-outline-primary {
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Statistics Cards */
.stats-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(30, 147, 171, 0.05);
    transform: translateX(4px);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: bold;
}

.stat-icon {
    color: var(--primary-teal);
}

/* Modern Info Boxes */
.modern-info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.modern-info-box:hover {
    border-color: var(--primary-teal);
    box-shadow: var(--shadow-md);
}

.modern-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.modern-info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.modern-info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Laboratory Specific Styles */
.lab-link {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lab-link:hover {
    color: var(--dark-teal);
    text-decoration: underline;
}

/* News and Article Cards */
.news-card-new,
.article-card-new {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.news-card-new:hover,
.article-card-new:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-hero {
        padding: 3rem 0 2rem !important;
    }
    
    .modern-hero-title {
        font-size: 2rem;
    }
    
    .modern-hero-subtitle {
        font-size: 1rem;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding: 2rem 0 1.5rem !important;
    }
    
    .modern-hero-title {
        font-size: 1.75rem;
    }
    
    .modern-hero-subtitle {
        font-size: 0.875rem;
    }
    
    .modern-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.25rem;
    }
    
    .modern-section-title {
        font-size: 1.125rem;
    }
    
    .team-member-card {
        padding: 1.25rem;
    }
    
    .stat-item {
        padding: 0.5rem;
    }
    
    .modern-info-box {
        padding: 1rem;
    }
    
    .modern-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .modern-hero {
        padding: 1.5rem 0 1rem !important;
    }
    
    .modern-hero-title {
        font-size: 1.5rem;
    }
    
    .modern-hero-subtitle {
        font-size: 0.8125rem;
    }
    
    .modern-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-heading {
        font-size: 1.125rem;
    }
    
    .team-member-card {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .modern-page-wrapper {
        background: white !important;
    }
    
    .modern-hero {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .modern-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .team-member-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .leader-card {
        background: #f8f9fa !important;
        color: #333 !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .modern-card,
    .team-member-card {
        border: 2px solid var(--text-primary);
    }
    
    .section-heading::after {
        height: 4px;
    }
    
    .leader-card {
        border: 2px solid var(--primary-teal);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .modern-card,
    .team-member-card,
    .project-card-hover,
    .modern-btn,
    .stat-item,
    .modern-info-box {
        transition: none;
    }
    
    .modern-card:hover,
    .team-member-card:hover,
    .project-card-hover:hover,
    .modern-btn-primary:hover {
        transform: none;
    }
}
/*
 ===================================
   Sidebar Enhancements for Detail Pages
   =================================== */

/* Statistics Items */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(30, 147, 171, 0.08);
    transform: translateX(4px);
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
}

.stat-icon {
    color: var(--primary-teal);
    font-size: 1rem;
}

/* News Items in Sidebar */
.news-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    background: rgba(30, 147, 171, 0.03);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px;
}

.news-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: var(--primary-teal);
    text-decoration: none;
}

.news-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.news-read-more {
    font-size: 0.8125rem;
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.news-read-more:hover {
    color: var(--dark-teal);
    text-decoration: none;
    transform: translateX(2px);
}

.news-read-more i {
    transition: transform 0.2s ease;
}

.news-read-more:hover i {
    transform: translateX(3px);
}

/* No News Message */
.no-news-message {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

/* Project Information Items */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.info-item:hover {
    border-color: var(--primary-teal);
    background: rgba(30, 147, 171, 0.03);
}

.info-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.info-label i {
    color: var(--primary-teal);
}

.info-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Modern Icon Badge Improvements */
.modern-icon-badge {
    background: var(--bg-hero);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.modern-icon-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Project Detail Page Specific Styles
   =================================== */

/* Project Description Card */
.modern-card .modern-section-title {
    color: var(--primary-red);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.modern-card-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Team Leader Box */
.team-leader-box {
    background: linear-gradient(135deg, rgba(30, 147, 171, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(30, 147, 171, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Team Members Section */
.team-members-section h6 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.team-member-item {
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.team-member-item:hover {
    border-color: var(--primary-teal);
    background: rgba(30, 147, 171, 0.03);
    transform: translateY(-1px);
}

/* Timeline Info Boxes */
.modern-info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.modern-info-box:hover {
    border-color: var(--primary-teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.modern-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.modern-info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.modern-info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Related Projects Section */
.project-card-hover {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.project-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

.project-card-hover .card-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.project-card-hover .card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===================================
   Responsive Improvements for Sidebar
   =================================== */

@media (max-width: 991px) {
    .stat-item {
        padding: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .news-title {
        font-size: 0.875rem;
    }
    
    .info-item {
        padding: 0.5rem;
    }
    
    .modern-info-box {
        padding: 1rem;
    }
    
    .modern-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .stat-item:hover {
        transform: none;
    }
    
    .news-item:hover {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .team-leader-box {
        padding: 1rem;
    }
    
    .team-member-item {
        padding: 0.5rem;
    }
    
    .modern-info-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .project-card-hover {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .modern-card {
        padding: 1rem;
    }
    
    .modern-section-title {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 0.9375rem;
    }
    
    .news-title {
        font-size: 0.8125rem;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-value {
        font-size: 0.875rem;
    }
}