/*
Theme Name: Artasce
Theme URI: https://artasce.com
Author: Artasce Creative
Author URI: https://artasce.com
Description: Artasce Creative Theme – A modern, stylish and versatile WordPress theme with Crystal Design System integration. Features fullscreen sliders, GSAP animations, responsive design, and powerful Elementor widgets. Perfect for creative agencies, portfolios, and startups.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-menu, post-formats, sticky-post, translation-ready, editor-style, featured-images, footer-widgets, theme-options, threaded-comments
Text Domain: artasce
Requires PHP: 7.4
Tested up to: 6.7
*/

/* ==========================================================================
   Artasce Brand Colors Override
   Overrides main.css orange with hot pink/fuchsia
   ========================================================================== */

:root,
[data-theme="light"],
[data-theme="dark"] {
    --color-primary-darker: #C4177A !important;
    --color-primary-dark: #D91A85 !important;
    --color-primary: #E91E8C !important;
    --color-primary-light: #ED4BA3 !important;
    --color-primary-lighter: #F178BA !important;
    --color-accent: #00D4FF !important; /* Electric cyan */
}

/* ==========================================================================
   Logo Styling
   ========================================================================== */

/* Logo sizing - let Kirki customizer control dimensions */
.main-header__logo img,
.main-header__logo svg {
    width: auto;
    display: block;
}

/* Logo color - white by default (matches nav items), transitions to primary on hover */
.main-header__logo {
    /* CSS custom property for GSAP to animate */
    --logo-color: #ffffff;
    /* Prevent clipping when SVG scales on hover */
    overflow: visible;
}

.main-header__logo a {
    display: block;
    overflow: visible;
}

.main-header__logo svg {
    overflow: visible;
}

.main-header__logo a,
.main-header__logo svg {
    color: var(--logo-color);
    fill: var(--logo-color);
    transition: color 0.3s ease, fill 0.3s ease;
}

/* Fallback hover for non-JS environments (GSAP will override this) */
.main-header__logo a:hover {
    --logo-color: var(--color-primary, #E91E8C);
}

/* ==========================================================================
   Sticky Header with Frosted Glass Effect
   - Always visible at top
   - Transparent on load
   - Frosted glass when scrolled past 50px (via .show-bg class from JS)
   ========================================================================== */

/* Main header - sticky at top */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Admin toolbar offset (logged-in admins only) */
body.admin-bar .main-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .main-header {
        top: 46px; /* Admin bar is taller on mobile */
    }
}

/* Override main.css auto-hide behavior - header should NEVER hide */
.main-header__layout.is-hide,
.main-header .main-header__layout.is-hide {
    margin-top: 0 !important;
    transform: none !important;
}

