/* ===================================
   NEWS PAGE - PROFESSIONAL STANDARD DESIGN
   =================================== */

/* Import Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Consistency */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #10b981;
    --accent-color: #059669;
    --text-primary: #1a1a1a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-tertiary: #e2e8f0;
    --background-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* News Page Layout */
.news-page {
    background: var(--background-secondary);
    min-height: 100vh;
}

/* News Page Hero - Premium Professional Design */
.news-page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/Design-1.png') center/cover;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.news-page-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: translate(-100px, -100px) rotate(90deg); 
        opacity: 0.1;
    }
    50% { 
        transform: translate(-200px, -200px) rotate(180deg); 
        opacity: 0.05;
    }
    75% { 
        transform: translate(-100px, -100px) rotate(270deg); 
        opacity: 0.1;
    }
}

.news-page-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-page-title {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-inline-color: transparent;
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

.news-page-subtitle {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    opacity: 0.95;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.news-page-description {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
}

/* News Categories - Premium Professional Design */
.news-categories {
    background: var(--background-gradient);
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.news-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.category-tab {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 18px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transition: left var(--transition-slow);
    z-index: 0;
}

.category-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    transition: opacity var(--transition-base);
    z-index: 1;
}

.category-tab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
    color: white;
}

.category-tab:hover::before {
    left: 0;
}

.category-tab:hover::after {
    opacity: 1;
}

.category-tab.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(15px) brightness(1.1);
}

.category-tab span {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Featured News - Premium Layout */
.featured-news {
    padding: 80px 0;
    background: var(--background-secondary);
}

.featured-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-news-item {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    min-height: 420px;
    transition: all var(--transition-base);
}

.featured-news-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.featured-news-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-news-item:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-news-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* News Content Sections - Professional Organization */
.news-content {
    padding: 80px 0;
    background: var(--background-primary);
}

.news-category-section {
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    letter-spacing: -0.25px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--radius-sm);
}

.news-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.news-item {
    background: var(--background-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
}

.news-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-item:hover .news-image img {
    transform: scale(1.08);
}

.news-content {
    padding: 32px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.news-date {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-date::before {
    content: '📅';
    font-size: 16px;
}

.news-category {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.news-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.news-category.conference { 
    background: linear-gradient(135deg, #dbeafe 0%, #3b82f6 100%); 
    color: #1e40af;
    box-shadow: var(--shadow-sm);
}

.news-category.regulations { 
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%); 
    color: #d97706;
    box-shadow: var(--shadow-sm);
}

.news-category.partnership { 
    background: linear-gradient(135deg, #dcfce7 0%, #10b981 100%); 
    color: #059669;
    box-shadow: var(--shadow-sm);
}

.news-category.technology { 
    background: linear-gradient(135deg, #ede9fe 0%, #7c3aed 100%); 
    color: #6d28d9;
    box-shadow: var(--shadow-sm);
}

.news-category.training { 
    background: linear-gradient(135deg, #fce7f3 0%, #ec4899 100%); 
    color: #be185d;
    box-shadow: var(--shadow-sm);
}

.news-category.security { 
    background: linear-gradient(135deg, #fee2e2 0%, #ef4444 100%); 
    color: #dc2626;
    box-shadow: var(--shadow-sm);
}

.news-category.innovation { 
    background: linear-gradient(135deg, #e0e7ff 0%, #4f46e5 100%); 
    color: #4338ca;
    box-shadow: var(--shadow-sm);
}

.news-category.financial-inclusion { 
    background: linear-gradient(135deg, #f0fdf4 0%, #10b981 100%); 
    color: #059669;
    box-shadow: var(--shadow-sm);
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.25px;
    transition: color var(--transition-base);
}

.news-item:hover .news-title {
    color: var(--secondary-color);
}

.news-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 400;
}

.news-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
    position: relative;
}

.news-link::after {
    content: '→';
    transition: transform var(--transition-base);
}

.news-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.news-link:hover::after {
    transform: translateX(4px);
}

/* Newsletter Section - Professional Design */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/Design-1.png') center/cover;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.newsletter-description {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-base);
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    background: white;
}

.newsletter-input::placeholder {
    color: var(--text-light);
}

.newsletter-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* Responsive Design - Professional Standards */
@media (max-width: 1200px) {
    .news-page-content,
    .newsletter-content {
        max-width: 700px;
    }
    
    .featured-news-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .news-page-hero {
        padding: 80px 0 60px;
    }
    
    .news-page-title {
        font-size: 42px;
    }
    
    .news-page-subtitle {
        font-size: 18px;
        margin-bottom: 24px;
    }
    
    .news-page-description {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .category-tabs {
        gap: 12px;
        padding: 0 16px;
    }
    
    .category-tab {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .featured-news {
        padding: 60px 0;
    }
    
    .featured-news-item {
        grid-template-columns: 1fr;
        min-height: 350px;
        gap: 32px;
    }
    
    .featured-news-content {
        padding: 32px;
    }
    
    .news-category-section {
        margin-bottom: 60px;
        padding: 0 16px;
    }
    
    .category-title {
        font-size: 28px;
        margin-bottom: 36px;
    }
    
    .news-items-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .news-content {
        padding: 24px;
    }
    
    .news-image {
        height: 200px;
    }
    
    .newsletter-section {
        padding: 80px 0;
    }
    
    .newsletter-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
        padding: 6px;
    }
    
    .newsletter-button {
        width: 100%;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .news-page-title {
        font-size: 36px;
    }
    
    .news-page-subtitle {
        font-size: 16px;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .category-tab {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .featured-badge {
        top: 16px;
        left: 16px;
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
    
    .newsletter-description {
        font-size: 15px;
    }
}

/* Animations and Micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-category-section {
    animation: fadeInUp 0.6s ease-out;
}

.news-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }

/* Loading States */
.news-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
.category-tab:focus,
.news-item:focus-within {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.newsletter-input:focus,
.newsletter-button:focus {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .news-categories,
    .newsletter-section {
        display: none;
    }
    
    .news-page-hero {
        background: white;
        color: var(--text-primary);
    }
    
    .news-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
