/* ===========================================================================
   Flexy Blogs — brand layer
   =========================================================================== */

:root {
    --flexy-blue:      #2563eb;
    --flexy-blue-dark: #1d4ed8;
    --flexy-violet:    #7c3aed;
    --flexy-cyan:      #22d3ee;
    --flexy-ink:       #111827;
    --flexy-ink-soft:  #1f2937;
    --flexy-body:      #4b5563;
    --flexy-muted:     #6b7280;
    --flexy-line:      #e5e7eb;
    --flexy-bg:        #f6f8fb;
    --flexy-white:     #ffffff;
    --flexy-success:   #16a34a;
    --flexy-warning:   #d97706;
    --flexy-danger:    #dc2626;
    --flexy-info:      #0ea5e9;
    --flexy-radius:    10px;
    --flexy-radius-lg: 16px;
    --flexy-shadow:    0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
    --flexy-shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
    --flexy-gradient:  linear-gradient(135deg, var(--flexy-violet) 0%, var(--flexy-blue) 55%, var(--flexy-cyan) 100%);
}

/* ---------------------------------------------------------------------------
   Shared
   --------------------------------------------------------------------------- */

.gradient-bg-1 { background: var(--flexy-gradient) !important; }

.flexy-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.sr-only-focusable:focus {
    position: fixed; top: 10px; left: 10px; z-index: 9999;
    width: auto; height: auto; padding: 10px 18px; clip: auto;
    background: var(--flexy-ink); color: #fff; border-radius: 6px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--flexy-blue);
    outline-offset: 2px;
}

/* Header ------------------------------------------------------------------- */

.flexy-header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 74px;
    padding: 0px 0;
    text-align: left;
}

.header-style-2 .header-bottom {
    height: auto;
    min-height: 0;
    line-height: normal;
}

.flexy-header-logo { flex: 0 0 auto; line-height: 1; }
.flexy-header-logo .logo-img { max-height: 42px; width: auto; display: block; }

.flexy-header-nav { flex: 1 1 auto; min-width: 0; }
.flexy-header-nav .main-nav { float: none !important; }

.main-header .main-menu { margin: 0; white-space: nowrap; }
.main-header .main-menu > li { float: none; display: inline-block; padding: 0 14px; }
.main-header .main-menu > li > a { white-space: nowrap; }

/* The menu grew past six items; tighten spacing before it wraps to a second
   row, and drop the least important pieces as the viewport narrows. */
@media (max-width: 1500px) {
    .main-header .main-menu > li { padding: 0 11px; }
    .header-tools .search-form { flex: 0 0 150px !important; width: 150px !important; max-width: 150px !important; }
}
@media (max-width: 1400px) {
    .main-header .main-menu > li { padding: 0 8px; font-size: 14px; }
    .main-header .main-menu > li > a .mr-10 { display: none; }   /* menu icons */
    .header-tools .search-form { display: none !important; }
}
@media (max-width: 1120px) {
    .flexy-header-bar { gap: 12px; }
    .header-tools .flexy-account .font-small { display: none !important; }
}

.header-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.header-tools .search-form {
    position: relative;
    z-index: 1;
    flex: 0 0 190px;
    width: 190px;
    max-width: 190px;
    margin-bottom: 0;
}
.header-tools .search_field { width: 100%; max-width: 100%; box-sizing: border-box; }

/* The theme pins the search icon with a hard-coded `top` (3px in the header,
   10px in the off-canvas panel), which only lines up at the field height it was
   written for — at the 30px header field it sat 4.5px above centre. Centring it
   off its own box keeps it put whatever the field height is. */
.header-style-2 .search-form .search-icon,
.offcanvas-sidebar .search-form .search-icon {
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}
/* The icon is the last thing in the field, so the mr-5 utility on it only
   pushed the glyph off the centre line the `right` offset sets up. */
