/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: A modern, responsive, and customizable child theme for Astra, designed for clean magazine and news-style WordPress websites. It adds a polished editorial homepage, responsive post and archive layouts, social media integration, customizable header and footer sections, and mobile-friendly styling while preserving Astra's powerful foundation.
Author: SG MEDIA
Author URI: https://www.youtube.com/@SudipWebDev
Template: astra
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: astra-child
Tags: blog, news, magazine, editorial, responsive, custom-header, custom-logo, custom-menu, featured-images, post-formats, translation-ready, one-column, two-columns
*/


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

/* ==========================================================================
   Site-wide Font
   ========================================================================== */

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans Pro', sans-serif;
}
a {
    color: #7389c4;
}
/* ==========================================================================
   Single Post Page
   ========================================================================== */

.single-post #content .ast-container {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    /* Astra sets its own (usually smaller) content width on the blocks
       inside .entry-content via this CSS custom property, which was
       fighting with the 900px above and squeezing the actual text
       narrower than the container ‚ causing the extra side gaps.
       Matching it here makes inner blocks use the full 900px too. */
    --wp--custom--ast-content-width-size: 900px;
}

header.entry-header:not(.related-entry-header) .entry-title {
    font-weight: 700;
    font-size: 36px;
}

header.entry-header:not(.related-entry-header) .entry-meta, header.entry-header:not(.related-entry-header) .entry-meta * {
    font-size: 15px;
    color: #7389c4;
}

.entry-content p {
    font-size: 18px;
    
}

.entry-content :where(h1,h2,h3,h4,h5,h6) {
    margin-top: 0;
    margin-bottom: calc(0.3em + 0px);
}

h3, .entry-content :where(h3) {
    font-size: 40px;
    font-weight: 600;
}

.entry-title {
    font-size: 21px;
    font-family: "Montserrat", sans-serif;
}
@media (max-width: 768px) {
header.entry-header:not(.related-entry-header) .entry-title { font-size: 22px; }
.ast-separate-container #primary { padding: 0.5em 0; }
}
/* ==========================================================================
   Blog Archive / Search Results Page Width
   ========================================================================== */

.blog #content .ast-container,
.archive #content .ast-container,
.search-results #content .ast-container {
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
    --wp--custom--ast-content-width-size: 1450px;
}
body.archive .ast-archive-description {
    max-width: 100%;
}

.ast-blog-single-element.ast-taxonomy-container a {
    font-size: 17px;
}
.post-page-numbers.current .page-link, .ast-pagination .page-numbers.current {
    color: #000000;
    border-color: #7389c4;
    background-color: #7389c4;
}

body.archive .ast-archive-description .ast-archive-title, body.archive .ast-archive-description .ast-archive-title * {
    font-weight: 700;
    font-size: 36px;
    font-family: "Montserrat", sans-serif;
}

@media (min-width: 993px) {
    .ast-separate-container #primary,
    .ast-separate-container.ast-left-sidebar #primary,
    .ast-separate-container.ast-right-sidebar #primary {
        margin: 1em 0;
        padding: 0;
    }
}

@media (min-width: 1201px) {
    .ast-separate-container .ast-article-post,
    .ast-separate-container .ast-article-single,
    .ast-separate-container .ast-author-box,
    .ast-separate-container .ast-404-layout-1,
    .ast-separate-container .no-results {
        padding: 1.2em;
    }
}

/* ==========================================================================
   Custom Header
   ========================================================================== */

.site-topbar {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #333;
}

.topbar-social a {
    color: #333;
    display: inline-flex;
}

.topbar-social a:hover {
    color: #7389c4;
}

.topbar-logo {
    text-align: center;
}

.topbar-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.logo-main {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 5px;
    color: #7389c4;
    text-transform: uppercase;
}

