/*
Theme Name: SocioEducations Child
Theme URI: https://socioeducations.com/
Description: Professional education and news portal child theme based on GeneratePress.
Author: SocioEducations
Author URI: https://socioeducations.com/
Template: generatepress
Version: 1.1.0
Text Domain: socioeducations-child
*/

/* =========================================================
   1. DESIGN SYSTEM
========================================================= */

:root {
    --se-primary: #1769aa;
    --se-primary-dark: #104d80;
    --se-primary-light: #eaf4fc;
    --se-accent: #e65336;

    --se-text: #252a32;
    --se-heading: #17212f;
    --se-muted: #687383;

    --se-border: #e2e7ed;
    --se-surface: #f5f7fa;
    --se-white: #ffffff;

    --se-container: 1200px;
    --se-radius: 5px;
    --se-shadow: 0 2px 9px rgba(25, 45, 70, 0.06);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--se-text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

.se-home,
.se-home * {
    box-sizing: border-box;
}

.se-home {
    width: 100%;
    overflow-wrap: anywhere;
    background: var(--se-white);
}

.se-container {
    width: min(var(--se-container), calc(100% - 36px));
    margin-right: auto;
    margin-left: auto;
}

.se-home img {
    display: block;
    max-width: 100%;
    height: auto;
}

.se-home a {
    color: inherit;
    text-decoration: none;
}

.se-home a:hover {
    color: var(--se-primary);
}

.se-home a:focus-visible,
.se-home button:focus-visible,
.se-home input:focus-visible {
    outline: 2px solid var(--se-primary);
    outline-offset: 3px;
}

.se-home h1,
.se-home h2,
.se-home h3,
.se-home h4,
.se-home p {
    margin-top: 0;
}

.se-home h1,
.se-home h2,
.se-home h3,
.se-home h4 {
    color: var(--se-heading);
    line-height: 1.35;
    font-weight: 700;
}

.se-home p {
    color: var(--se-muted);
}

.se-home .se-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--se-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* =========================================================
   2. HIDE DEFAULT GENERATEPRESS HOMEPAGE ELEMENTS
========================================================= */

/* These rules apply only to the front page. */

body.home .site-header,
body.home .main-navigation,
body.home .page-header,
body.home .entry-header,
body.home .inside-article > .entry-header {
    display: none !important;
}

body.home .site-content,
body.home #content,
body.home .content-area,
body.home .site-main,
body.home .inside-article,
body.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .site-content {
    width: 100% !important;
    max-width: none !important;
}

body.home .content-area {
    width: 100% !important;
    float: none !important;
}

body.home .site-main {
    margin-bottom: 0 !important;
}

body.home .inside-article {
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
}

body.home .entry-content > * {
    max-width: none;
}

body.home .se-home {
    margin-top: 0;
}

/* =========================================================
   3. SITE HEADER
========================================================= */

.se-home .se-header {
    position: relative;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--se-border);
}

.se-home .se-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 88px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.se-home .se-logo {
    display: inline-flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1.2;
}

.se-home .se-logo-name {
    color: var(--se-primary-dark);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
}

.se-home .se-logo-tagline {
    margin-top: 5px;
    color: #697687;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15px;
}

.se-home .se-search {
    display: flex;
    width: min(100%, 420px);
    min-height: 42px;
    margin: 0;
    border: 1px solid #d8e0e8;
    border-radius: var(--se-radius);
    background: #fff;
    overflow: hidden;
}

.se-home .se-search input[type="search"] {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--se-text);
    font-size: 13px;
}

.se-home .se-search input::placeholder {
    color: #8993a0;
    opacity: 1;
}

