:root {
    --primary-teal: #31adad;
    --primary-pink: #ff2d8d;
    --gradient-bg: linear-gradient(135deg, #31adad, #ff2d8d);
    --text-dark: #1a1a1a;
    --text-gray: #666;
    --bg-light: #f8f9fa;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: #f5f5f5;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.top-bar-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.top-bar-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.top-bar-links a:hover {
    opacity: 0.8;
}

/* Main Navbar */
.main-navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item-custom {
    position: relative;
    white-space: nowrap;
}

.nav-link-custom {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.nav-link-custom:hover {
    color: var(--primary-pink);
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 250px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 999;
}

.nav-item-custom:hover .dropdown-menu-custom {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item-custom {
    padding: 0.6rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.dropdown-item-custom:hover {
    background: linear-gradient(135deg, rgba(49, 173, 173, 0.1), rgba(255, 45, 141, 0.1));
    color: var(--primary-pink);
    padding-left: 1.3rem;
}

.write-btn {
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.write-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 45, 141, 0.4);
    color: white;
}

/* Category Hero */
.category-hero {
    background: linear-gradient(135deg, rgba(49, 173, 173, 0.95), rgba(255, 45, 141, 0.95)),
        url('https://images.unsplash.com/photo-1586717791821-3f44a563fa4c?w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(49, 173, 173, 0.85), rgba(255, 45, 141, 0.85));
}

.category-hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.category-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.articles-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Filter Pills */
.filter-section {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 999;
}

.filter-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-pill {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Category Section */
.category-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    border-radius: 2px;
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem;
    color: var(--primary-teal);
}

/* Product Card */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    border: 3px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(49, 173, 173, 0.25);
    border-color: var(--primary-teal);
}

.product-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-title {
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-excerpt {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.product-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.author-name {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.product-date {
    font-size: 0.75rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
}

.product-stats {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    align-items: center;
}

.product-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #31adad, #ff2d8d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.product-card:hover .read-more-icon {
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(49, 173, 173, 0.95), rgba(255, 45, 141, 0.95)),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
    margin: 4rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(49, 173, 173, 0.92), rgba(255, 45, 141, 0.92));
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-pink);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--primary-pink);
}

/* Footer */
.footer-v2 {
    background: linear-gradient(135deg, #090a0d 0%, #0a1428 100%);
    color: #e5e7eb;
    padding: 3.5rem 0 1.3rem;
}

.footer-top-v2 {
    padding-bottom: 1.2rem;
}

.footer-brand-head-v2 {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.footer-badge-v2 {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, rgba(49, 173, 173, 0.85), rgba(255, 45, 141, 0.85));
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.footer-logo-v2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 900;
    color: #fff;
}

.footer-text-v2 {
    margin: 0 0 1.4rem;
    color: rgba(226, 232, 240, 0.75);
    line-height: 1.7;
    max-width: 320px;
}

.footer-social-v2 {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-social-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
}

.footer-title-v2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0.4rem 0 1.1rem;
}

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

.footer-links-v2 li {
    margin-bottom: 0.9rem;
}

.footer-links-v2 a {
    color: rgba(226, 232, 240, 0.70);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links-v2 a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-contact-v2 {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

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

.footer-contact-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(49, 173, 173, 0.85), rgba(255, 45, 141, 0.85));
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    flex: 0 0 auto;
}

.footer-contact-text span {
    display: block;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.70);
    margin-bottom: 0.15rem;
}

.footer-contact-text strong {
    display: block;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.footer-divider-v2 {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.6rem 0 1.6rem;
}

.footer-cats-v2 {
    padding: 0.2rem 0 1.4rem;
}

.footer-cats-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
}

.footer-chips-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-chip-v2 {
    padding: 0.55rem 1.05rem;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-chip-v2:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.14);
}

.footer-bottom-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy-v2 {
    margin: 0;
    color: rgba(226, 232, 240, 0.60);
    font-size: 0.92rem;
}

.footer-bottom-links-v2 {
    display: flex;
    gap: 1.6rem;
}

.footer-bottom-links-v2 a {
    color: rgba(226, 232, 240, 0.70);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-bottom-links-v2 a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-title {
        font-size: 2.5rem;
    }

    .footer-bottom-v2 {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .category-title {
        font-size: 2rem;
    }

    .search-bar {
        flex-direction: column;
    }
}