/*
=========================================================
 NEW SOCIOEDUCATIONS - MAIN STYLESHEET
 Professional Job Portal | Mobile First
 Primary Color: #2563EB
=========================================================
*/


/* =========================================
   1. ROOT & RESET
========================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --secondary: #0f172a;

    --text: #172033;
    --text-light: #64748b;

    --background: #f8fafc;
    --surface: #ffffff;

    --border: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10);

    --container: 1200px;
}


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}


body {
    margin: 0;
    padding: 0;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 15px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}


body,
button,
input,
textarea,
select {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}


img {
    max-width: 100%;
    height: auto;
}


a {
    color: var(--primary);
    text-decoration: none;
}


a:hover {
    color: var(--primary-dark);
}


button,
input,
textarea {
    font: inherit;
}


button {
    cursor: pointer;
}


.container {
    width: min(var(--container), calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}


.site-main {
    min-height: 60vh;
}


[hidden] {
    display: none !important;
}


.skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 99999;

    padding: 10px 16px;

    background: var(--secondary);
    color: #fff;

    border-radius: 8px;
}


.skip-link:focus {
    top: 10px;
}


/* =========================================
   2. TOPBAR
========================================= */

.topbar {
    background: #0f172a;
    color: #cbd5e1;

    font-size: 12px;
}


.topbar-inner {
    min-height: 36px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.topbar-left {
    display: flex;
    align-items: center;
    gap: 9px;
}


.topbar-dot {
    width: 7px;
    height: 7px;

    background: #22c55e;
    border-radius: 50%;

    display: inline-block;
}


.topbar-right {
    color: #cbd5e1;
}


/* =========================================
   3. HEADER
========================================= */

.site-header {
    position: relative;
    z-index: 1000;

    background: #ffffff;

    border-bottom: 1px solid var(--border);

    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.025);
}


.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


.site-branding {
    flex-shrink: 0;
}


.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: var(--secondary);
}


.logo-icon,
.footer-logo-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: linear-gradient(135deg, #2563eb, #1d4ed8);

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;

    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
}


.logo-text {
    display: flex;
    flex-direction: column;

    line-height: 1.3;
}


.logo-text strong {
    font-size: 19px;
    font-weight: 800;
    color: var(--secondary);
}


.logo-text small {
    margin-top: 3px;

    font-size: 11px;
    color: var(--text-light);
}


.custom-logo-wrap img {
    max-height: 58px;
    width: auto;
}


.desktop-navigation {
    flex: 1;
}


.primary-menu {
    list-style: none;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin: 0;
    padding: 0;
}


.primary-menu li {
    position: relative;
}


.primary-menu a {
    display: block;

    padding: 11px 13px;

    color: #334155;

    font-size: 13px;
    font-weight: 650;

    border-radius: 8px;

    transition: 0.2s ease;
}


.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    background: var(--primary-light);
    color: var(--primary);
}


.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 210px;

    padding: 8px;

    margin: 0;

    list-style: none;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    transition: 0.2s ease;

    z-index: 100;
}


.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.primary-menu .sub-menu a {
    padding: 10px 12px;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.header-search-toggle {
    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #ffffff;
    color: var(--secondary);

    font-size: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}


.header-search-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #bfdbfe;
}


.mobile-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #ffffff;
}


.mobile-menu-toggle span {
    display: block;

    height: 2px;
    width: 100%;

    margin: 4px 0;

    background: var(--secondary);

    border-radius: 3px;
}


/* =========================================
   4. HEADER SEARCH
========================================= */

.header-search-panel {
    padding: 20px 0;

    background: #ffffff;

    border-top: 1px solid var(--border);
}


.header-search-panel .search-form {
    max-width: 650px;
    margin: auto;
}


.search-form {
    display: flex;
    align-items: stretch;
    gap: 8px;
}


.search-form label {
    flex: 1;
    min-width: 0;
}


.search-form .screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}


.search-form .search-field {
    width: 100%;
    min-height: 48px;

    padding: 12px 16px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    color: var(--text);
}


.search-form .search-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


.search-form .search-submit {
    min-height: 48px;

    padding: 0 22px;

    border: 0;
    border-radius: 10px;

    background: var(--primary);
    color: #ffffff;

    font-weight: 700;

    transition: 0.2s ease;
}


.search-form .search-submit:hover {
    background: var(--primary-dark);
}


/* =========================================
   5. MOBILE NAVIGATION
========================================= */

.mobile-navigation {
    position: fixed;

    top: 0;
    right: -320px;

    width: min(310px, 88vw);
    height: 100dvh;

    padding: 20px;

    background: #ffffff;

    z-index: 2002;

    overflow-y: auto;

    box-shadow: var(--shadow-lg);

    transition: right 0.3s ease;
}


.mobile-navigation.is-open {
    right: 0;
}


.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);

    color: var(--secondary);
}


.mobile-menu-close {
    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 9px;

    background: #f1f5f9;

    color: var(--secondary);

    font-size: 23px;
}


.mobile-menu {
    list-style: none;

    margin: 18px 0 0;
    padding: 0;
}


.mobile-menu li {
    border-bottom: 1px solid #f1f5f9;
}


.mobile-menu a {
    display: block;

    padding: 13px 8px;

    color: var(--text);

    font-size: 14px;
    font-weight: 650;
}


.mobile-menu a:hover,
.mobile-menu .current-menu-item > a {
    color: var(--primary);
}


.mobile-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding-left: 16px;
}


.mobile-nav-overlay {
    position: fixed;
    inset: 0;

    z-index: 2001;

    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}


body.mobile-nav-active {
    overflow: hidden;
}


/* =========================================
   6. HERO SECTION
========================================= */