.se-home .se-search button {
    flex-shrink: 0;
    min-height: 42px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: var(--se-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.se-home .se-search button:hover {
    background: var(--se-primary-dark);
    color: #fff;
}

/* =========================================================
   4. MAIN NAVIGATION
========================================================= */

.se-home .se-nav {
    position: relative;
    z-index: 15;
    width: 100%;
    background: var(--se-primary-dark);
    box-shadow: 0 2px 4px rgba(10, 35, 60, 0.08);
}

.se-home .se-nav-inner {
    display: flex;
    align-items: stretch;
    min-height: 45px;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.se-home .se-nav-inner > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 45px;
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.se-home .se-nav-inner > a:hover,
.se-home .se-nav-inner > a:focus-visible {
    background: #236da6;
    color: #fff;
}

.se-home .se-nav-inner > .se-nav-home {
    background: var(--se-accent);
    color: #fff;
}

/* =========================================================
   5. MAIN CONTENT AND WELCOME
========================================================= */

.se-home .se-main {
    padding-top: 25px;
    padding-bottom: 36px;
}

.se-home .se-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
    padding: 24px 27px;
    border: 1px solid #dbe9f6;
    border-left: 4px solid var(--se-primary);
    border-radius: var(--se-radius);
    background: #f4f9fe;
}

.se-home .se-welcome-copy {
    min-width: 0;
}

.se-home .se-welcome h1 {
    max-width: 790px;
    margin-bottom: 8px;
    color: var(--se-heading);
    font-size: clamp(23px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.65px;
    line-height: 1.3;
}

.se-home .se-welcome p {
    max-width: 760px;
    margin-bottom: 0;
    color: #5d6b7b;
    font-size: 14px;
    line-height: 1.7;
}

.se-home .se-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 9px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: var(--se-radius);
    background: var(--se-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.se-home .se-primary-button:hover {
    background: var(--se-primary-dark);
    color: #fff;
}

/* =========================================================
   6. SECTION HEADINGS
========================================================= */

.se-home .se-section {
    margin-top: 31px;
    margin-bottom: 31px;
}

.se-home .se-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--se-primary);
}

.se-home .se-section-heading > div {
    min-width: 0;
}

.se-home .se-section-heading .se-eyebrow {
    margin-bottom: 4px;
}

.se-home .se-section-heading h2 {
    margin: 0;
    color: var(--se-heading);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.35px;
    line-height: 1.35;
}

.se-home .se-view-all,
.se-home .se-section-heading > a {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
    color: var(--se-primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.se-home .se-view-all:hover,
.se-home .se-section-heading > a:hover {
    color: var(--se-accent);
}

/* =========================================================
   7. FEATURED STORIES
========================================================= */

.se-home .se-featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start;
}

.se-home .se-featured-main {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius);
    background: #fff;
    box-shadow: var(--se-shadow);
}

.se-home .se-featured-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 8.7;
    overflow: hidden;
    background: #eaf0f6;
}

.se-home .se-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.se-home .se-featured-image:hover img {
    transform: scale(1.025);
}

.se-home .se-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #e7f2fc, #f5f8fc);
    color: var(--se-primary-dark);
    font-size: 19px;
    font-weight: 800;
    text-align: center;
}

.se-home .se-featured-content {
    padding: 19px 21px 21px;
}

.se-home .se-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
    color: var(--se-muted);
    font-size: 11px;
    line-height: 1.5;
}

.se-home .se-post-meta a {
    color: var(--se-primary);
    font-weight: 700;
}

.se-home .se-post-meta a:hover {
    color: var(--se-accent);
}

.se-home .se-featured-content h3 {
    margin-bottom: 10px;
    font-size: clamp(21px, 2.2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.45px;
    line-height: 1.35;
}

.se-home .se-featured-content h3 a:hover {
    color: var(--se-primary);
}

.se-home .se-featured-content p {
    margin-bottom: 13px;
    font-size: 14px;
    line-height: 1.75;
}

.se-home .se-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--se-primary);
    font-size: 12px;
    font-weight: 700;
}

.se-home .se-read-more:hover {
    color: var(--se-accent);
}

/* Featured sidebar */

.se-home .se-featured-side {
    min-width: 0;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius);
    background: #fff;
}

.se-home .se-side-heading,
.se-home .se-sidebar-heading {
    padding: 13px 16px;
    border-bottom: 1px solid var(--se-border);
    background: #f7f9fc;
}

.se-home .se-side-heading h3,
.se-home .se-sidebar-heading h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.se-home .se-headline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #edf0f4;
}

.se-home .se-headline-item:last-child {
    border-bottom: 0;
}

.se-home .se-headline-thumb {
    display: block;
    flex: 0 0 88px;
    width: 88px;
    overflow: hidden;
    border-radius: 3px;
    background: #edf2f7;
}

.se-home .se-headline-thumb img {
    width: 88px;
    height: 68px;
    object-fit: cover;
}

.se-home .se-headline-content {
    flex: 1;
    min-width: 0;
}