.logo-sub {
    letter-spacing: 5px;
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #454f5e;
    margin-top: 4px;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.login-link:hover {
    color: #7389c4;
}

.topbar-divider {
    width: 1px;
    height: 22px;
    background: #ddd;
    display: inline-block;
}

.subscribe-btn {
    background: #7389c4;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 7px 23px;
    border-radius: 6px;
    text-decoration: none;
}

.subscribe-btn:hover {
    background: #5468b8;
    color: #fff;
    box-shadow: 0 6px 16px rgba(115, 137, 196, 0.45);
    transform: translateY(-1px);
}
@media (max-width: 768px) {
.topbar-logo a { align-items: flex-start; }
.logo-sub { letter-spacing: 3px; font-size: 11px; font-weight: 600; margin-top: 0px; }
}

/* ---- Nav menu row ---- */
.site-nav {
    border-bottom: 1px solid #eee;
    background: #fff;
}

.nav-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

/* Off-canvas header (logo + close icon) — mobile only, see media query below */
.mobile-nav-head,
.mobile-nav-overlay {
    display: none;
}

.mobile-nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.mobile-nav-head-tagline {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .28em;
    color: #454f5e;
    text-transform: uppercase;
}

/* Hamburger icon button — lives in the topbar, mobile only */
.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #222;
    padding: 8px;
    margin: 0;
    cursor: pointer;
    line-height: 0;
}

.mobile-nav-toggle:hover {
    color: #7389c4;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    position: relative;
    transition: color .2s;
}

.main-menu > li > a:hover {
    color: #7389c4;
}

.main-menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    background: #7389c4;
    transform: scaleX(0);
    transition: transform .18s;
}

.main-menu > li > a:hover::after {
    transform: scaleX(1);
}

.main-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    border-top: 2px solid #7389c4;
    background: #87a0e3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 100;
}

.main-menu li:hover > .sub-menu {
    display: block;
}

.main-menu .sub-menu li a {
    display: block;
    padding: 8px 18px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
}

.main-menu .sub-menu li a:hover {
    background: #f5f6fd;
    color: #7389c4;
}

.main-menu .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
}

.main-menu .menu-item-has-children > a::before {
    content: "\25BE";
    order: 1;
    font-size: 15px;
    margin-left: 5px;
}

#ast-scroll-top {
    width: 2.5em;
    height: 2.5em;
	  line-height: 2.5em;
    background-color: #87a0e3;
    border-radius: 50px;
	  transition: all .3s;
}
#ast-scroll-top:hover {
    background: #5468b8;
}

/* ---- Footer ---- */
.site-footer {
    background: #1a2436;
    color: #b7bfd1;
    margin-top: 40px;
}

.footer-main {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 54px 24px 42px;
}

.footer-col-brand .footer-logo {
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-logo a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}

.footer-logo-title {
    color: #aeb8c9;
}

.footer-logo-tagline {
    color: #7389c4;
}

.footer-description {
    margin: 16px 0 20px;
    line-height: 1.65;
    color: #8f9bb0;
    max-width: 320px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a {
    color: #b7bfd1;
    display: inline-flex;
}

.footer-social a:hover {
    color: #7389c4;
}

.footer-col-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 20px;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.footer-menu-list a {
    color: #b7bfd1;
    display: block;
    line-height: 1.4;
    font-size: 14px;
}

.footer-menu-list a:hover {
    color: #7389c4;
}

.footer-menu-date {
    display: block;
    font-size: 12px;
    color: #6f7788;
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #8891a4;
}

.footer-copyright {
    margin: 0;
}

.footer-copyright strong {
    color: #b7bfd1;
}

.footer-bottom-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
}

.footer-bottom-menu a {
    color: #8891a4;
    text-decoration: none;
}