.portal-hero {
    position: relative;

    padding: 65px 0 70px;

    overflow: hidden;

    background:
        radial-gradient(circle at 80% 20%, rgba(147, 197, 253, 0.35), transparent 32%),
        linear-gradient(125deg, #eff6ff 0%, #f8fafc 60%, #eef4ff 100%);
}


.portal-hero-inner {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;

    gap: 50px;
}


.portal-eyebrow,
.portal-section-kicker {
    display: inline-block;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}


.portal-hero h1 {
    max-width: 650px;

    margin: 16px 0;

    color: #0f172a;

    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.12;

    letter-spacing: -1.8px;
    font-weight: 850;
}


.portal-hero h1 span {
    display: block;
    color: var(--primary);
}


.portal-hero-content > p {
    max-width: 570px;

    margin: 0 0 25px;

    color: #64748b;

    font-size: 16px;
    line-height: 1.8;
}


.portal-search {
    max-width: 570px;
}


.portal-search .search-form {
    padding: 6px;

    background: #ffffff;

    border: 1px solid #dbeafe;
    border-radius: 13px;

    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}


.portal-search .search-field {
    border: 0;
    background: transparent;

    min-height: 46px;
}


.portal-search .search-field:focus {
    box-shadow: none;
}


.portal-search .search-submit {
    padding: 0 23px;
}


.portal-hero-note {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 19px;

    color: #64748b;

    font-size: 12px;
}


.portal-hero-note span {
    width: 19px;
    height: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #dcfce7;
    color: #15803d;

    border-radius: 50%;

    font-weight: 800;
}


.portal-hero-visual {
    position: relative;

    min-height: 310px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-visual-card {
    width: 100%;
    max-width: 360px;

    padding: 32px;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 23px;

    box-shadow: 0 25px 65px rgba(37, 99, 235, 0.13);

    text-align: center;
}


.hero-visual-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    border-radius: 20px;

    font-size: 34px;
}


.hero-visual-card > strong {
    display: block;

    color: var(--secondary);

    font-size: 19px;
}


.hero-visual-card > span {
    display: block;

    margin-top: 5px;

    color: var(--text-light);

    font-size: 12px;
}


.hero-visual-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}


.hero-visual-stats div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.hero-visual-stats strong {
    color: var(--primary);
    font-size: 13px;
}


.hero-visual-stats span {
    color: var(--text-light);
    font-size: 10px;
}


.hero-floating-card {
    position: absolute;

    right: -5px;
    bottom: 20px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px 17px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow: var(--shadow);

    color: var(--secondary);

    font-size: 12px;
    font-weight: 750;
}


.hero-floating-card span {
    color: var(--success);
    font-size: 18px;
}


/* =========================================
   7. SECTION HEADINGS
========================================= */

.portal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.portal-section-heading h2 {
    margin: 6px 0 0;

    color: var(--secondary);

    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.3;

    font-weight: 800;
    letter-spacing: -0.5px;
}


.portal-section-heading p {
    margin: 7px 0 0;

    color: var(--text-light);
    font-size: 13px;
}


.portal-heading-with-link {
    align-items: center;
}


.portal-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;
}


.portal-view-all:hover {
    color: var(--primary-dark);
}


/* =========================================
   8. CATEGORY CARDS
========================================= */

.portal-categories-section {
    padding: 55px 0 25px;
}


.portal-category-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}


.portal-category-card {
    position: relative;

    min-height: 105px;

    padding: 19px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    color: var(--secondary);

    box-shadow: var(--shadow-sm);

    transition: 0.2s ease;
}


.portal-category-card:hover {
    transform: translateY(-4px);

    border-color: #bfdbfe;

    box-shadow: var(--shadow);
}


.portal-category-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary-light);

    border-radius: 13px;

    font-size: 23px;
}


.portal-category-name {
    font-size: 13px;
    font-weight: 750;
}


.portal-category-arrow {
    margin-left: auto;

    color: #94a3b8;

    font-size: 18px;
}


/* =========================================
   9. FEATURED SECTION
========================================= */

.featured-section {
    padding: 45px 0 35px;
}


.featured-job-card {
    display: grid;

    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}


.featured-job-image {
    min-height: 310px;

    display: block;

    overflow: hidden;

    background: #e2e8f0;
}


.featured-job-image img {
    width: 100%;
    height: 100%;

    min-height: 310px;

    display: block;

    object-fit: cover;

    transition: transform 0.4s ease;
}


.featured-job-card:hover .featured-job-image img {
    transform: scale(1.035);
}


.featured-job-content {
    padding: 32px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}


.featured-label {
    display: inline-block;

    padding: 6px 10px;

    margin-bottom: 12px;

    background: #eff6ff;
    color: var(--primary);

    border-radius: 6px;

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.7px;
}


.featured-job-content h3 {
    margin: 12px 0;

    color: var(--secondary);

    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.35;
}


.featured-job-content h3 a {
    color: inherit;
}


.featured-job-content > p {
    margin: 0 0 18px;

    color: var(--text-light);

    font-size: 13px;
}


.featured-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    margin-bottom: 20px;

    color: var(--text-light);

    font-size: 11px;
}


/* =========================================
   10. BUTTONS
========================================= */

.portal-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 45px;

    padding: 0 20px;

    background: var(--primary);
    color: #ffffff;

    border: 0;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 750;

    transition: 0.2s ease;
}


.portal-primary-button:hover {
    background: var(--primary-dark);
    color: #ffffff;

    transform: translateY(-2px);
}


.portal-secondary-button {
    min-height: 45px;

    padding: 0 20px;

    background: #ffffff;
    color: var(--secondary);

    border: 1px solid var(--border);
    border-radius: 9px;

    font-weight: 700;
}


.portal-secondary-button:hover {
    background: #f1f5f9;
}