.se-home .se-headline-date {
    display: block;
    margin-bottom: 4px;
    color: var(--se-muted);
    font-size: 10px;
    line-height: 1.4;
}

.se-home .se-headline-content h4 {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.se-home .se-headline-content h4 a:hover {
    color: var(--se-primary);
}

/* =========================================================
   8. TRENDING / EXPLORE STRIP
========================================================= */

.se-home .se-trending-strip {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0 32px;
    padding: 13px 16px;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius);
    background: #fff;
}

.se-home .se-trending-label {
    flex: 0 0 auto;
    color: var(--se-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.se-home .se-trending-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.se-home .se-trending-links a {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 4px 10px;
    border: 1px solid #e0e9f2;
    border-radius: 3px;
    background: #f5f9fd;
    color: #34516e;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.se-home .se-trending-links a:hover {
    border-color: var(--se-primary);
    background: var(--se-primary);
    color: #fff;
}

/* =========================================================
   9. LATEST NEWS GRID + SIDEBAR
========================================================= */

.se-home .se-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 25px;
}

.se-home .se-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    min-width: 0;
}

.se-home .se-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius);
    background: #fff;
    box-shadow: var(--se-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.se-home .se-post-card:hover {
    box-shadow: 0 5px 17px rgba(25, 45, 70, 0.1);
    transform: translateY(-2px);
}

.se-home .se-post-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #edf2f7;
}

.se-home .se-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.se-home .se-post-card:hover .se-post-image img {
    transform: scale(1.025);
}

.se-home .se-post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
}

.se-home .se-post-content .se-post-meta {
    margin-bottom: 8px;
}

.se-home .se-post-content h3 {
    width: 100%;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.48;
}

.se-home .se-post-content h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.se-home .se-post-content p {
    margin-bottom: 13px;
    font-size: 13px;
    line-height: 1.7;
}

.se-home .se-post-content .se-read-more {
    margin-top: auto;
}

/* =========================================================
   10. HOME SIDEBAR
========================================================= */

.se-home .se-home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.se-home .se-sidebar-panel {
    overflow: hidden;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius);
    background: #fff;
}

.se-home .se-sidebar-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.se-home .se-sidebar-categories li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #edf0f4;
}

.se-home .se-sidebar-categories li:last-child {
    border-bottom: 0;
}

.se-home .se-sidebar-categories li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    color: #354052;
    font-size: 13px;
    font-weight: 600;
}

.se-home .se-sidebar-categories li a:hover {
    background: #f5f9fd;
    color: var(--se-primary);
}

.se-home .se-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    min-height: 23px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #edf4fb;
    color: var(--se-primary-dark);
    font-size: 10px;
    font-weight: 700;
}

.se-home .se-sidebar-post {
    padding: 13px 15px;
    border-bottom: 1px solid #edf0f4;
}

.se-home .se-sidebar-post:last-child {
    border-bottom: 0;
}

.se-home .se-sidebar-post > span {
    display: block;
    margin-bottom: 4px;
    color: var(--se-muted);
    font-size: 10px;
}

.se-home .se-sidebar-post h4 {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.se-home .se-sidebar-post h4 a:hover {
    color: var(--se-primary);
}

.se-home .se-sidebar-empty {
    margin: 0;
    padding: 15px;
    font-size: 13px;
}

/* =========================================================
   11. CATEGORY NEWS SECTIONS
========================================================= */

.se-home .se-category-section {
    padding-top: 3px;
}

.se-home .se-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.se-home .se-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--se-border);
    border-radius: var(--se-radius);
    background: #fff;
    box-shadow: var(--se-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.se-home .se-category-card:hover {
    box-shadow: 0 5px 17px rgba(25, 45, 70, 0.1);
    transform: translateY(-2px);
}

.se-home .se-category-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #edf2f7;
}

.se-home .se-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.se-home .se-category-card:hover .se-category-thumb img {
    transform: scale(1.025);
}

.se-home .se-category-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 13px;
}

.se-home .se-category-date {
    display: block;
    margin-bottom: 7px;
    color: var(--se-muted);
    font-size: 10px;
    line-height: 1.5;
}