.footer-bottom-menu a:hover {
    color: #7389c4;
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .topbar-social {
        display: none;
    }
    .topbar-inner {
        grid-template-columns: 1fr auto;
    }
    .logo-main {
        font-size: 25px;
        letter-spacing: 3px;
    }
    .login-link {
        display: none;
    }
    .topbar-divider {
        display: none;
    }
    .mobile-nav-toggle {
        display: inline-flex;
    }

    /* The primary nav becomes a full-height off-canvas panel on mobile */
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 999;
        width: 100%;
        height: 100vh;
        background: #fff;
        border-bottom: none;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .mobile-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 998;
        background: rgba(20, 20, 30, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-nav-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .mobile-nav-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 18px;
        border-bottom: 1px solid #eee;
    }

    .mobile-nav-head-logo {
        font-size: 24px;
        font-weight: 600;
        letter-spacing: 1px;
        color: #7389c4;
        text-transform: uppercase;
        line-height: 1.2;
    }
    
    .mobile-nav-close {
        background: none;
        border: none;
        color: #333;
        padding: 6px;
        cursor: pointer;
        line-height: 0;
    }
    
    .nav-inner {
        flex-wrap: wrap;
        padding: 0;
        justify-content: flex-start;
    }

    .main-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-menu > li {
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-menu > li > a {
        padding: 15px 46px 15px 18px;
        font-size: 15px;
    }

    .main-menu > li > a::after {
        content: none;
    }

    .submenu-toggle {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #888;
        transition: transform 0.2s ease;
    }

    li.submenu-open > .submenu-toggle {
        transform: rotate(90deg);
        color: #7389c4;
    }

    .main-menu .sub-menu {
        position: static;
        display: none;
        margin: 0;
        padding: 6px 0;
        border-top: none;
        box-shadow: none;
        background: #8593d6;
    }

    li.submenu-open > .sub-menu {
        display: block;
    }

    .main-menu .sub-menu li {
        border: none;
    }

    .main-menu .sub-menu a {
        display: block;
        padding: 10px 18px 10px 30px;
        font-size: 14px;
        font-weight: 500;
        color: #eef0fb;
    }

    .main-menu .sub-menu a:hover {
        color: #fff;
    }
}

/* ==========================================================================
   Magazine Homepage Layout
   ========================================================================== */

.magazine-homepage {
    max-width: 1340px;
    margin: 0 auto;
    padding: 20px 15px 60px;
}

/* ---- Hero post: image left, content right (card style) ---- */
.hero-post {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 34px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
}

.hero-post-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-post:hover{
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

.hero-thumb-link {
    display: block;
    height: 100%;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.hero-thumb-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.hero-post:hover .hero-thumb-img {
    transform: scale(1.04);
}


.hero-content {
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-category {
    display: inline-block;
    align-self: flex-start;
    background: #eef1fb;
    color: #5468b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    line-height: 1.7;
}

.hero-title {
    font-size: 26px;
    line-height: 1.35;
    margin: 0 0 14px;
}

.hero-title a {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.18;
    margin: 12px 0 10px;
    color: #1a1f2b;
    position: relative;
    z-index: 2;
}

.hero-post:hover .hero-title a {
    color: #5468b8;
}

.hero-excerpt {
    font-size: 16px;
    color: #5a6270;
    margin: 0 0 12px;
    display: block;
    line-height: 1.5;
}

.hero-date {
    font-size: 14px;
    color: #9aa1ac;
}

/* ---- Editorial row: editorial box + most-viewed box side by side ---- */
.editorial-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

.editorial-box {
    background: #faf8f2;
    border: 1px solid #ece6d6;
    border-left: 4px solid #7389c4;
    border-radius: 16px;
    padding: 26px 30px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-badge {
    width: 100%;
    display: inline-block;
    font-size: .80rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7389c4;
    border: 1px solid rgba(115, 137, 196, 0.4);
    padding: 3px 11px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.editorial-text {
    margin: 0;
    font-size: 22px;
}

/* ---- Most Viewed sidebar box ---- */
.most-viewed-box {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 10px;
    padding: 22px;
}

.most-viewed-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    border-bottom: 2px solid #222;
    padding-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem !important;
    font-weight: 500;
}

.mv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5468b8;
    display: inline-block;
}

.most-viewed-list {
    list-style: none;
    padding: revert;
    margin: revert;
    padding-left: 20px;
}

.most-viewed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.most-viewed-item:first-child {
    padding-top: 0;
}

.most-viewed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mv-rank {
    flex: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: #5468b8;
}

.mv-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.mv-thumb img,
.mv-thumb-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #ddd;
}

.mv-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.32;
    color: #1a1f2b;
}

.mv-title:hover {
    color: #7389c4;
}

/* ---- Category section ---- */
.category-section {
    margin-bottom: 45px;
}

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #222;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.category-section-header h2 {
    font-size: 20px;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #5468b8;
    display: inline-block;
    flex-shrink: 0;
}

.view-all-link {
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    color: #454f5e;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-family: 'Source Sans Pro', sans-serif;
}

.view-all-link:hover {
    color: inherit;
}

/* ---- Post grid + cards ---- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow .2s, transform .2s;
}
.post-card:hover {
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-thumb-link {
    display: block;
    overflow: hidden;
}

.card-thumb-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.card-thumb-link:hover .card-thumb-img,
.post-card:hover .card-thumb-img {
    transform: scale(1.04);
}

.card-thumb-placeholder {
    width: 100%;
    height: 190px;
    background: #eee;
}

.card-body {
    display: block;
    padding: 14px 16px 16px;
}

.card-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.32;
    color: #1a1f2b;
    margin: 0 0 8px;
}

.card-title a {
    position: relative;
    z-index: 2;
    color: #1a1a1a;
    text-decoration: none;
}

/* Stretch the title link to cover the whole card, so clicking anywhere
   on the post-card (image, whitespace, date) opens the post. */
.card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-title a:hover,
.post-card:hover .card-title a {
    color: #5468b8;
}

.card-date {
    font-size: 13px;
    color: #9aa1ac;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-post {
        grid-template-columns: 1fr;
    }
    .hero-thumb-img {
        aspect-ratio: 16 / 9;
    }
    .editorial-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding: 22px 22px;
    }
    .category-section-header h2 {
        font-size: 17px;
    }
}