.header-style-2 .search-form .search-icon i,
.offcanvas-sidebar .search-form .search-icon i {
    margin-right: 0;
}
.flexy-header-bar .header-tools .off-canvas-toggle-cover {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    z-index: 2;
    width: 36px;
    min-width: 36px;
    height: 40px;
    flex: 0 0 36px;
}
.header-tools .off-canvas-toggle { display: inline-flex; width: 36px; height: 40px; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.header-tools .btn-flexy { white-space: nowrap; }

/* Buttons ------------------------------------------------------------------ */

.btn-flexy,
.btn-flexy-outline {
    display: inline-block;
    min-width: 0;
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    padding: 12px 24px;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
}

/* The base template adds a red animated ::before layer to every .btn. Keep
   branded buttons predictable and preserve readable text in every state. */
.btn-flexy::before,
.btn-flexy-outline::before { display: none !important; }

.btn-flexy {
    background: var(--flexy-blue);
    border-color: var(--flexy-blue);
    color: #fff !important;
}

.btn-flexy:hover,
.btn-flexy:focus {
    background: var(--flexy-blue-dark);
    border-color: var(--flexy-blue-dark);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}

.btn-flexy-outline {
    background: transparent;
    border-color: var(--flexy-line);
    color: var(--flexy-ink) !important;
}

.btn-flexy-outline:hover,
.btn-flexy-outline:focus {
    border-color: var(--flexy-blue);
    color: var(--flexy-blue) !important;
    text-decoration: none;
}

.btn-flexy.btn-sm,
.btn-flexy-outline.btn-sm { padding: 8px 18px; font-size: 13px; }

.btn-flexy.btn-block,
.btn-flexy-outline.btn-block { display: block; width: 100%; }

.btn-flexy[disabled],
.btn-flexy-outline[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.flexy-avatar-sm {
    width: 34px; height: 34px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--flexy-line);
}

.flexy-account .dropdown-toggle::after { margin-left: 8px; }
.flexy-account .dropdown-menu {
    min-width: 220px; margin-top: 8px; padding: 6px;
    border: 1px solid var(--flexy-line); box-shadow: var(--flexy-shadow);
    border-radius: var(--flexy-radius);
}
.flexy-account .dropdown-item {
    display: flex; align-items: center; min-height: 0;
    margin: 0; padding: 10px 12px; border-radius: 7px;
    color: var(--flexy-ink) !important; font-size: 13.5px;
    line-height: 1.35 !important;
}
.flexy-account .dropdown-item:hover,
.flexy-account .dropdown-item:focus { background: #eef4ff; color: var(--flexy-blue) !important; }
.flexy-account .dropdown-divider { margin: 5px -6px; }
.flexy-account .dropdown-item.text-danger { color: var(--flexy-danger) !important; }
.flexy-account .dropdown-item.text-danger:hover { background: #fef2f2; }

.flexy-mega-cta { background: var(--flexy-bg); border: 1px solid var(--flexy-line); }

/* ---------------------------------------------------------------------------
   Thumbnails
   The template sizes post images with fixed pixel widths and circular masks,
   which distorts real article images. These rules give every thumbnail a fixed
   box and let the image cover it, keeping the original rounded-card look.
   --------------------------------------------------------------------------- */

/* Sidebar lists ("Don't miss", "Top trending") */
.post-aside-style-1 .list-post .post-thumb,
.post-aside-style-2 .list-post .post-thumb {
    flex: 0 0 86px;
    width: 86px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
}
.post-aside-style-1 .list-post .post-thumb a,
.post-aside-style-2 .list-post .post-thumb a { display: block; width: 100%; height: 100%; }
.post-aside-style-1 .list-post .post-thumb img,
.post-aside-style-2 .list-post .post-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 8px; display: block;
}

/* Archive rows */
.loop-list-style-1 .post-thumb.post-thumb-big {
    flex: 0 0 250px; width: 250px; height: 170px;
    overflow: hidden; border-radius: 12px;
}
.loop-list-style-1 .post-thumb.post-thumb-big a { display: block; width: 100%; height: 100%; }
.loop-list-style-1 .post-thumb.post-thumb-big img,
.loop-list-style-1 .post-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 12px; display: block;
}

/* Lead card on archives and the homepage */
.first-post .img-hover-slide,
.featured-post .img-hover-slide {
    height: 380px; overflow: hidden; border-radius: 14px;
}
.first-post .img-hover-slide a,
.featured-post .img-hover-slide a { display: block; width: 100%; height: 100%; }
.first-post .img-hover-slide img,
.featured-post .img-hover-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Grid cards */
.background-white > .post-thumb {
    display: block; width: 100%; height: 190px;
    overflow: hidden; border-radius: 14px;
}
.background-white > .post-thumb a { display: block; width: 100%; height: 100%; }
.background-white > .post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

/* Submission form — "fetch details from the link" ------------------------- */

.flexy-autofill-row { display: flex; gap: 10px; align-items: stretch; }
.flexy-autofill-row .form-control { flex: 1 1 auto; min-width: 0; }
.flexy-autofill-row .btn { flex: 0 0 auto; white-space: nowrap; }
.flexy-autofill-row .btn[disabled] { opacity: 0.6; cursor: progress; }

.flexy-autofill-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 3px solid var(--flexy-info);
    border-radius: 6px;
    background: #f0f9ff;
    font-size: 13px;
    line-height: 1.6;
}
.flexy-autofill-status.is-success { border-left-color: var(--flexy-success); background: #f0fdf4; }
.flexy-autofill-status.is-danger  { border-left-color: var(--flexy-danger);  background: #fef2f2; }
.flexy-autofill-status[hidden]    { display: none; }
.flexy-autofill-status a { text-decoration: underline; }

@media (max-width: 575px) {
    .flexy-autofill-row { flex-direction: column; }
    .flexy-autofill-row .btn { width: 100%; }
}

.flexy-post-grid { margin-bottom: 6px; }
.flexy-post-grid-col { display: flex; padding-bottom: 26px; }
.flexy-post-card {
    display: flex; flex-direction: column; width: 100%; min-width: 0;
    box-shadow: var(--flexy-shadow-sm);
}
.flexy-post-card > div:last-child { display: flex; flex: 1; flex-direction: column; }

/* Card titles are clamped to two lines by .text-limit-2-row, and the box has to
   be an exact multiple of the line height or the clamp leaks. At 2.9em against a
   24px line height the box was 2.42 lines tall: the clamp drew its ellipsis at
   the end of line two, then overflow:hidden cut at 58px instead of 48px and let
   the top sliver of line three show through underneath it.

   Pinning line-height to 1.2 makes 1.2em exactly one line, so min and max height
   both land on a whole number of lines at any font size. min-height keeps the
   byline and meta row aligned across cards in a row; max-height is what stops a
   third line ever peeking out. */
.flexy-post-card .post-title {
    line-height: 1.2;
    min-height: calc(1.2em * 2);
    max-height: calc(1.2em * 2);
    overflow: hidden;
}
.flexy-post-card .entry-meta:last-child { margin-top: auto; }

/* Article hero image */
.single-thumnail img { width: 100%; height: auto; border-radius: var(--flexy-radius); display: block; }

/* Byline row on the lead card */
.flexy-card-byline { display: flex; align-items: center; gap: 12px; }
.flexy-card-byline .flexy-card-avatar { flex: 0 0 42px; }
.flexy-card-byline .flexy-card-avatar img {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover; display: block;
}
.flexy-card-byline .flexy-card-byline-text { min-width: 0; line-height: 1.45; }
.flexy-card-byline .author-name { font-weight: 700; font-size: 13.5px; }
.flexy-card-byline .read-more { margin-left: auto; white-space: nowrap; }

/* Badges ------------------------------------------------------------------- */

.flexy-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: .3px; text-transform: uppercase;
    padding: 5px 10px; border-radius: 20px;
}

.badge-secondary.flexy-badge { background: #eef2f7; color: #475569; }
.badge-success.flexy-badge   { background: #dcfce7; color: #15803d; }
.badge-warning.flexy-badge   { background: #fef3c7; color: #b45309; }
.badge-danger.flexy-badge    { background: #fee2e2; color: #b91c1c; }
.badge-info.flexy-badge      { background: #e0f2fe; color: #0369a1; }
.badge-primary.flexy-badge   { background: #dbeafe; color: #1d4ed8; }

/* Empty states ------------------------------------------------------------- */

.flexy-empty {
    border: 1px dashed var(--flexy-line);
    background: var(--flexy-white);
    padding: 48px 24px;
}

.flexy-empty-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--flexy-bg); color: var(--flexy-blue); font-size: 26px;
}

.flexy-empty h5 { margin-bottom: 8px; }
.flexy-empty p  { max-width: 460px; margin-left: auto; margin-right: auto; }

/* Breadcrumbs -------------------------------------------------------------- */

.flexy-breadcrumb a { color: var(--flexy-muted); }
.flexy-breadcrumb a:hover { color: var(--flexy-blue); }
.flexy-breadcrumb .sep { margin: 0 4px; color: #cbd5e1; }

/* Ads ---------------------------------------------------------------------- */

.flexy-ad img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------------------
   Homepage
   --------------------------------------------------------------------------- */

.flexy-hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,.16), transparent 24%),
        radial-gradient(circle at 88% 92%, rgba(34,211,238,.30), transparent 32%),
        linear-gradient(125deg, #6428e8 0%, #3157e8 48%, #159fd8 100%);
    border-radius: 24px; color: #fff; padding: 34px;
    position: relative; overflow: hidden;
    box-shadow: 0 24px 60px rgba(37, 99, 235, .18);
}

.flexy-hero::before,
.flexy-hero::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.flexy-hero::before {
    width: 260px; height: 260px; left: -150px; top: -155px;
    border: 44px solid rgba(255, 255, 255, .08);
}
.flexy-hero::after {
    width: 330px; height: 330px; right: -205px; bottom: -220px;
    border: 58px solid rgba(255, 255, 255, .1);
}

.flexy-hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
    align-items: stretch; gap: 42px;
}
.flexy-hero-copy { padding: 28px 8px 22px 10px; }
.flexy-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 18px; padding: 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24);
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .7px;
    text-transform: uppercase;
}

.flexy-hero h1 {
    color: #fff;
    font-size: clamp(38px, 4.1vw, 64px); line-height: 1.02; font-weight: 800;
    letter-spacing: -1.5px; max-width: 720px;
    margin-bottom: 18px; position: relative; z-index: 1;
}

.flexy-hero p { color: rgba(255, 255, 255, .9); font-size: 17px; line-height: 1.7; max-width: 650px; margin-bottom: 26px; position: relative; z-index: 1; }
.flexy-hero .flexy-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; position: relative; z-index: 1; }
.flexy-hero .flexy-hero-actions .btn { margin: 0; min-width: 176px; }
.flexy-hero .btn-flexy { background: #fff; border-color: #fff; color: var(--flexy-blue) !important; }
.flexy-hero .btn-flexy:hover { background: #eff6ff; border-color: #eff6ff; color: var(--flexy-blue-dark) !important; }
.flexy-hero .btn-flexy-outline { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.flexy-hero .btn-flexy-outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff !important; }

.flexy-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.flexy-hero-stats span {
    display: block; min-width: 96px; margin: 0; padding: 10px 13px;
    border-radius: 12px; background: rgba(10, 30, 95, .18);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .78); font-size: 11.5px;
}
.flexy-hero-stats strong { display: block; margin-bottom: 1px; font-size: 22px; line-height: 1.1; font-weight: 800; color: #fff; }

.flexy-hero-feature {
    position: relative; display: block; min-height: 390px; overflow: hidden;
    border-radius: 18px; border: 1px solid rgba(255, 255, 255, .34);
    background: rgba(17, 24, 39, .2); color: #fff !important;
    box-shadow: 0 18px 42px rgba(17, 24, 39, .24);
    transform: rotate(1.2deg); transition: transform .28s ease, box-shadow .28s ease;
}
.flexy-hero-feature:hover {
    color: #fff !important; text-decoration: none; transform: rotate(0) translateY(-3px);
    box-shadow: 0 24px 54px rgba(17, 24, 39, .3);
}
.flexy-hero-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.flexy-hero-feature-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,15,40,.02) 20%, rgba(8,15,40,.88) 100%); }
.flexy-hero-feature-content { position: absolute; inset: auto 24px 24px; display: block; }
.flexy-hero-feature-label {
    display: inline-block; margin-bottom: 11px; padding: 6px 10px;
    border-radius: 999px; background: rgba(255,255,255,.94); color: var(--flexy-blue);
    font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
}
.flexy-hero-feature-content strong { display: block; color: #fff; font-size: 23px; line-height: 1.25; }
.flexy-hero-feature-content small { display: block; margin-top: 10px; color: rgba(255,255,255,.78); }

.flexy-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.flexy-section-head .widget-title { margin-bottom: 0; }

.flexy-cta {
    background: var(--flexy-ink);
    border-radius: var(--flexy-radius-lg);
    color: #fff;
    padding: 48px 40px;
}

.flexy-cta h3 { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.flexy-cta p  { color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 0; }

.flexy-category-card {
    display: block;
    background: #fff;
    border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius);
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    transition: all .25s ease;
}

.flexy-category-card:hover {
    border-color: var(--flexy-blue);
    box-shadow: var(--flexy-shadow);
    transform: translateY(-2px);
    text-decoration: none;
}

.flexy-category-card .flexy-category-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; margin-bottom: 14px;
    border-radius: 14px; font-size: 22px;
    background: var(--flexy-bg); color: var(--flexy-blue);
}