/* =========================================
   11. LATEST UPDATES & POST GRID
========================================= */

.latest-updates-section,
.portal-category-posts-section {
    padding: 48px 0;
}


.latest-updates-section {
    background: #ffffff;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.portal-post-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 22px;
}


.portal-post-card {
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.portal-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}


.portal-card-image {
    position: relative;

    display: block;

    aspect-ratio: 3 / 2;

    overflow: hidden;

    background: #e2e8f0;
}


.portal-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}


.portal-post-card:hover .portal-card-image img {
    transform: scale(1.045);
}


.portal-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #dbeafe, #eff6ff);

    color: var(--primary);

    font-size: 13px;
    font-weight: 850;
    letter-spacing: 1px;
}


.portal-card-content {
    padding: 18px;
}


.portal-card-category {
    margin-bottom: 9px;
}


.post-category {
    display: inline-block;

    padding: 4px 9px;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 5px;

    font-size: 10px;
    font-weight: 800;
}


.portal-card-title {
    margin: 0 0 10px;

    color: var(--secondary);

    font-size: 17px;
    line-height: 1.45;

    font-weight: 750;
}


.portal-card-title a {
    color: inherit;
}


.portal-card-title a:hover {
    color: var(--primary);
}


.portal-card-excerpt {
    margin: 0 0 15px;

    color: var(--text-light);

    font-size: 12px;
    line-height: 1.7;
}


.portal-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding-top: 12px;

    border-top: 1px solid #f1f5f9;

    color: #94a3b8;

    font-size: 10px;
}


.portal-post-grid-compact .portal-card-content {
    padding: 15px;
}


.portal-post-grid-compact .portal-card-title {
    font-size: 15px;
}


/* =========================================
   12. INFORMATION SECTION
========================================= */

.portal-info-section {
    padding: 35px 0 60px;
}


.portal-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    padding: 25px;

    background: #eff6ff;

    border: 1px solid #dbeafe;
    border-radius: var(--radius);
}


.portal-info-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #dbeafe;
    color: var(--primary);

    border-radius: 12px;

    font-size: 21px;
    font-weight: 800;
}


.portal-info-content h2 {
    margin: 0 0 7px;

    color: var(--secondary);

    font-size: 17px;
}


.portal-info-content p {
    margin: 0;

    color: #475569;

    font-size: 12px;
    line-height: 1.8;
}


/* =========================================
   13. ARCHIVE HEADER
========================================= */

.portal-archive-header {
    padding: 40px 0 42px;

    background:
        linear-gradient(120deg, #eff6ff, #f8fafc);

    border-bottom: 1px solid var(--border);
}


.portal-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 22px;

    color: #94a3b8;

    font-size: 11px;
}


.portal-breadcrumb a {
    color: var(--primary);
    font-weight: 650;
}


.portal-breadcrumb .breadcrumb-current {
    color: var(--text-light);
}


.portal-archive-title {
    margin: 9px 0 8px;

    color: var(--secondary);

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;

    font-weight: 850;
    letter-spacing: -0.8px;
}


.portal-archive-subtitle,
.portal-archive-description {
    max-width: 760px;

    margin: 10px 0 0;

    color: var(--text-light);

    font-size: 14px;
}


.portal-archive-description p {
    margin: 0;
}


.portal-archive-content {
    padding: 45px 0 65px;
}


.portal-archive-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 290px;

    gap: 30px;

    align-items: start;
}


.portal-archive-main {
    min-width: 0;
}


.category-post-count {
    display: inline-block;

    margin-top: 15px;

    padding: 6px 11px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 7px;

    color: var(--text-light);

    font-size: 11px;
    font-weight: 650;
}


.portal-empty-state {
    padding: 55px 25px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    text-align: center;
}


.portal-empty-state h2,
.portal-empty-state h3 {
    color: var(--secondary);
}


.portal-empty-state p {
    color: var(--text-light);
    font-size: 13px;
}


.empty-state-icon {
    margin-bottom: 15px;
    font-size: 42px;
}


.portal-empty-state .portal-primary-button {
    margin-top: 18px;
}


.portal-pagination {
    margin-top: 38px;
}


.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;
}


.page-numbers {
    min-width: 38px;
    height: 38px;

    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}


.page-numbers.current,
.page-numbers:hover {
    background: var(--primary);
    color: #ffffff;

    border-color: var(--primary);
}


/* =========================================
   14. SIDEBAR & WIDGETS
========================================= */

.article-sidebar {
    min-width: 0;
}


.widget {
    margin-bottom: 22px;
    padding: 21px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}


.widget-title {
    margin: 0 0 17px;
    padding-bottom: 12px;

    color: var(--secondary);

    border-bottom: 1px solid var(--border);

    font-size: 16px;
    font-weight: 800;
}


.widget-category-list,
.widget-latest-posts {
    list-style: none;

    margin: 0;
    padding: 0;
}


.widget-category-list li,
.widget-latest-posts li {
    padding: 10px 0;

    border-bottom: 1px solid #f1f5f9;
}


.widget-category-list li:last-child,
.widget-latest-posts li:last-child {
    border-bottom: 0;
}


.widget-category-list a,
.widget-latest-posts a {
    color: #475569;

    font-size: 12px;
    font-weight: 600;

    transition: color 0.2s ease;
}


.widget-category-list a:hover,
.widget-latest-posts a:hover {
    color: var(--primary);
}


.widget .search-form {
    flex-direction: column;
}


.widget .search-submit {
    width: 100%;
}


.widget ul {
    list-style: none;
}


/* =========================================
   15. SEARCH PAGE
========================================= */

.archive-search-form {
    margin-top: 20px;
}


.search-results-summary {
    margin-bottom: 20px;

    color: var(--text-light);

    font-size: 13px;
}


