/* ==================== HEADER COMPONENT ==================== */
.header {
    background-color: var(--darker-bg);
    position: relative;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: none;
    transition: transform 0.3s ease;
}

/* Sticky header for mobile */
@media (max-width: 768px) {
    .header {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
    }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    min-height: 70px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.logotype {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    color: var(--primary-color);


.article-category-badge {
    display: inline-block;
    background: rgba(224, 47, 58, 0.15);
    color: #E02F3A;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(224, 47, 58, 0.3);
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.article-title {
    font-family: 'AbarMidFaNum', 'IRANSans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
    color: #ffffff;
    margin: 0.5rem 0 1rem 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-title {
    color: #E02F3A;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.article-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* No Articles State */
.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.no-articles svg {
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.no-articles p {
    font-size: 1.1rem;
    font-weight: 600;
}

    font-size: 1.8rem;
    font-weight: bold;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.hamburger-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-sm);
    z-index: -1;
}

.hamburger-btn:hover::before {
    transform: scale(1);
}

.hamburger-btn:hover {
    color: white;
    border-color: var(--primary-color);
}

/* Hamburger Lines */
.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: currentColor;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Hamburger Menu Overlay */
.hamburger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.hamburger-overlay.active {
    opacity: 1;
    visibility: visible;
    background: #1a1a1a;
    backdrop-filter: blur(0px);
}

.hamburger-menu {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hamburger-overlay.active .hamburger-menu {
    transform: none;
    opacity: 1;
}

.hamburger-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hamburger-close:hover {
    color: var(--primary-color);
}

.hamburger-close svg {
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
}

/* Search Box */
.search-box {
    position: relative;
    margin: 5rem 0 3rem;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 3rem 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

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

.menu-item {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(224, 47, 58, 0.3);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    min-height: 140px;
}

.menu-item:hover {
    background: rgba(224, 47, 58, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.menu-icon {
    width: 60px;
    height: 60px;
    background: rgba(224, 47, 58, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.menu-item span {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Tools Section */
.tools-section {
    margin-top: 2rem;
}

.tools-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    min-height: 120px;
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.tool-card-featured {
    background: rgba(0, 100, 80, 0.2);
    border-color: rgba(0, 150, 120, 0.4);
}

.tool-card-featured:hover {
    background: rgba(0, 100, 80, 0.3);
    border-color: rgba(0, 150, 120, 0.6);
}

.tool-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.tool-card span {
    color: var(--text-primary);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    position: relative;
    font-weight: 500;
    font-family: 'AbarMidFaNum', 'Tahoma', sans-serif;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

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

.nav-link.active {
    color: var(--text-primary);
    background: transparent;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'AbarMidFaNum', 'Tahoma', sans-serif;
    text-decoration: none;
}

.dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Mega Menu */
.dropdown-mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    width: 420px;
}

.nav-dropdown:hover .dropdown-mega-menu,
.dropdown-mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: right;
}

.mega-title-secondary {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mega-menu-subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: right;
}

.mega-menu-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.mega-menu-card {
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
}

.mega-card-full {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    margin-bottom: 0.8rem;
    backdrop-filter: blur(20px);
}

.mega-card-tools {
    background: rgba(26, 26, 26, 0.5);
    border: none;
    backdrop-filter: blur(20px);
}

.mega-card-tools:hover {
    background: rgba(37, 37, 37, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mega-card-dark {
    background: rgba(26, 35, 50, 0.4);
    border: none;
    backdrop-filter: blur(20px);
}

.mega-card-dark:hover {
    background: rgba(37, 53, 72, 0.5);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.mega-card-green {
    background: rgba(26, 58, 46, 0.4);
    border: none;
    backdrop-filter: blur(20px);
}

.mega-card-green:hover {
    background: rgba(37, 90, 68, 0.5);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.mega-card-brown {
    background: rgba(68, 35, 20, 0.4);
    border: none;
    backdrop-filter: blur(20px);
}

.mega-card-brown:hover {
    background: rgba(85, 45, 25, 0.5);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.25);
}

.mega-menu-card:hover {
    transform: none;
    box-shadow: none;
}

.mega-card-icon {
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.mega-card-tools .mega-card-icon {
    color: #ffffff;
}

.mega-card-dark .mega-card-icon {
    color: #3b82f6;
}

.mega-card-green .mega-card-icon {
    color: #22c55e;
}

.mega-card-brown .mega-card-icon {
    color: #ea580c;
}

.mega-card-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Header Banners */
.header-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem 0 1.5rem;
}

.header-banner-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 180px;
}

.header-banner-card img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.header-banner-card:hover {
    opacity: 0.8;
}

.header-banner-card:hover img {
    transform: scale(1.02);
}

/* Header Banners Responsive */
@media (max-width: 768px) {
    .header-banners {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0.75rem 0 1rem;
    }

    .header-banner-card {
        border-radius: 12px;
        max-height: 140px;
    }

    .header-banner-card img {
        max-height: 140px;
    }
}

@media (max-width: 480px) {
    .header-banners {
        padding: 0.5rem 0 0.75rem;
        gap: 0.5rem;
    }

    .header-banner-card {
        border-radius: 10px;
        max-height: 120px;
    }

    .header-banner-card img {
        max-height: 120px;
    }
}

/* ==================== HERO COMPONENT ==================== */
.hero-section {
    padding: 3rem 0 0 0;
    background: var(--dark-bg);
}

/* ==================== ARTICLES LIST COMPONENT ==================== */
.articles-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: bold;
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Articles List Section for articles page */
.articles-list-section {
    padding: 3rem 0;
}

.articles-list-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.articles-list-section .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.articles-list-section .article-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.articles-list-section .article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    border-color: rgba(224, 47, 58, 0.4);
}

.articles-list-section .article-card-link {
    text-decoration: none;
    display: block;
}

.articles-list-section .article-thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.articles-list-section .article-content {
    padding: 1.5rem;
}

.articles-list-section .article-meta {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    align-items: center;
}

.articles-list-section .article-category {
    background: rgba(224, 47, 58, 0.15);
    color: #E02F3A;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(224, 47, 58, 0.3);
}

.articles-list-section .article-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.articles-list-section .article-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.articles-list-section .article-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
}

.article-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    border-color: rgba(224, 47, 58, 0.4);
}

/* Article Thumbnail Container with Banner Design */
.article-thumbnail-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #fb923c 0%, #ef7844 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: all 0.4s ease;
}

.article-card:hover .article-thumbnail {
    transform: scale(1.05);
    opacity: 1;
}

/* Category Overlay - Hidden */
.article-category-overlay {
    display: none;
}

/* Date Badge - Hidden */
.article-date-badge {
    display: none;
}

.article-content {
    padding: 2rem 1.5rem;
    background: #0a0a0a;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

/* Category Badge - Glass Effect */
.article-category-badge {
    display: inline-block;
    background: rgba(224, 47, 58, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: var(--primary-color);
    padding: 0.15rem 0.25rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
    letter-spacing: -0.8px;
    line-height: 1;
}

.article-card:hover .article-category-badge {
    background: rgba(224, 47, 58, 0.25);
}

.article-title {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

/* Article Meta Information */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.article-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-link {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.article-link:hover {
    color: #c70812;
}

.no-articles {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-articles svg {
    opacity: 0.5;
}

/* ==================== FOOTER COMPONENT ==================== */
.footer {
    background: transparent;
    padding: 2rem 0 0;
    margin-top: 0;
    border-top: none;
}

.footer .container {
    background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.8fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-social-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.6rem;
    letter-spacing: 0.3px;
}

.footer-subtitle {
    margin-top: 1rem;
}

.footer-email {
    margin-bottom: 1.5rem;
}

.footer-email a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: var(--primary-color);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.78rem;
    line-height: 1.4;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link svg {
    width: 28px;
    height: 28px;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Social Link Hover Colors */
.social-link:nth-child(1):hover {
    color: #ffffff;
}

.social-link:nth-child(2):hover {
    color: #0088cc;
}

.social-link:nth-child(3):hover {
    color: #ffffff;
}

.social-link:nth-child(4):hover {
    color: #ff0000;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 0.8rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logotype {
    height: 24px;
    width: auto;
}

.footer-year {
    color: var(--text-muted);
}

/* Hamburger Menu */
.hamburger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #363947;
    z-index: 9999;
    display: none;
}

.hamburger-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.hamburger-menu {
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hamburger-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.hamburger-logo {
    display: flex;
    align-items: center;
}

.hamburger-logo img {
    height: 40px;
    width: auto;
}

.hamburger-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-overlay.active .hamburger-main-grid {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.15s;
}

.hamburger-section-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    margin: 0.5rem 0;
}

.hamburger-search {
    background: #2a2a2a;
    border: none;
    border-radius: 30px;
    padding: 0.9rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.hamburger-overlay.active .hamburger-search {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.hamburger-search:focus-within {
    background: #333333;
}

.hamburger-search input {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    outline: none;
    width: 100%;
    font-family: 'AbarMidFaNum', 'Tahoma', sans-serif;
}

.hamburger-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hamburger-search svg {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.hamburger-card {
    background: #2a2a2a;
    border: none;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    min-height: 100px;
    justify-content: center;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
}

.hamburger-overlay.active .hamburger-card {
    transform: translateY(0);
    opacity: 1;
}

.hamburger-overlay.active .hamburger-card:nth-child(1) {
    transition-delay: 0.2s;
}

.hamburger-overlay.active .hamburger-card:nth-child(2) {
    transition-delay: 0.25s;
}

.hamburger-overlay.active .hamburger-card:nth-child(3) {
    transition-delay: 0.3s;
}

.hamburger-card:hover {
    background: #333333;
    transform: scale(1.05);
}

.hamburger-card svg {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    width: 32px;
    height: 32px;
}

.hamburger-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hamburger-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-overlay.active .hamburger-tools {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.35s;
}

.tool-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    min-height: 120px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
}

.hamburger-overlay.active .tool-card {
    transform: translateY(0);
    opacity: 1;
}

.hamburger-overlay.active .hamburger-tools .tool-card:nth-child(1) {
    transition-delay: 0.35s;
}

.hamburger-overlay.active .hamburger-tools .tool-card:nth-child(2) {
    transition-delay: 0.4s;
}

.hamburger-overlay.active .hamburger-tools .tool-card:nth-child(3) {
    transition-delay: 0.45s;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

/* Article Card - New Modern Design */
.article-card {
    background: #0a0a0a;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    border-color: rgba(224, 47, 58, 0.4);
}

.article-card .article-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card .article-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Article Thumbnail Container */
.article-thumbnail-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* Article Thumbnail */
.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-thumbnail {
    transform: scale(1.08);
}

/* Article Content */
.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
    background: #0a0a0a;
    justify-content: space-between;
}

/* Article Category Badge - Minimal Style */
.article-category-badge {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 0;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0;
    border: none;
    font-family: 'IRANSansDN', 'IRANSans', sans-serif;
}

/* Article Title - Larger and Bold */
.article-title {
    font-family: 'AbarMidFaNum', 'IRANSans', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

/* Article Meta - Clean Style */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    font-family: 'IRANSansDN', 'IRANSans', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* Article Excerpt - Hidden in new design */
.article-excerpt {
    display: none;
}

/* Glassmorphism Effect for Special Categories */
.article-card.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.article-card.glass-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(224, 47, 58, 0.1) 0%,
        rgba(157, 9, 19, 0.05) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.article-card.glass-effect:hover::before {
    opacity: 1;
}

.article-card.glass-effect:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 47, 58, 0.4);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(224, 47, 58, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.article-card.glass-effect .article-thumbnail-container {
    position: relative;
}

.article-card.glass-effect .article-thumbnail {
    transition: transform 0.5s ease;
}

.article-card.glass-effect:hover .article-thumbnail {
    transform: scale(1.05);
}

.article-card.glass-effect .article-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 100%
    );
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.article-card.glass-effect .article-category {
    background: rgba(224, 47, 58, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(224, 47, 58, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-card.glass-effect .article-content {
    position: relative;
    z-index: 1;
}

.article-card.glass-effect .article-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Thumbnail Container for all cards */
.article-thumbnail-container {
    position: relative;
    overflow: hidden;
}

.article-thumbnail-container .article-category-overlay {
    display: none;
}

.article-card:hover .article-category-overlay {
    display: none;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.tool-card svg {
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.tool-card.tool-dark {
    background: linear-gradient(135deg, #1a2332, #0f1621);
    border-color: rgba(100, 150, 200, 0.2);
}

.tool-card.tool-dark:hover {
    border-color: rgba(100, 150, 200, 0.4);
}

.tool-card.tool-green {
    background: linear-gradient(135deg, #1a3a2e, #0f2419);
    border-color: rgba(34, 197, 94, 0.2);
}

.tool-card.tool-green:hover {
    border-color: rgba(34, 197, 94, 0.4);
}

.tool-card.tool-brown {
    background: linear-gradient(135deg, #2a1a1a, #1a0f0f);
    border-color: rgba(200, 100, 100, 0.2);
}

.tool-card.tool-brown:hover {
    border-color: rgba(200, 100, 100, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav {
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }

    .dropdown-mega-menu {
        width: 90vw;
        left: 5vw;
        transform: translateX(0) translateY(-10px);
    }

    .nav-dropdown:hover .dropdown-mega-menu {
        transform: translateX(0) translateY(0);
    }

    .mega-menu-grid-2 {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        gap: 1rem;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav {
        display: none;
    }



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

    /* Article Card Responsive */
    .article-title {
        font-size: 1.35rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-meta {
        font-size: 0.78rem;
        gap: 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-thumbnail-container {
        height: 280px;
    }

    .article-category-badge {
        font-size: 0.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-english-box {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Hamburger Menu Tablet Styles */
    .hamburger-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hamburger-tools {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .article-thumbnail-container {
        height: 220px;
    }

    .article-category-badge {
        font-size: 0.75rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Hamburger Menu Mobile Styles */
    .hamburger-menu {
        padding: 1.5rem;
    }

    .hamburger-main-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hamburger-card {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }

    .hamburger-card svg {
        width: 40px;
        height: 40px;
    }

    .hamburger-card span {
        font-size: 0.95rem;
    }

    .hamburger-tools {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .tool-card {
        padding: 1.2rem 1rem;
        min-height: 100px;
    }

    .tool-card svg {
        width: 32px;
        height: 32px;
    }

    .tool-card span {
        font-size: 0.8rem;
    }

    .hamburger-section-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .hamburger-search {
        padding: 0.9rem 1.2rem;
    }

    .hamburger-search input {
        font-size: 0.95rem;
    }

    .hamburger-close {
        width: 45px;
        height: 45px;
    }

    .hamburger-close svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   ARTICLE READING TIME
   ============================================ */

.article-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.article-reading-time svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* ============================================
   BREADCRUMB COMPONENT
   ============================================ */

.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
    user-select: none;
}

/* ============================================
   NO ARTICLES STATE
   ============================================ */

.no-articles {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    gap: 1rem;
}

.no-articles svg {
    stroke: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-articles p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}