.flexy-category-card h6 { margin-bottom: 4px; color: var(--flexy-ink); }
.flexy-category-card span { font-size: 13px; color: var(--flexy-muted); }

.flexy-author-card {
    background: #fff;
    border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius);
    padding: 24px 18px;
    text-align: center;
    height: 100%;
    transition: all .25s ease;
}

.flexy-author-card:hover { box-shadow: var(--flexy-shadow); transform: translateY(-2px); }

.flexy-author-card img {
    width: 76px; height: 76px; border-radius: 50%;
    object-fit: cover; margin-bottom: 14px;
    border: 3px solid var(--flexy-bg);
}

.flexy-author-card h6 { margin-bottom: 2px; }
.flexy-author-card h6 a { color: var(--flexy-ink); }
.flexy-author-card .flexy-author-meta { font-size: 13px; color: var(--flexy-muted); }
.flexy-author-card .flexy-author-bio { font-size: 13px; color: var(--flexy-body); margin: 10px 0 0; }

.flexy-verified { color: var(--flexy-blue); margin-left: 4px; }

/* ---------------------------------------------------------------------------
   Article detail
   --------------------------------------------------------------------------- */

.entry-main-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-main-content figure { margin: 26px 0; }
.entry-main-content figcaption { font-size: 13px; color: var(--flexy-muted); margin-top: 8px; }
.entry-main-content table { width: 100%; margin: 24px 0; border-collapse: collapse; }
.entry-main-content th,
.entry-main-content td { border: 1px solid var(--flexy-line); padding: 10px 12px; text-align: left; }
.entry-main-content th { background: var(--flexy-bg); font-weight: 700; }
.entry-main-content pre {
    background: var(--flexy-ink); color: #e5e7eb;
    padding: 18px 20px; border-radius: var(--flexy-radius);
    overflow-x: auto; font-size: 13.5px; line-height: 1.7; margin: 24px 0;
}
.entry-main-content pre code { background: none; color: inherit; padding: 0; }
.entry-main-content code {
    background: var(--flexy-bg); color: #b91c1c;
    padding: 2px 6px; border-radius: 4px; font-size: .92em;
}
.entry-main-content blockquote {
    border-left: 4px solid var(--flexy-blue);
    background: var(--flexy-bg);
    padding: 18px 24px; margin: 26px 0; border-radius: 0 var(--flexy-radius) var(--flexy-radius) 0;
}
.entry-main-content blockquote p:last-child { margin-bottom: 0; }
.entry-main-content h2,
.entry-main-content h3 { scroll-margin-top: 100px; margin-top: 34px; }
.entry-main-content ul,
.entry-main-content ol { padding-left: 22px; margin-bottom: 20px; }
.entry-main-content li { margin-bottom: 8px; }

.flexy-share-list { list-style: none; padding: 0; margin: 0; }
.flexy-share-list li { display: inline-block; margin: 0 6px 6px 0; }

.flexy-share-list a,
.flexy-share-list button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--flexy-bg); color: var(--flexy-body);
    border: 1px solid var(--flexy-line);
    transition: all .2s ease;
}

.flexy-share-list a:hover,
.flexy-share-list button:hover { background: var(--flexy-blue); border-color: var(--flexy-blue); color: #fff; }
.flexy-share-list button.copied { background: var(--flexy-success); border-color: var(--flexy-success); color: #fff; }

.flexy-prev-next .flexy-prev-next-item {
    display: block; background: #fff; border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius); padding: 18px 20px; height: 100%;
    transition: all .2s ease;
}
.flexy-prev-next .flexy-prev-next-item:hover { border-color: var(--flexy-blue); text-decoration: none; box-shadow: var(--flexy-shadow-sm); }
.flexy-prev-next .flexy-prev-next-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--flexy-muted); }
.flexy-prev-next h6 { margin: 6px 0 0; color: var(--flexy-ink); }

.comment-list .single-comment { margin-bottom: 24px; }
.comment-list .comment-reply { margin-left: 56px; }
.comment-list .thumb img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.flexy-comment-badge { font-size: 11px; background: #dbeafe; color: #1d4ed8; padding: 2px 8px; border-radius: 20px; margin-left: 8px; }

.flexy-toc {
    background: var(--flexy-bg);
    border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius);
    padding: 20px 24px;
    margin-bottom: 30px;
}
.flexy-toc h6 { margin-bottom: 12px; text-transform: uppercase; font-size: 12px; letter-spacing: .6px; color: var(--flexy-muted); }
.flexy-toc ol { margin: 0; padding-left: 18px; }
.flexy-toc li { margin-bottom: 6px; font-size: 14px; }

.flexy-faq dt { font-weight: 700; color: var(--flexy-ink); margin-top: 18px; }
.flexy-faq dd { margin: 6px 0 0; color: var(--flexy-body); }

/* ---------------------------------------------------------------------------
   Submissions module
   --------------------------------------------------------------------------- */

/* Hub cards */
.flexy-submit-card {
    display: block; height: 100%;
    background: #fff; border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius); padding: 24px 20px;
    transition: all .25s ease;
}
.flexy-submit-card:hover {
    border-color: var(--flexy-blue); box-shadow: var(--flexy-shadow);
    transform: translateY(-2px); text-decoration: none;
}
.flexy-submit-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-bottom: 14px;
    border-radius: 12px; font-size: 20px;
    background: var(--flexy-bg); color: var(--flexy-blue);
}
.flexy-submit-card h6 { margin: 0 0 8px; color: var(--flexy-ink); font-size: 15.5px; }
.flexy-submit-card p  { margin: 0 0 12px; font-size: 13px; color: var(--flexy-body); line-height: 1.6; }
.flexy-submit-meta    { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--flexy-muted); }

/* The "here is your live URL" box */
.flexy-live-url { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.flexy-live-url .form-control {
    flex: 1 1 260px; min-width: 0;
    border: 1px solid var(--flexy-line); border-radius: 8px;
    padding: 10px 14px; font-size: 13.5px; font-family: monospace;
    background: #fff; color: var(--flexy-ink);
}
.flexy-live-url .btn { white-space: nowrap; }
.flexy-live-url.compact .form-control { padding: 6px 10px; font-size: 12px; flex: 1 1 140px; }
.flexy-live-url.compact .btn { padding: 6px 12px; }

/* Submission cards on the browse page */
.flexy-sub-card {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius); overflow: hidden;
    transition: all .25s ease;
}
.flexy-sub-card:hover { box-shadow: var(--flexy-shadow); transform: translateY(-2px); }
.flexy-sub-col { display: flex; margin-bottom: 24px; }
.flexy-sub-col .flexy-sub-card { width: 100%; }
.flexy-sub-thumb { display: block; height: 170px; overflow: hidden; background: var(--flexy-bg); }
.flexy-sub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flexy-sub-thumb.is-doc,
.flexy-sub-thumb.is-placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: var(--flexy-blue);
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
}
.flexy-sub-thumb.is-placeholder i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 76px; height: 76px; border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .12);
}
.flexy-sub-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.flexy-sub-type {
    font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
    color: var(--flexy-blue); font-weight: 700; margin-bottom: 8px;
}
.flexy-sub-body h6 { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.flexy-sub-body h6 a { color: var(--flexy-ink); }
.flexy-sub-body h6 a:hover { color: var(--flexy-blue); }
.flexy-sub-body p { font-size: 13px; color: var(--flexy-body); margin: 0 0 14px; line-height: 1.6; }
.flexy-sub-meta {
    margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px;
    font-size: 11.5px; color: var(--flexy-muted);
    border-top: 1px solid var(--flexy-line); padding-top: 12px;
}
.flexy-sub-domain { color: var(--flexy-blue); word-break: break-all; }

/* The outbound link box on a submission page */
.flexy-link-box {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--flexy-bg); border: 1px solid var(--flexy-line);
    border-left: 4px solid var(--flexy-blue);
    border-radius: var(--flexy-radius); padding: 18px 22px;
}
.flexy-link-label {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px;
    color: var(--flexy-muted); font-weight: 700;
}
.flexy-link-url { font-size: 16px; font-weight: 700; word-break: break-all; }
.flexy-link-url.secondary { font-size: 14px; font-weight: 600; opacity: .85; }

