:root {
    --font-farsi: 'Vazirmatn', sans-serif;
    --accent: #CCFF00;
    --bg-main: #1A1C20;
    --text: #F2F2F5;
}

html {
    scroll-behavior: smooth;
}

#articles-section {
    scroll-margin-top: 80px;
}

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

body {
    background: var(--bg-main);
    color: var(--text);
    font-family: var(--font-farsi);
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

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

.logo-container {
  display: flex;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  cursor: pointer;
  white-space: nowrap;
}

.logo-part1 {
  color: #fff;
  margin-right: 4px;
}

.logo-part2 {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  flex-grow: 1;
  justify-content: center;
  margin: 0 10px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 24px;
}

.icon-link:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.dropdown-wrapper {
  position: relative;
}

.dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(28, 28, 30, 0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-menu:hover,
.dropdown-wrapper:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.dropdown-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.dropdown-column {
  min-width: 0;
}

.dropdown-productGroup-title {
  color: #CCFF00;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-column ul li {
  margin-bottom: 4px;
}

.dropdown-column ul li a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: all 0.25s ease;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.dropdown-column ul li a:hover {
  color: #fff;
  padding-right: 8px;
  border-bottom-color: rgba(204, 255, 0, 0.15);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(204, 255, 0, 0.03), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
  order: 3;
}

.icon-wrapper {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.glass-tooltip {
  position: absolute;
  top: 150%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.icon-wrapper:hover .glass-tooltip {
  opacity: 1;
  visibility: visible;
  top: 130%;
}

/* ==================== HERO ARTICLES ==================== */
.hero-articles {
    position: relative;
    min-height: 120vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px;
    margin-top: 60px;
    overflow: hidden;
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
    background-color: var(--bg-main);
}

.hero-articles::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/article.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.hero-articles::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 16, 0.35);
    backdrop-filter: blur(0.75px);
    -webkit-backdrop-filter: blur(0.75px);
    z-index: 1;
    pointer-events: none;
}

.hero-articles-overlay {
    display: none;
}

.hero-articles-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-articles-title {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 60px rgba(0,0,0,0.3);
}
.hero-articles-title .highlight {
    color: #CCFF00;
    text-shadow: 0 0 40px rgba(204, 255, 0, 0.3);
    position: relative;
}
.hero-articles-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #CCFF00, transparent);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
}
.gradient-text {
    background: linear-gradient(135deg, #CCFF00, #8cff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-articles-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-weight: 300;
}

.hero-articles-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: #CCFF00;
    color: #0b1220;
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.2);
}
.btn-hero-primary:hover {
    background: #ffffff;
    color: #0b1220;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
    transform: scale(1.04);
}
.btn-hero-primary .btn-icon {
    transition: transform 0.3s ease;
}
.btn-hero-primary:hover .btn-icon {
    transform: translateY(3px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
    background: #CCFF00;
    color: #0b1220;
    border-color: #CCFF00;
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.15);
    transform: scale(1.04);
}
.btn-hero-secondary .btn-icon {
    transition: transform 0.3s ease;
}
.btn-hero-secondary:hover .btn-icon {
    transform: translateX(-4px);
}

.hero-articles-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(204, 255, 0, 0.06) 0%, transparent 70%);
    top: 20%;
    right: -10%;
    z-index: 2;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ==================== ARTICLES SECTION ==================== */
.articles-section {
    position: relative;
    z-index: 10;
    padding: 80px 5%;
    background: #0a0c10;
}
.articles-container {
    max-width: 1400px;
    margin: 0 auto;
}

.articles-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 20px;
}
.articles-header-left {
    flex: 1;
}
.section-tag {
    display: inline-block;
    background: rgba(204, 255, 0, 0.08);
    color: #CCFF00;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.section-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    max-width: 500px;
}
.articles-header-right {
    min-width: 280px;
}

.search-articles {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 2px 2px 2px 6px;
    transition: border-color 0.3s;
}
.search-articles:focus-within {
    border-color: #CCFF00;
}
.search-articles input {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}
.search-articles input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.search-articles button {
    padding: 12px 18px;
    background: #CCFF00;
    border: none;
    border-radius: 50px;
    color: #0b1220;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.search-articles button:hover {
    background: #b3e600;
    transform: scale(1.03);
}

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

.article-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(204, 255, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.article-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .article-card-image img {
    transform: scale(1.04);
}

.article-card-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1c20 0%, #2a2d34 100%);
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.article-card-image-fallback i {
    font-size: 2.8rem;
    color: rgba(204, 255, 0, 0.25);
}

.article-card-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #CCFF00;
    font-weight: 500;
}

