/*
Theme Name: segevscher
Theme URI: https://segevscher.co.il/
Author: Pro Study & Career Development
Author URI: https://dlions.co.il/
Description: תבנית וורדפרס מקצועית ומודרנית לפורטל לימודים, קורסים והכשרות מקצועיות. כוללת מבנה כותרות ראשיות, חלק ייעודי למכללות וקורסים מומלצים, דסק עדכוני קריירה, סרגל נגישות צף ועמידה מלאה בכל דרישות הקישורים.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: segevscher
Domain Path: /languages
Tags: education, courses, news, magazine, rtl, accessibility, two-columns, featured-courses
*/

:root {
  /* News Portal Color Palette */
  --portal-red: #ED1C24;
  --portal-red-dark: #C9141B;
  --portal-red-light: #FFF1F1;
  --portal-navy: #0F172A;
  --portal-blue-link: #0066cc;
  --portal-blue-hover: #004c99;
  --portal-text-main: #1A1A1A;
  --portal-text-muted: #555555;
  --portal-text-light: #777777;
  --portal-border: #E2E8F0;
  --portal-border-dark: #CBD5E1;
  --portal-bg-gray: #F8FAFC;
  --portal-bg-white: #FFFFFF;
  --portal-gold: #D97706;

  /* Typography */
  --font-main: "Assistant", "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Rubik", "Assistant", sans-serif;
  --max-w: 1240px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

/* Reset & Box Model */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: var(--font-main);
  background-color: var(--portal-bg-gray);
  color: var(--portal-text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* ========================================================
   1. PORTAL HEADER (Modern Top Red Accents & Layout)
   ======================================================== */
.portal-header {
  background: var(--portal-bg-white);
  border-bottom: 2px solid var(--portal-border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Top Red Utility Strip */
.portal-top-strip {
  background: var(--portal-red);
  color: #ffffff;
  padding: 4px 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.portal-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.portal-ticker-badge {
  background: #ffffff;
  color: var(--portal-red);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

.portal-ticker-text {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: 500;
}

.portal-ticker-text a:hover {
  text-decoration: underline;
}

.portal-quick-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fecdd3;
  white-space: nowrap;
  font-size: 0.78rem;
}

/* Main Header Row */
.portal-main-header {
  padding: 14px 0;
}

.portal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portal-brand-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Bold Red Box Logo */
.portal-logo-box {
  background: var(--portal-red);
  color: #ffffff;
  width: 54px;
  height: 50px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  box-shadow: 0 3px 6px rgba(237, 28, 36, 0.3);
  transition: transform 0.2s ease;
  line-height: 1;
}

.portal-logo-box:hover {
  transform: scale(1.04);
}

.portal-logo-box .logo-top {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.portal-logo-box .logo-main {
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 1px;
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
}

.portal-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--portal-navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.portal-subtitle {
  font-size: 0.85rem;
  color: var(--portal-text-muted);
  font-weight: 500;
}

/* Header CTAs */
.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-advisor-btn {
  background: var(--portal-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.portal-advisor-btn:hover {
  background: var(--portal-red);
  color: #ffffff;
}

.portal-search-form {
  position: relative;
}

.portal-search-input {
  background: #f1f5f9;
  border: 1px solid var(--portal-border);
  border-radius: 20px;
  padding: 7px 36px 7px 14px;
  font-size: 0.85rem;
  width: 190px;
  font-family: inherit;
  transition: width 0.25s ease, border-color 0.2s ease;
}

.portal-search-input:focus {
  outline: none;
  border-color: var(--portal-red);
  background: #ffffff;
  width: 230px;
}

.portal-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
}

/* Red Navigation Bar */
.portal-nav-bar {
  background: #ffffff;
  border-top: 1px solid var(--portal-border);
  border-bottom: 3px solid var(--portal-red);
  overflow-x: auto;
}

.portal-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.portal-nav-list li a {
  display: block;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--portal-navy);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.portal-nav-list li a:hover,
.portal-nav-list li.current-menu-item a {
  color: var(--portal-red);
  border-bottom-color: var(--portal-red);
}

.portal-nav-list li.featured-tab a {
  color: var(--portal-red);
  background: var(--portal-red-light);
}

/* ========================================================
   2. HOMEPAGE PORTAL HERO SECTION (Newsroom Grid)
   ======================================================== */
.portal-hero-section {
  padding-top: 22px;
  padding-bottom: 25px;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
}

/* Main Lead Story Card */
.portal-lead-card {
  background: var(--portal-bg-white);
  border: 1px solid var(--portal-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.portal-lead-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #cbd5e1;
  overflow: hidden;
}

.portal-lead-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portal-lead-card:hover .portal-lead-img-wrap img {
  transform: scale(1.03);
}

.portal-lead-kicker {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--portal-red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.portal-lead-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portal-lead-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--portal-navy);
  margin-bottom: 12px;
}

.portal-lead-title a:hover {
  color: var(--portal-red);
}

.portal-lead-excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 16px;
  flex: 1;
}

.portal-lead-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--portal-border);
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--portal-text-muted);
  font-weight: 600;
}

/* Side Stacked Teaser Cards */
.portal-side-stories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-side-card {
  background: var(--portal-bg-white);
  border: 1px solid var(--portal-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.portal-side-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.portal-side-thumb {
  width: 105px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background: #cbd5e1;
}

.portal-side-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.portal-side-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--portal-red);
  margin-bottom: 2px;
}

.portal-side-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--portal-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-side-title a:hover {
  color: var(--portal-red);
}

.portal-side-time {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ========================================================
   3. SPECIAL MANDATORY SECTION: RECOMMENDED COLLEGES & COURSES
   ======================================================== */
.recommended-courses-section {
  background: #ffffff;
  border: 2px solid var(--portal-border);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-sm);
}

.recommended-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--portal-red);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.recommended-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--portal-navy);
}