.se-home .se-category-card h3 {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.se-home .se-category-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.se-home .se-category-card h3 a:hover {
    color: var(--se-primary);
}

.se-home .se-category-card p {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.7;
}

/* =========================================================
   12. EMPTY STATES
========================================================= */

.se-home .se-empty-state {
    grid-column: 1 / -1;
    width: 100%;
    padding: 30px 20px;
    border: 1px dashed #ccd7e2;
    border-radius: var(--se-radius);
    background: #f8fafc;
    text-align: center;
}

.se-home .se-empty-state h3 {
    margin-bottom: 7px;
    font-size: 18px;
}

.se-home .se-empty-state p {
    margin-bottom: 0;
    font-size: 13px;
}

/* =========================================================
   13. FOOTER
========================================================= */

.se-home .se-footer {
    margin-top: 15px;
    border-top: 4px solid var(--se-primary);
    background: #14283c;
    color: #fff;
}

.se-home .se-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 35px;
    padding-top: 29px;
    padding-bottom: 22px;
}

.se-home .se-footer-brand > a {
    display: inline-block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.se-home .se-footer-brand > a:hover {
    color: #c7e4ff;
}

.se-home .se-footer-brand p {
    max-width: 570px;
    margin-bottom: 0;
    color: #c5d1df;
    font-size: 13px;
    line-height: 1.7;
}

.se-home .se-footer-links {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 19px;
}

.se-home .se-footer-links a {
    color: #e0e8f1;
    font-size: 12px;
    font-weight: 600;
}

.se-home .se-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.se-home .se-footer-bottom {
    grid-column: 1 / -1;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #b8c7d7;
    font-size: 11px;
}

/* =========================================================
   14. TABLET
========================================================= */

@media (max-width: 1024px) {

    .se-container {
        width: calc(100% - 28px);
    }

    .se-home .se-header-inner {
        min-height: 78px;
        gap: 20px;
    }

    .se-home .se-logo-name {
        font-size: 25px;
    }

    .se-home .se-nav-inner > a {
        padding-right: 13px;
        padding-left: 13px;
        font-size: 12px;
    }

    .se-home .se-featured-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr);
        gap: 17px;
    }

    .se-home .se-news-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 18px;
    }

    .se-home .se-news-grid {
        gap: 15px;
    }

    .se-home .se-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .se-home .se-category-card {
        display: grid;
        grid-template-columns: 125px minmax(0, 1fr);
        align-items: stretch;
    }

    .se-home .se-category-thumb {
        height: 100%;
        min-height: 120px;
        aspect-ratio: auto;
    }

    .se-home .se-category-thumb img {
        min-height: 120px;
    }

    .se-home .se-category-card-content {
        padding: 12px;
    }

}

/* =========================================================
   15. MOBILE / SMALL TABLET
========================================================= */