/* =========================================
   16. SINGLE ARTICLE
========================================= */

.portal-single {
    padding-bottom: 65px;
}


.article-breadcrumb {
    margin-top: 28px;
    margin-bottom: 20px;
}


.portal-article-header {
    max-width: 920px;

    margin: 0 auto;

    text-align: center;
}


.portal-article-category {
    margin-bottom: 15px;
}


.portal-article-title {
    margin: 0;

    color: var(--secondary);

    font-size: clamp(29px, 4.2vw, 43px);
    line-height: 1.28;

    font-weight: 850;
    letter-spacing: -0.9px;
}


.portal-article-excerpt {
    max-width: 760px;

    margin: 16px auto 0;

    color: var(--text-light);

    font-size: 15px;
    line-height: 1.8;
}


.portal-article-excerpt p {
    margin: 0;
}


.portal-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 22px;

    margin: 23px 0 28px;

    color: var(--text-light);

    font-size: 11px;
}


.article-meta-author,
.article-meta-date {
    display: flex;
    align-items: center;
    gap: 9px;
}


.article-meta-author img {
    width: 36px;
    height: 36px;

    border-radius: 50%;
}


.article-meta-author > span,
.article-meta-date > span:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.portal-article-meta small {
    color: #94a3b8;
    font-size: 9px;
}


.portal-article-meta strong {
    color: var(--secondary);
    font-size: 11px;
}


.meta-symbol {
    font-size: 17px;
}


.portal-article-featured {
    max-width: 1000px;

    margin: 0 auto 35px;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background: #e2e8f0;

    box-shadow: var(--shadow);
}


.portal-article-featured img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: cover;
}


.portal-article-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 290px;

    gap: 35px;

    align-items: start;
}


.portal-article-main {
    min-width: 0;

    padding: 35px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}


.portal-article-content {
    color: #334155;

    font-size: 16px;
    line-height: 1.9;

    overflow-wrap: anywhere;
}


.portal-article-content > :first-child {
    margin-top: 0;
}


.portal-article-content h2 {
    margin: 32px 0 14px;

    color: var(--secondary);

    font-size: 25px;
    line-height: 1.35;

    font-weight: 800;
}


.portal-article-content h3 {
    margin: 26px 0 12px;

    color: var(--secondary);

    font-size: 20px;
    line-height: 1.4;
}


.portal-article-content h4 {
    color: var(--secondary);
    font-size: 17px;
}


.portal-article-content p {
    margin: 0 0 19px;
}


.portal-article-content a {
    color: var(--primary);
    font-weight: 650;

    text-decoration: underline;
    text-underline-offset: 3px;
}


.portal-article-content ul,
.portal-article-content ol {
    margin: 18px 0 22px;
    padding-left: 25px;
}


.portal-article-content li {
    margin-bottom: 9px;
}


.portal-article-content blockquote {
    margin: 25px 0;

    padding: 18px 22px;

    background: #eff6ff;

    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;

    color: #334155;
}


.portal-article-content img {
    max-width: 100%;
    height: auto;

    border-radius: 10px;
}


.portal-article-content figure {
    margin: 25px 0;
}


.portal-article-content figcaption {
    margin-top: 8px;

    color: var(--text-light);

    font-size: 11px;
    text-align: center;
}


.portal-article-content table {
    width: 100%;

    margin: 24px 0;

    border-collapse: collapse;

    font-size: 13px;
}


.portal-article-content table th,
.portal-article-content table td {
    padding: 12px 14px;

    border: 1px solid var(--border);

    text-align: left;
    vertical-align: top;
}


.portal-article-content table th {
    background: #eff6ff;
    color: var(--secondary);

    font-weight: 750;
}


.portal-article-content table tr:nth-child(even) td {
    background: #f8fafc;
}


.portal-article-content iframe {
    max-width: 100%;
}


.portal-article-content pre {
    max-width: 100%;
    overflow-x: auto;
}


.page-links {
    margin: 25px 0;

    font-weight: 700;
}


/* =========================================
   17. ARTICLE TAGS
========================================= */

.portal-article-tags {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid var(--border);
}


.portal-article-tags > strong {
    color: var(--secondary);
    font-size: 12px;
}


.article-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.article-tag-list a {
    padding: 5px 10px;

    background: #f1f5f9;

    border-radius: 6px;

    color: #475569;

    font-size: 11px;
    font-weight: 650;
}


.article-tag-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
}


/* =========================================
   18. SHARE SECTION
========================================= */

.portal-share-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;
    padding: 20px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.portal-share-section > strong {
    color: var(--secondary);
    font-size: 12px;
}


.portal-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


.portal-share-buttons a {
    padding: 8px 13px;

    border-radius: 7px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 750;
}


.share-whatsapp {
    background: #16a34a;
}


.share-facebook {
    background: #1877f2;
}


.portal-share-buttons a:hover {
    opacity: 0.88;
    color: #ffffff;
}


/* =========================================
   19. AUTHOR BOX
========================================= */

.portal-author-box {
    display: flex;
    align-items: center;
    gap: 17px;

    margin-top: 25px;
    padding: 20px;

    background: #f8fafc;

    border: 1px solid var(--border);
    border-radius: 12px;
}


.portal-author-avatar img {
    width: 64px;
    height: 64px;

    display: block;

    border-radius: 50%;
}


.portal-author-details strong {
    color: var(--secondary);
    font-size: 14px;
}


.portal-author-details p {
    margin: 5px 0 0;

    color: var(--text-light);
    font-size: 11px;
}


/* =========================================
   20. RELATED POSTS
========================================= */

.portal-related-posts {
    margin-top: 42px;
    padding-top: 30px;

    border-top: 1px solid var(--border);
}


.portal-related-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 14px;
}