.recommended-title .red-tag {
  background: var(--portal-red);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 900;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Course Card Component */
.course-card-box {
  background: #ffffff;
  border: 1px solid var(--portal-border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  border-top: 4px solid var(--portal-red);
}

.course-card-box:hover {
  transform: translateY(-4px);
  border-color: var(--portal-red);
  box-shadow: var(--shadow-md);
}

.course-badge-top {
  display: inline-block;
  background: var(--portal-red-light);
  color: var(--portal-red);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.course-card-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--portal-navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

.course-card-desc {
  font-size: 0.88rem;
  color: var(--portal-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.course-features-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  font-size: 0.82rem;
  color: #334155;
  border-top: 1px dashed var(--portal-border);
  padding-top: 10px;
}

.course-features-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.course-features-list li::before {
  content: "✔";
  color: #16a34a;
  font-weight: bold;
}

.course-action-btn {
  display: block;
  text-align: center;
  background: var(--portal-navy);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 14px;
  border-radius: 4px;
  transition: background 0.2s ease;
  text-decoration: none !important;
}

.course-card-box:hover .course-action-btn {
  background: var(--portal-red);
}

/* ========================================================
   4. MAIN STUDY SECTIONS & CAREER UPDATES GRID
   ======================================================== */
.portal-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 25px;
  margin-bottom: 40px;
}

.portal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--portal-red);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.portal-section-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--portal-navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.portal-article-card {
  background: var(--portal-bg-white);
  border: 1px solid var(--portal-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.portal-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #cbd5e1;
  overflow: hidden;
}

.portal-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portal-article-card:hover .portal-card-thumb img {
  transform: scale(1.04);
}

.portal-card-cat {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--portal-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
}

.portal-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portal-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--portal-navy);
  margin-bottom: 8px;
}

.portal-card-title a:hover {
  color: var(--portal-red);
}

.portal-card-excerpt {
  font-size: 0.92rem;
  color: var(--portal-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.portal-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--portal-border);
  padding-top: 10px;
  font-size: 0.8rem;
  color: var(--portal-text-light);
  font-weight: 600;
}

/* Sidebar Desk & Ticker */
.portal-sidebar-box {
  background: var(--portal-bg-white);
  border: 1px solid var(--portal-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 95px;
}

.portal-sidebar-head {
  background: var(--portal-navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--portal-red);
}

.portal-sidebar-head h3 {
  font-size: 1.1rem;
  font-weight: 900;
}

.portal-sidebar-feed {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-feed-item {
  border-bottom: 1px solid var(--portal-border);
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portal-feed-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-feed-time {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--portal-red);
}

.portal-feed-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--portal-navy);
}

.portal-feed-title a:hover {
  color: var(--portal-red);
}

/* ========================================================
   5. SINGLE POST PAGE (Mandatory #0066cc Links Rule)
   ======================================================== */
.portal-single-wrap {
  padding-top: 25px;
  padding-bottom: 50px;
}

.portal-single-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}

.portal-article-paper {
  background: var(--portal-bg-white);
  border: 1px solid var(--portal-border);
  border-radius: var(--radius-sm);
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.portal-breadcrumbs {
  font-size: 0.85rem;
  color: var(--portal-text-light);
  margin-bottom: 14px;
}

.portal-breadcrumbs a {
  color: var(--portal-blue-link);
}

.portal-breadcrumbs a:hover {
  text-decoration: underline;
}

.portal-post-cat-badge {
  display: inline-block;
  background: var(--portal-red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.portal-post-title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--portal-navy);
  margin-bottom: 14px;
}

.portal-post-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 20px;
  font-weight: 500;
}

.portal-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--portal-border);
  border-bottom: 1px solid var(--portal-border);
  padding: 10px 0;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--portal-text-muted);
}

.portal-featured-media {
  margin-bottom: 25px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f1f5f9;
}

