/* ========================================
   CORECȚII VIZUALE - LPS Mircea Eliade
   Text Alignment, Fonts, Menu Improvements
   ======================================== */

/* ========== TEXT ALIGNMENT JUSTIFY ========== */
p, 
.service-card p,
.catedra-body p,
.footer-description,
.page-content p,
.sport-description p,
.about-text p,
.section-description,
.tab-content p,
article p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Excepții - nu justify pentru anumite elemente */
.text-center p,
.hero-content p,
.stat-label,
.breadcrumb,
.btn,
.nav-link,
.dropdown-menu p,
.footer-bottom p,
.alert p {
    text-align: center !important;
    hyphens: none;
}

/* ========== FONT FIXES ========== */
body {
    font-size: 16px;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix pentru text lung care nu se încadrează */
.catedra-members li,
.profesor-item span,
.org-name,
.coach-card h4,
.feature-list li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

/* ========== IMPROVED SPORTS SUBMENU ========== */
.dropdown-mega .dropdown-section.sports-section {
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.03) 0%, rgba(251, 139, 36, 0.05) 100%);
    border-radius: var(--radius-md);
    padding: 20px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sport-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: white;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}

.sport-menu-item:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(4px);
}

.sport-menu-item .sport-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
}

.sport-menu-item .sport-name {
    flex: 1;
}

.sport-menu-item .sport-count {
    font-size: 11px;
    background: var(--gray-light);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--gray);
}

.sport-menu-item:hover .sport-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ========== ORGANIZARE SECTION IMPROVEMENTS ========== */
.org-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    min-width: 220px;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.org-card.org-director {
    border-top: 4px solid var(--secondary);
}

.org-avatar {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: white;
}

.org-card h5 {
    color: var(--gray);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.org-name {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.org-dept {
    color: var(--gray);
    font-size: 13px;
}

/* ========== CATEDRA CARDS IMPROVEMENTS ========== */
.catedra-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.catedra-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.catedra-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.catedra-header i {
    font-size: 20px;
    color: white;
}

.catedra-header h5 {
    color: white;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.catedra-header .count {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.catedra-body {
    padding: 20px;
}

.catedra-sef {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-light);
}

.catedra-sef i {
    color: var(--secondary);
}

.catedra-members {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catedra-members li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--dark);
    border-bottom: 1px dashed var(--gray-light);
}

.catedra-members li:last-child {
    border-bottom: none;
}

.catedra-members li i {
    color: var(--gray);
    font-size: 12px;
}

/* ========== COMISIE BADGES ========== */
.comisie-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.comisie-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

.comisie-badge i {
    font-size: 20px;
    color: var(--secondary);
}

.comisie-badge:hover i {
    color: white;
}

.comisie-badge span {
    font-size: 14px;
    font-weight: 500;
}

/* ========== RESPONSIVE FIXES ========== */
@media (max-width: 992px) {
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .org-card {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    p {
        text-align: left !important;
        hyphens: none;
    }
    
    .catedra-members li {
        font-size: 12px;
    }
    
    .org-name {
        font-size: 16px;
    }
}

/* ========== SERVICE CARDS TEXT FIX ========== */
.service-card {
    overflow: hidden;
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
}

.service-card table {
    width: 100%;
}

.service-card table td {
    padding: 6px 0;
    vertical-align: top;
}

/* ========== FEATURE LIST IMPROVEMENTS ========== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid var(--gray-light);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--success);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========== SPORT SECTION GRID IN CATEDRA ========== */
.sport-disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.sport-discipline {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 14px;
}

.sport-discipline-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.sport-discipline-title .emoji {
    font-size: 18px;
}

.sport-discipline .catedra-members li {
    font-size: 12px;
    padding: 4px 0;
}

/* ========== TESTIMONIALS CONTRAST FIX ========== */
/* Îmbunătățire contrast pentru secțiunea testimoniale */

.testimonials {
    background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%) !important;
}

.testimonials::before {
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
}

.testimonials .section-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.testimonials .section-title {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.testimonials .section-title span {
    color: #ff6b35 !important;
    text-shadow: 0 2px 8px rgba(255, 107, 53, 0.3) !important;
}

.testimonial-card {
    background: rgba(13, 31, 60, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.testimonial-quote {
    color: #ff6b35 !important;
}

.testimonial-quote i {
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3)) !important;
}

.testimonial-text {
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1.9 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    font-weight: 400 !important;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 24px;
}

.testimonial-avatar {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
}

.testimonial-info h5 {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.testimonial-info p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400 !important;
}

.testimonial-nav button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.testimonial-nav button:hover {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
}

/* ========== MOBILE MENU FIX - Eliminare diamante/markers ========== */
@media (max-width: 1024px) {
    /* Reset complet pentru meniul mobil */
    .nav,
    .nav *,
    #nav,
    #nav *,
    .header .nav,
    .header .nav * {
        list-style: none !important;
        list-style-type: none !important;
    }
    
    /* Eliminare marker/bullet pentru toate elementele din nav */
    .nav::before,
    .nav::after,
    .nav > *::before,
    .nav > *::after,
    .nav-link::before,
    .nav-link::after,
    .nav-dropdown::before,
    .nav-dropdown::after,
    #nav::before,
    #nav::after,
    #nav > *::before,
    #nav > *::after {
        content: none !important;
        display: none !important;
        list-style: none !important;
    }
    
    /* Fix pentru elementele nav-link */
    .nav .nav-link,
    .nav > .nav-link,
    .nav .nav-dropdown > .nav-link,
    #nav .nav-link {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 16px 24px !important;
        color: #ffffff !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        text-decoration: none !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
    }
    
    /* Hover pe link-uri */
    .nav .nav-link:hover,
    #nav .nav-link:hover {
        background: rgba(0, 229, 255, 0.15) !important;
        color: #00e5ff !important;
    }
    
    /* Dropdown submeniu */
    .nav .dropdown-menu,
    #nav .dropdown-menu {
        position: static !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.25) !important;
        border: none !important;
        box-shadow: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
    }
    
    .nav .nav-dropdown.active .dropdown-menu,
    #nav .nav-dropdown.active .dropdown-menu {
        max-height: 500px !important;
    }
    
    /* Link-uri în dropdown */
    .nav .dropdown-menu a,
    #nav .dropdown-menu a {
        display: block !important;
        padding: 14px 24px 14px 44px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        text-decoration: none !important;
        font-size: 0.95rem !important;
    }
    
    .nav .dropdown-menu a:hover,
    #nav .dropdown-menu a:hover {
        background: rgba(0, 229, 255, 0.1) !important;
        color: #ffffff !important;
    }
    
    /* Butonul CTA în meniu */
    .nav .nav-cta,
    #nav .nav-cta {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin: 20px 24px !important;
        padding: 14px 24px !important;
        background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%) !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }
}