.portal-related-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 11px;

    transition: 0.2s ease;
}


.portal-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}


.portal-related-image {
    display: block;

    aspect-ratio: 3 / 2;

    overflow: hidden;

    background: #e2e8f0;
}


.portal-related-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.portal-related-content {
    padding: 12px;
}


.portal-related-content h3 {
    margin: 8px 0;

    color: var(--secondary);

    font-size: 12px;
    line-height: 1.5;
}


.portal-related-content h3 a {
    color: inherit;
}


.portal-related-date {
    color: #94a3b8;
    font-size: 10px;
}


/* =========================================
   21. COMMENTS
========================================= */

.portal-comments {
    margin-top: 42px;
    padding-top: 30px;

    border-top: 1px solid var(--border);
}


.portal-comment-list {
    list-style: none;

    margin: 0;
    padding: 0;
}


.portal-comment-item {
    margin-bottom: 15px;
    padding: 18px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 12px;
}


.portal-comment-body {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}


.portal-comment-avatar img {
    width: 44px;
    height: 44px;

    border-radius: 50%;
}


.portal-comment-content {
    flex: 1;
    min-width: 0;
}


.portal-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 10px;
}


.portal-comment-author {
    color: var(--secondary);
    font-size: 12px;
}


.portal-comment-date {
    color: #94a3b8;
    font-size: 10px;
}


.portal-comment-text {
    margin-top: 8px;

    color: #475569;

    font-size: 13px;
    line-height: 1.7;
}


.portal-comment-reply {
    margin-top: 8px;
}


.portal-comment-reply a {
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
}


.comment-awaiting-moderation {
    color: #b45309;
    font-size: 11px;
}


.portal-comment-form-section {
    margin-top: 35px;
}


.portal-comment-form {
    padding: 22px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);
}


.portal-comment-form p {
    margin: 0 0 17px;
}


.portal-comment-form label {
    display: block;

    margin-bottom: 7px;

    color: var(--secondary);

    font-size: 12px;
    font-weight: 750;
}


.portal-comment-form label span {
    color: var(--danger);
}


.portal-comment-form input,
.portal-comment-form textarea {
    width: 100%;

    padding: 12px 14px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: var(--text);

    outline: none;
}


.portal-comment-form input:focus,
.portal-comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}


.portal-comment-form textarea {
    resize: vertical;
    min-height: 130px;
}


.comment-notes {
    color: var(--text-light);
    font-size: 11px;
}


.portal-comment-submit {
    min-height: 44px;

    padding: 0 20px;

    background: var(--primary);
    color: #ffffff;

    border: 0;
    border-radius: 9px;

    font-size: 12px;
    font-weight: 750;
}


.portal-comment-submit:hover {
    background: var(--primary-dark);
}


.portal-comments-closed {
    color: var(--text-light);
    font-size: 12px;
}


.portal-comment-pagination {
    margin-top: 20px;
}


/* =========================================
   22. STATIC PAGES
========================================= */

.portal-page-section {
    padding: 45px 0 65px;
}


.portal-page-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 290px;

    gap: 30px;

    align-items: start;
}


.portal-page-content {
    min-width: 0;

    padding: 35px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}


.portal-page-featured-image {
    margin-bottom: 25px;

    overflow: hidden;

    border-radius: 12px;
}


.portal-page-featured-image img {
    display: block;

    width: 100%;
    height: auto;
}


.portal-page-entry-content {
    color: #334155;

    font-size: 15px;
    line-height: 1.9;

    overflow-wrap: anywhere;
}


.portal-page-entry-content h2,
.portal-page-entry-content h3,
.portal-page-entry-content h4 {
    color: var(--secondary);
    line-height: 1.4;
}


.portal-page-entry-content a {
    color: var(--primary);
    text-decoration: underline;
}


.portal-page-entry-content table {
    width: 100%;
    border-collapse: collapse;
}


.portal-page-entry-content th,
.portal-page-entry-content td {
    padding: 11px;
    border: 1px solid var(--border);
}


/* =========================================
   23. 404 PAGE
========================================= */

.portal-404-section {
    padding: 65px 0 75px;
}


.portal-404-content {
    max-width: 680px;

    margin: 0 auto 70px;

    text-align: center;
}


.portal-404-illustration {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;
}


.error-number {
    color: #dbeafe;

    font-size: clamp(90px, 18vw, 160px);
    line-height: 1;

    font-weight: 900;
    letter-spacing: -8px;
}


.error-icon {
    position: absolute;

    font-size: 48px;

    transform: rotate(-12deg);
}


.portal-404-content h1 {
    margin: 12px 0;

    color: var(--secondary);

    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.3;
}


.portal-404-content > p {
    max-width: 550px;

    margin: 0 auto 22px;

    color: var(--text-light);

    font-size: 14px;
}


.portal-404-search {
    margin: 0 auto;
}


.portal-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}


.portal-404-latest {
    padding-top: 35px;

    border-top: 1px solid var(--border);
}


/* =========================================
   24. FOOTER
========================================= */

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}


.footer-main {
    padding: 58px 0 45px;
}


.footer-grid {
    display: grid;

    grid-template-columns: 1.4fr 0.85fr 0.85fr 0.85fr;

    gap: 38px;
}


.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #ffffff;
}


.footer-brand > span:last-child {
    display: flex;
    flex-direction: column;
}


.footer-brand strong {
    color: #ffffff;
    font-size: 17px;
}


.footer-brand small {
    color: #94a3b8;
    font-size: 10px;
}


.footer-about > p {
    margin: 20px 0;

    color: #94a3b8;

    font-size: 12px;
    line-height: 1.9;
}


.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.footer-social a {
    padding: 7px 10px;

    background: #1e293b;

    border: 1px solid #334155;
    border-radius: 7px;

    color: #cbd5e1;

    font-size: 10px;
    font-weight: 650;
}


