/*
Theme Name: UniVSpace DZ
Theme URI: https://univspace-dz.com
Author: UniVSpace DZ Team
Author URI: https://univspace-dz.com
Description: قالب WordPress عربي RTL متخصص في أخبار الجامعات الجزائرية — يشمل أقساماً للجامعات والبحث العلمي والكتب والمنح الدراسية والفعاليات.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: univspace-dz
Tags: rtl-language, arabic, university, education, news, blog, custom-colors, featured-images, threaded-comments, translation-ready
*/

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --deep: #0d1f3c;
  --blue: #1a3a6e;
  --accent: #2d6be4;
  --gold: #d4a843;
  --gold-light: #f0c96a;
  --white: #ffffff;
  --off-white: #f4f6fb;
  --gray: #8a9bbf;
  --light-gray: #e8ecf5;
  --text: #2c3e60;
  --card-bg: #ffffff;
  --border: #dce3f0;
}

body {
  font-family: 'Cairo', 'Tajawal', Tahoma, Arial, sans-serif;
  background: var(--off-white);
  color: var(--text);
  direction: rtl;
  text-align: right;
  font-size: 15px;
  line-height: 1.7;
}

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === TOPBAR === */
#topbar {
  background: var(--navy);
  color: var(--gray);
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#topbar .topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#topbar a { color: var(--gray); margin-left: 14px; transition: color .2s; }
#topbar a:hover { color: var(--gold); }

/* === HEADER === */
#masthead {
  background: var(--deep);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 20px;
}
.site-logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: white;
  flex-shrink: 0;
}
.site-title-wrap .site-title { font-size: 20px; font-weight: 900; color: white; line-height: 1.1; }
.site-title-wrap .site-desc { font-size: 11px; color: var(--gold); letter-spacing: 0.5px; }

/* === NAV === */
#primary-nav { display: flex; align-items: center; gap: 2px; }
#primary-nav ul { display: flex; list-style: none; gap: 2px; }
#primary-nav ul li a {
  color: rgba(255,255,255,0.8);
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all .2s;
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
  background: rgba(45,107,228,0.2);
  color: white;
}
.nav-search-form {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px 12px;
  margin-right: 8px;
}
.nav-search-form input[type="search"] {
  background: none; border: none; outline: none;
  color: white; font-family: inherit; font-size: 13px; width: 150px;
}
.nav-search-form input::placeholder { color: var(--gray); }
.nav-search-form button { background: none; border: none; color: var(--gray); cursor: pointer; padding: 0; }
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 22px; cursor: pointer; }

/* === BREAKING BAR === */
#breaking-bar {
  background: var(--accent);
  color: white;
  padding: 9px 0;
  overflow: hidden;
}
.breaking-inner { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.breaking-label {
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 900;
  padding: 3px 12px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.breaking-ticker { font-size: 13px; white-space: nowrap; animation: tickerRTL 35s linear infinite; }
@keyframes tickerRTL { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* === HERO === */
#hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--blue) 60%, #1e4d94 100%);
  position: relative; overflow: hidden;
  padding: 72px 0 80px;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(45,107,228,.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(212,168,67,.1) 0%, transparent 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,168,67,.15);
  border: 1px solid rgba(212,168,67,.3);
  color: var(--gold-light);
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 18px;
}
.hero-title {
  font-size: 42px; font-weight: 900;
  color: white; line-height: 1.25;
  margin-bottom: 14px;
}
.hero-title span {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1d5ccf);
  color: white; padding: 12px 24px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 20px rgba(45,107,228,.4);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(45,107,228,.5); color: white; }
.btn-outline {
  background: transparent; color: white;
  padding: 12px 24px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 700; font-size: 14px;
  transition: all .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.08); color: white; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 20px 14px; text-align: center;
  backdrop-filter: blur(10px);
}
.stat-num { font-size: 30px; font-weight: 900; color: white; display: block; }
.stat-num span { color: var(--gold); }
.stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* === SECTION TITLES === */
.section-title { text-align: center; margin-bottom: 40px; }
.section-label {
  display: inline-block;
  background: rgba(45,107,228,.1);
  color: var(--accent); font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
  border: 1px solid rgba(45,107,228,.2);
}
.section-title h2 { font-size: 28px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.section-title p { color: var(--gray); font-size: 14px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.section-header h2 {
  font-size: 20px; font-weight: 900; color: var(--navy);
  display: flex; align-items: center; gap: 8px;
}
.section-header h2::before {
  content: '';
  width: 4px; height: 22px;
  background: linear-gradient(to bottom, var(--accent), var(--gold));
  border-radius: 2px;
}
.see-all { color: var(--accent); font-size: 13px; font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* === CATEGORIES === */
#categories-section { padding: 60px 0; }
.cats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 18px;
  text-align: center; cursor: pointer;
  transition: all .25s; position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.cat-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 26px;
  transition: transform .25s;
}
.cat-card:hover .cat-icon { transform: scale(1.1); }
.cat-card h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--gray); }
.cat-count {
  display: inline-block; background: var(--light-gray);
  color: var(--gray); font-size: 11px; font-weight: 700;
  padding: 2px 10px; border-radius: 10px; margin-top: 8px;
}

