/* News Styles */

/* Hero Section */
.news-hero {
    position: relative;
    background: var(--primary-color);
    padding: 8rem 0 6rem;
    color: white;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}


.news-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}
/* News Grid */
.news-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* News Card */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    color: var(--nav-text-color);
    text-transform: uppercase;
}

.news-content {
    padding: 2rem;
}

.news-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-content h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content p {
    color: var(--nav-text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-speed);
}

.read-more:hover {
    gap: 1rem;
}

/* Article Page Styles */
.news-article {
    background: var(--background-color);
}

.article-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 6rem 0 4rem;
    color: white;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.article-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.author-role {
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-content {
    padding: 4rem 0;
}

.article-main-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.article-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-text h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
}

.article-text p {
    margin-bottom: 1.5rem;
    color: var(--nav-text-color);
}

.article-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-text li {
    margin-bottom: 0.5rem;
    color: var(--nav-text-color);
}

blockquote {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg,
        rgba(37,99,235,0.05) 0%,
        rgba(96,165,250,0.1) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    font-style: italic;
    color: var(--text-color);
}

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-buttons,
.article-tags {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    color: var(--primary-color);
    transition: var(--transition-speed);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.article-tags a {
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-speed);
}

.article-tags a:hover {
    background: var(--primary-color);
    color: white;
}

/* Media Queries */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .news-content {
        padding: 1.5rem;
    }

    .article-hero {
        padding: 4rem 0 3rem;
    }

    .article-content {
        padding: 2rem 0;
    }
}

/* ========= BIG EDIT ======= */

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%);
    opacity: 0.9;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: patternMove 20s linear infinite;
}

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--background-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.news-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes patternMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(20px) translateY(20px);
    }
}

/* Hover Effects */
.hero-content:hover ~ .hero-pattern {
    animation-play-state: paused;
}

/* Media Queries */
@media (max-width: 768px) {
    .news-hero {
        padding: 6rem 0 4rem;
        min-height: 50vh;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-item {
        min-width: 100px;
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 5rem 0 3rem;
    }

    .hero-subtitle {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }

    .stat-item {
        min-width: 90px;
        padding: 0.6rem;
    }
}