.footer-social a:hover {
    background: var(--primary);
    color: #ffffff;
}


.footer-column h2 {
    margin: 4px 0 19px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;
}


.footer-menu,
.footer-category-list,
.footer-info-list {
    list-style: none;

    margin: 0;
    padding: 0;
}


.footer-menu li,
.footer-category-list li,
.footer-info-list li {
    margin-bottom: 11px;
}


.footer-menu a,
.footer-category-list a,
.footer-info-list a {
    color: #94a3b8;

    font-size: 12px;

    transition: color 0.2s ease;
}


.footer-menu a:hover,
.footer-category-list a:hover,
.footer-info-list a:hover {
    color: #ffffff;
}


.footer-bottom {
    padding: 18px 0;

    border-top: 1px solid #263449;
}


.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.footer-bottom p {
    margin: 0;

    color: #94a3b8;

    font-size: 11px;
}


.footer-credit {
    text-align: right;
}


/* =========================================
   25. MOBILE BOTTOM NAVIGATION
========================================= */

.mobile-bottom-nav {
    display: none;
}


/* =========================================
   26. WORDPRESS DEFAULT ELEMENTS
========================================= */

.alignleft {
    float: left;
    margin: 8px 22px 15px 0;
}


.alignright {
    float: right;
    margin: 8px 0 15px 22px;
}


.aligncenter {
    display: block;
    margin: 20px auto;
}


.wp-caption {
    max-width: 100%;
}


.wp-caption-text {
    color: var(--text-light);
    font-size: 11px;
}


.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}


.gallery-item img {
    width: 100%;
    height: auto;
}


.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}


/* =========================================
   27. TABLET RESPONSIVE
========================================= */

@media (max-width: 1050px) {

    .container {
        width: min(var(--container), calc(100% - 32px));
    }


    .primary-menu a {
        padding: 10px 9px;
        font-size: 12px;
    }


    .portal-hero-inner {
        gap: 25px;
    }


    .portal-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .portal-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .portal-article-layout,
    .portal-archive-layout,
    .portal-page-layout {
        grid-template-columns: minmax(0, 1fr) 260px;

        gap: 22px;
    }

}


/* =========================================
   28. MOBILE RESPONSIVE
========================================= */