/* ==========================================================================
   Comment Form - Post Comment Button
   ========================================================================== */

.comment-respond #submit,
.comment-form .submit,
#commentform #submit {
    background-color: #7389C4;
    border-color: #7389C4;
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.comment-respond #submit:hover,
.comment-form .submit:hover,
#commentform #submit:hover {
    background-color: #87A0E3;
    border-color: #87A0E3;
    color: #fff;
}

/* Submenu arrow buttons are mobile-only. Keep them hidden on desktop. */
.main-menu > li > .submenu-toggle {
    display: none;
}

/* Hide Astra/theme's built-in submenu caret on mobile.
   The blue .submenu-toggle button is the only mobile submenu control. */
@media (max-width: 760px) {
    .main-menu .menu-item-has-children > a::before {
        content: none !important;
        display: none !important;
    }
}

/* Mobile menu submenu arrow button */
@media (max-width: 760px) {
    .main-menu > li > .submenu-toggle {
        background: #7389c4;
        color: #ffffff;
        border: 0;
        border-radius: 4px;
        width: 40px;
        height: 40px;
        top: 4px;
        right: 5px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        line-height: 1;
        box-shadow: none;
        appearance: none;
        -webkit-appearance: none;
    }

    .main-menu > li > .submenu-toggle svg {
        display: block;
        width: 16px;
        height: 16px;
        fill: none;
        stroke: #ffffff !important;
        stroke-width: 2.25;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
    }

    .main-menu > li.submenu-open > .submenu-toggle {
        background: #7389c4;
        color: #ffffff;
        transform: rotate(90deg);
    }
}

/* Mobile submenu accordion: our arrow controls the submenu state. */
@media (max-width: 760px) {
    .main-menu > li > .sub-menu {
        /* Height/opacity animation is controlled by the arrow script. */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        will-change: max-height, opacity;
    }

    .main-menu > li.submenu-open > .sub-menu {
        display: block !important;
    }

    .main-menu > li:not(.submenu-open) > .sub-menu {
        /* The inline display set by JS stays in place during the close animation. */
    }
}