/* === MAIN CONTENT LAYOUT === */
#content-area { padding: 50px 0; }
.content-layout { display: grid; grid-template-columns: 1fr 310px; gap: 28px; align-items: start; }

/* === FEATURED POST === */
.featured-card {
  border-radius: 16px; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border);
  margin-bottom: 20px;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 240px;
}
.featured-img {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  min-height: 240px; overflow: hidden;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-img .no-img {
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; height: 100%;
}
.featured-body {
  padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.featured-body h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 10px 0 8px; line-height: 1.5; }
.featured-body p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 14px; }

/* === POST TAG === */
.post-tag {
  display: inline-block;
  background: rgba(45,107,228,.1); color: var(--accent);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
}

/* === POST META === */
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--gray); }
.post-meta span { display: flex; align-items: center; gap: 4px; }

/* === NEWS LIST === */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  display: grid; grid-template-columns: 72px 1fr;
  gap: 14px; align-items: center;
  transition: all .2s;
}
.news-item:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(45,107,228,.08); transform: translateX(-4px); }
.news-thumb {
  width: 72px; height: 72px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  overflow: hidden; flex-shrink: 0;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb .no-img { display: flex; align-items: center; justify-content: center; font-size: 28px; height: 100%; }
.news-info h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 6px 0; line-height: 1.5; }

/* === SIDEBAR WIDGETS === */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
}
.widget-box .widget-title {
  font-size: 15px; font-weight: 800; color: var(--navy);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.widget-box.dark-widget {
  background: linear-gradient(135deg, var(--navy), var(--blue));
}
.widget-box.dark-widget .widget-title { color: white; border-color: rgba(255,255,255,.15); }
.widget-box.dark-widget p { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 14px; line-height: 1.7; }
.newsletter-input {
  width: 100%; padding: 10px 14px; border-radius: 8px; border: none;
  background: rgba(255,255,255,.1); color: white;
  font-family: inherit; font-size: 13px; outline: none; margin-bottom: 10px;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-btn {
  width: 100%; padding: 10px;
  background: linear-gradient(135deg, var(--gold), #c8970e);
  color: var(--navy); border: none; border-radius: 8px;
  font-weight: 800; font-size: 13px; cursor: pointer;
  font-family: inherit;
}
.quick-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-link-btn {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 8px;
  text-align: center; font-size: 12px; font-weight: 600; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: all .2s;
}
.quick-link-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.quick-link-btn .ql-icon { font-size: 20px; }

/* === UNIVERSITIES SECTION === */
#universities-section { padding: 60px 0; background: var(--white); }
.univ-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.univ-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; transition: all .25s;
}
.univ-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); border-color: var(--accent); }
.univ-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.univ-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.univ-card-name { font-size: 14px; font-weight: 800; color: var(--navy); }
.univ-card-loc { font-size: 12px; color: var(--gray); }
.univ-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.ustat { text-align: center; }
.ustat-num { font-size: 16px; font-weight: 900; color: var(--navy); }
.ustat-label { font-size: 10px; color: var(--gray); }

/* === RESEARCH === */
#research-section { padding: 60px 0; }
.research-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.research-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  display: flex; gap: 14px; transition: all .2s;
}
.research-card:hover { border-color: var(--accent); box-shadow: 0 6px 24px rgba(45,107,228,.08); }
.research-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(45,107,228,.08); border: 1px solid rgba(45,107,228,.15);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.research-body h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 6px 0; line-height: 1.5; }
.research-body p { font-size: 12px; color: var(--gray); line-height: 1.6; }
.research-meta { display: flex; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--gray); }