.portal-featured-media img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

/* ========================================================
   CRITICAL MANDATORY SINGLE POST CONTENT LINK STYLING
   ======================================================== */
.entry-content,
.portal-post-content {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #1e293b;
}

.entry-content p,
.portal-post-content p {
  margin-bottom: 1.4em;
}

/* ALL ANCHORS IN POST CONTENT MUST BE BLUE (#0066cc) AND UNDERLINED */
.entry-content a,
.portal-post-content a,
.single-post-content a,
.article-content a {
  color: var(--portal-blue-link) !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

.entry-content a:hover,
.portal-post-content a:hover,
.single-post-content a:hover,
.article-content a:hover {
  color: var(--portal-blue-hover) !important;
  text-decoration: underline !important;
  background-color: #ebf5ff;
}

.entry-content h2,
.portal-post-content h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--portal-navy);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  border-right: 4px solid var(--portal-red);
  padding-right: 12px;
}

.entry-content h3,
.portal-post-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--portal-navy);
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

.entry-content ul,
.entry-content ol,
.portal-post-content ul,
.portal-post-content ol {
  margin-bottom: 1.4em;
  padding-right: 25px;
}

.entry-content li,
.portal-post-content li {
  margin-bottom: 0.4em;
}

/* ========================================================
   6. FOOTER (Exact 3 Upper Columns + 6 Mandatory Bottom Links)
   ======================================================== */
.portal-footer {
  background: var(--portal-navy);
  color: #cbd5e1;
  border-top: 4px solid var(--portal-red);
  margin-top: 50px;
}

.portal-footer-top {
  padding: 45px 0 35px 0;
  border-bottom: 1px solid #1e293b;
}

/* STRICTLY 3 UPPER COLUMNS */
.portal-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 35px;
}

.portal-footer-col h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.portal-footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--portal-red);
}

.portal-footer-about {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 15px;
}

.portal-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-footer-links li {
  margin-bottom: 9px;
}

.portal-footer-links li a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.portal-footer-links li a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

/* Footer Bottom Bar */
.portal-footer-bottom {
  background: #090d16;
  padding: 20px 0;
  font-size: 0.85rem;
}

.portal-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.portal-copyright {
  color: #64748b;
}

.portal-copyright strong {
  color: #94a3b8;
}

.portal-mandatory-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
}

.portal-mandatory-links a {
  color: #94a3b8;
  transition: color 0.15s ease;
  font-weight: 600;
}

.portal-mandatory-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* ========================================================
   7. ACCESSIBILITY FLOATING TOOLBAR
   ======================================================== */
.a11y-floating-trigger {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 52px;
  height: 52px;
  background: var(--portal-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(237, 28, 36, 0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.a11y-floating-trigger:hover {
  transform: scale(1.08);
  background: var(--portal-navy);
}

.a11y-floating-trigger svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.a11y-drawer-modal {
  position: fixed;
  top: 0;
  left: -340px;
  width: 320px;
  height: 100vh;
  background: #ffffff;
  box-shadow: 4px 0 25px rgba(0,0,0,0.25);
  z-index: 10000;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.a11y-drawer-modal.open {
  left: 0;
}

.a11y-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

.a11y-overlay.open {
  display: block;
}

.a11y-head {
  background: var(--portal-navy);
  border-bottom: 3px solid var(--portal-red);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a11y-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.a11y-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.a11y-content {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.a11y-action-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: all 0.15s ease;
  font-family: inherit;
}

.a11y-action-btn:hover {
  background: #e2e8f0;
}

.a11y-action-btn.active {
  background: var(--portal-red);
  color: #fff;
  border-color: var(--portal-red);
}

.a11y-foot {
  padding: 15px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--portal-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.a11y-reset-all {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Accessibility State Classes */
body.a11y-high-contrast {
  background: #000000 !important;
  color: #ffffff !important;
}

body.a11y-high-contrast * {
  background-color: #000000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

body.a11y-grayscale {
  filter: grayscale(100%) !important;
}

body.a11y-invert {
  filter: invert(100%) !important;
}

body.a11y-highlight-links a {
  background-color: #ffff00 !important;
  color: #000000 !important;
  text-decoration: underline !important;
}

body.a11y-stop-anim * {
  animation: none !important;
  transition: none !important;
}

body.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .portal-hero-grid,
  .portal-content-layout,
  .portal-single-grid {
    grid-template-columns: 1fr;
  }
  .recommended-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-sidebar-box {
    position: static;
  }
  .portal-footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 640px) {
  .recommended-grid {
    grid-template-columns: 1fr;
  }
  .portal-articles-grid {
    grid-template-columns: 1fr;
  }
  .portal-search-form {
    display: none;
  }
  .portal-title {
    font-size: 1.3rem;
  }
  .portal-lead-title {
    font-size: 1.45rem;
  }
  .portal-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
