/* news.css */
:root {
    --primary-color: #00D094;
    --secondary-color: #333;
    --background-light: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 80px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* News Hero Section */
.news-hero {
    position: relative;
    background: url('images/news-bg.jpg') no-repeat center center;
    background-size: cover;
    height: 400px;
    margin-top: 0px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.news-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

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

.news-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    justify-content: center;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb a.active {
    color: var(--primary-color);
    opacity: 1;
}

.breadcrumb .separator {
    color: var(--white);
    opacity: 0.6;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    gap: 8px;
}

/* Register Button */
.register-btn {
    background: linear-gradient(45deg, var(--primary-color), #00e6a3);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 208, 148, 0.2);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 148, 0.3);
}

/* News Categories Section */
.news-categories {
    padding: 30px 0;
    background: var(--background-light);
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 12px 24px;
    border: none;
    background: var(--white);
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn i {
    font-size: 1.1rem;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-btn.active {
    background: linear-gradient(45deg, var(--primary-color), #00e6a3);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 208, 148, 0.2);
}

/* Featured News Section */
.featured-news {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.featured-news-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: var(--transition);
}

.featured-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.featured-news-image {
    height: 300px;
    overflow: hidden;
}

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

.featured-news-content {
    padding: 25px;
}

.featured-news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.featured-news-content p {
    color: #666;
    margin-bottom: 20px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
}

/* Read More Button */
/* Read More Button Style */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary-color), #00e6a3);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 208, 148, 0.2);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 148, 0.3);
}

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

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

/* Load More Button */
.load-more {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: linear-gradient(45deg, var(--primary-color), #00e6a3);
    color: var(--white);
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 208, 148, 0.2);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 148, 0.3);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: rotate(180deg);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--background-light);
    padding: 60px 0;
    margin-top: 60px;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.newsletter-content p {
    color: #666;
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form button {
    background: linear-gradient(45deg, var(--primary-color), #00e6a3);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 208, 148, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 148, 0.3);
}

/* Glow Effect */
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 50%);
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.glow-effect:hover::after {
    transform: scale(1);
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .featured-news-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-news-image {
        height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .news-hero {
        height: 300px;
        margin-top: 0px;
    }

    .news-hero h1 {
        font-size: 2.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .category-filters {
        flex-direction: column;
        padding: 0 20px;
    }

    .category-btn {
        width: 100%;
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .register-btn,
    .read-more-btn,
    .load-more-btn,
    .category-btn,
    .newsletter-form button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 576px) {
    .news-hero {
        height: 250px;
    }

    .news-hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .featured-news-image {
        height: 200px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .register-btn:hover,
    .read-more-btn:hover,
    .load-more-btn:hover,
    .category-btn:hover {
        transform: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}