/* === BOOKS === */
#books-section { padding: 60px 0; background: var(--white); }
.books-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.book-card {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--card-bg);
  transition: all .25s;
}
.book-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.book-cover {
  height: 155px;
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.bc-blue { background: linear-gradient(135deg, #1a3a6e, #2d6be4); }
.bc-green { background: linear-gradient(135deg, #1e4d40, #2da87a); }
.bc-purple { background: linear-gradient(135deg, #4a1d60, #9333ea); }
.bc-red { background: linear-gradient(135deg, #7a2020, #e53e3e); }
.book-info { padding: 14px; }
.book-info h3 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.4; }
.book-author { font-size: 11px; color: var(--gray); margin-bottom: 8px; }

/* === EVENTS === */
#events-section { padding: 60px 0; }
.events-list { display: flex; flex-direction: column; gap: 12px; }
.event-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  display: grid; grid-template-columns: 62px 1fr auto;
  gap: 16px; align-items: center; transition: all .2s;
}
.event-item:hover { border-color: var(--accent); }
.event-date-box {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--accent), #1d5ccf);
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.event-day { font-size: 22px; font-weight: 900; line-height: 1; }
.event-mon { font-size: 11px; font-weight: 600; opacity: .8; }
.event-info h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.event-badge {
  background: rgba(45,107,228,.1); color: var(--accent);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}

/* === SCHOLARSHIPS === */
#scholarships-section { padding: 60px 0; background: var(--white); }
.scholar-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.scholar-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px; transition: all .25s;
}
.scholar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.scholar-flag { font-size: 30px; margin-bottom: 12px; }
.scholar-card h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.scholar-card p { font-size: 12px; color: var(--gray); line-height: 1.6; margin-bottom: 12px; }
.scholar-deadline { font-size: 12px; color: #dc2626; font-weight: 600; }

/* === BIG STATS === */
#stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 70px 0; position: relative; overflow: hidden;
}
#stats-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(212,168,67,.1) 0%, transparent 70%);
}
.big-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; position: relative; z-index: 2; }
.big-stat {
  text-align: center; padding: 28px 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
}
.big-stat .bs-icon { font-size: 34px; margin-bottom: 12px; }
.big-stat .bs-num { font-size: 40px; font-weight: 900; color: white; line-height: 1; margin-bottom: 6px; }
.big-stat .bs-num span { color: var(--gold); }
.big-stat .bs-label { font-size: 13px; color: rgba(255,255,255,.5); }

/* === FOOTER === */
#colophon {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-brand p { font-size: 13px; line-height: 1.8; margin: 14px 0 18px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: background .2s; color: white;
}
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(255,255,255,.5); font-size: 13px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.footer-bottom a { color: var(--gold); }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
  width: 38px; height: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: var(--card-bg); border: 1px solid var(--border); color: var(--text);
  transition: all .2s;
}
.pagination a:hover, .pagination .current {
  background: var(--accent); color: white; border-color: var(--accent);
}

/* === SINGLE POST === */
.single-post-wrap { padding: 50px 0; }
.single-layout { display: grid; grid-template-columns: 1fr 310px; gap: 28px; align-items: start; }
.post-header { margin-bottom: 24px; }
.post-header h1 { font-size: 28px; font-weight: 900; color: var(--navy); margin: 10px 0; line-height: 1.4; }
.post-featured-img { border-radius: 16px; overflow: hidden; margin-bottom: 24px; max-height: 420px; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.post-content { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.post-content p { margin-bottom: 16px; line-height: 1.9; }
.post-content h2, .post-content h3 { color: var(--navy); font-weight: 800; margin: 24px 0 12px; }
.post-content ul, .post-content ol { padding-right: 20px; margin-bottom: 16px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-right: 4px solid var(--accent);
  padding: 14px 18px; background: var(--off-white);
  border-radius: 8px; margin: 20px 0; font-style: italic;
}

/* === COMMENTS === */
.comments-section { margin-top: 30px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.comment-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.comment-form-fields input, .comments-section textarea {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--border); font-family: inherit; font-size: 13px;
  color: var(--text); outline: none; transition: border .2s;
}
.comments-section textarea { height: 100px; resize: none; }
.comment-form-fields input:focus, .comments-section textarea:focus { border-color: var(--accent); }
.comment-submit { margin-top: 12px; }

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 50px 0; text-align: center; color: white;
}
.page-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.65); font-size: 14px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cats-grid { grid-template-columns: repeat(4,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .content-layout, .single-layout { grid-template-columns: 1fr; }
  .univ-grid, .scholar-grid { grid-template-columns: repeat(2,1fr); }
  .books-grid { grid-template-columns: repeat(2,1fr); }
  .big-stats { grid-template-columns: repeat(2,1fr); }
  .research-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  #primary-nav ul { display: none; }
  .menu-toggle { display: block; }
  .hero-title { font-size: 28px; }
  .featured-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 62px 1fr; }
  .event-badge { display: none; }
  .comment-form-fields { grid-template-columns: 1fr; }
}