@media (max-width: 767px) {

    body {
        font-size: 14px;

        padding-bottom: 65px;
    }


    .container {
        width: calc(100% - 28px);
    }


    .topbar-inner {
        min-height: 32px;
        font-size: 10px;
    }


    .topbar-right {
        font-size: 9px;
    }


    .header-inner {
        min-height: 68px;
        gap: 10px;
    }


    .logo-icon {
        width: 39px;
        height: 39px;

        font-size: 15px;
        border-radius: 10px;
    }


    .logo-text strong {
        font-size: 15px;
    }


    .logo-text small {
        font-size: 9px;
    }


    .custom-logo-wrap img {
        max-height: 45px;
        max-width: 190px;
    }


    .desktop-navigation {
        display: none;
    }


    .mobile-menu-toggle {
        display: block;
    }


    .header-actions {
        gap: 7px;
    }


    .header-search-toggle,
    .mobile-menu-toggle {
        width: 39px;
        height: 39px;
    }


    .header-search-panel {
        padding: 14px 0;
    }


    .header-search-panel .search-form {
        gap: 6px;
    }


    .header-search-panel .search-submit {
        padding: 0 14px;
    }


    /* Hero */

    .portal-hero {
        padding: 42px 0 40px;
    }


    .portal-hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }


    .portal-hero h1 {
        margin: 13px 0;

        font-size: clamp(34px, 9vw, 43px);
        letter-spacing: -1.3px;
    }


    .portal-hero-content > p {
        font-size: 13px;
        line-height: 1.8;
    }


    .portal-search .search-form {
        gap: 4px;
    }


    .portal-search .search-field {
        padding: 10px;
        font-size: 13px;
    }


    .portal-search .search-submit {
        padding: 0 15px;
        font-size: 12px;
    }


    .portal-hero-note {
        font-size: 10px;
    }


    .portal-hero-visual {
        min-height: 255px;
    }


    .hero-visual-card {
        max-width: 330px;
        padding: 24px;
    }


    .hero-floating-card {
        right: 0;
        bottom: 0;

        padding: 9px 12px;
        font-size: 10px;
    }


    /* Categories */

    .portal-categories-section {
        padding: 38px 0 20px;
    }


    .portal-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }


    .portal-category-card {
        min-height: 88px;
        padding: 12px;
        gap: 9px;
    }


    .portal-category-icon {
        width: 39px;
        height: 39px;

        font-size: 19px;
        border-radius: 10px;
    }


    .portal-category-name {
        font-size: 11px;
        line-height: 1.4;
    }


    .portal-category-arrow {
        font-size: 14px;
    }


    /* Section headings */

    .portal-section-heading {
        margin-bottom: 19px;
        gap: 10px;
    }


    .portal-section-heading h2 {
        font-size: 21px;
    }


    .portal-section-heading p {
        font-size: 11px;
    }


    .portal-view-all {
        font-size: 11px;
    }


    /* Featured */

    .featured-section {
        padding: 32px 0 25px;
    }


    .featured-job-card {
        grid-template-columns: 1fr;
    }


    .featured-job-image,
    .featured-job-image img {
        min-height: 0;
    }


    .featured-job-content {
        padding: 20px;
    }


    .featured-job-content h3 {
        font-size: 21px;
    }


    .featured-job-content > p {
        font-size: 12px;
    }


    /* Post Grid */

    .latest-updates-section,
    .portal-category-posts-section {
        padding: 36px 0;
    }


    .portal-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }


    .portal-card-content {
        padding: 12px;
    }


    .portal-card-title {
        font-size: 13px;
        line-height: 1.45;
    }


    .portal-card-excerpt {
        font-size: 10px;
        line-height: 1.6;
    }


    .portal-card-meta {
        font-size: 9px;
        gap: 5px;
    }


    .post-category {
        font-size: 9px;
        padding: 4px 7px;
    }


    .portal-post-grid-compact .portal-card-content {
        padding: 11px;
    }


    .portal-post-grid-compact .portal-card-title {
        font-size: 12px;
    }


    /* Info */

    .portal-info-section {
        padding: 25px 0 40px;
    }


    .portal-info-card {
        padding: 17px;
        gap: 12px;
    }


    .portal-info-icon {
        width: 35px;
        height: 35px;
        font-size: 17px;
    }


    .portal-info-content h2 {
        font-size: 14px;
    }


    .portal-info-content p {
        font-size: 10px;
    }


    /* Archive */

    .portal-archive-header {
        padding: 28px 0 30px;
    }


    .portal-breadcrumb {
        margin-bottom: 16px;
        font-size: 10px;
    }


    .portal-archive-title {
        font-size: 28px;
    }


    .portal-archive-subtitle,
    .portal-archive-description {
        font-size: 12px;
    }


    .portal-archive-content {
        padding: 28px 0 45px;
    }


    .portal-archive-layout,
    .portal-article-layout,
    .portal-page-layout {
        grid-template-columns: 1fr;
    }


    .portal-sidebar,
    .portal-article-sidebar {
        display: none;
    }


    .category-post-count {
        font-size: 10px;
    }


    /* Search */

    .search-results-summary {
        font-size: 11px;
    }


    .portal-empty-state {
        padding: 38px 17px;
    }


    /* Single article */

    .portal-single {
        padding-bottom: 40px;
    }


    .article-breadcrumb {
        margin-top: 19px;
    }


    .portal-article-title {
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.3;
    }


    .portal-article-excerpt {
        font-size: 12px;
    }


    .portal-article-meta {
        gap: 13px;
        margin: 17px 0 20px;
    }


    .portal-article-featured {
        margin-bottom: 22px;
        border-radius: 12px;
    }


    .portal-article-main {
        padding: 19px;
        border-radius: 13px;
    }


    .portal-article-content {
        font-size: 14px;
        line-height: 1.85;
    }


    .portal-article-content h2 {
        font-size: 21px;
        margin-top: 26px;
    }


    .portal-article-content h3 {
        font-size: 18px;
    }


    .portal-article-content table {
        display: block;
        overflow-x: auto;
        white-space: normal;
    }


    .portal-article-content table th,
    .portal-article-content table td {
        min-width: 110px;
        padding: 9px;
        font-size: 11px;
    }


    .portal-article-content iframe {
        width: 100%;
    }


    .portal-article-tags {
        gap: 8px;
    }


    .portal-share-section {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }


    .portal-author-box {
        padding: 15px;
        gap: 12px;
    }


    .portal-author-avatar img {
        width: 48px;
        height: 48px;
    }


    .portal-author-details p {
        font-size: 10px;
    }


    .portal-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }


    .portal-related-content {
        padding: 10px;
    }


    .portal-related-content h3 {
        font-size: 11px;
    }


    /* Comments */

    .portal-comment-item {
        padding: 13px;
    }


    .portal-comment-form {
        padding: 16px;
    }


    .portal-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }


    /* Static pages */

    .portal-page-section {
        padding: 25px 0 45px;
    }


    .portal-page-content {
        padding: 20px;
    }


    .portal-page-entry-content {
        font-size: 14px;
    }


    /* 404 */

    .portal-404-section {
        padding: 40px 0 50px;
    }


    .portal-404-content {
        margin-bottom: 45px;
    }


    .portal-404-content > p {
        font-size: 12px;
    }


    .portal-404-actions {
        gap: 8px;
    }


    /* Footer */

    .footer-main {
        padding: 40px 0 30px;
    }


    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 20px;
    }


    .footer-about {
        grid-column: 1 / -1;
    }


    .footer-about > p {
        font-size: 11px;
    }


    .footer-column h2 {
        font-size: 12px;
        margin-bottom: 13px;
    }


    .footer-menu a,
    .footer-category-list a,
    .footer-info-list a {
        font-size: 10px;
    }


    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }


    .footer-credit {
        text-align: left;
    }


    /* Bottom navigation */

    .mobile-bottom-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 1500;

        min-height: 62px;

        display: grid;
        grid-template-columns: repeat(4, 1fr);

        padding: 5px 8px calc(5px + env(safe-area-inset-bottom));

        background: #ffffff;

        border-top: 1px solid var(--border);

        box-shadow: 0 -5px 18px rgba(15, 23, 42, 0.07);
    }


    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 1px;

        color: #64748b;

        font-size: 9px;
        font-weight: 700;
    }


    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        color: var(--primary);
    }


    .bottom-nav-icon {
        font-size: 20px;
        line-height: 1.2;
    }


    /* WordPress media */

    .alignleft,
    .alignright {
        float: none;

        display: block;

        margin: 18px auto;

        max-width: 100%;
    }


    .gallery {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   29. SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 22px);
    }


    .logo-text strong {
        font-size: 13px;
    }


    .logo-text small {
        font-size: 8px;
    }


    .portal-post-grid {
        gap: 8px;
    }


    .portal-card-content {
        padding: 10px;
    }


    .portal-card-title {
        font-size: 12px;
    }


    .portal-category-card {
        padding: 10px;
    }


    .portal-category-name {
        font-size: 10px;
    }


    .portal-article-main {
        padding: 15px;
    }

}