.article-card-body {
    padding: 24px 24px 28px;
}
.article-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 14px;
}
.article-card-meta i {
    margin-left: 4px;
}
.article-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-excerpt {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card-link {
    color: #CCFF00;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}
.article-card-link:hover {
    gap: 14px;
}
.article-card-link i {
    font-size: 0.8rem;
}

.articles-load-more {
    text-align: center;
}
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 48px;
    background: transparent;
    border: 2px solid rgba(204, 255, 0, 0.2);
    border-radius: 999px;
    color: #CCFF00;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}
.btn-load-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(204, 255, 0, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.btn-load-more:hover {
    border-color: #CCFF00;
    transform: scale(1.03);
    box-shadow: 0 0 60px rgba(204, 255, 0, 0.05);
}
.btn-load-more:hover::before {
    opacity: 1;
}
.btn-load-more .btn-icon {
    transition: transform 0.3s ease;
}
.btn-load-more:hover .btn-icon {
    transform: translateY(4px);
}

/* ==================== FOOTER ==================== */
.footer {
    position: relative;
    z-index: 10;
    background: #0c0c0c;
    color: #fff;
    padding: 40px 20px;
    border-top: 3px solid #ccff00;
    direction: rtl;
}
.footer-inner {
    max-width: 1200px;
    margin: 60px auto;
}
.footer-about-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #2a2a2a;
}
.footer-about-text {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    line-height: 2;
    font-size: 15px;
    color: #e6e6e6;
}
.footer-about-text.open {
    max-height: 500px;
}
.footer-toggle-btn {
    margin-top: 15px;
    background: transparent;
    color: #ccff00;
    border: 1px solid #ccff00;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.footer-toggle-btn:hover {
    background: #ccff00;
    color: #0c0c0c;
}
.footer-links-section {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-column {
    flex: 1;
    min-width: 220px;
}
.footer-column h3 {
    font-size: 16px;
    color: #ccff00;
    margin-bottom: 15px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
    color: #ddd;
}
.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: 0.3s;
}
.footer-column a:hover {
    color: #ccff00;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.newsletter-form input {
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    outline: none;
}
.newsletter-form button {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: #ccff00;
    color: #0c0c0c;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.newsletter-form button:hover {
    opacity: 0.9;
}
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {

    .main-header { position: fixed; top: 0; height: 56px; }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        font-size: 1.5rem;
        z-index: 1001;
    }

    .menu-toggle.active {
        color: var(--accent);
        transform: rotate(90deg);
    }

    .nav-container { gap: 10px; padding: 0 14px; }
    .nav-icons { margin-right: auto; margin-left: 0; gap: 12px; }
    .logo-container { flex-grow: 0; font-size: 1.2rem; }
    .icon-link { font-size: 20px; }

    .nav-links {
        display: flex;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        overflow-anchor: none;
        overscroll-behavior: contain;
        background: rgba(15, 15, 18, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 20px 16px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        pointer-events: none;
        list-style: none;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }

    .nav-links::-webkit-scrollbar { width: 5px; }
    .nav-links::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-shrink: 0;
    }

    .nav-links > li:last-child { border-bottom: none; }

    .nav-links > li > a {
        display: block;
        width: 100%;
        padding: 14px 4px;
        font-size: 0.95rem;
        text-align: right;
        color: rgba(255, 255, 255, 0.85);
        font-family: var(--font-farsi);
        text-decoration: none;
    }

    .dropdown-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .dropdown-trigger .arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.65rem;
        transition: all 0.3s ease;
        margin-right: 8px;
        line-height: 1;
    }

    .dropdown-wrapper.open .dropdown-trigger .arrow {
        transform: rotate(180deg);
        background: rgba(204, 255, 0, 0.15);
        color: var(--accent);
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dropdown-wrapper.open .dropdown-menu { display: block; }
    .dropdown-menu::before { display: none; }

    .dropdown-inner { padding: 8px 0 12px; }
    .dropdown-columns { display: flex; flex-direction: column; gap: 8px; }

    .dropdown-column {
        padding: 12px;
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .dropdown-productGroup-title {
        color: var(--accent);
        font-size: 0.75rem;
        font-weight: 700;
        margin: 0 0 8px;
        padding: 0;
        border: none;
    }

    .dropdown-column ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .dropdown-column ul li { margin: 0; }

    .dropdown-column ul li a {
        display: block;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.75rem;
        padding: 8px 4px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 7px;
        text-align: center;
        border: none;
    }

    .dropdown-column ul li a:hover {
        background: rgba(204, 255, 0, 0.12);
        color: var(--accent);
    }

    .hero-articles::before {
        background-image: url('img/BackMobile/ArticleMobile.png');
    }

    .hero-articles-title {
        font-size: 2.6rem;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .articles-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .articles-header-left {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-tag {
        align-self: center;
    }

    .section-title,
    .section-subtitle {
        text-align: center;
    }

    .section-subtitle {
        margin: 0 auto;
    }

    .articles-header-right {
        width: 100%;
    }

    .article-card-body {
        text-align: center;
    }

    .article-card-meta {
        justify-content: center;
    }

    .article-card-link {
        justify-content: center;
        margin: 0 auto;
    }

    .footer { padding: 30px 16px; }
    .footer-inner { margin: 30px auto; }

    .footer-about-text {
        font-size: 13px;
        line-height: 1.85;
        max-height: none !important;
        overflow: visible !important;
    }

    .footer-links-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 12px;
    }

    .footer-column { min-width: 0; }
    .footer-column h3 { font-size: 13px; margin-bottom: 10px; }
    .footer-column ul li { font-size: 12px; margin-bottom: 7px; }

    .footer-column:nth-child(3) {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-column:nth-child(3) .newsletter-form {
        max-width: 320px;
        margin: 0 auto;
    }

    .newsletter-form input,
    .newsletter-form button {
        padding: 9px 11px;
        font-size: 0.82rem;
    }

    .footer-bottom {
        margin-top: 30px;
        padding-top: 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .hero-articles-title {
        font-size: 2rem;
    }
    .hero-articles-cta {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .articles-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .articles-header-right {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer { padding: 20px 12px; }
    .footer-inner { margin: 20px auto; }

    .footer-about-text {
        font-size: 12px;
        max-height: none !important;
        overflow: visible !important;
    }

    .footer-column h3 { font-size: 12px; }
    .footer-column ul li { font-size: 11px; }
    .footer-bottom { margin-top: 24px; padding-top: 14px; font-size: 0.7rem; }
}

/* ==================== iOS FALLBACK ==================== */
@supports (-webkit-touch-callout: none) {
    .hero-articles {
        clip-path: none;
        -webkit-clip-path: none;
    }
    .hero-articles::before {
        position: absolute;
        top: -10%;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 120%;
    }
}