@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
}

/* Mobile menu animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* Hamburger icon animation */
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Nav link animation */
.nav-item {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item .nav-icon {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* Mobile nav link */
.mobile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

.mobile-nav-item .nav-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Rest of your styles... */
.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 60, 0.8));
    padding: 20px;
    color: white;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #2563eb;
}

.social-btn {
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.news-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.news-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.news-content {
    padding: 1.25rem;
    background: white;
}

.news-time {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}
.tag {
    display: inline-block;
    background-color: #eff6ff;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.news-card:hover {
    transform: translateY(-5px);
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.news-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.news-content h2, .news-content h3 {
    font-weight: 700;
    margin: 2rem 0 1.5rem;
}

.news-content h2 {
    font-size: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
}

.news-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
}

.news-content ul, .news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.news-content ul {
    list-style-type: disc;
}

.news-content ol {
    list-style-type: decimal;
}

.news-content li {
    margin-bottom: 0.5rem;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}