/* CSS for g0-88.icu - Static Version */

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        align-items: flex-start;
        background: white;
        min-height: 100vh;
        flex-direction: column;
    }
    
    * {
        box-sizing: border-box;
    }
}

.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

@media (max-width: 768px) {
    .container {
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        background: white;
        margin: 10px;
        padding: 0;
        min-height: 100vh;
        flex: 1;
    }
}

.main-content {
    display: flex;
    align-items: center;
    padding: 40px;
    flex: 1;
}

.content-left {
    flex: 1;
    padding-right: 40px;
}

.content-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 25px;
    font-weight: 600;
}

.description {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.main-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Latest Articles Styles */
.latest-articles {
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex: 1;
}

.articles-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 25px;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.article-date {
    color: #999;
    font-size: 0.85rem;
}

.article-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 50px 0 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
    text-decoration: none;
}

.link-icon {
    margin-right: 8px;
    font-size: 1rem;
}

.footer-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 30px 0;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-section {
    text-align: center;
    flex: 1;
}

.copyright {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-message {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        padding: 20px 15px;
        text-align: center;
        flex: 1;
    }
    
    .content-left {
        padding-right: 0;
        margin-bottom: 0;
        order: 2; /* Hiển thị sau ảnh */
    }
    
    .content-right {
        order: 1; /* Hiển thị trước nội dung */
        margin-bottom: 20px;
        width: 100%;
        padding: 0;
    }
    
    .main-image {
        width: 100%;
        max-width: 100%;
        border-radius: 15px 15px 0 0;
        box-shadow: none;
    }
    
    .features {
        order: 3; /* Hiển thị sau nội dung văn bản */
    }
    
    .latest-articles {
        order: 4; /* Hiển thị cuối cùng */
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .features {
        padding: 20px 15px;
        grid-template-columns: 1fr;
        border-radius: 0;
    }
    
    .latest-articles {
        padding: 20px 15px;
        border-radius: 0 0 15px 15px;
        flex: 1;
    }
    
    .articles-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
    
    .footer {
        margin-top: 0;
        padding: 30px 0 0;
        border-radius: 0;
        position: relative;
        z-index: 2;
        width: 100%;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-section-header {
        margin-bottom: 15px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        padding: 0 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .feature {
        padding: 20px 15px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-desc {
        font-size: 0.9rem;
    }
}