/* PDF viewer */
.flexy-pdf-box { border: 1px solid var(--flexy-line); border-radius: var(--flexy-radius); overflow: hidden; background: #fff; }
.flexy-pdf-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--flexy-line); flex-wrap: wrap; }
.flexy-pdf-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    background: #fee2e2; color: #b91c1c; font-size: 18px;
}
.flexy-pdf-frame { width: 100%; height: 640px; border: 0; display: block; background: var(--flexy-bg); }

.flexy-directory-logo {
    width: 110px; height: 110px; object-fit: contain;
    border: 1px solid var(--flexy-line); border-radius: var(--flexy-radius);
    background: #fff; padding: 8px;
}

/* "Report this submission" — a deliberately quiet control */
.flexy-report-btn {
    background: none; border: 0; padding: 0;
    font-size: 12px; color: var(--flexy-muted);
    cursor: pointer; line-height: 1.6;
}
.flexy-report-btn:hover { color: var(--flexy-danger); text-decoration: underline; }

.flexy-related-item {
    display: block; background: #fff; border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius); padding: 14px 16px; height: 100%;
    transition: all .2s ease;
}
.flexy-related-item:hover { border-color: var(--flexy-blue); text-decoration: none; box-shadow: var(--flexy-shadow-sm); }
.flexy-related-item h6 { margin: 0 0 4px; font-size: 14.5px; color: var(--flexy-ink); line-height: 1.45; }

