@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


/* Navigation Header */
.nav-header {
    background-color: rgba(22, 22, 24, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px clamp(20px, 4vw, 50px);
}

.nav-logo img {
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
    align-items: center;
}

.nav-link {
    color: #dedede;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #6543ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #6543ff;
    border-radius: 1px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #161618 0%, #2a1a4a 100%);
    padding: 80px;
    text-align: center;
    border-bottom: 2px solid #2f2f2f;
}

.hero-content h1 {
    font-size: clamp(2em, 6vw, 3.5em);
    margin-bottom: clamp(15px, 3vh, 20px);
    background: linear-gradient(135deg, #ffffff 0%, #6543ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1em, 2.5vw, 1.2em);
    color: #dedede;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.6;
}

/* News Main */
.news-main {
    padding: 50px;
    min-height: 60vh;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin-bottom: clamp(40px, 8vh, 60px);
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* News Card */
.news-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #6543ff;
    box-shadow: 0 15px 35px rgba(101, 67, 255, 0.2);
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #6543ff 0%, #9d67ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-image.placeholder {
    background: linear-gradient(135deg, #6543ff 0%, #9d67ff 100%);
}

.news-card-image.placeholder i {
    font-size: 3em;
    color: rgba(255, 255, 255, 0.7);
}

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

.news-card-date {
    color: #6543ff;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card-excerpt {
    color: #dedede;
    line-height: 1.6;
    margin-bottom: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-category {
    display: inline-block;
    background: rgba(101, 67, 255, 0.2);
    color: #6543ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.load-more-btn {
    background: linear-gradient(135deg, #6543ff 0%, #9d67ff 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(101, 67, 255, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #161618;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #dedede;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #6543ff;
}

.modal-article-date {
    color: #6543ff;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-article-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-article-category {
    display: inline-block;
    background: rgba(101, 67, 255, 0.2);
    color: #6543ff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-article-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.modal-article-content {
    color: #dedede;
    line-height: 1.8;
    font-size: 1.1em;
}

.modal-article-content h3 {
    color: #ffffff;
    font-size: 1.4em;
    font-weight: 600;
    margin: 25px 0 15px;
}

.modal-article-content p {
    margin-bottom: 20px;
    padding: 0;
}

.modal-article-content ul, .modal-article-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-article-content li {
    color: #dedede;
    margin-bottom: 8px;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 80px 20px;
    color: #dedede;
}

.no-articles i {
    font-size: 4em;
    color: #6543ff;
    margin-bottom: 20px;
    display: block;
}

.no-articles h3 {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Enhanced Responsive Design */
@media screen and (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-logo {
        order: 1;
        flex: 1;
    }

    .nav-menu {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .nav-link {
        font-size: 0.9em;
        padding: 5px 0;
    }

    .hero-section {
        padding-top: 160px; /* Account for larger nav on mobile */
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .news-card-image {
        height: 180px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card-title {
        font-size: 1.2em;
        line-height: 1.3;
    }

    .news-card-excerpt {
        font-size: 0.95em;
        -webkit-line-clamp: 2;
    }

    .modal-content {
        margin: 5% auto;
        padding: 25px 20px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-article-title {
        font-size: 1.6em;
        line-height: 1.3;
    }

    .modal-article-content {
        font-size: 1em;
        line-height: 1.7;
    }

    .close {
        top: 15px;
        right: 20px;
        font-size: 24px;
    }

    .load-more-btn {
        padding: 12px 30px;
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }

    .nav-menu {
        gap: 12px;
        margin-top: 8px;
    }

    .nav-link {
        font-size: 0.85em;
    }

    .hero-section {
        padding-top: 140px;
    }

    .news-grid {
        padding: 0 15px;
        gap: 18px;
    }

    .news-card-image {
        height: 160px;
    }

    .news-card-content {
        padding: 18px;
    }

    .news-card-title {
        font-size: 1.1em;
    }

    .news-card-date,
    .news-card-category {
        font-size: 0.8em;
    }

    .news-card-excerpt {
        font-size: 0.9em;
    }

    .modal-content {
        padding: 20px 15px;
        margin: 2% auto;
    }

    .modal-article-title {
        font-size: 1.4em;
    }

    .modal-article-content {
        font-size: 0.95em;
    }

    .load-more-btn {
        padding: 10px 25px;
        font-size: 0.85em;
        letter-spacing: 0.5px;
    }
}

/* Landscape mobile orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 80px 20px 40px;
    }

    .hero-content h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 1em;
    }

    .nav-container {
        padding: 8px 15px;
    }

    .nav-menu {
        margin-top: 5px;
        gap: 10px;
    }
}

/* High DPI displays */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .news-card-image.placeholder i {
        font-size: 3.5em;
    }
    
    .modal-article-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}


