/* Variabile de sistem pentru o tema unitara */
:root {
    --primary: #003f7f;
    --secondary: #00509e;
    --accent: #f39c12;
    --success: #28a745;
    --danger: #dc3545;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-dark: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header & Hero Area */
.site-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 3rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.header-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.header-logos img {
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Navigation */
.main-nav {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    padding: 1rem 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Layout Containers */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--accent);
    padding-left: 1rem;
    font-size: 1.8rem;
}

/* Container pentru Video Responsiv */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporție 16:9 pentru aspect cinematic */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Carduri si Liste Moderne */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

/* Tabele Admitere */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.modern-table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: left;
}

.modern-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.modern-table tr:nth-child(even) { background-color: #f9f9f9; }
.modern-table tr:hover { background-color: #f1f7ff; }

.status-badge {
    background: var(--success);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
}

/* Calendar Timeline style */
.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #ccc;
}

.timeline-date {
    min-width: 150px;
    font-weight: bold;
    color: var(--secondary);
}

/* Utilitare */
.btn-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn-cta:hover {
    background: #e67e22;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.highlight-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
}

.red-bullet-list {
    list-style: none;
}

.red-bullet-list li::before {
    content: "•";
    color: var(--danger);
    font-weight: bold;
    display: inline-block;
    width: 1rem;
    margin-left: -1rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .nav-item {
        text-align: center;
        padding: 0.8rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .timeline-date {
        color: var(--accent);
        min-width: unset; /* Remove fixed width for dates on mobile */
    }
    
    section {
        padding: 1.2rem;
    }

    .header-logos img {
        height: 60px;
    }
}

.section-subtitle {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Stil pentru titlurile de sub-secțiuni */
.section-subtitle {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary);
    color: white;
    margin-top: 3rem;
}

/* Stiluri specifice pentru conceptul de Threads / Micro-blogging (admitere.html) */
.threads-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.thread-column {
    background: #f0f2f5;
    padding: 1.5rem;
    border-radius: 16px;
    max-height: 800px;
    overflow-y: auto;
}

.thread-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e1e4e8;
}

.thread-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.user-info .name {
    font-weight: bold;
    display: block;
    font-size: 0.9rem;
}

.user-info .handle {
    color: #65676b;
    font-size: 0.8rem;
}

.thread-content {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.thread-footer {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    color: #65676b;
    font-size: 0.85rem;
}

.thread-footer i { cursor: pointer; }
.thread-footer i:hover { color: var(--accent); }

.tag { color: var(--secondary); font-weight: 500; }

@media (max-width: 768px) {
    .threads-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; } /* Force single column for info cards on small screens */
}