@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #fcfcfd;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    position: relative;
    top: 0 !important;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
}

header.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none !important;
    border: none !important;
    color: #4314e8;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #8b5cf6;
}

.nav-links a.active-link {
    color: #8b5cf6;
    text-decoration: none;
    border-bottom: none;
}

.lang-icon-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lang-text-icon {
    font-size: 14px;
    font-weight: 700;
    color: #4314e8;
    border: 2px solid #4314e8;
    border-radius: 20px;
    padding: 4px 12px;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-icon-btn:hover .lang-text-icon {
    background: #4314e8;
    color: #fff;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: #4314e8;
    cursor: pointer;
}

#content-area {
    flex: 1;
    margin-top: 100px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

footer {
    width: 100%;
    background-color: #f8f9fa;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: #4314e8;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.company-link {
    text-decoration: none;
    color: #333;
}

.company-link strong {
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4314e8;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(142, 45, 226, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(142, 45, 226, 0.4);
}

.whatsapp-float i {
    font-size: 20px;
}

.lang-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.lang-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.popup-header h3 {
    margin: 0;
    font-size: 16px;
    color: #4314e8;
    font-weight: 700;
}

#close-popup {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.popup-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-option {
    background: transparent;
    border: none;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #333;
    font-family: 'Inter', sans-serif;
}

.lang-option:hover {
    background: #f4f5f7;
    color: #4314e8;
}

.skiptranslate {
    display: none !important;
}

.blog-container, .post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 100px;
}

.post-container {
    max-width: 800px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.blog-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.blog-card img {
    width: 40%;
    height: 150px;
    object-fit: contain;
    padding: 10px;
}

.blog-card-content {
    width: 60%;
    padding: 15px;
}

.blog-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.blog-card-content h3 a {
    text-decoration: none;
    background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.blog-card-content h3 a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blog-card-content h3 a:hover {
    color: #8b5cf6;
}

.blog-card-content .date {
    font-size: 0.9rem;
    color: #777;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.pagination .btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
}

.blog-container h1, .post-title, .recommended-posts h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.post-date {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
}

.share-btn {
    background: transparent;
    border: 2px solid #4314e8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #4314e8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #4314e8;
    color: #fff;
}

.post-featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.post-content h2, .post-content h3 {
    background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-top: 30px;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.recent-card {
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    background: #fff;
}

.recent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.recent-card img {
    width: 40%;
    height: 120px;
    object-fit: contain;
    padding: 10px;
}

.recent-card h4 {
    width: 60%;
    margin: 10px;
    font-size: 1rem;
    background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.post-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.recommended-posts {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }

    .header-right {
        gap: 20px;
        flex-direction: row;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .blog-container, .post-container {
        margin-top: 80px;
    }
}
