/* Enhanced News & Articles Section Styles */

/* Section Enhancements */
.news-articles-section {
    position: relative;
    overflow: hidden;
}

.news-articles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 174, 88, 0.05) 0%, rgba(18, 33, 54, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.news-articles-section .container {
    position: relative;
    z-index: 2;
}

/* Enhanced Title Styling */
.title-badge {
    display: inline-block;
    position: relative;
}

.badge-text {
    font-size: 0.875rem;
    letter-spacing: 2px;
    padding: 8px 20px;
    background: rgba(229, 174, 88, 0.1);
    border: 2px solid var(--theme-color, #e5ae58);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.badge-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.title-badge:hover .badge-text::before {
    left: 100%;
}

.enhanced-title {
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color3, #222222) 0%, var(--theme-color, #e5ae58) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.enhanced-subtitle {
    font-size: 1.3rem !important;
    color: var(--color2, #666666) !important;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Title Decoration */
.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.decoration-line {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    opacity: 0.8;
}

.decoration-dots {
    display: flex;
    gap: 8px;
}

.decoration-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.decoration-dots .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.decoration-dots .dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Enhanced News Cards */
.enhanced-news-wrap {
    margin-top: 4rem;
}

.enhanced-news-card {
    background: #ffffff;
    border: 1px solid rgba(229, 174, 88, 0.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    border-radius: 15px !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.enhanced-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(229, 174, 88, 0.15);
    border-color: var(--theme-color, #e5ae58);
}

/* Enhanced Image Styling */
.enhanced-news-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.enhanced-news-img img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.enhanced-news-card:hover .enhanced-news-img img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(229, 174, 88, 0.8) 0%, rgba(18, 33, 54, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.enhanced-news-card:hover .image-overlay {
    opacity: 1;
}

.read-more-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.enhanced-news-card:hover .read-more-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.read-more-overlay i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.read-more-overlay span {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Article Category Badge */
.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.category-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Enhanced News Info */
.enhanced-news-info {
    padding: 2rem 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color2, #666666);
}

.meta-item i {
    font-size: 0.9rem;
    margin-right: 6px;
}

.article-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-title a {
    color: var(--color3, #222222);
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--theme-color, #e5ae58);
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color2, #666666);
    margin-bottom: 1.5rem;
}

.article-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(229, 174, 88, 0.1);
}

.read-more-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.read-more-link:hover {
    transform: translateX(5px);
}

.read-more-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(3px);
}

/* Enhanced CTA Section */
.news-cta-section {
    background: linear-gradient(135deg, rgba(229, 174, 88, 0.05) 0%, rgba(18, 33, 54, 0.05) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.news-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23e5ae58" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--color2, #666666);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.enhanced-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    background: var(--theme-color, #e5ae58);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.enhanced-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.enhanced-btn:hover::before {
    left: 100%;
}

.enhanced-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 174, 88, 0.3);
    color: white;
}

.outline-btn {
    padding: 15px 30px;
    border: 2px solid var(--theme-color, #e5ae58);
    border-radius: 50px;
    color: var(--theme-color, #e5ae58);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    background: transparent;
}

.outline-btn:hover {
    background: var(--theme-color, #e5ae58);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 174, 88, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .enhanced-title {
        font-size: 2.5rem !important;
    }
    
    .enhanced-subtitle {
        font-size: 1.1rem !important;
    }
    
    .enhanced-news-img {
        height: 200px;
    }
    
    .enhanced-news-info {
        padding: 1.5rem 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .enhanced-btn,
    .outline-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .enhanced-title {
        font-size: 2rem !important;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .decoration-line {
        width: 40px;
    }
}

/* Dark Mode Compatibility */
.dark-mode .news-articles-section::before {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.dark-mode .badge-text {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--accent-color, #a855f7);
    color: var(--accent-color, #a855f7);
}

.dark-mode .enhanced-title {
    background: linear-gradient(135deg, var(--text-color, #ecf0f1) 0%, var(--accent-color, #a855f7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark-mode .enhanced-subtitle {
    color: var(--text-light, #bdc3c7) !important;
}

.dark-mode .enhanced-news-card {
    background: var(--bg-secondary, #16213e);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 5px 25px rgba(124, 58, 237, 0.1);
}

.dark-mode .enhanced-news-card:hover {
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2);
    border-color: var(--accent-color, #a855f7);
}

.dark-mode .image-overlay {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
}

.dark-mode .enhanced-news-info {
    background: var(--bg-secondary, #16213e);
}

.dark-mode .meta-item {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .article-title a {
    color: var(--text-color, #ecf0f1);
}

.dark-mode .article-title a:hover {
    color: var(--accent-color, #a855f7);
}

.dark-mode .article-excerpt {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .article-footer {
    border-color: rgba(124, 58, 237, 0.2);
}

.dark-mode .read-more-link {
    color: var(--accent-color, #a855f7);
}

.dark-mode .news-cta-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.dark-mode .cta-title {
    color: var(--text-color, #ecf0f1);
}

.dark-mode .cta-description {
    color: var(--text-light, #bdc3c7);
}

.dark-mode .enhanced-btn {
    background: var(--accent-color, #a855f7);
}

.dark-mode .enhanced-btn:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.dark-mode .outline-btn {
    border-color: var(--accent-color, #a855f7);
    color: var(--accent-color, #a855f7);
}

.dark-mode .outline-btn:hover {
    background: var(--accent-color, #a855f7);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

/* Theme Color Integration */
.thm-clr {
    color: var(--theme-color, #e5ae58) !important;
}

.thm-bg {
    background-color: var(--theme-color, #e5ae58) !important;
}

/* Ensure proper spacing and alignment */
.enhanced-news-wrap .row {
    margin-left: -15px;
    margin-right: -15px;
}

.enhanced-news-wrap .row > div {
    padding-left: 15px;
    padding-right: 15px;
}

/* Animation enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enhanced-news-card {
    animation: fadeInUp 0.6s ease-out;
}

.enhanced-news-card:nth-child(1) { animation-delay: 0.1s; }
.enhanced-news-card:nth-child(2) { animation-delay: 0.2s; }
.enhanced-news-card:nth-child(3) { animation-delay: 0.3s; }
.enhanced-news-card:nth-child(4) { animation-delay: 0.4s; }
.enhanced-news-card:nth-child(5) { animation-delay: 0.5s; }
.enhanced-news-card:nth-child(6) { animation-delay: 0.6s; }
