/* Modern Premium Styles for O'ZENERGOTA'MINLASH */

:root {
    --primary-blue: #0046b8;
    --primary-dark: #002d7a;
    --primary-gradient: linear-gradient(135deg, #0046b8 0%, #002561 100%);
    --secondary-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --accent-glow: 0 0 20px rgba(59, 130, 246, 0.4);
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: rgba(0,0,0,0.08);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 35px 60px -15px rgba(0, 70, 184, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-white: #ffffff;
    --border-light: rgba(0,0,0,0.08);
}

[data-theme="dark"] :root {
    --bg-white: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-page: #0f172a;
    --border-light: rgba(255,255,255,0.1);
}

/* Premium News Card */
.news-card-premium {
    background: var(--bg-white);
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.news-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.news-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card-premium:hover .news-card-img {
    transform: scale(1.1);
}

.news-card-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-blue);
    z-index: 2;
}

[data-theme="dark"] .news-card-date {
    background: rgba(30, 41, 59, 0.9);
}

.news-card-date .day {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.news-card-date .month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.news-card-title {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.news-card-premium:hover .news-card-title {
    color: var(--primary-blue);
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Premium Badge */
.premium-badge-soft {
    background: rgba(0, 70, 184, 0.08);
    color: var(--primary-blue);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    display: inline-block;
}

.btn-wow-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.news-card-premium:hover .btn-wow-link {
    gap: 10px;
}

/* Leadership Card Modernization */
.leader-card-premium {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.leader-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--primary-gradient);
    opacity: 0.05;
    z-index: 0;
}

.leader-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-blue);
}

.leader-img-wrap {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    padding: 6px;
    background: var(--primary-gradient);
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 70, 184, 0.2);
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-white);
}

.leader-info {
    position: relative;
    z-index: 1;
}

.leader-info h5 {
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 1.25rem;
}

.leader-info .position {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
    min-height: 2.7em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wow-glow {
    background: var(--primary-blue);
    color: white !important;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--accent-glow);
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-wow-glow:hover {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

/* Premium Global Buttons */
.btn-wow-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-smooth);
    background: transparent;
}

.btn-wow-outline:hover {
    background: var(--primary-blue);
    color: white;
}

/* Article Detail Modernization */
.article-body-premium {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.article-title-modern {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.article-meta-modern {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-article-img-wrap {
    border-radius: 20px;
    overflow: hidden;
}

.lead-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    border-left: 5px solid var(--primary-blue);
    padding-left: 25px;
    line-height: 1.5;
}

.article-text-modern {
    font-size: 1.1rem;
    line-height: 1.8;
}

.tag-pill {
    background: var(--bg-light);
    color: var(--primary-blue);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.tag-pill:hover {
    background: var(--primary-blue);
    color: white;
}

.share-bar-premium {
    background: var(--bg-light);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.share-label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.share-btns {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
}

.share-btn.tg { background: #2CA5E0; }
.share-btn.fb { background: #1877F2; }
.share-btn.link { background: #64748b; }

.share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Icons & Utilities */
.icon-circle-small {
    width: 32px;
    height: 32px;
    background: rgba(0, 70, 184, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.premium-badge {
    background: var(--primary-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
[data-aos="fade-up"] {
    transition-property: transform, opacity;
}

.news-card-premium, .leader-card-premium {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
/* Under Development Banner */
.dev-banner {
    background: #FFD700;
    color: #000;
    padding: 8px 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    position: relative;
    z-index: 10000;
}

.dev-banner marquee {
    display: block;
    width: 100%;
}

/* Cross-Browser Survey Accessibility Fixes */
.survey-nav-btns {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-survey {
    position: relative;
    z-index: 20;
    pointer-events: auto;
    cursor: pointer;
}

/* Ensure progress bar doesn't overlap navigation buttons */
.progress-container {
    position: relative;
    z-index: 5;
}

/* Fix for Firefox invisible required fields issue */
[required] {
    box-shadow: none;
}
/* Global Dark Mode Overrides for Visibility */
[data-theme="dark"] body {
    color: #f8fafc !important;
    background-color: #0f172a !important;
}

[data-theme="dark"] p, 
[data-theme="dark"] li, 
[data-theme="dark"] span:not(.badge), 
[data-theme="dark"] small,
[data-theme="dark"] .text-muted {
    color: #cbd5e1 !important;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6,
[data-theme="dark"] .news-card-title,
[data-theme="dark"] .leader-info h5,
[data-theme="dark"] .premium-title,
[data-theme="dark"] .gradient-text {
    color: #f8fafc !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

[data-theme="dark"] .news-card-premium,
[data-theme="dark"] .leader-card-premium,
[data-theme="dark"] .timeline-card-premium,
[data-theme="dark"] .wow-card,
[data-theme="dark"] .article-body-premium,
[data-theme="dark"] .modal-content {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* CKEditor Content Visibility Fixes */
.ck-content ul, .ck-content ol { padding-left: 2rem; margin-bottom: 1.5rem; }
.ck-content ul li { list-style-type: disc !important; margin-bottom: 0.5rem; }
.ck-content ol li { list-style-type: decimal !important; margin-bottom: 0.5rem; }
.ck-content p { margin-bottom: 1.2rem; line-height: 1.8; }
.ck-content h1, .ck-content h2, .ck-content h3, .ck-content h4 { 
    margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; color: var(--primary-dark); 
}

[data-theme="dark"] .ck-content h1, 
[data-theme="dark"] .ck-content h2, 
[data-theme="dark"] .ck-content h3, 
[data-theme="dark"] .ck-content h4 {
    color: #f8fafc !important;
}

[data-theme="dark"] .ck-content p, 
[data-theme="dark"] .ck-content li {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .leader-card-premium::before { opacity: 0.15; }
[data-theme="dark"] .btn-neo { background: rgba(255,255,255,0.05); color: #f8fafc; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .btn-neo.active { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.4); }

/* Modal Dark Mode Fixes */
[data-theme="dark"] .modal-header { border-bottom-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