/* =========================================
   30. ACCESSIBILITY & MOTION
========================================= */

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 3px;
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================
   END OF MAIN STYLESHEET
========================================= */

/* =====================================================
   ARTICLE PAGE - CLEAN SEO FRIENDLY DESIGN
   Overrides for the new single.php template
===================================================== */

/* Article page background and spacing */
.portal-single {
    padding: 28px 0 55px;
    background: #f8fafc;
}

/* Breadcrumb */
.portal-single .portal-breadcrumb {
    margin: 0 0 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.portal-single .portal-breadcrumb a {
    color: #2563eb;
}

.portal-single .portal-breadcrumb span:last-child {
    color: #64748b;
}

/* Article heading */
.portal-single .portal-article-header {
    max-width: 900px;
    margin: 0 0 22px;
    text-align: left;
}

.portal-single .portal-article-category {
    margin-bottom: 12px;
}

.portal-single .portal-article-category a {
    display: inline-block;
    padding: 5px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
}

.portal-single .portal-article-title {
    margin: 0;
    color: #172033;
    font-size: clamp(27px, 3.5vw, 39px);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.portal-single .portal-article-excerpt {
    max-width: 800px;
    margin: 13px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.75;
}

/* Article meta */
.portal-single .portal-article-meta {
    justify-content: flex-start;
    gap: 10px;
    margin: 16px 0 0;
    color: #64748b;
    font-size: 12px;
}

.portal-single .portal-article-meta strong {
    color: #334155;
}

.portal-single .article-meta-separator {
    color: #94a3b8;
}

/* Featured image */
.portal-single .portal-article-featured {
    max-width: 100%;
    margin: 22px 0 28px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: none;
}

.portal-single .portal-article-featured img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Article content layout */
.portal-single .portal-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
}

.portal-single .portal-article-main {
    min-width: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
}

/* Article typography */
.portal-single .portal-article-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.portal-single .portal-article-content h2 {
    margin: 30px 0 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    color: #172033;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 750;
}

.portal-single .portal-article-content h3 {
    margin: 24px 0 10px;
    color: #172033;
    font-size: 19px;
    line-height: 1.45;
    font-weight: 700;
}

.portal-single .portal-article-content p {
    margin: 0 0 18px;
}

.portal-single .portal-article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.portal-single .portal-article-content ul,
.portal-single .portal-article-content ol {
    padding-left: 24px;
    margin: 16px 0 22px;
}

.portal-single .portal-article-content li {
    margin-bottom: 8px;
}

/* Tables */
.portal-single .portal-article-content table {
    width: 100%;
    max-width: 100%;
    margin: 22px 0;
    border-collapse: collapse;
    font-size: 14px;
}

.portal-single .portal-article-content th,
.portal-single .portal-article-content td {
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.portal-single .portal-article-content th {
    background: #eff6ff;
    color: #172033;
    font-weight: 700;
}

.portal-single .portal-article-content img {
    max-width: 100%;
    height: auto;
}

/* Tags */
.portal-single .portal-article-tags {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.portal-single .portal-article-tags a {
    display: inline-block;
    margin: 4px;
    padding: 5px 9px;
    background: #f1f5f9;
    border-radius: 5px;
    color: #475569;
    font-size: 11px;
}

/* Share */
.portal-single .portal-share-section {
    margin-top: 20px;
    padding: 17px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Author box: match single.php class names */
.portal-single .portal-author-box {
    margin-top: 22px;
    padding: 17px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: none;
}

.portal-single .author-avatar img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.portal-single .author-details strong {
    color: #172033;
    font-size: 14px;
}

.portal-single .author-details p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
}

/* Related articles */
.portal-single .portal-related-posts {
    margin-top: 32px;
    padding-top: 25px;
}

.portal-single .portal-related-posts > h2 {
    margin: 0 0 18px;
    color: #172033;
    font-size: 22px;
}

.portal-single .portal-related-posts .portal-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

/* Article sidebar */
.portal-single .portal-article-sidebar {
    min-width: 0;
}

/* Mobile article design */
@media (max-width: 767px) {

    .portal-single {
        padding: 18px 0 35px;
    }

    .portal-single .portal-breadcrumb {
        margin-bottom: 16px;
        font-size: 11px;
    }

    .portal-single .portal-article-header {
        margin-bottom: 17px;
    }

    .portal-single .portal-article-title {
        font-size: 26px;
        line-height: 1.35;
        letter-spacing: -0.3px;
    }

    .portal-single .portal-article-excerpt {
        margin-top: 10px;
        font-size: 13px;
        line-height: 1.7;
    }

    .portal-single .portal-article-meta {
        justify-content: flex-start;
        gap: 7px;
        margin-top: 13px;
        font-size: 10px;
    }

    .portal-single .portal-article-featured {
        margin: 17px 0 20px;
        border-radius: 9px;
    }

    .portal-single .portal-article-layout {
        display: block;
    }

    .portal-single .portal-article-main {
        padding: 17px;
        border-radius: 9px;
    }

    .portal-single .portal-article-content {
        font-size: 15px;
        line-height: 1.85;
    }

    .portal-single .portal-article-content h2 {
        margin-top: 25px;
        font-size: 20px;
    }

    .portal-single .portal-article-content h3 {
        font-size: 17px;
    }

    .portal-single .portal-article-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: normal;
    }

    .portal-single .portal-article-content th,
    .portal-single .portal-article-content td {
        min-width: 105px;
        padding: 9px;
        font-size: 12px;
    }

    .portal-single .portal-article-sidebar {
        display: none;
    }

    .portal-single .portal-related-posts .portal-post-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .portal-single .portal-author-box {
        padding: 13px;
    }

    .portal-single .author-avatar img {
        width: 46px;
        height: 46px;
    }

}