/* Layout container - relative positioning for the ::before pseudo-element */
.main-header__layout {
    position: relative;
    transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

/*
 * DEFAULT STATE: Fully transparent header
 * CRITICAL: main.css has `opacity: .8 !important` on ::before
 * We MUST use !important with higher specificity to override
 */
html body .main-header .main-header__layout::before,
body .main-header .main-header__layout::before {
    opacity: 0 !important;
    background-color: transparent !important;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* SCROLLED STATE: Frosted glass effect (show-bg class added by JS at 50px) */
html body .main-header.show-bg .main-header__layout,
body .main-header.show-bg .main-header__layout {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

html body .main-header.show-bg .main-header__layout::before,
body .main-header.show-bg .main-header__layout::before {
    opacity: 1 !important;
    background-color: rgba(10, 10, 10, 0.7) !important;
}

/* NO-HERO STATE: Pages without hero get frosted glass immediately */
html body .main-header.no-hero .main-header__layout::before,
body .main-header.no-hero .main-header__layout::before {
    opacity: 1 !important;
    background-color: rgba(10, 10, 10, 0.7) !important;
}

/* ==========================================================================
   Desktop Navigation (>= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
    /* Show desktop navigation menu */
    .main-header__nav {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hide hamburger trigger on desktop */
    .main-header__nav-trigger {
        display: none !important;
    }

    /* Horizontal nav layout */
    .main-header__nav .navbar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
}

/* Ensure header content is always visible */
.main-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Menu center layout - logo and widgets share equal flex-grow to center the nav */
.main-header.menu-center .main-header__logo {
    flex-grow: 1;
    flex-basis: 0;
}

.main-header.menu-center .main-header__nav {
    margin: 0 auto;
}

.main-header.menu-center .main-header--widgets {
    flex-grow: 1;
    flex-basis: 0;
    justify-content: flex-end;
}

/* ==========================================================================
   Hero Page Template
   ========================================================================== */

/* Initial hidden states for animated elements - prevents flash before GSAP */
.artasce-hero .animate-fade-up,
.artasce-archive-hero .animate-fade-up,
.artasce-hero__category,
.artasce-archive-hero__meta,
.artasce-hero__meta,
.artasce-hero__subtitle {
    opacity: 0;
    transform: translateY(20px);
}

/* Hero section - 75vh with background-image */
.artasce-hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 900px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: 50% 10%;
    background-repeat: no-repeat;
    will-change: background-position;
}

/* Fallback background for pages without featured image */
.artasce-hero.has-fallback-bg {
    background: linear-gradient(
        135deg,
        var(--crystal-color-primary, #6366f1) 0%,
        var(--crystal-color-secondary, #8b5cf6) 50%,
        var(--crystal-color-surface, #0a0a0a) 100%
    );
}

/* Gradient Overlay for Header Contrast */
.artasce-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 30%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

/* Hero Content */
.artasce-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--crystal-space-lg, 40px) 0;
    color: #fff;
}

/* Hide SplitText elements until GSAP animates them (prevents FOUC) */
[data-split-text] {
    visibility: hidden;
}

.artasce-hero__title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0 0 var(--crystal-space-md, 24px);
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.artasce-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 640px;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Hero Post/Blog Styles
   ========================================================================== */

/* Category badge - Awwwards-worthy design with glassmorphism + animated glow */
.artasce-hero__category {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--crystal-space-sm, 16px);
    color: #fff;
    isolation: isolate;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Gradient border via pseudo-element */
.artasce-hero__category::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1.5px;
    border-radius: 100px;
    background: linear-gradient(
        135deg,
        var(--color-primary, #E91E8C) 0%,
        var(--color-accent, #00D4FF) 50%,
        var(--color-primary, #E91E8C) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

/* Animated glow effect */
.artasce-hero__category::after {
    content: '';
    position: absolute;
    inset: -4px;
    z-index: -2;
    background: radial-gradient(
        circle,
        rgba(233, 30, 140, 0.4) 0%,
        rgba(0, 212, 255, 0.2) 50%,
        transparent 100%
    );
    border-radius: 100px;
    opacity: 0;
    animation: artasce-category-pulse 3s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

/* Pulse animation for the glow */
@keyframes artasce-category-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Hover state - enhanced glow and shimmer */
.artasce-hero__category:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.artasce-hero__category:hover::before {
    opacity: 1;
    background: linear-gradient(
        135deg,
        var(--color-primary, #E91E8C) 0%,
        var(--color-accent, #00D4FF) 25%,
        var(--color-primary-light, #ED4BA3) 50%,
        var(--color-accent, #00D4FF) 75%,
        var(--color-primary, #E91E8C) 100%
    );
    background-size: 200% 200%;
    animation: artasce-category-shimmer 2s linear infinite;
}

.artasce-hero__category:hover::after {
    opacity: 0.8;
}

/* Shimmer animation for gradient border */
@keyframes artasce-category-shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Post meta */
.artasce-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--crystal-space-sm, 16px);
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: var(--crystal-space-xs, 8px);
    color: #fff;
}

.artasce-hero__reading-time::before {
    content: "•";
    margin-right: var(--crystal-space-xs, 8px);
}

/* Author Avatar */
.artasce-hero__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.artasce-hero__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Article content */
.artasce-article {
    padding: var(--crystal-space-xl, 64px) 0;
}

/* Post navigation */
.artasce-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--crystal-space-md, 24px);
    margin-top: var(--crystal-space-xl, 64px);
    padding-top: var(--crystal-space-lg, 40px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.artasce-post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--crystal-space-md, 24px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--crystal-radius-md, 12px);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.artasce-post-nav__link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.artasce-post-nav__link--next {
    text-align: right;
}

.artasce-post-nav__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.artasce-post-nav__title {
    font-weight: 600;
    line-height: 1.3;
}

/* Comments section */
.artasce-comments {
    margin-top: var(--crystal-space-xl, 64px);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .artasce-hero {
        height: 60vh;
        min-height: 400px;
    }

    .artasce-hero__content {
        padding: var(--crystal-space-md, 24px) 0;
    }

    .artasce-post-nav {
        grid-template-columns: 1fr;
    }

    .artasce-post-nav__link--next {
        text-align: left;
    }
}

/* ==========================================================================
   Prose Styles (Markdown-Friendly Content)
   ========================================================================== */

/* Base prose container */
.artasce-prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Headings */
.artasce-prose h1,
.artasce-prose h2,
.artasce-prose h3,
.artasce-prose h4,
.artasce-prose h5,
.artasce-prose h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: #fff;
}

.artasce-prose h1 { font-size: 2.25rem; }
.artasce-prose h2 { font-size: 1.875rem; }
.artasce-prose h3 { font-size: 1.5rem; }
.artasce-prose h4 { font-size: 1.25rem; }
.artasce-prose h5 { font-size: 1.125rem; }
.artasce-prose h6 { font-size: 1rem; }

/* First heading shouldn't have top margin */
.artasce-prose > h1:first-child,
.artasce-prose > h2:first-child,
.artasce-prose > h3:first-child {
    margin-top: 0;
}

/* Paragraphs */
.artasce-prose p {
    margin-bottom: 1.5em;
}

/* Links */
.artasce-prose a {
    color: var(--crystal-color-primary, #6366f1);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.artasce-prose a:hover {
    color: var(--crystal-color-accent, #8b5cf6);
}

/* Bold and Italic */
.artasce-prose strong {
    font-weight: 700;
    color: #fff;
}

/* Lists */
.artasce-prose ul,
.artasce-prose ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.artasce-prose ul { list-style-type: disc; }
.artasce-prose ol { list-style-type: decimal; }

.artasce-prose li {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

.artasce-prose li::marker {
    color: var(--crystal-color-primary, #6366f1);
}

/* Blockquotes */
.artasce-prose blockquote {
    border-left: 4px solid var(--crystal-color-primary, #6366f1);
    padding: var(--crystal-space-md, 24px);
    margin: 2em 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 var(--crystal-radius-md, 12px) var(--crystal-radius-md, 12px) 0;
    font-style: italic;
}

.artasce-prose blockquote p:last-child {
    margin-bottom: 0;
}

/* Code - Inline */
.artasce-prose code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--crystal-radius-sm, 6px);
    color: var(--crystal-color-accent, #8b5cf6);
}

/* Code - Blocks */
.artasce-prose pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: var(--crystal-space-md, 24px);
    margin: 2em 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--crystal-radius-md, 12px);
    overflow-x: auto;
}

.artasce-prose pre code {
    padding: 0;
    background: none;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

/* Images */
.artasce-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--crystal-radius-md, 12px);
    margin: 2em 0;
}

.artasce-prose figure {
    margin: 2em 0;
}

.artasce-prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.75em;
}

/* Tables */
.artasce-prose table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.artasce-prose th,
.artasce-prose td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.artasce-prose th {
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Horizontal Rule */
.artasce-prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.2) 80%,
        transparent
    );
    margin: 3em 0;
}

/* ==========================================================================
   Tags Section
   ========================================================================== */

.artasce-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--crystal-space-lg, 40px);
    padding-top: var(--crystal-space-md, 24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.artasce-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.artasce-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--crystal-color-primary, #6366f1);
    color: #fff;
}

/* Prose responsive adjustments */
@media (max-width: 768px) {
    .artasce-prose {
        font-size: 1rem;
    }

    .artasce-prose h1 { font-size: 1.75rem; }
    .artasce-prose h2 { font-size: 1.5rem; }
    .artasce-prose h3 { font-size: 1.25rem; }

    .artasce-prose pre {
        padding: var(--crystal-space-sm, 16px);
        font-size: 0.8rem;
    }

    .artasce-prose blockquote {
        padding: var(--crystal-space-sm, 16px);
    }
}

/* ==========================================================================
   Blog Post Card Enhancements (Elementor Posts List Widget)
   - Uses Crystal Design System tokens
   - Subtle hover interactions
   - Improved typography hierarchy
   - GSAP stagger animation ready
   ========================================================================== */

/* ==========================================================================
   Posts List Animation & Layout Stability
   Higher specificity to override main.css
   ========================================================================== */

/* Hide entire wrapper until images loaded - JS removes this class */
.ac-posts--wrap.ac-loading {
    opacity: 0;
}

/* Card Container */
/* Card wrapper - unified card design with no gaps */
.ac-posts--card .grid-item,
.ac-posts--card article.grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crystal-radius-lg, 12px);
    overflow: hidden;
}

.ac-posts--card .grid-item.ac-animated {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ac-posts--card .grid-item.ac-animated:hover {
    transform: translateY(-4px);
}

/* Image Container - FORCE fixed aspect ratio to prevent layout shift */
.ac-posts--wrap .ac-posts--card .grid-item figure.media-wrapper,
.ac-posts--card .media-wrapper.media-wrapper--4\:3,
.ac-posts--card figure.media-wrapper {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 ratio fallback */
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0; /* Parent card handles border-radius with overflow:hidden */
    background: rgba(255, 255, 255, 0.05);
    margin: 0 !important; /* Remove any inherited margin that creates gap */
}

.ac-posts--wrap .ac-posts--card .grid-item figure.media-wrapper img,
.ac-posts--card .media-wrapper.media-wrapper--4\:3 img,
.ac-posts--card figure.media-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* Parent card handles border-radius */
    transition: transform 0.4s ease-out;
}

.ac-posts--card .grid-item:hover .media-wrapper img {
    transform: scale(1.05);
}

/* Content Container - NO separate border since card wrapper handles it */
.ac-posts--card .post-meta-cont {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: var(--crystal-space-md, 24px);
    margin-top: 0 !important; /* Ensure no gap between image and content */
}

/* Card hover - handled on parent wrapper now */
.ac-posts--card .grid-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

/* Post Header - no top margin to prevent gap */
.ac-posts--card .post-header {
    margin-top: 0;
    padding-top: 0;
}

/* Category Badge - Refined design with better contrast */
.ac-posts--card .post-category {
    margin-bottom: var(--crystal-space-xs, 8px);
}

.ac-posts--card .post-category a {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ac-posts--card .post-category a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

/* Post Title - Improved typography and hover effect */
.ac-posts--card .post-meta-cont h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: var(--crystal-space-xs, 8px) 0 var(--crystal-space-sm, 16px);
    color: #fff;
    transition: color 0.2s ease;
}

.ac-posts--card .post-meta-cont a:hover h3 {
    color: var(--crystal-color-primary, #6366f1);
}

/* Remove gap between image and content */
.ac-posts--card .grid-item > a:first-child {
    display: block;
    line-height: 0;
    margin: 0;
}

.ac-posts--card figure.media-wrapper {
    margin: 0 !important;
}

/* Excerpt - Better readability, NO bottom border */
.ac-posts--card .post-meta-cont p,
.ac-posts--card .post-meta-cont p.post-excerpt {
    font-size: 0.875rem;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    padding-bottom: 0;
    border: none !important;
}

/* Post Footer - Author and meta info - SINGLE divider only */
.ac-posts--card .post-meta-footer {
    margin-top: var(--crystal-space-sm, 16px);
    padding-top: var(--crystal-space-sm, 16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none !important;
}

/* Remove any pseudo-elements that could cause double lines */
.ac-posts--card .post-meta-cont::after,
.ac-posts--card .post-meta-cont::before,
.ac-posts--card .post-meta-cont p::after,
.ac-posts--card .post-meta-cont p::before,
.ac-posts--card .post-meta-footer::after,
.ac-posts--card .post-meta-footer::before {
    display: none !important;
    content: none !important;
}

.ac-posts--card .post-footer--author {
    display: flex;
    align-items: center;
    gap: var(--crystal-space-xs, 8px);
}

/* Author Avatar - Clean, borderless */
.ac-posts--card .post-footer--author > img {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    object-fit: cover;
}

/* Author Info Container */
.ac-posts--card .post-meta__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Author Name */
.ac-posts--card .post-meta__author {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

/* Card Footer - Date and reading time */
.ac-posts--card .card__footer {
    display: flex;
    align-items: center;
    gap: var(--crystal-space-xs, 8px);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Reading Time - Subtle separator */
.ac-posts--card .ms-p--ttr::before {
    content: "·";
    margin-right: 6px;
    opacity: 0.5;
}

/* Sticky Post Badge - Refined styling */
.ac-posts--card .ms-sticky {
    position: absolute;
    top: var(--crystal-space-sm, 16px);
    right: var(--crystal-space-sm, 16px);
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--crystal-radius-md, 8px);
    transition: all 0.2s ease;
}

.ac-posts--card .grid-item:hover .ms-sticky {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.ac-posts--card .ms-sticky--icon {
    width: 18px;
    height: 18px;
    color: #fff;
}

.ac-posts--card .ms-sticky--icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Grid Layout - Better spacing between cards */
.ac-posts--card.row > .grid-item {
    margin-bottom: var(--crystal-space-lg, 40px);
}

/* Posts Card Responsive */
@media (max-width: 768px) {
    .ac-posts--card .post-meta-cont {
        padding: var(--crystal-space-sm, 16px);
    }

    .ac-posts--card .post-meta-cont h3 {
        font-size: 1.125rem;
    }

    .ac-posts--card .post-footer--author > img {
        width: 36px;
        height: 36px;
    }

    .ac-posts--card.row > .grid-item {
        margin-bottom: var(--crystal-space-md, 24px);
    }
}

/* ==========================================================================
   Posts List Layout (horizontal layout, not card grid)
   ========================================================================== */

/* Remove bottom border */
.ac-posts--wrap .ac-posts--list .grid-item {
    padding: var(--crystal-space-lg, 40px) 0;
    border-bottom: none !important;
}

/* Image column - reduced to 35% width */
.ac-posts--wrap .ac-posts--list .grid-item__thumb,
.ac-posts--list .col-lg-6.grid-item__thumb {
    flex: 0 0 35% !important;
    max-width: 35% !important;
    position: relative;
    overflow: hidden;
    border-radius: var(--crystal-radius-lg, 12px);
}

.ac-posts--wrap .ac-posts--list .grid-item__thumb img {
    width: 100%;
    height: auto;
    border-radius: var(--crystal-radius-lg, 12px);
    transition: transform 0.4s ease-out;
}

.ac-posts--wrap .ac-posts--list .grid-item:hover .grid-item__thumb img {
    transform: scale(1.03);
}

/* Content column - takes remaining space */
.ac-posts--wrap .ac-posts--list .grid-item__content,
.ac-posts--list .col.grid-item__content {
    flex: 1 !important;
    max-width: none !important;
}

/* Date and read time - add spacing */
.ac-posts--list .card__footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.ac-posts--list .ms-p--ttr::before {
    content: "·";
    margin-right: 6px;
}

/* Read More link - hover effect with underline animation */
.ac-posts--list .post-footer--link a {
    display: inline-block;
    color: var(--crystal-color-primary, #f43f5e);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
}

.ac-posts--list .post-footer--link a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.ac-posts--list .post-footer--link a:hover {
    color: #fff;
}

.ac-posts--list .post-footer--link a:hover::after {
    width: 100%;
}

/* Post footer layout - align items */
.ac-posts--list .post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--crystal-space-md, 24px);
    padding-top: var(--crystal-space-sm, 16px);
    border-top: none !important;
}

/* ==========================================================================
   Posts List - Mobile Responsive (Stack like cards)
   ========================================================================== */

@media (max-width: 768px) {
    /* Stack layout - image on top, content below */
    .ac-posts--wrap .ac-posts--list .grid-item {
        flex-direction: column !important;
        padding: 0;
        margin-bottom: var(--crystal-space-lg, 40px);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--crystal-radius-lg, 12px);
        overflow: hidden;
    }

    /* Image - full width on mobile */
    .ac-posts--wrap .ac-posts--list .grid-item__thumb,
    .ac-posts--list .col-lg-6.grid-item__thumb {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0;
        aspect-ratio: 16 / 9;
    }

    .ac-posts--wrap .ac-posts--list .grid-item__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    /* Content - full width with padding */
    .ac-posts--wrap .ac-posts--list .grid-item__content,
    .ac-posts--list .col.grid-item__content {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: var(--crystal-space-md, 24px);
    }

    /* Adjust typography for mobile */
    .ac-posts--list .post-content h2 {
        font-size: 1.25rem;
        margin-bottom: var(--crystal-space-sm, 16px);
    }

    /* Stack footer on mobile */
    .ac-posts--list .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--crystal-space-sm, 16px);
    }

    .ac-posts--list .post-footer--link {
        width: 100%;
    }

    .ac-posts--list .post-footer--link a {
        display: block;
        text-align: center;
        padding: var(--crystal-space-sm, 16px);
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--crystal-radius-md, 8px);
        transition: background 0.3s ease;
    }

    .ac-posts--list .post-footer--link a:hover {
        background: var(--color-primary, #E91E8C);
    }
}

/* ==========================================================================
   Archive Page - Awwwards-Worthy Category Showcase
   - Hero section with animated gradient background
   - Crystal Design System tokens throughout
   - Elegant card grid with stunning hover effects
   - Professional pagination
   - Empty state design
   ========================================================================== */

/* Archive Hero - 50vh with animated gradient */
.artasce-archive-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    overflow: hidden;
    will-change: transform;
}

/* Animated gradient background with keyframe animation */
.artasce-archive-hero__bg {
    position: absolute;
    inset: -20%; /* Extend beyond bounds for animation */
    z-index: 0;
    background: linear-gradient(
        135deg,
        var(--crystal-color-primary, #E91E8C) 0%,
        var(--crystal-color-secondary, #C4177A) 25%,
        var(--color-accent, #00D4FF) 50%,
        var(--crystal-color-primary, #E91E8C) 75%,
        var(--crystal-color-secondary, #C4177A) 100%
    );
    background-size: 400% 400%;
    animation: artasce-gradient-flow 20s ease infinite;
    filter: blur(60px);
    opacity: 0.6;
}

@keyframes artasce-gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Archive Hero Content */
.artasce-archive-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--crystal-space-xl, 64px) 0 var(--crystal-space-lg, 40px);
    color: #fff;
}

/* Archive Title - Massive, bold statement */
.artasce-archive-hero__title {
    font-size: clamp(3.5rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 0 0 var(--crystal-space-md, 24px);
    text-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
    color: #fff;
    word-break: break-word;
}

/* Archive Description - Subtle, elegant */
.artasce-archive-hero__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 640px;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

.artasce-archive-hero__description p {
    margin: 0;
}

/* Archive Meta - Post count */
.artasce-archive-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--crystal-space-sm, 16px);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-top: var(--crystal-space-sm, 16px);
    color: #fff;
}

/* Archive Page Content */
.artasce-archive-page {
    padding: var(--crystal-space-2xl, 104px) 0 var(--crystal-space-xl, 64px);
    background: transparent;
}

/* Archive Content Container */
.artasce-archive-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Archive Grid - 3 columns */
.artasce-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--crystal-space-lg, 40px);
    margin-bottom: var(--crystal-space-xl, 64px);
}

/* Ensure cards use full width in grid */
.artasce-archive-grid .grid-item {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Fix gap between image and card content - unified card design */
.artasce-archive-grid .grid-item,
.artasce-archive-grid article.grid-item {
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--crystal-radius-lg, 12px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.artasce-archive-grid .grid-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

/* Image flush with card - no gap */
.artasce-archive-grid .grid-item > a:first-child {
    display: block;
    margin: 0;
    line-height: 0;
}

.artasce-archive-grid .grid-item figure.media-wrapper {
    margin: 0;
    border-radius: 0;
}

.artasce-archive-grid .grid-item figure.media-wrapper img {
    border-radius: 0;
}

/* Content area - no duplicate border since card handles it */
.artasce-archive-grid .post-meta-cont {
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
}

/* Override hover effect - parent card handles it now */
.artasce-archive-grid .grid-item:hover .post-meta-cont {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove double line - only keep footer border, remove excerpt margin */
.artasce-archive-grid .post-meta-cont p {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none !important;
}

/* Single divider above author/footer - remove any inherited borders */
.artasce-archive-grid .post-meta-footer {
    margin-top: var(--crystal-space-sm, 16px);
    padding-top: var(--crystal-space-sm, 16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: none !important;
}

/* Remove any other borders that could cause double lines */
.artasce-archive-grid .post-meta-cont::after,
.artasce-archive-grid .post-meta-cont::before,
.artasce-archive-grid .post-meta-footer::after,
.artasce-archive-grid .post-meta-footer::before {
    display: none !important;
}

/* ==========================================================================
   Archive Pagination - Stunning, professional navigation
   ========================================================================== */

.artasce-archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--crystal-space-xs, 8px);
    margin-top: var(--crystal-space-xl, 64px);
    padding-top: var(--crystal-space-xl, 64px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pagination links wrapper */
.artasce-archive-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--crystal-space-xs, 8px);
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Individual page number */
.artasce-archive-pagination .page-numbers a,
.artasce-archive-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 var(--crystal-space-sm, 16px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--crystal-radius-md, 12px);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover state */
.artasce-archive-pagination .page-numbers a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Current page */
.artasce-archive-pagination .page-numbers .current {
    background: var(--color-primary, #E91E8C);
    border-color: var(--color-primary, #E91E8C);
    color: #fff;
    cursor: default;
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.3);
}

/* Prev/Next buttons with icons */
.artasce-archive-pagination .page-numbers .prev,
.artasce-archive-pagination .page-numbers .next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 var(--crystal-space-md, 24px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

/* SVG icons in prev/next */
.artasce-archive-pagination .page-numbers svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.artasce-archive-pagination .page-numbers .prev:hover svg {
    transform: translateX(-4px);
}

.artasce-archive-pagination .page-numbers .next:hover svg {
    transform: translateX(4px);
}

/* Dots (ellipsis) */
.artasce-archive-pagination .page-numbers .dots {
    background: transparent;
    border: none;
    cursor: default;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Archive Empty State - No posts found
   ========================================================================== */

.artasce-archive-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--crystal-space-xl, 64px) var(--crystal-space-md, 24px);
    min-height: 400px;
}

.artasce-archive-empty__icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--crystal-space-md, 24px);
    opacity: 0.3;
    color: rgba(255, 255, 255, 0.3);
}

.artasce-archive-empty__icon svg {
    width: 100%;
    height: 100%;
}

.artasce-archive-empty h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 var(--crystal-space-sm, 16px);
    color: #fff;
}

.artasce-archive-empty p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin: 0 0 var(--crystal-space-lg, 40px);
}

.artasce-archive-empty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--color-primary, #E91E8C);
    border: 1px solid var(--color-primary, #E91E8C);
    border-radius: var(--crystal-radius-md, 12px);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.artasce-archive-empty__button:hover {
    background: var(--color-primary-dark, #D91A85);
    border-color: var(--color-primary-dark, #D91A85);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.3);
}

/* ==========================================================================
   Archive Responsive Adjustments
   ========================================================================== */

@media (max-width: 1024px) {
    .artasce-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--crystal-space-md, 24px);
    }
}

@media (max-width: 768px) {
    /* Hero adjustments */
    .artasce-archive-hero {
        height: 40vh;
        min-height: 320px;
    }

    .artasce-archive-hero__content {
        padding: var(--crystal-space-lg, 40px) 0 var(--crystal-space-md, 24px);
    }

    .artasce-archive-hero__title {
        font-size: clamp(2.5rem, 10vw, 5rem);
        letter-spacing: -0.02em;
    }

    /* Grid adjustments */
    .artasce-archive-grid {
        grid-template-columns: 1fr;
        gap: var(--crystal-space-md, 24px);
    }

    /* Pagination adjustments */
    .artasce-archive-pagination .page-numbers a,
    .artasce-archive-pagination .page-numbers span {
        min-width: 44px;
        height: 44px;
        padding: 0 var(--crystal-space-xs, 8px);
        font-size: 0.8125rem;
    }

    .artasce-archive-pagination .page-numbers .prev,
    .artasce-archive-pagination .page-numbers .next {
        padding: 0 var(--crystal-space-sm, 16px);
    }

    /* Hide text on mobile, show only icons */
    .artasce-archive-pagination .page-numbers .prev span,
    .artasce-archive-pagination .page-numbers .next span {
        display: none;
    }

    /* Empty state */
    .artasce-archive-empty {
        padding: var(--crystal-space-lg, 40px) var(--crystal-space-sm, 16px);
    }

    .artasce-archive-empty h2 {
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   Artasce Search - Clean, Minimal Implementation
   ========================================================================== */

/* Search Trigger Button */
.artasce-search-trigger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer !important;
    color: #fff !important;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
    z-index: 100;
}

.artasce-search-trigger:hover {
    color: var(--color-primary, #E91E8C) !important;
    transform: scale(1.1);
}

.artasce-search-trigger svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    pointer-events: none;
}

/* Search Modal - Fullscreen Overlay */
.artasce-search-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.artasce-search-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Backdrop */
.artasce-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Content Container */
.artasce-search-modal__content {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.artasce-search-modal.is-open .artasce-search-modal__content {
    transform: translateY(0);
}

/* Search Form */
.artasce-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

/* Search Input */
.artasce-search-input {
    width: 100%;
    padding: 20px 60px 20px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.artasce-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.artasce-search-input:focus {
    border-color: var(--color-primary, #E91E8C);
}

/* Remove default search cancel button (Safari/Chrome) */
.artasce-search-input::-webkit-search-cancel-button,
.artasce-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* Submit Button */
.artasce-search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.artasce-search-submit:hover {
    color: var(--color-primary, #E91E8C);
}

.artasce-search-submit svg {
    width: 24px;
    height: 24px;
}

/* Close Button - ESC hint */
.artasce-search-close {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.artasce-search-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Hide old search elements */
.header__search-icon,
.header__search-modal,
.ms-search-widget {
    display: none !important;
}


/* ==========================================================================
   Mobile Menu Trigger - Hide "Menu" text, just show hamburger icon
   ========================================================================== */

.main-header__nav-trigger span {
    display: none;
}

/* Ensure hamburger icon is visible and properly sized */
.main-header__nav-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--crystal-space-xs, 8px);
    background: transparent;
    border: none;
    cursor: pointer;
}

.main-header__nav-trigger-icon {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
}

/* Hamburger lines */
.main-header__nav-trigger-icon::before,
.main-header__nav-trigger-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease;
}

.main-header__nav-trigger-icon::before {
    top: 0;
}

.main-header__nav-trigger-icon::after {
    top: 100%;
    transform: translateY(-100%);
}

/* Middle line via the icon element itself */
.main-header__nav-trigger-icon {
    background: linear-gradient(currentColor, currentColor) no-repeat center/100% 2px;
}