/* ========== HERO STATS - Contrast îmbunătățit ========== */
.hero-stats {
    position: relative;
    z-index: 10;
}

.hero-stat {
    background: rgba(10, 36, 99, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.hero-stat:hover {
    background: rgba(10, 36, 99, 0.95) !important;
    border-color: rgba(255, 107, 53, 0.5) !important;
}

.hero-stat-number {
    color: #ff6b35 !important;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.4) !important;
    font-weight: 800 !important;
}

.hero-stat-label {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    font-weight: 500 !important;
}

/* ========== NEWSLETTER SECTION FIX ========== */
.newsletter-section {
    background: linear-gradient(180deg, #0d2140 0%, #1a365d 100%) !important;
}

.newsletter-section h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    border: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Eliminare orice subliniere sau border pe text */
.newsletter-section p,
.newsletter-section span,
.newsletter-section h3,
.newsletter-section h4 {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    padding: 5px !important;
}

.newsletter-input {
    background: #ffffff !important;
    color: #1a365d !important;
    border: none !important;
}

.newsletter-input::placeholder {
    color: #64748b !important;
}

.newsletter-btn {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa000 100%) !important;
    transform: translateY(-2px) !important;
}

/* ========================================================
   FIX FINAL INTERACTIVITATE (Suprapune orice altă setare)
   ======================================================== */
.nav-overlay,
.overlay {
    pointer-events: none !important;
    z-index: 99997 !important; /* Asigură că e sub meniu, dar controlăm click-ul */
}

.nav-overlay.active,
.overlay.active {
    pointer-events: auto !important;
}

/* Asigurare dublă pentru Hero (chiar dacă ai pus deja în style.css) */
.hero::before,
.hero::after {
    pointer-events: none !important;
}

/* Deblocare explicită pentru navigare */
.nav, .header, .mobile-toggle {
    pointer-events: auto !important;
}