@media (max-width: 767px) {
    .flexy-pdf-frame { height: 420px; }
    .flexy-sub-thumb { height: 150px; }
    .flexy-live-url .form-control { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.flexy-footer { background: var(--flexy-ink); color: rgba(255, 255, 255, .74); margin-top: 40px; }
.flexy-footer .footer-area { background: transparent; }
.flexy-footer p { color: rgba(255, 255, 255, .7); }
.flexy-footer a { color: rgba(255, 255, 255, .78); }
.flexy-footer a:hover { color: #fff; text-decoration: none; }
.flexy-footer-logo { max-height: 42px; width: auto; }
.flexy-footer-about { max-width: 380px; }

.flexy-footer-heading {
    color: #fff; font-size: 13px; font-weight: 700;
    letter-spacing: .8px; text-transform: uppercase;
}

.flexy-footer-links { list-style: none; padding: 0; margin: 0; }
.flexy-footer-links li { margin-bottom: 10px; }

.flexy-footer-social .social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-right: 8px;
    border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff;
    transition: all .2s ease;
}
.flexy-footer-social .social-icon:hover { background: var(--flexy-blue); }

.flexy-footer-tags { border-top: 1px solid rgba(255, 255, 255, .1); }
.flexy-footer-tags a {
    display: inline-block; margin: 0 8px 8px 0; padding: 5px 12px;
    border-radius: 20px; background: rgba(255, 255, 255, .07);
}
.flexy-footer-tags a:hover { background: var(--flexy-blue); color: #fff; }

.flexy-footer-bottom { background: rgba(0, 0, 0, .25); border-top: 1px solid rgba(255, 255, 255, .07); }
.flexy-footer-bottom p { margin: 0; color: rgba(255, 255, 255, .6); }

.flexy-footer .form-newsletter input {
    width: 100%; background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14); color: #fff;
    border-radius: 30px; padding: 10px 46px 10px 18px; font-size: 13px;
}
.flexy-footer .form-newsletter input::placeholder { color: rgba(255, 255, 255, .45); }
.flexy-footer .form-newsletter button {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; border-radius: 50%;
    background: var(--flexy-blue); color: #fff;
}

/* ---------------------------------------------------------------------------
   Auth screens
   --------------------------------------------------------------------------- */

.flexy-auth { padding: 60px 0 80px; }

.flexy-auth-card {
    background: #fff;
    border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius-lg);
    box-shadow: var(--flexy-shadow);
    padding: 40px;
}

.flexy-auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.flexy-auth-card .flexy-auth-sub { color: var(--flexy-muted); margin-bottom: 28px; }

.flexy-auth-side {
    background: var(--flexy-gradient);
    border-radius: var(--flexy-radius-lg);
    color: #fff; padding: 44px 36px; height: 100%;
}
.flexy-auth-side h2 { color: #fff; font-size: 26px; font-weight: 800; }
.flexy-auth-side p { color: rgba(255, 255, 255, .92); }
.flexy-auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; }
.flexy-auth-side li { margin-bottom: 14px; color: rgba(255, 255, 255, .92); display: flex; gap: 10px; align-items: flex-start; }
.flexy-auth-side li i { margin-top: 4px; }

/* Forms -------------------------------------------------------------------- */

.flexy-form label { font-weight: 600; font-size: 13.5px; color: var(--flexy-ink); margin-bottom: 6px; display: block; }
.flexy-form .form-control,
.flexy-form .custom-select {
    width: 100%; height: auto;
    border: 1px solid var(--flexy-line); border-radius: 8px;
    padding: 11px 14px; font-size: 14.5px; color: var(--flexy-ink);
    background-color: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.flexy-form textarea.form-control { min-height: 120px; }

/* Bootstrap's .input-group needs its .form-control to SHRINK to make room for
   the prepend/append button, not fill 100% of the row — otherwise the button
   wraps onto its own line. This has higher specificity than the rule above
   (three classes vs. two), so it wins inside an .input-group regardless of
   source order. Bootstrap's own CSS still handles the joined border-radius. */
.flexy-form .input-group { flex-wrap: nowrap; }
.flexy-form .input-group .form-control { width: 1%; flex: 1 1 auto; }
.flexy-form .input-group .btn { white-space: nowrap; }
.flexy-form .form-control:focus,
.flexy-form .custom-select:focus {
    border-color: var(--flexy-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    outline: none;
}
.flexy-form .form-control.is-invalid { border-color: var(--flexy-danger); }
.flexy-form .invalid-feedback { display: block; font-size: 12.5px; color: var(--flexy-danger); margin-top: 5px; }
.flexy-form .form-text { font-size: 12.5px; color: var(--flexy-muted); margin-top: 5px; }
.flexy-form .form-group { margin-bottom: 20px; }
.flexy-form .flexy-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.flexy-form .flexy-check input { margin-top: 4px; }

.flexy-password-wrap { position: relative; }
.flexy-password-wrap .form-control { padding-right: 48px; }
.flexy-password-wrap .flexy-password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: none; border: 0; border-radius: 6px;
    color: #536078; cursor: pointer; padding: 4px;
}
.flexy-password-wrap .flexy-password-toggle:hover { color: var(--flexy-blue); background: #eef4ff; }
.flexy-password-wrap .flexy-password-toggle:focus-visible { outline: 2px solid var(--flexy-blue); outline-offset: 1px; }
.flexy-code-input { text-align: center; font-size: 24px !important; font-weight: 800; letter-spacing: .45em; }

/* ---------------------------------------------------------------------------
   Dashboard & admin shell
   --------------------------------------------------------------------------- */

body.flexy-panel { background: var(--flexy-bg); color: var(--flexy-body); }
body.flexy-panel a { color: var(--flexy-blue); }

.panel-layout { display: flex; min-height: 100vh; width: 100%; overflow-x: clip; }

.panel-sidebar {
    width: 252px; flex: 0 0 252px;
    background: #131d30; color: #cbd5e1;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.panel-sidebar-brand { padding: 22px 24px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.panel-sidebar-brand img { max-height: 34px; width: auto; }
.panel-sidebar-brand .panel-role {
    display: block; margin-top: 8px; font-size: 11px;
    letter-spacing: 1px; text-transform: uppercase; color: #a8b4c7;
}

.panel-nav { padding: 16px 0 40px; flex: 1; }
.panel-nav-heading {
    padding: 18px 24px 8px; font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; color: #93a4bd;
}

body.flexy-panel .panel-sidebar .panel-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 24px; font-size: 14.5px;
    color: #d7dfeb !important; transition: all .18s ease;
    border-left: 3px solid transparent;
}
body.flexy-panel .panel-sidebar .panel-nav a:hover { background: rgba(255, 255, 255, .075); color: #fff !important; text-decoration: none; }
body.flexy-panel .panel-sidebar .panel-nav a.active { background: #1f3560; color: #fff !important; border-left-color: #4f8cff; }
.panel-nav a i { color: #75a7ff; }
body.flexy-panel .panel-sidebar .panel-nav a.active i,
body.flexy-panel .panel-sidebar .panel-nav a:hover i { color: #fff; }
.panel-nav a i { width: 18px; text-align: center; font-size: 15px; }
.panel-nav .panel-count {
    margin-left: auto; font-size: 11px; font-weight: 700;
    background: rgba(255, 255, 255, .12); color: #fff;
    padding: 2px 8px; border-radius: 20px;
}
.panel-nav a.active .panel-count { background: var(--flexy-blue); }

.panel-main { flex: 1; min-width: 0; max-width: 100%; display: flex; flex-direction: column; }

.panel-topbar {
    background: #fff; border-bottom: 1px solid var(--flexy-line);
    padding: 14px 28px; display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap;
    position: sticky; top: 0; z-index: 20;
}
.panel-topbar h1 {
    font-size: 20px; margin: 0; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.panel-topbar .panel-topbar-right {
    margin-left: auto; display: flex; align-items: center;
    gap: 14px; min-width: 0; flex-shrink: 1;
}
.panel-topbar .panel-topbar-right form { margin: 0; }
.panel-topbar .flexy-avatar-sm { width: 32px; height: 32px; flex: 0 0 32px; }

.panel-content { padding: 28px; flex: 1; min-width: 0; max-width: 100%; }

#flexy-panel-toggle {
    display: none; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex: 0 0 40px; padding: 0;
    background: var(--flexy-bg); border: 1px solid var(--flexy-line);
    border-radius: 10px; font-size: 20px; color: var(--flexy-ink); cursor: pointer;
}
#flexy-panel-backdrop { display: none; }

.panel-card {
    background: #fff; border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius); box-shadow: var(--flexy-shadow-sm);
    margin-bottom: 24px;
}
.panel-card-head {
    padding: 16px 22px; border-bottom: 1px solid var(--flexy-line);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.panel-card-head h2,
.panel-card-head h3 { font-size: 16px; margin: 0; }
.panel-card-body { padding: 22px; }
.panel-card-body.no-pad { padding: 0; }

.panel-stat {
    background: #fff; border: 1px solid var(--flexy-line);
    border-radius: var(--flexy-radius); padding: 20px;
    display: flex; align-items: center; gap: 16px; height: 100%;
}
.panel-stat-col { margin-bottom: 24px; }
.panel-stat > span:last-child { min-width: 0; }
.panel-stat strong,
.panel-stat > span:last-child > span { overflow-wrap: anywhere; }
.panel-stat .panel-stat-icon {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 19px; background: var(--flexy-bg); color: var(--flexy-blue);
}
.panel-stat.is-success .panel-stat-icon { background: #dcfce7; color: #15803d; }
.panel-stat.is-warning .panel-stat-icon { background: #fef3c7; color: #b45309; }
.panel-stat.is-danger  .panel-stat-icon { background: #fee2e2; color: #b91c1c; }
.panel-stat.is-info    .panel-stat-icon { background: #e0f2fe; color: #0369a1; }
.panel-stat strong { display: block; font-size: 24px; line-height: 1.2; color: var(--flexy-ink); }
.panel-stat span { font-size: 13px; color: var(--flexy-muted); }

.panel-table { width: 100%; margin: 0; }
.panel-table th {
    font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; color: var(--flexy-muted);
    padding: 12px 16px; border-bottom: 1px solid var(--flexy-line); white-space: nowrap;
}
.panel-table td { padding: 14px 16px; border-bottom: 1px solid var(--flexy-line); vertical-align: middle; font-size: 14px; }
.panel-table tbody tr:last-child td { border-bottom: 0; }
.panel-table tbody tr:hover { background: #fafbfd; }
.panel-table .panel-table-title { font-weight: 600; color: var(--flexy-ink); display: block; margin-bottom: 3px; }
.panel-table .panel-table-sub { font-size: 12.5px; color: var(--flexy-muted); }
.panel-table img.panel-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }

.panel-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.panel-actions .panel-action {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--flexy-bg); color: var(--flexy-body);
    border: 1px solid var(--flexy-line); font-size: 13px; transition: all .18s ease;
}
.panel-actions .panel-action:hover { background: var(--flexy-blue); border-color: var(--flexy-blue); color: #fff; text-decoration: none; }
.panel-actions .panel-action.is-danger:hover { background: var(--flexy-danger); border-color: var(--flexy-danger); }
.panel-actions .panel-action.is-success:hover { background: var(--flexy-success); border-color: var(--flexy-success); }

.panel-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.panel-filters .form-group { margin-bottom: 0; }
.panel-filters .form-control,
.panel-filters .custom-select { min-width: 150px; }

.panel-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    width: 100%;
}
.panel-filters-grid .form-group { min-width: 0; }
.panel-filters-grid .form-control,
.panel-filters-grid .custom-select { min-width: 0; width: 100%; }
.panel-filters-grid .btn { width: 100%; }

.panel-bulk-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    align-items: center;
}
.panel-bulk-actions .panel-bulk-label { grid-column: 1 / -1; margin-bottom: 2px; }
.panel-bulk-actions .btn { width: 100%; white-space: normal; line-height: 1.25; }

.panel-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-tabs a {
    padding: 8px 16px; border-radius: 30px; font-size: 13.5px; font-weight: 600;
    background: #fff; border: 1px solid var(--flexy-line); color: var(--flexy-body);
}
.panel-tabs a:hover { border-color: var(--flexy-blue); color: var(--flexy-blue); text-decoration: none; }
.panel-tabs a.active { background: var(--flexy-blue); border-color: var(--flexy-blue); color: #fff; }
.panel-tabs a .count { opacity: .7; margin-left: 4px; }

.panel-media-search { flex: 1 1 420px; min-width: 0; }
.panel-media-search .form-group { flex: 1 1 240px; min-width: 0; }
.panel-media-search .form-control { width: 100%; min-width: 0; }
.panel-media-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    border-bottom: 1px solid var(--flexy-line);
}
.panel-media-grid { margin-left: -10px; margin-right: -10px; }
.panel-media-item { padding-left: 10px; padding-right: 10px; margin-bottom: 20px; }
.panel-media-card { height: 100%; margin-bottom: 0; overflow: hidden; }
.panel-media-thumb { display: block; width: 100%; height: 150px; object-fit: cover; background: var(--flexy-bg); }
.panel-media-info { padding: 12px; }
.panel-media-info .flexy-check { min-width: 0; }
.panel-media-info .flexy-check span { min-width: 0; overflow-wrap: anywhere; }
.form-control-file { max-width: 100%; }

.flexy-image-preview {
    border: 1px dashed var(--flexy-line); border-radius: var(--flexy-radius);
    padding: 12px; text-align: center; background: var(--flexy-bg);
}
.flexy-image-preview img { max-width: 100%; max-height: 220px; border-radius: 8px; object-fit: cover; }

.flexy-chart { width: 100%; }
.flexy-chart-bar { fill: var(--flexy-blue); opacity: .85; }
.flexy-chart-bar:hover { opacity: 1; }
.flexy-chart-label { font-size: 11px; fill: var(--flexy-muted); }

.flexy-notification {
    display: flex; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--flexy-line);
}
.flexy-notification:last-child { border-bottom: 0; }
.flexy-notification .flexy-notification-icon {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--flexy-bg); color: var(--flexy-blue);
}
.flexy-notification.is-unread { background: #f8faff; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.flexy-notification h6 { margin: 0 0 3px; font-size: 14.5px; }
.flexy-notification p  { margin: 0; font-size: 13px; color: var(--flexy-muted); }

.flexy-note {
    border-left: 4px solid var(--flexy-warning);
    background: #fffbeb; padding: 16px 20px;
    border-radius: 0 var(--flexy-radius) var(--flexy-radius) 0; margin-bottom: 24px;
}
.flexy-note.is-danger  { border-left-color: var(--flexy-danger);  background: #fef2f2; }
.flexy-note.is-success { border-left-color: var(--flexy-success); background: #f0fdf4; }
.flexy-note.is-info    { border-left-color: var(--flexy-info);    background: #f0f9ff; }
.flexy-note h6 { margin: 0 0 6px; font-size: 14.5px; }
.flexy-note p  { margin: 0; font-size: 13.5px; }

.panel-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }

.tox-tinymce { border-radius: var(--flexy-radius) !important; border-color: var(--flexy-line) !important; }

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .flexy-hero h1 { font-size: 36px; }
    .flexy-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 28px; }
    .flexy-hero-feature { min-height: 350px; }

    .panel-sidebar {
        width: min(280px, 86vw); flex-basis: min(280px, 86vw);
        position: fixed; top: 0; left: 0; z-index: 1050;
        transform: translateX(-100%); transition: transform .25s ease;
        box-shadow: 12px 0 36px rgba(15, 23, 42, .22);
    }
    body.panel-sidebar-open .panel-sidebar { transform: translateX(0); }
    #flexy-panel-toggle { display: inline-flex; }
    #flexy-panel-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1040;
        background: rgba(17, 24, 39, .5); opacity: 0; pointer-events: none;
        transition: opacity .25s ease;
    }
    body.panel-sidebar-open #flexy-panel-backdrop { opacity: 1; pointer-events: auto; }

    /* Keep wide management tables readable instead of squeezing action buttons
       into tall columns when the sidebar changes to its drawer layout. */
    .panel-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
    .panel-table { min-width: 980px; }
    .panel-blog-actions { min-width: 126px; }
}

@media (max-width: 991px) {
    .flexy-header-bar { min-height: 62px; gap: 12px; }
    .flexy-header-logo .logo-img { max-height: 34px; }
    .flexy-header-nav { flex: 0 0 auto; }

    /* Below the desktop breakpoint the slide-out menu already carries the whole
       navigation, so the second (off-canvas) hamburger is hidden to avoid two
       menu buttons sitting next to each other. */
    .off-canvas-toggle-cover { display: none; }

    .loop-list-style-1 .post-thumb.post-thumb-big {
        flex: 0 0 100%; width: 100%; height: 200px; margin: 0 0 16px;
    }
    .first-post .img-hover-slide,
    .featured-post .img-hover-slide { height: 280px; }

    .panel-editor-grid { grid-template-columns: minmax(0, 1fr); }

    .flexy-auth-card { padding: 28px 22px; }
    .flexy-hero { padding: 26px; }
    .flexy-hero-grid { grid-template-columns: 1fr; }
    .flexy-hero-copy { padding: 14px 4px 0; }
    .flexy-hero h1 { font-size: 30px; }
    .flexy-hero-feature { min-height: 300px; transform: none; }
    .flexy-cta { padding: 34px 24px; text-align: center; }
    .flexy-cta p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 767px) {
    .header-tools .search-form { display: none !important; }
    .background-white > .post-thumb { height: 180px; }
    .flexy-card-byline .read-more { display: none !important; }
    .first-post .img-hover-slide,
    .featured-post .img-hover-slide { height: 210px; }
    .flexy-hero { padding: 20px; border-radius: 18px; }
    .flexy-hero h1 { font-size: 26px; }
    .flexy-hero p { font-size: 15px; }
    .flexy-hero-stats { gap: 8px; }
    .flexy-hero-stats span { flex: 1 1 86px; min-width: 0; }
    .flexy-hero-feature { min-height: 245px; }
    .flexy-hero-feature-content { inset: auto 18px 18px; }
    .flexy-hero-feature-content strong { font-size: 19px; }
    .panel-content { padding: 18px 16px; }
    .panel-topbar { padding: 12px 16px; gap: 10px; }
    .panel-topbar h1 { font-size: 17px; }
    .panel-topbar .panel-topbar-right { gap: 10px; }
    .panel-topbar .panel-topbar-right { flex-wrap: wrap; }
    .panel-card-head { padding: 14px 16px; }
    .panel-card-body { padding: 16px; }
    .panel-filters { width: 100%; }
    .panel-filters .form-control,
    .panel-filters .custom-select { min-width: 0; width: 100%; }
    .panel-filters .form-group { flex: 1 1 140px; }
    .comment-list .comment-reply { margin-left: 22px; }
    .flexy-empty { padding: 34px 18px; }

    .panel-tabs-scroll {
        flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 8px;
        scrollbar-width: thin; -webkit-overflow-scrolling: touch;
    }
    .panel-tabs-scroll a { flex: 0 0 auto; white-space: nowrap; }

    /* Most tables remain scrollable; the blog manager becomes compact cards
       because its actions are used frequently on phones. */
    .panel-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .panel-table { min-width: 680px; }

    #admin-blog-table,
    #admin-blog-table tbody { display: block; width: 100%; min-width: 0; }
    #admin-blog-table thead { display: none; }
    #admin-blog-table tbody tr {
        display: grid;
        grid-template-columns: 28px 58px minmax(0, 1fr) 42px;
        gap: 5px 10px; align-items: start;
        padding: 14px 12px; border-bottom: 1px solid var(--flexy-line);
    }
    #admin-blog-table tbody tr:last-child { border-bottom: 0; }
    #admin-blog-table td { display: block; padding: 0; border: 0; min-width: 0; }
    #admin-blog-table .panel-blog-select { grid-column: 1; grid-row: 1 / span 3; padding-top: 6px; }
    #admin-blog-table .panel-blog-image { grid-column: 2; grid-row: 1 / span 2; }
    #admin-blog-table img.panel-thumb { width: 58px; height: 58px; border-radius: 9px; }
    #admin-blog-table .panel-blog-title { grid-column: 3; grid-row: 1; }
    #admin-blog-table .panel-table-title { overflow-wrap: anywhere; line-height: 1.35; }
    #admin-blog-table .panel-table-sub { display: block; overflow-wrap: anywhere; }
    #admin-blog-table .panel-blog-author { grid-column: 3; grid-row: 2; }
    #admin-blog-table .panel-blog-author::before { content: 'By '; color: var(--flexy-muted); }
    #admin-blog-table .panel-blog-status { grid-column: 2 / 4; grid-row: 3; padding-top: 4px; }
    #admin-blog-table .panel-blog-actions { grid-column: 4; grid-row: 1 / span 3; min-width: 0; }
    #admin-blog-table .panel-actions { flex-direction: column; align-items: stretch; }
    #admin-blog-table .panel-action { width: 38px; height: 38px; }
    #admin-blog-table .panel-blog-category,
    #admin-blog-table .panel-blog-views,
    #admin-blog-table .panel-blog-date { display: none; }

    .panel-media-thumb { height: 140px; }
}

@media (max-width: 575px) {
    .flexy-hero .btn-flexy,
    .flexy-hero .btn-flexy-outline { display: block; width: 100%; margin-bottom: 10px; }
    .flexy-auth-card { padding: 22px 16px; }

    /* The topbar action button drops onto its own row rather than squeezing. */
    .panel-topbar { align-items: center; position: sticky; }
    .panel-topbar h1 { flex: 1 1 140px; }
    .panel-topbar .panel-topbar-right { flex: 1 1 100%; margin-left: 0; justify-content: space-between; }
    .panel-topbar .panel-topbar-right .btn { padding: 9px 14px; min-width: 0; font-size: 12px; }
    .panel-content { padding: 16px 12px; }
    .panel-stat { min-height: 92px; padding: 16px; }
    .panel-stat .panel-stat-icon { width: 42px; height: 42px; flex-basis: 42px; }
    .panel-stat strong { font-size: 22px; }
    .panel-tabs a { padding: 7px 13px; font-size: 12.5px; }
    .panel-filters-grid { grid-template-columns: 1fr; }
    .panel-filters-grid .btn { min-height: 42px; }
    .panel-bulk-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-bulk-actions .panel-bulk-label { grid-column: 1 / -1; }
    .panel-media-search { flex-basis: 100%; }
    .panel-media-search .form-group { flex: 1 1 100%; }
    .panel-media-search .btn { width: 100%; }
    .panel-media-toolbar { align-items: stretch; }
    .panel-media-toolbar .btn { width: 100%; }
    .panel-media-toolbar .text-muted { margin-left: 0 !important; }
}

@media (max-width: 420px) {
    .panel-bulk-actions { grid-template-columns: 1fr; }
    .panel-media-grid { margin-left: -5px; margin-right: -5px; }
    .panel-media-item { padding-left: 5px; padding-right: 5px; margin-bottom: 10px; }
    .panel-media-thumb { height: 115px; }
    .panel-media-info { padding: 9px; }
    .panel-topbar .panel-topbar-right { gap: 8px; }
    .panel-topbar .panel-topbar-right .btn { flex: 1 1 auto; }
}

/* Homepage hero v3 ---------------------------------------------------------
   A responsive editorial composition inspired by modern publishing tools.
   The illustration is built from real site content, so it stays sharp and
   useful without a large background image. */
.flexy-hero.flexy-hero-v3 {
    padding: 48px 46px 42px;
    color: var(--flexy-ink);
    background:
        radial-gradient(circle at 74% 22%, rgba(37, 99, 235, .12), transparent 30%),
        radial-gradient(circle at 92% 74%, rgba(34, 211, 238, .15), transparent 32%),
        radial-gradient(circle at 54% 56%, rgba(168, 85, 247, .12), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #fbfcff 50%, #f0f8ff 100%);
    border: 1px solid #e5e9ff;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(64, 84, 170, .11);
}
.flexy-hero.flexy-hero-v3::before {
    width: 520px; height: 520px; left: auto; right: 4%; top: 8%;
    border: 0; opacity: .72;
    background: radial-gradient(circle, rgba(86, 141, 255, .18) 0 36%, rgba(176, 109, 255, .12) 37% 58%, transparent 59%);
}
.flexy-hero.flexy-hero-v3::after {
    width: 180px; height: 180px; right: -65px; bottom: -70px;
    border: 0; background: rgba(34, 211, 238, .12);
}
.flexy-hero-v3-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
    gap: 28px; align-items: center;
}
.flexy-hero-v3-copy { min-width: 0; padding: 8px 0; }
.flexy-hero-v3-kicker {
    display: inline-flex; align-items: center; gap: 9px;
    margin-bottom: 24px; padding: 8px 15px;
    border: 1px solid #d9ddff; border-radius: 999px;
    background: rgba(255,255,255,.78); color: #5434e4;
    font-size: 12px; font-weight: 800; letter-spacing: .15px;
    box-shadow: 0 8px 24px rgba(83, 52, 228, .06);
}
.flexy-hero-v3-kicker i { color: #8b5cf6; }
.flexy-hero.flexy-hero-v3 h1 {
    max-width: 610px; margin: 0 0 20px;
    color: #071632; font-size: clamp(44px, 4.3vw, 67px);
    line-height: .99; letter-spacing: -2.4px;
}
.flexy-hero-v3 h1 span,
.flexy-hero-v3 h1 em { display: block; }
.flexy-hero-v3 h1 em {
    margin-top: 7px; font-style: normal;
    background: linear-gradient(90deg, #912be9 0%, #4e3cf0 46%, #078ce9 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flexy-hero.flexy-hero-v3 p {
    max-width: 585px; margin: 0 0 26px;
    color: #536078; font-size: 16px; line-height: 1.65;
}
.flexy-hero-v3-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.flexy-hero-v3-actions .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-width: 174px; margin: 0; padding: 14px 22px;
}
.flexy-hero.flexy-hero-v3 .flexy-hero-v3-actions .btn-flexy {
    background: linear-gradient(100deg, #9425e9, #4054ef 55%, #0a9ee8);
    border-color: transparent; color: #fff !important;
    box-shadow: 0 12px 26px rgba(79, 70, 229, .24);
}
.flexy-hero.flexy-hero-v3 .flexy-hero-v3-actions .btn-flexy:hover {
    background: linear-gradient(100deg, #7e22ce, #3148d9 55%, #0788cc);
    border-color: transparent; color: #fff !important;
}
.flexy-hero.flexy-hero-v3 .flexy-hero-v3-actions .btn-flexy-outline {
    background: rgba(255,255,255,.84); border-color: #ccd5f7; color: #1745d1 !important;
}
.flexy-hero.flexy-hero-v3 .flexy-hero-v3-actions .btn-flexy-outline:hover {
    background: #eef4ff; border-color: #6c84ef; color: #1738ad !important;
}
.flexy-hero-benefits {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px; margin-bottom: 26px;
}
.flexy-hero-benefits > span {
    display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto;
    column-gap: 10px; min-width: 0;
}
.flexy-hero-benefits i {
    grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px;
    background: #eee7ff; color: #7938e7; font-size: 16px;
}
.flexy-hero-benefits > span:nth-child(2) i { background: #e2f5ff; color: #087bc2; }
.flexy-hero-benefits > span:nth-child(3) i { background: #ddfaef; color: #0b9a67; }
.flexy-hero-benefits b { color: #142548; font-size: 12px; line-height: 1.4; }
.flexy-hero-benefits small { color: #758198; font-size: 10.5px; line-height: 1.35; }
.flexy-hero-v3-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #e2e7f5; padding-top: 20px;
}
.flexy-hero-v3-stats span {
    display: block; min-width: 0; padding: 0 15px;
    border-right: 1px solid #dce3f2; color: #738098; font-size: 10.5px;
}
.flexy-hero-v3-stats span:first-child { padding-left: 0; }
.flexy-hero-v3-stats span:last-child { border-right: 0; }
.flexy-hero-v3-stats strong { display: block; color: #1254dc; font-size: 22px; line-height: 1.15; }

.flexy-hero-visual { position: relative; min-width: 0; min-height: 610px; }
.flexy-visual-orb { position: absolute; border-radius: 50%; filter: blur(.2px); pointer-events: none; }
.flexy-visual-orb.orb-one { width: 390px; height: 390px; left: 10%; top: 5%; background: linear-gradient(145deg, rgba(80,148,255,.2), rgba(164,90,255,.2)); }
.flexy-visual-orb.orb-two { width: 240px; height: 240px; right: 2%; bottom: 4%; background: rgba(64, 214, 235, .17); }
.flexy-editor-window,
.flexy-visual-story,
.flexy-visual-categories,
.flexy-visual-readers,
.flexy-visual-mini-story,
.flexy-visual-profile {
    position: absolute; display: block; background: rgba(255,255,255,.94);
    border: 1px solid rgba(207, 216, 246, .92); color: #14213d !important;
    box-shadow: 0 20px 45px rgba(64, 73, 145, .16);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.flexy-editor-window {
    left: 16%; top: 5%; width: 75%; height: 360px;
    padding: 14px 20px; border-radius: 18px; transform: rotate(2.4deg);
}
.flexy-editor-top { display: flex; align-items: center; gap: 5px; height: 22px; border-bottom: 1px solid #edf0fb; }
.flexy-editor-top span { width: 6px; height: 6px; border-radius: 50%; background: #ff6b6b; }
.flexy-editor-top span:nth-child(2) { background: #fbbf24; }
.flexy-editor-top span:nth-child(3) { background: #34d399; }
.flexy-editor-top small { margin-left: auto; color: #9aa4b8; font-size: 9px; }
.flexy-editor-toolbar {
    display: flex; align-items: center; gap: 13px; margin: 14px 0 18px; padding: 8px 12px;
    border: 1px solid #e5eafb; border-radius: 8px; color: #5f6f91; font-size: 11px;
}
.flexy-publish-chip { margin-left: auto; padding: 6px 15px; border-radius: 6px; background: #2563eb; color: #fff; }
.flexy-editor-window h3 { margin: 0 0 17px 8px; color: #14213d; font-size: 19px; }
.flexy-editor-line { display: block; width: 62%; height: 7px; margin: 8px; border-radius: 10px; background: #e9edfa; }
.flexy-editor-line.is-long { width: 72%; }
.flexy-editor-line.is-short { width: 45%; }
.flexy-editor-window > img { position: absolute; right: 24px; bottom: 28px; width: 31%; height: 115px; object-fit: cover; border-radius: 10px; }
.flexy-visual-story {
    left: 0; top: 35%; z-index: 5; width: 50%; padding: 12px;
    border-radius: 17px; transform: rotate(3deg); text-decoration: none !important;
}
.flexy-visual-story:hover { transform: rotate(1deg) translateY(-3px); }
.flexy-visual-story-image { position: relative; display: block; height: 150px; overflow: hidden; border-radius: 11px; }
.flexy-visual-story-image img { width: 100%; height: 100%; object-fit: cover; }
.flexy-visual-story-image small,
.flexy-visual-story-image b { position: absolute; top: 9px; padding: 5px 9px; border-radius: 999px; font-size: 8.5px; }
.flexy-visual-story-image small { left: 9px; background: #7c3aed; color: #fff; }
.flexy-visual-story-image b { right: 9px; background: rgba(255,255,255,.88); color: #4b5563; }
.flexy-visual-story > strong { display: block; margin: 10px 3px 8px; font-size: 14px; line-height: 1.3; }
.flexy-visual-author { display: flex; align-items: center; gap: 7px; color: #64748b; font-size: 9px; }
.flexy-visual-author > img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.flexy-visual-author small { margin-left: auto; }
.flexy-visual-categories { left: 53%; top: 54%; z-index: 4; width: 29%; padding: 15px; border-radius: 16px; }
.flexy-visual-categories > strong { display: block; margin-bottom: 8px; font-size: 11px; }
.flexy-visual-categories > strong i { margin-right: 6px; color: #6d28d9; }
.flexy-visual-categories > span { display: block; margin-top: 6px; padding: 7px 8px; border-radius: 8px; background: #e7f4ff; color: #1661ba; font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flexy-visual-categories > span:nth-child(3) { background: #eee8ff; color: #6d28d9; }
.flexy-visual-categories > span:nth-child(4) { background: #ddfaed; color: #07805b; }
.flexy-visual-categories > span:nth-child(5) { background: #ffe8f1; color: #c02a69; }
.flexy-visual-categories > span i { margin-right: 6px; }
.flexy-visual-readers { right: 0; top: 31%; z-index: 6; width: 29%; padding: 17px; border-radius: 17px; transform: rotate(-4deg); }
.flexy-visual-readers > i { color: #2563eb; font-size: 18px; }
.flexy-visual-readers small { display: block; margin-top: 7px; color: #72809a; font-size: 9px; }
.flexy-visual-readers > strong { display: block; margin: 2px 0 10px; color: #132342; font-size: 22px; }
.flexy-visual-readers > span { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.flexy-visual-readers b { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(#8b5cf6, #c4b5fd); }
.flexy-visual-readers b:nth-child(1) { height: 30%; }.flexy-visual-readers b:nth-child(2) { height: 48%; }.flexy-visual-readers b:nth-child(3) { height: 42%; }.flexy-visual-readers b:nth-child(4) { height: 72%; }.flexy-visual-readers b:nth-child(5) { height: 100%; }
.flexy-visual-mini-story { right: 0; bottom: 4%; z-index: 5; width: 31%; padding: 10px; border-radius: 16px; transform: rotate(5deg); text-decoration: none !important; }
.flexy-visual-mini-story img { width: 100%; height: 92px; object-fit: cover; border-radius: 10px; }
.flexy-visual-mini-story strong { display: block; margin: 8px 2px 5px; font-size: 10px; line-height: 1.25; }
.flexy-visual-mini-story small { margin-left: 2px; color: #718096; font-size: 8.5px; }
.flexy-visual-profile { left: 28%; bottom: 0; z-index: 7; width: 49%; padding: 10px 12px; border-radius: 15px; display: flex; align-items: center; gap: 9px; text-decoration: none !important; }
.flexy-visual-profile > img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.flexy-visual-profile > span { min-width: 0; }
.flexy-visual-profile strong { display: block; overflow: hidden; color: #14213d; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.flexy-visual-profile small { display: block; color: #758198; font-size: 8px; }
.flexy-visual-profile > b { margin-left: auto; padding: 6px 9px; border: 1px solid #c9b9ff; border-radius: 7px; color: #6d28d9; font-size: 8px; white-space: nowrap; }

@media (max-width: 1199px) {
    .flexy-hero.flexy-hero-v3 { padding: 38px 32px; }
    .flexy-hero-v3-grid { grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr); gap: 16px; }
    .flexy-hero.flexy-hero-v3 h1 { font-size: 48px; }
    .flexy-hero-visual { min-height: 570px; }
    .flexy-visual-story-image { height: 135px; }
}
@media (max-width: 991px) {
    .flexy-hero.flexy-hero-v3 { padding: 38px; }
    .flexy-hero-v3-grid { grid-template-columns: 1fr; gap: 28px; }
    .flexy-hero-v3-copy { max-width: 680px; }
    .flexy-hero.flexy-hero-v3 h1 { max-width: 720px; font-size: 54px; }
    .flexy-hero-visual { width: min(680px, 100%); min-height: 600px; margin: 0 auto; }
}
@media (max-width: 767px) {
    .flexy-hero.flexy-hero-v3 { padding: 28px 22px; border-radius: 20px; }
    .flexy-hero-v3-kicker { margin-bottom: 18px; font-size: 10.5px; }
    .flexy-hero.flexy-hero-v3 h1 { font-size: 42px; letter-spacing: -1.7px; }
    .flexy-hero.flexy-hero-v3 p { font-size: 14.5px; }
    .flexy-hero-benefits { grid-template-columns: 1fr; gap: 13px; }
    .flexy-hero-benefits > span { max-width: 260px; }
    .flexy-hero-v3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
    .flexy-hero-v3-stats span:nth-child(2) { border-right: 0; }
    .flexy-hero-v3-stats span:nth-child(3) { padding-left: 0; }
    .flexy-hero-visual { min-height: 500px; }
    .flexy-editor-window { left: 8%; width: 88%; height: 315px; }
    .flexy-visual-story { top: 34%; width: 54%; }
    .flexy-visual-story-image { height: 120px; }
    .flexy-visual-categories { left: 50%; top: 53%; width: 34%; }
    .flexy-visual-readers { width: 31%; }
    .flexy-visual-mini-story { display: none; }
    .flexy-visual-profile { left: 28%; width: 60%; }
}
@media (max-width: 575px) {
    .flexy-hero.flexy-hero-v3 { padding: 24px 18px; }
    .flexy-hero.flexy-hero-v3 h1 { font-size: clamp(34px, 10.6vw, 42px); line-height: 1.02; }
    .flexy-hero-v3-actions { display: grid; grid-template-columns: 1fr; }
    .flexy-hero-v3-actions .btn { width: 100%; min-width: 0; }
    .flexy-hero-v3-stats strong { font-size: 20px; }
    .flexy-hero-visual { min-height: 390px; }
    .flexy-editor-window { left: 4%; top: 3%; width: 94%; height: 250px; padding: 11px 13px; }
    .flexy-editor-toolbar { gap: 9px; margin: 9px 0 12px; padding: 7px; }
    .flexy-editor-window h3 { font-size: 15px; margin-bottom: 10px; }
    .flexy-editor-window > img { right: 14px; bottom: 18px; height: 80px; }
    .flexy-visual-story { top: 39%; width: 66%; padding: 9px; transform: rotate(2deg); }
    .flexy-visual-story-image { height: 94px; }
    .flexy-visual-story > strong { font-size: 11px; }
    .flexy-visual-categories,
    .flexy-visual-readers { display: none; }
    .flexy-visual-profile { left: auto; right: 0; bottom: 3%; width: 64%; padding: 8px; }
    .flexy-visual-profile > img { width: 34px; height: 34px; }
}

@media print {
    .main-header, .flexy-footer, .offcanvas-sidebar, #scrollUp,
    .flexy-share-list, .comment-form, .flexy-prev-next { display: none !important; }
}
