@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Neon flicker animation */
@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 40px #0ff,
            0 0 80px #0ff,
            0 0 90px #0ff,
            0 0 100px #0ff,
            0 0 150px #0ff;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Announcement zoom animation */
@keyframes announceZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Banner styles */
.banner {
    position: relative;
    width: 100%;
    height: 132px;
    overflow: hidden;
    background: #000;
}

/* Compact banner variant for product pages */
.banner.banner-compact {
    height: 120px;
}

.banner-compact .site-title {
    font-size: 3.5rem;
}

.banner-compact .site-title::after {
    bottom: -30px;
    height: 30px;
}

/* Banner image and overlay */
.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Site title with neon effect */
.site-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    animation: neonFlicker 3s infinite;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

/* Header and Navigation */
header {
    background: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000;
}

.nav-container {
    background: #2c3e50;
    position: relative;
    z-index: 1000;
    width: 100%;
    height: auto;
    min-height: 50px;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
}

/* Reset and base menu styles */
.main-menu,
.dropdown-menu,
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Main menu styling */
.main-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Dropdown toggle specific styles */
.dropdown-toggle {
    color: #ffffff !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* ALL menu links - including dropdowns */
.main-menu li a,
.main-menu li .dropdown-toggle {
    color: #ffffff !important;
    text-decoration: none;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: normal;
    cursor: pointer;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Hover and active states for ALL menu items */
.main-menu li a:hover,
.main-menu li a:focus,
.main-menu li a.active,
.main-menu li .dropdown-toggle:hover,
.main-menu li .dropdown-toggle:focus,
.main-menu li .dropdown-toggle.active {
    background: #34495e;
    color: #ffffff;
}

/* Dropdown menus */
.dropdown-menu,
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #34495e;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1001;
}

/* Submenu positioning */
.submenu {
    top: 0;
    left: 100%;
}

/* Show dropdowns on hover for desktop */
@media (min-width: 769px) {
    .dropdown:hover > .dropdown-menu,
    .dropdown-submenu:hover > .submenu {
        display: block;
    }
    
    /* Ensure submenus appear next to parent */
    .dropdown-submenu {
        position: relative;
    }

    /* Dropdown menu items */
    .dropdown-menu li a,
    .submenu li a {
        padding: 12px 20px;
        height: auto;
    }
}

/* Dropdown arrows */
.dropdown > a::after,
.dropdown > .dropdown-toggle::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 5px;
    color: #ffffff;
}

.dropdown-submenu > a::after {
    content: '►';
    font-size: 0.8em;
    margin-left: auto;
    color: #ffffff;
}

/* Remove any disabled styles */
.main-menu li a,
.main-menu li .dropdown-toggle,
.dropdown-menu li a,
.submenu li a {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #2c3e50;
        height: auto;
    }

    .nav-wrapper.active .main-menu {
        display: flex;
    }

    .main-menu > li {
        height: auto;
    }

    .main-menu li a {
        padding: 12px 20px;
        height: auto;
    }

    .dropdown-menu,
    .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #243342;
    }

    .dropdown-menu.active,
    .submenu.active {
        display: block;
    }

    /* Adjust padding for nested items */
    .dropdown-menu a {
        padding-left: 40px;
    }

    .submenu a {
        padding-left: 60px;
    }
}

/* Ensure all menu items are visible and properly styled */
.main-menu li,
.dropdown-menu li,
.submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Force white text and proper styling for Products and Downloads menus */
.main-menu li a[href*="products"],
.main-menu li a[href*="downloads"],
.dropdown-menu li a,
.submenu li a {
    color: white !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Ensure proper z-index stacking */
.main-menu > li {
    z-index: 1000;
}

.dropdown-menu {
    z-index: 1001;
}

.submenu {
    z-index: 1002;
}

/* Responsive styles */
@media (max-width: 768px) {
    .site-title {
        font-size: 3rem;
    }
    .banner {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }
    .banner {
        height: 120px;
    }
}

/* Responsive styles for compact banner */
@media (max-width: 768px) {
    .banner.banner-compact {
        height: 100px;
    }
    
    .banner-compact .site-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .banner.banner-compact {
        height: 80px;
    }
    
    .banner-compact .site-title {
        font-size: 2rem;
    }
}

/* Main content styles */
main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    background-color: #fff;
}

main.container > section {
    margin-bottom: 4rem;
}

main.container > section:last-child {
    margin-bottom: 0;
}

/* Why Buy Section */
.why-buy-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin: -2rem -2rem 4rem -2rem;
    width: calc(100% + 4rem);
}

.why-buy-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.why-buy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.why-buy-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    padding: 1.5rem;
}

.why-buy-item:hover {
    transform: translateY(-5px);
}

.why-buy-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.why-buy-header i {
    font-size: 1.5rem;
    color: #3498db;
    flex-shrink: 0;
}

.why-buy-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.why-buy-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    main.container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .why-buy-section {
        margin: -1rem -1rem 3rem -1rem;
        width: calc(100% + 2rem);
        padding: 2rem 0;
    }

    .why-buy-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .why-buy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .why-buy-item {
        padding: 1.2rem;
    }

    .why-buy-header i {
        font-size: 1.4rem;
    }

    .why-buy-header h3 {
        font-size: 1.1rem;
    }

    .why-buy-item p {
        font-size: 0.9rem;
    }
}