@media (max-width: 767px) {

    body {
        font-size: 14px;
    }

    .se-container {
        width: calc(100% - 24px);
    }

    .se-home .se-header-inner {
        align-items: center;
        flex-wrap: wrap;
        gap: 13px;
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 13px;
    }

    .se-home .se-logo-name {
        font-size: 24px;
        letter-spacing: -0.6px;
    }

    .se-home .se-logo-tagline {
        margin-top: 3px;
        font-size: 10px;
    }

    .se-home .se-search {
        width: 100%;
        min-height: 39px;
    }

    .se-home .se-search input[type="search"] {
        height: 39px;
        font-size: 12px;
    }

    .se-home .se-search button {
        min-height: 39px;
        padding-right: 16px;
        padding-left: 16px;
        font-size: 12px;
    }

    .se-home .se-nav-inner {
        width: 100%;
        min-height: 42px;
        padding-right: 0;
        padding-left: 0;
    }

    .se-home .se-nav-inner > a {
        min-height: 42px;
        padding-right: 13px;
        padding-left: 13px;
        font-size: 12px;
    }

    .se-home .se-main {
        padding-top: 16px;
        padding-bottom: 20px;
    }

    .se-home .se-welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 23px;
        padding: 18px 16px;
    }

    .se-home .se-welcome h1 {
        margin-bottom: 8px;
        font-size: 23px;
        letter-spacing: -0.35px;
        line-height: 1.35;
    }

    .se-home .se-welcome p {
        font-size: 13px;
    }

    .se-home .se-primary-button {
        min-height: 39px;
        padding: 9px 13px;
        font-size: 12px;
    }

    .se-home .se-section {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .se-home .se-section-heading {
        align-items: center;
        gap: 10px;
        margin-bottom: 13px;
        padding-bottom: 9px;
    }

    .se-home .se-section-heading h2 {
        font-size: 19px;
        letter-spacing: -0.25px;
    }

    .se-home .se-section-heading .se-eyebrow {
        font-size: 9px;
    }

    .se-home .se-view-all,
    .se-home .se-section-heading > a {
        gap: 4px;
        font-size: 11px;
    }

    .se-home .se-featured-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .se-home .se-featured-image {
        aspect-ratio: 16 / 9;
    }

    .se-home .se-featured-content {
        padding: 15px;
    }

    .se-home .se-featured-content h3 {
        margin-bottom: 8px;
        font-size: 21px;
        line-height: 1.4;
    }

    .se-home .se-featured-content p {
        font-size: 13px;
    }

    .se-home .se-headline-item {
        gap: 11px;
        padding: 12px;
    }

    .se-home .se-headline-thumb {
        flex-basis: 82px;
        width: 82px;
    }

    .se-home .se-headline-thumb img {
        width: 82px;
        height: 63px;
    }

    .se-home .se-headline-content h4 {
        font-size: 13px;
    }

    .se-home .se-trending-strip {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-top: 21px;
        margin-bottom: 25px;
        padding: 12px;
    }

    .se-home .se-trending-links {
        gap: 7px;
    }

    .se-home .se-trending-links a {
        font-size: 10px;
    }

    .se-home .se-news-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .se-home .se-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .se-home .se-post-content {
        padding: 11px;
    }

    .se-home .se-post-content h3 {
        margin-bottom: 7px;
        font-size: 14px;
        line-height: 1.45;
    }

    .se-home .se-post-content p {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.6;
    }

    .se-home .se-post-content .se-post-meta {
        gap: 5px 7px;
        margin-bottom: 7px;
        font-size: 10px;
    }

    .se-home .se-post-content .se-read-more {
        font-size: 11px;
    }

    .se-home .se-home-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .se-home .se-sidebar-heading {
        padding: 11px;
    }

    .se-home .se-sidebar-heading h3 {
        font-size: 14px;
    }

    .se-home .se-sidebar-categories li a {
        gap: 7px;
        padding: 10px;
        font-size: 11px;
    }

    .se-home .se-category-count {
        min-width: 21px;
        min-height: 20px;
        font-size: 9px;
    }

    .se-home .se-sidebar-post {
        padding: 10px;
    }

    .se-home .se-sidebar-post h4 {
        font-size: 11px;
        line-height: 1.5;
    }

    .se-home .se-sidebar-post > span {
        font-size: 9px;
    }

    .se-home .se-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .se-home .se-category-card {
        display: flex;
        flex-direction: column;
    }

    .se-home .se-category-thumb {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .se-home .se-category-thumb img {
        min-height: 0;
    }

    .se-home .se-category-card-content {
        padding: 10px;
    }

    .se-home .se-category-card h3 {
        margin-bottom: 6px;
        font-size: 13px;
        line-height: 1.45;
    }

    .se-home .se-category-card p {
        font-size: 11px;
        line-height: 1.6;
    }

    .se-home .se-category-date {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .se-home .se-footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding-top: 23px;
        padding-bottom: 17px;
    }

    .se-home .se-footer-brand > a {
        font-size: 20px;
    }

    .se-home .se-footer-brand p {
        font-size: 12px;
    }

    .se-home .se-footer-links {
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .se-home .se-footer-bottom {
        grid-column: 1;
        padding-top: 12px;
    }

}

/* =========================================================
   16. VERY SMALL MOBILE SCREENS
========================================================= */

@media (max-width: 380px) {

    .se-container {
        width: calc(100% - 18px);
    }

    .se-home .se-logo-name {
        font-size: 22px;
    }

    .se-home .se-welcome h1 {
        font-size: 21px;
    }

    .se-home .se-section-heading h2 {
        font-size: 17px;
    }

    .se-home .se-news-grid {
        gap: 8px;
    }

    .se-home .se-post-content {
        padding: 9px;
    }

    .se-home .se-post-content h3 {
        font-size: 13px;
    }

    .se-home .se-post-content p {
        font-size: 11px;
    }

    .se-home .se-post-content .se-post-meta {
        font-size: 9px;
    }

    .se-home .se-home-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .se-home .se-category-grid {
        gap: 8px;
    }

    .se-home .se-category-card-content {
        padding: 8px;
    }

    .se-home .se-category-card h3 {
        font-size: 12px;
    }

}

/* =========================================================
   17. ACCESSIBILITY & MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .se-home *,
    .se-home *::before,
    .se-home *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   SOCIOEDUCATIONS - MOBILE EDITORIAL LAYOUT
   Add this at the END of child theme style.css
========================================================= */

@media (max-width: 767px) {

    /* Main page spacing */
    .se-home .se-container {
        width: calc(100% - 20px);
    }

    .se-home .se-main {
        padding-top: 12px;
        padding-bottom: 20px;
    }

    /* Compact header */
    .se-home .se-header-inner {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 11px;
    }

    .se-home .se-logo {
        flex: 1 1 100%;
    }

    .se-home .se-logo-name {
        font-size: 23px;
        line-height: 1.2;
        letter-spacing: -0.6px;
    }

    .se-home .se-logo-tagline {
        margin-top: 3px;
        font-size: 10px;
    }

    .se-home .se-search {
        width: 100%;
        min-height: 38px;
    }

    .se-home .se-search input[type="search"] {
        height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .se-home .se-search button {
        min-height: 38px;
        padding: 0 15px;
        font-size: 12px;
    }

    /* Horizontal mobile navigation */
    .se-home .se-nav-inner {
        display: flex;
        width: 100%;
        min-height: 40px;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .se-home .se-nav-inner::-webkit-scrollbar {
        display: none;
    }

    .se-home .se-nav-inner > a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 13px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Compact welcome area */
    .se-home .se-welcome {
        display: block;
        margin-bottom: 20px;
        padding: 15px 13px;
        border-left-width: 3px;
        border-radius: 3px;
    }

    .se-home .se-welcome .se-eyebrow {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .se-home .se-welcome h1 {
        margin-bottom: 7px;
        font-size: 21px;
        line-height: 1.35;
        letter-spacing: -0.3px;
    }

    .se-home .se-welcome p {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.6;
    }

    .se-home .se-primary-button {
        min-height: 35px;
        padding: 8px 12px;
        font-size: 11px;
    }

    /* Editorial section headings */
    .se-home .se-section {
        margin-top: 22px;
        margin-bottom: 22px;
    }

    .se-home .se-section-heading {
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom-width: 2px;
    }

    .se-home .se-section-heading .se-eyebrow {
        margin-bottom: 3px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .se-home .se-section-heading h2 {
        font-size: 18px;
        line-height: 1.35;
        letter-spacing: -0.2px;
    }

    .se-home .se-view-all,
    .se-home .se-section-heading > a {
        gap: 4px;
        font-size: 11px;
    }

    /* Featured story first, headline list below */
    .se-home .se-featured-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .se-home .se-featured-main {
        border-radius: 3px;
        box-shadow: none;
    }

    .se-home .se-featured-image {
        aspect-ratio: 16 / 9;
    }

    .se-home .se-featured-content {
        padding: 12px;
    }

    .se-home .se-featured-content .se-post-meta {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .se-home .se-featured-content h3 {
        margin-bottom: 7px;
        font-size: 19px;
        line-height: 1.4;
        letter-spacing: -0.2px;
    }

    .se-home .se-featured-content p {
        margin-bottom: 9px;
        font-size: 12px;
        line-height: 1.65;
    }

    .se-home .se-read-more {
        font-size: 11px;
    }

    /* Headlines: compact news rows */
    .se-home .se-featured-side {
        border-radius: 3px;
    }

    .se-home .se-side-heading {
        padding: 10px 12px;
    }

    .se-home .se-side-heading h3 {
        font-size: 15px;
    }

    .se-home .se-headline-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 11px;
    }

    .se-home .se-headline-thumb {
        flex: 0 0 84px;
        width: 84px;
        border-radius: 3px;
    }

    .se-home .se-headline-thumb img {
        width: 84px;
        height: 64px;
        object-fit: cover;
    }

    .se-home .se-headline-date {
        margin-bottom: 3px;
        font-size: 9px;
    }

    .se-home .se-headline-content h4 {
        font-size: 12px;
        line-height: 1.5;
    }

    /* Horizontal topic strip */
    .se-home .se-trending-strip {
        display: block;
        margin: 20px 0 23px;
        padding: 11px;
        border-radius: 3px;
    }

    .se-home .se-trending-label {
        display: block;
        margin-bottom: 8px;
        font-size: 10px;
    }

    .se-home .se-trending-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 3px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .se-home .se-trending-links::-webkit-scrollbar {
        display: none;
    }

    .se-home .se-trending-links a {
        flex: 0 0 auto;
        min-height: 29px;
        padding: 6px 9px;
        font-size: 10px;
        white-space: nowrap;
    }

    /* Two-column mobile news cards */
    .se-home .se-news-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .se-home .se-news-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 10px;
    }

    .se-home .se-post-card {
        min-width: 0;
        border-radius: 3px;
        box-shadow: none;
    }

    .se-home .se-post-image {
        aspect-ratio: 4 / 3;
    }

    .se-home .se-post-content {
        padding: 9px;
    }

    .se-home .se-post-content .se-post-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 7px;
        margin-bottom: 6px;
        font-size: 9px;
    }

    .se-home .se-post-content h3 {
        margin-bottom: 7px;
        font-size: 13px;
        line-height: 1.45;
    }

    .se-home .se-post-content h3 a {
        -webkit-line-clamp: 4;
    }

    .se-home .se-post-content p {
        margin-bottom: 9px;
        font-size: 11px;
        line-height: 1.55;
    }

    .se-home .se-post-content .se-read-more {
        font-size: 10px;
    }

    /* Category cards: image on top, text below */
    .se-home .se-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .se-home .se-category-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        border-radius: 3px;
        box-shadow: none;
    }

    .se-home .se-category-thumb {
        display: block;
        width: 100%;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .se-home .se-category-thumb img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }

    .se-home .se-category-card-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 9px;
    }

    .se-home .se-category-date {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .se-home .se-category-card h3 {
        margin-bottom: 6px;
        font-size: 12px;
        line-height: 1.45;
    }

    .se-home .se-category-card h3 a {
        -webkit-line-clamp: 4;
    }

    .se-home .se-category-card p {
        margin-bottom: 0;
        font-size: 10px;
        line-height: 1.55;
    }

    /* Category and recent posts sidebar */
    .se-home .se-home-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 10px;
    }

    .se-home .se-sidebar-panel {
        min-width: 0;
        border-radius: 3px;
    }

    .se-home .se-sidebar-heading {
        padding: 10px;
    }

    .se-home .se-sidebar-heading h3 {
        font-size: 13px;
        line-height: 1.4;
    }

    .se-home .se-sidebar-categories li a {
        align-items: flex-start;
        gap: 5px;
        padding: 9px;
        font-size: 10px;
        line-height: 1.45;
    }

    .se-home .se-category-count {
        min-width: 19px;
        min-height: 18px;
        padding: 2px 4px;
        font-size: 9px;
    }

    .se-home .se-sidebar-post {
        padding: 9px;
    }

    .se-home .se-sidebar-post > span {
        font-size: 9px;
    }

    .se-home .se-sidebar-post h4 {
        font-size: 10px;
        line-height: 1.5;
    }

    /* Footer */
    .se-home .se-footer {
        margin-top: 10px;
    }

    .se-home .se-footer-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
        padding-top: 20px;
        padding-bottom: 15px;
    }

    .se-home .se-footer-brand > a {
        font-size: 19px;
    }

    .se-home .se-footer-brand p {
        font-size: 11px;
        line-height: 1.6;
    }

    .se-home .se-footer-links {
        justify-content: flex-start;
        gap: 12px;
    }

    .se-home .se-footer-links a {
        font-size: 11px;
    }

    .se-home .se-footer-bottom {
        grid-column: 1;
        font-size: 10px;
    }

}

/* Small phones */
@media (max-width: 380px) {

    .se-home .se-container {
        width: calc(100% - 16px);
    }

    .se-home .se-logo-name {
        font-size: 21px;
    }

    .se-home .se-welcome h1 {
        font-size: 19px;
    }

    .se-home .se-section-heading h2 {
        font-size: 16px;
    }

    .se-home .se-news-grid,
    .se-home .se-category-grid {
        gap: 8px;
    }

    .se-home .se-post-content,
    .se-home .se-category-card-content {
        padding: 8px;
    }

    .se-home .se-post-content h3 {
        font-size: 12px;
    }

    .se-home .se-category-card h3 {
        font-size: 11px;
    }

    .se-home .se-home-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

}