/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    padding: 30px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff8c00, #ffa500);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    flex-shrink: 0;
}

.logo-text {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -1px;
}

.logo-text-light {
    color: #5a9fd4;
}

.logo-text-dark {
    color: #2C5F77;
}

/* Main Content */
.main-content {
    flex: 1;
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.05) 1px, transparent 0);
    background-size: 30px 30px;
    padding: 60px 0;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-title {
    font-size: 42px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: #2C5F77;
}

.search-input::placeholder {
    color: #999999;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999999;
    pointer-events: none;
}

/* Articles Section */
.articles-section {
    margin-top: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.article-image-1 {
    background-image: url('https://images.unsplash.com/photo-1639762681485-074b7f938ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-color: #000000;
    position: relative;
}

.article-image-1::after {
    content: 'DEFI';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
}

.article-image-2 {
    background-image: url('https://images.unsplash.com/photo-1518546305927-5a555bb7020d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.article-image-3 {
    background-image: url('https://images.unsplash.com/photo-1620321023374-d1a68fbc720d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-color: #1a1a1a;
}

.article-image-4 {
    background-image: url('https://images.unsplash.com/photo-1518546305927-5a555bb7020d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.article-image-5 {
    background-image: url('https://images.unsplash.com/photo-1620321023374-d1a68fbc720d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.article-image-6 {
    background-image: url('https://images.unsplash.com/photo-1518546305927-5a555bb7020d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
}

.article-title {
    font-size: 20px;
    font-weight: bold;
    color: #2C5F77;
    margin: 20px 20px 15px;
    line-height: 1.3;
    font-family: Arial, sans-serif;
}

.article-excerpt {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0 20px 20px;
    flex: 1;
}

/* Footer */
.site-footer {
    background-color: #2C5F77;
    padding: 30px 0;
    margin-top: auto;
}

.footer-copyright {
    color: #ffffff;
    font-size: 14px;
    text-align: left;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    color: #333333;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #2C5F77;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}