/* Products section styles */
.products-section {
    margin-top: 2rem;
}

#categoryHeader {
    text-align: center;
    margin-bottom: 2rem;
}

#categoryHeader h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

#categoryHeader p {
    color: #666;
    font-size: 1.1rem;
}

/* Category tabs styles */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-tab {
    padding: 0.5rem 1.5rem;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab:hover {
    background-color: #e9ecef;
}

.category-tab.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Products grid styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-price {
    font-size: 1.1rem;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Footer styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .category-tabs {
        flex-wrap: wrap;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Breadcrumb styles */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb i {
    margin-right: 0.3rem;
}

/* Adjust container spacing */
.container,
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contact page styles */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: #666;
    font-size: 1.1rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.25rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.submit-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive styles for contact page */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info, 
    .contact-form {
        padding: 1.5rem;
    }
}

/* Success message styles */
.success-message {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.success-message i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #666;
    font-size: 1.1rem;
}

/* Contact Form Error Message */
.error-message {
    text-align: center;
    padding: 2rem;
    background-color: #fff3f3;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.error-message p {
    color: #666;
    margin: 0;
}

.error-message .error-details {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Disabled submit button */
.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Server Notification */
.server-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.notification-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notification-content i {
    font-size: 3rem;
    color: #ff9800;
    margin-bottom: 1rem;
}

.notification-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.notification-content p {
    margin-bottom: 1rem;
    color: #666;
}

.notification-content pre {
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-family: monospace;
    white-space: pre-wrap;
}

.close-notification {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.close-notification:hover {
    background-color: #f57c00;
}

/* Announcement Banner */
.announcement-bar {
    background: linear-gradient(45deg, #cc0000, #ff0000);
    height: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.announcement-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.announcement {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffeb3b;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(100%);
    white-space: nowrap;
    text-shadow: 
        0 0 5px rgba(255, 235, 59, 0.8),
        0 0 10px rgba(255, 235, 59, 0.5);
    z-index: 2;
}

.announcement.active {
    animation: announceIn 0.5s forwards, announceOut 0.5s forwards 4.5s;
}

@keyframes announceIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes announceOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%) scale(0.8);
    }
}

/* Add shine effect */
.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    z-index: 3;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* News ticker animation */
@keyframes tickerMove {
    0% {
        transform: translate3d(100%, -50%, 0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translate3d(0, -50%, 0) scale(1);
        opacity: 1;
    }
    90% {
        transform: translate3d(0, -50%, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(-100%, -50%, 0) scale(0);
        opacity: 0;
    }
}

.announcement:nth-child(2) {
    animation-delay: 10s;
}

.announcement:nth-child(3) {
    animation-delay: 20s;
}

/* Announcements Section */
.announcements {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 0;
    margin-bottom: 2rem;
}

.announcement-slider {
    position: relative;
    overflow: hidden;
}

.announcement-slide {
    padding: 0.5rem;
    text-align: center;
}

.announcement-slide p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        padding: 1rem;
    }

    .nav-wrapper.active {
        display: block;
    }

    .main-menu {
        flex-direction: column;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-menu.active {
        display: block;
    }

    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-submenu:hover .submenu {
        display: none;
    }

    .dropdown-submenu.active .submenu {
        display: block;
    }
}

/* News Page Styles */
.news-page {
    padding: 2rem 0;
}

.news-page h1 {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 2rem;
    text-align: center;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.news-article {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.news-article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-content {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.news-image-carousel {
    flex: 0 0 400px;
    position: relative;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.news-text {
    flex: 1;
}

.news-text h2 {
    font-size: 1.75rem;
    color: var(--dark-bg);
    margin: 0 0 1rem 0;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-body {
    color: var(--text-color);
    line-height: 1.6;
    white-space: pre-line;
}

/* Homepage News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
}

.news-card {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: row;
    height: 180px;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.news-card .news-image-carousel {
    flex: 0 0 120px;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
}

.news-card .carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.news-card .carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.news-card .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.news-card .carousel-image.active {
    opacity: 1;
}

.news-card .news-text {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card h3 {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.news-card .news-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.news-card .news-date i {
    color: #666;
}

.news-card p {
    color: var(--text-color);
    line-height: 1.4;
    margin: 0;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 2;
    opacity: 0.8;
}

.news-card .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
}

.news-card .carousel-btn.prev {
    left: 8px;
}

.news-card .carousel-btn.next {
    right: 8px;
}

.news-card .carousel-btn i {
    font-size: 0.875rem;
    color: white;
}

/* News grid layout */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        height: auto;
    }
    
    .news-card .news-image-carousel {
        flex: 0 0 200px;
    }
    
    .news-card .news-text {
        padding: 1rem;
    }
    
    .news-card h3 {
        font-size: 1.1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .news-page h1 {
        font-size: 2rem;
    }

    .news-text h2 {
        font-size: 1.5rem;
    }

    .carousel-container {
        height: 200px;
    }
} 