/**
 * @file
 * KSU News Theme - Global stylesheet
 */

/* Reset and base styles */

@font-face {
  font-family: 'geDinarArabic';
  src: url('../fonts/geDinar/alfont_com_GE-Dinar-One-Regular.otf');
  unicode-range: U+0600-06FF; /* Arabic letters range */
}

/* Latin font for English digits only */
@font-face {
  font-family: 'geDinarDigits';
  src: local('Arial'); /* You can change to any font like Tahoma, Roboto, etc. */
  unicode-range: U+0030-0039; /* Digits 0–9 */
}

* {
  box-sizing: border-box;
  font-family: 'geDinarArabic', 'geDinarDigits', Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Layout Container */
.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.site-header {
  background: #fff;
  padding-top: 20px;
  border-top: 16px solid #162A53;
}

.header-bottom {
  padding: 10px 0;
}
.header-bottom .menu--main ul li a{
  color: #008FC4;
  font-size: 16px;
  font-weight: 700;
  transition: 0.3s ease-in-out
}
.header-bottom .menu--main ul li a:hover{
  color: #090230;
}
.header-bottom .menu--main ul li ul a{
  text-align: right;
  display: block;
  text-decoration: none;
}


/* Alerts Region */

.alerts-region .container {
  display: flex;
  align-items: center;
}

/* Main Content Layout */
.main-content {
  padding: 30px 0;
}

.layout-content-wrapper {
  display: flex;
  gap: 30px;
}

.layout-content {
  flex: 1;
}

.layout-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* Pinned Sections */
.pinned-sections {
  padding: 0;
}

/* Footer */
.site-footer {
  background: #162B53;
  color: white;
  padding: 0!important;
  margin-top: 40px !important;
}

.site-footer .block {
  border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .layout-content-wrapper {
    flex-direction: column;
  }

  .layout-sidebar {
    width: 100%;
    order: 2;
  }

  .layout-content {
    order: 1;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] .layout-content-wrapper {
  flex-direction: row-reverse;
}

/* ========================================
   Breaking News Block Styles
   ======================================== */

.breaking-news-block {
  background: #FF1616;
  color: white;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
  position: relative;
  overflow: hidden;
}

.breaking-news-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.breaking-news-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.breaking-news-icon {
  color: white;
  flex-shrink: 0;
  animation: pulse 2s infinite;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.breaking-news-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.breaking-news-content {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
}

.breaking-news-ticker {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.breaking-news-ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  animation-delay: 2s;
  transform: translateX(0);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-16.666%);
  }
}

.breaking-news-item {
  display: inline-flex;
  align-items: center;
  margin-right: 3em;
  white-space: nowrap;
}

.breaking-news-item-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.breaking-news-item-title a {
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 58px;
}

.breaking-news-item-title a:hover {
  text-decoration: underline;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.breaking-news-separator {
  margin: 0 1em;
  font-weight: bold;
  opacity: 0.7;
  display: none;
}

.breaking-news-empty {
  text-align: center;
  opacity: 0.8;
  font-style: italic;
}

.breaking-news-empty p {
  margin: 0;
}

/* Breaking News - Mobile responsiveness */
@media (max-width: 768px) {
  .breaking-news-block {
    padding: 12px;
    margin-bottom: 16px;
  }

  .breaking-news-title {
    font-size: 16px;
  }

  .breaking-news-item-title {
    font-size: 14px;
  }

  .breaking-news-ticker-content {
    animation: ticker 15s linear infinite;
    animation-delay: 2s;
  }

  [dir="rtl"] .breaking-news-ticker-content {
    animation: ticker-rtl 15s linear infinite;
    animation-delay: 2s;
    transform: translateX(0);
  }
}

/* Breaking News - RTL Support */
[dir="rtl"] .breaking-news-header {
  direction: rtl;
}

[dir="rtl"] .breaking-news-title {
  text-align: right;
}

@keyframes ticker-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(16.666%);
  }
}

[dir="rtl"] .breaking-news-ticker-content {
  animation: ticker-rtl 20s linear infinite;
  animation-delay: 2s;
  transform: translateX(0);
}

[dir="rtl"] .breaking-news-item {
  margin-left: 3em;
  margin-right: 0;
}

[dir="rtl"] .breaking-news-icon {
  margin-right: 0;
  margin-left: 40px;
}

/* Breaking News - Dark theme support */
@media (prefers-color-scheme: dark) {
  .breaking-news-block {
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  }
}

/* Breaking News - High contrast mode */
@media (prefers-contrast: high) {
  .breaking-news-block {
    border: 2px solid white;
  }

  .breaking-news-title,
  .breaking-news-item-title {
    text-shadow: none;
  }
}

/* Breaking News - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .breaking-news-block::before {
    animation: none;
  }

  .breaking-news-icon {
    animation: none;
  }

  .breaking-news-ticker-content {
    animation: none;
    transform: none;
  }

  .breaking-news-item-title a {
    transition: none;
  }
}

/* ===============================================
   Search Toggle Functionality
   =============================================== */

/* Search wrapper */
.search-wrapper {
  position: relative;
  display: inline-block;
}

/* Search toggle button */
.search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Search form overlay */
.search-form-overlay {
  position: absolute;
  top: 31px;
  left: 0;
  /* right: 0;
  bottom: 0; */
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99999999 !important;
  opacity: 0;
  /* transition: opacity 0.3s ease; */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: -2px 6px 6px -3px rgba(0, 0, 0, 0.58);
-webkit-box-shadow: -2px 6px 6px -3px rgba(0, 0, 0, 0.58);
-moz-box-shadow: -2px 6px 6px -3px rgba(0, 0, 0, 0.58);
}

.search-form-overlay.show {
  opacity: 1;
}

/* Search form container */
.search-form-container {
  background: white;
  border-radius: 12px;

  transition: all 0.3s ease;
  opacity: 0;
  z-index: 999999999 !important;
  border-radius: 8px;
}

.search-form-overlay.show .search-form-container {
  /* transform: translate(-50%, -50%) scale(1); */
  opacity: 1;
  width: 510px;
  border-radius: 8px;
}

/* Search form inner */
.search-form-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 24px;
  position: relative;
  width: 100%;
}
.search-form-inner .form-type-search{
  width: 97%;
  display: block;
}
.search-form-inner .form-type-search input{
  background-color: #F0F0F0;
  text-align: right;
  padding: 15px 10px;
  border: 0;
  color: #9C9C9C80;
  font-size: 15px;
  font-weight: 500;
}

/* Search form styling */
.search-form-overlay .search-form {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.search-form-overlay .form-item {
  margin: 0;
  width: 100%;
  max-width: 600px;
}

.search-form-overlay .form-item label {
  display: none;
}


/* Submit button */
.search-form-overlay .form-actions {
  display: flex;
  justify-content: flex-end;
}
.search-form-overlay .form-submit,
.search-form-overlay button[type="submit"] {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap;
  color: #008FC4;
  display: inline-block;
  margin: 0 auto 0 0;
  max-width: 100px;
  text-align: left;
}
/* Close button */
.search-close-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 31px;
  right: 12px;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
}
/* Prevent body scroll when overlay is open */
/* body.search-overlay-open {
  overflow: hidden;
} */

/* RTL Support for Search */
[dir="rtl"] .search-form-inner {
  direction: rtl;
}

[dir="rtl"] .search-close-btn {
  right: auto;
  left: 12px;
}

/* Mobile responsiveness for Search */
@media (max-width: 768px) {

  .search-form-overlay .form-item {
    width: 100%;
    max-width: none;
  }
.search-form-inner .form-type-search{
  width: 94%;
}
  .search-form-overlay .form-control,
  .search-form-overlay input[type="search"],
  .search-form-overlay input[type="text"] {
    font-size: 16px;
    padding: 14px 18px;
  }

  .search-form-overlay .form-submit,
  .search-form-overlay button[type="submit"] {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }
}

/* Dark theme support for Search */
@media (prefers-color-scheme: dark) {
  .search-form-container {
    background: #2a2a2a;
    color: white;
  }

  .search-form-overlay .form-control,
  .search-form-overlay input[type="search"],
  .search-form-overlay input[type="text"] {
    background: #333;
    border-color: #555;
  }

  .search-form-overlay .form-control:focus,
  .search-form-overlay input[type="search"]:focus,
  .search-form-overlay input[type="text"]:focus {
    border-color: #4da6ff;
  }
}

/* ===============================================
   KSU Teaser Styling (Article Cards)
   =============================================== */

.ksu-teaser-wrapper {
  background: #fff;
  overflow: hidden;
}
.ksu-teaser-wrapper-small .field--name-title{
  font-size: 22px;
  font-weight: 700;
  color: #000;
}
.ksu-teaser-wrapper-small .ksu-teaser-author{
  font-weight: 500 !important;
}
/* Image Section with Overlay */
.ksu-teaser-image-section {
  position: relative;
  overflow: hidden;
}

.ksu-teaser-image {
  width: 100%;
  min-height: 250px;
  overflow: hidden;
}
.node--view-mode-last-news .ksu-teaser-image {
  min-height: unset !important;
  height: 250px;
}

.full-row .ksu-teaser-image {
  max-height: 430px;
}

.ksu-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 250px;
}

.ksu-teaser-image .field--type-image {
  margin: 0!important;
  float: unset !important;
}
.small-news-block .ksu-teaser-image-section{
  border-radius: 16px;
  overflow: hidden;
}
.small-news-block .field--name-title{
  font-size: 18px;
}
/* Overlay on Image */
.ksu-teaser-overlay {
  /* position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: linear-gradient(to bottom, #ffffff00, #dddddd00, #00000057, #0000005c, #0000008c); */
  padding: 4px 10px;
  color: white;
}

/* Title on Image */
.ksu-teaser-title {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
}

.ksu-teaser-title a {
  color: #000!important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ksu-teaser-title a:hover {
  text-decoration: none;
}

/* Meta Information */
.ksu-teaser-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  opacity: 0.9;
}

.ksu-teaser-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 400;
  color: #000;
}
.date-own{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subtitle Section Below Image */
.ksu-teaser-subtitle-section {
  padding: 20px 10px;
  display: none;
}

.ksu-teaser-subtitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline;
  float: left;
  padding-inline-end: 10px;
}

.ksu-teaser-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #008FC4;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
}

.ksu-teaser-read-more:hover {
  color: #0056b3;
  text-decoration: none;
}

.ksu-teaser-read-more:hover::after {
  transform: translateX(-3px);
}

/* RTL Support for Teaser */
[dir="rtl"] .ksu-teaser-meta {
  direction: rtl;
}

[dir="rtl"] .ksu-teaser-title {
  text-align: right;
  font-size: 24px;
  font-weight: 700;
  color: #F7F7F4;
  margin-bottom: 0;
}

[dir="rtl"] .ksu-teaser-subtitle {
  text-align: right;
  float: right;
}

[dir="rtl"] .ksu-teaser-read-more:hover::after {
  transform: translateX(3px);
}

/* Mobile Responsiveness for Teaser */
@media (max-width: 768px) {
  .ksu-teaser-image {
    height: 200px;
  }

  .ksu-teaser-title {
    font-size: 16px;
  }

  .ksu-teaser-meta {
    font-size: 12px;
    gap: 10px;
  }

  .ksu-teaser-subtitle {
    font-size: 14px;
  }

  .ksu-teaser-subtitle-section {
    padding: 15px;
  }
}

.node--view-mode-teaser.node--type-post {
  margin: 0;
  border: unset;
}

/* ===============================================
   University Podcast Block Styling
   =============================================== */

.university-podcast-block {
  background: #fff;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.podcast-wrapper {
  position: relative;
  cursor: pointer;
}

.podcast-image-link {
  display: block;
  text-decoration: none;
}

.podcast-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #008FC4;
  border-radius: 12px;
}

.podcast-image img {
  width: 100%;
  height: 100%;
}

.podcast-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(2px);
}

.university-podcast-block:hover .podcast-overlay {
  opacity: 1;
}

.play-button {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #008FC4;
  transform: scale(0.8);
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.university-podcast-block:hover .play-button {

  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.podcast-content {
  padding: 20px;
  text-align: center;
}

.podcast-title {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.podcast-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #008FC4;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border: 2px solid #008FC4;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.podcast-link:hover {
  background-color: #008FC4;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.podcast-link svg {
  transition: transform 0.3s ease;
}

.podcast-link:hover svg {
  transform: translate(2px, -2px);
}

/* RTL Support for University Podcast */
[dir="rtl"] .podcast-content {
  text-align: center;
  display: none;
}

[dir="rtl"] .podcast-link:hover svg {
  transform: translate(-2px, -2px);
}

/* Mobile responsiveness for University Podcast */
@media (max-width: 768px) {
  .podcast-image {
    height: 150px;
  }

  .podcast-title {
    font-size: 16px;
  }

  .podcast-content {
    padding: 15px;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }

  .podcast-link {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* Dark theme support for University Podcast */
@media (prefers-color-scheme: dark) {

  .podcast-title {
    color: #fff;
  }

  .podcast-link {
    color: #4da6ff;
    border-color: #4da6ff;
  }

  .podcast-link:hover {
    background-color: #4da6ff;
    color: #fff;
  }
}

/* ===============================================
   Caricature Block Styling
   =============================================== */
.block-caricature-block h2{
  font-size: 32px;
  font-weight: 700;
  color: #008FC4;
  margin-top: 50px;
}
.caricature-block {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  border: 1px solid #008FC4;
}

.caricature-block:hover {
  transform: translateY(-3px);
}

.caricature-wrapper {
  position: relative;
  cursor: pointer;
}

.caricature-image-link {
  display: block;
  text-decoration: none;
}

.caricature-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}

.caricature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.caricature-block:hover .caricature-image img {
  transform: scale(1.05);
}

.caricature-content {
  padding: 20px 0 0 0;
  text-align: center;
}

.caricature-title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

/* RTL Support for Caricature */
[dir="rtl"] .caricature-content {
  text-align: center;
}

/* Mobile responsiveness for Caricature */
@media (max-width: 768px) {
  .caricature-image {
    height: 150px;
  }

  .caricature-title {
    font-size: 16px;
  }

  .caricature-content {
    padding: 15px 0 0 0;
  }
}

/* ===============================================
   Events Calendar Block Styling
   =============================================== */
.block-events-calendar-block {
  margin-top: 50px;
}
.block-events-calendar-block h2{
  font-size: 32px;
  font-weight: 700;
  color: #008FC4;
}
.events-calendar-block {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  clear: both;
  border: 1px solid #008FC4;
}
.events-calendar-block .calendar-table {
  border-collapse: separate;
  border-spacing: 5px;
  margin: 0;
}
.calendar-header {
  text-align: center;
}

.calendar-title {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.calendar-wrapper {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.calendar-weekdays th {
  background-color: #fff;
  padding: 8px 6px;
  text-align: center;
  font-weight: 600;
  color: #000;
  font-size: 10px;
  border-radius: 3px;
}

.calendar-day {
  width: 14.28%;
  border: 1px solid #0000003e;
  vertical-align: top;
  background-color: #fff !important;
  transition: background-color 0.2s ease;
  padding: 0!important;
  /* box-shadow: -0.9px -1.1px 0px 0px rgb(0 0 0 / 11%) !important; */
}

.calendar-day.empty-day {
  background-color: #fff;
  border: 1px solid #ddd;
}

.calendar-day.has-events {
  background-color: #fff;
}

.calendar-day:hover:not(.empty-day) {
  background-color: #f5f5f5;
}

.day-content {
  padding: 4px 6px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.day-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 6px;
  margin: -6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex: 1;
}

.day-link:hover {
  background-color: #fff;
  text-decoration: none;
  color: inherit;
}

.day-number {
  font-weight: 600;
  color: #000;
  display: block;
  text-align: center;
  font-size: 13px;
}

.event-markers {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin-top: 2px;
  flex-wrap: wrap;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.event-marker {
  width: 100%;
  height: 5px;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.calendar-legend {
  margin-top: 6px;
}

.legend-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.legend-text {
  font-size: 11px;
  color: #646464;
}

/* RTL Support for Calendar */
[dir="rtl"] .calendar-table {
  direction: rtl;
}

[dir="rtl"] .legend-items {
  direction: rtl;
}

/* Mobile responsiveness for Calendar */
@media (max-width: 768px) {
  .events-calendar-block {
    padding: 15px;
  }

  .calendar-title {
    font-size: 20px;
  }

  .calendar-table {
    font-size: 12px;
  }

  .calendar-weekdays th {
    padding: 8px 4px;
  }

  .calendar-day {
    height: 50px;
  }

  .day-content {
    padding: 4px;
  }

  .day-link {
    padding: 4px;
    margin: -4px;
  }

  .event-marker {
    width: 4px;
    height: 4px;
  }

  .legend-items {
    gap: 10px;
  }

  .legend-text {
    font-size: 11px;
  }
}

.border-rs {
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #008FC4;
}

.node-post-card .field__label {
  display: none;
}

.node-post-card .node--title {
  margin: 5px 0;
}

.node-post-card .node--title span {
  font-weight: 700;
  font-size: 20px;
  line-height: 25px;
  letter-spacing: 0;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Only 1 line */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-post-card .node--title a {
  color: #162A53;
  text-decoration: none;
}

.node-post-card .ksu-card-subtitle {
  font-weight: 500;
  font-size: 13px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: right;
  color: #000;
  padding: 8px 0;
}

/* ===============================================
   Footer Block Styling
   =============================================== */

.footer-block {
  background: #162B53;
  color: white;
  padding: 50px 15px 0 15px !important;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.site-footer .block-footer-block {
  margin: 0!important;
}


.footer-menu-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column!important;
}

.footer-menu-section ul li {
  text-align: end;
  margin-bottom: 8px;
}
.footer-menu-section ul li a{
  padding: 0;
  text-align: left;
}

.footer-menu-section ul li a {
  color: white !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-menu-section ul li a:hover {
  color: #4da6ff;
}

.footer-logo-section {
  flex-shrink: 0;
  text-align: center;
}

.footer-logo {
  height: auto;
  max-width: 300px;
}

.footer-separator {
  border: none;
  height: 1px;
  background-color: #FFF !important;
  margin: 10px 0;
  opacity: 1;
}

.footer-copyright {
  text-align: center;
}

.copyright-text {
  font-size: 14px;
  font-weight: 500;
  color: white !important;
  line-height: 1.5;
}

/* RTL Support for Footer */
[dir="rtl"] .footer-content {
  flex-direction: row-reverse;
}


[dir="rtl"] .footer-copyright {
  text-align: center;
}

/* Mobile responsiveness for Footer */
@media (max-width: 768px) {
  .region-sidebar,
  .paper-version-content{
    max-width: 300px;
    margin: auto;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-menu-section {
    margin-right: 0;
  margin-left: 0;
    order: 2;
  }

  .footer-logo-section {
    order: 1;
    text-align: center;
  }

  .footer-logo {
    max-width: 120px;
  }

  .footer-copyright {
    padding: 10px 0;
  }

  .copyright-text {
    font-size: 13px;
  }
}

/* RTL Mobile support for Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-menu-section {
    margin-left: 0;
  }
}

.block-ksu-breaking-news-block {
  padding: 0;
}

/* ===============================================
   Release Version Block Styling
   =============================================== */

.release-version-text {
  font-size: 12px;
  color: #666;
  margin: 0;
  max-width: 300px;
  line-height: 1.4;
}

/* RTL support */
[dir="rtl"] .release-version-text {
  text-align: right;
}

/* Responsive design */
@media (max-width: 768px) {
  .release-version-text {
    max-width: 100%;
    font-size: 11px;
    text-align: center !important;
  }
}

/* ===============================================
   Most Read & Paper Version Block Styling
   =============================================== */

.most-read-paper-version-block .section-title {
  font-size: 32px;
  font-weight: 500;
  color: #008FC4;
  margin-bottom: 20px;
  text-align: start;
}

/* Most Read Articles Section */
.most-read-section {
  padding-right: 20px;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  transition: all 0.3s ease;
}

.article-category {
  color: #008FC4;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 100px;
}

.article-title {
  display: flex;
  align-items: center;
  color: #000;
  text-decoration: none;
  font-size: 22px;
  position: relative;
  margin-right: 50px;
  transition: 0.3s ease-in-out;
  font-weight: 700;
}
.article-title::before {
  content: "";
  margin-left: 40px;
  width: 22px;
  height: 15px;
  background-color: #008FC4;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -43px;
}

.article-title:hover {
  color: #008FC4;
}

.no-articles {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* Paper Version Section */
.paper-version-section {
  text-align: center;
}

.paper-version-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  border: 1px solid #008FC4;
}

.paper-version-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
  margin: auto;
}

.paper-version-link:hover {
  transform: scale(1.02);
}

.paper-version-image {
  max-width: 96%;
  height: auto;
  /* border-radius: 8px; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* margin-bottom: 10px; */
  border: 0;
  margin: 5px;
}

.paper-version-title {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

.no-paper-version {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* RTL Support */
[dir="rtl"] .most-read-section {
  padding-right: 0;
  padding-left: 20px;
}

[dir="rtl"] .article-item {
  flex-direction: row-reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
  .most-read-paper-version-block {
    padding: 15px;
  }

  .most-read-section {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .article-item {
    padding: 10px;
  }

  .article-category {
    font-size: 14px;
    padding: 3px 6px;
  }

  .section-title {
    font-size: 16px;
  }

  .paper-version-image {
    width: 280px;
    height: 368px;
  }
}

/* ===============================================
   Most Watch Videos Block
   =============================================== */
.most-watch-videos-block {
  margin: 30px 0;
}

.most-watch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.most-watch-item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}

.most-watch-thumb {
  width: 100%;
  height: 250px; /* 390x250 aspect approximation */
  background: #000;
}

.most-watch-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.most-watch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.7) 100%);
}

.most-watch-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.most-watch-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .most-watch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .most-watch-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================================
   Calendar Navigation Styles
   =============================================== */
.calendar-prev.disabled,
.calendar-next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-prev:hover:not(.disabled),
.calendar-next:hover:not(.disabled) {
  opacity: 0.8;
}

.calendar-month-wrapper {
  transition: opacity 0.3s ease;
}

/* ===============================================
   Post Template Styles
   =============================================== */
.node--type-post.node--view-mode-full {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.node--type-post.node--view-mode-full .container {
  max-width: 1000px;
}

.node--type-post.node--view-mode-full h2.fw-bold {
  color: #2c3e50;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.node--type-post.node--view-mode-full .subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  font-style: italic;
}

.node--type-post.node--view-mode-full .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.node--type-post.node--view-mode-full .badge.bg-primary {
  background-color: #007bff !important;
}

.node--type-post.node--view-mode-full .badge.bg-secondary {
  background-color: #6c757d !important;
}

.node--type-post.node--view-mode-full .meta-info {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.node--type-post.node--view-mode-full .meta-info span {
  display: inline-block;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}

.node--type-post.node--view-mode-full .meta-info i {
  color: #007bff;
  width: 16px;
}

.node--type-post.node--view-mode-full .subtitle-section h3 {
  color: #007bff;
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.node--type-post.node--view-mode-full .issue-info {
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
}

.node--type-post.node--view-mode-full .issue-info h4 {
  color: #495057;
  margin-bottom: 1rem;
}

.node--type-post.node--view-mode-full .footer-meta {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  margin-top: 3rem;
  padding-top: 2rem;
}

/* Post Template Specific Styles */
.post-meta-container {
  max-width: 890px;
}

.post-content-container {
  max-width: 890px;
}

/* Social Links Styling */
.social-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}

.social-links .social-link:hover {
  background-color: #007bff;
  border-color: #007bff;
  transform: translateY(-2px);
}

.social-links .social-link:hover img {
  filter: brightness(0) invert(1);
}

.social-links .social-link img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Ensure no text content is visible */
.social-link::before,
.social-link::after {
  display: none !important;
}

.social-link * {
  pointer-events: none;
}

/* Pinned state styling */
.social-link.pinned {
  background-color: #28a745;
  border-color: #28a745;
}

.social-link.pinned img {
  filter: brightness(0) invert(1);
}

/* Toast notifications */
.post-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
  font-size: 14px;
}

.post-toast.show {
  transform: translateX(0);
}

/* Post Image Corner Radius */
.node--type-post.node--view-mode-full img {
  border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .node--type-post.node--view-mode-full h2.fw-bold {
    font-size: 2rem;
  }

  .node--type-post.node--view-mode-full .meta-info span {
    display: block;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .node--type-post.node--view-mode-full .footer-meta .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .node--type-post.node--view-mode-full .footer-meta .d-flex > div {
    margin-bottom: 1rem;
  }

  .social-links {
    gap: 6px;
  }

  .social-link {
    width: 30px;
    height: 30px;
  }

  .social-link img {
    width: 18px;
    height: 18px;
  }
}

/* ===============================================
   Featured Posts Block Styling
   =============================================== */

.featured-posts-block {
  margin: 30px 0;
}

.featured-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.featured-post-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-item:hover {
  transform: translateY(-2px);
}

.featured-posts-empty {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.no-posts-message {
  margin: 0;
  color: #6c757d;
  font-style: italic;
  font-size: 16px;
}

/* RTL Support for Featured Posts */
[dir="rtl"] .featured-posts-block {
  direction: rtl;
}

/* Mobile responsiveness for Featured Posts */
@media (max-width: 768px) {
  .featured-posts-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .featured-post-item {
    margin-bottom: 15px;
  }

  .featured-posts-empty {
    padding: 30px 15px;
  }

  .no-posts-message {
    font-size: 14px;
  }
}

/* ===============================================
   Last Articles Block Styling
   =============================================== */

.last-articles-block {
  margin: 30px 0;
}

.last-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.last-article-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.last-article-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.last-articles-empty {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.no-articles-message {
  margin: 0;
  color: #6c757d;
  font-style: italic;
  font-size: 16px;
}

/* RTL Support for Last Articles */
[dir="rtl"] .last-articles-block {
  direction: rtl;
}

/* Mobile responsiveness for Last Articles */
@media (max-width: 768px) {
  .last-articles-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .last-article-item {
    margin-bottom: 15px;
  }

  .last-articles-empty {
    padding: 30px 15px;
  }

  .no-articles-message {
    font-size: 14px;
  }
}
/* ===============================================
   Caricatures Carousel Styling
   =============================================== */

.ksu-caricatures-carousel {
  max-width: 100%;
  margin: 0 auto;
}

.ksu-carousel-main-image {
  text-align: center;
  margin-bottom: 20px;
  max-width: 761px;
  margin: auto;
}
.ksu-carousel-main-image > div{
  width: 100%;
}
.ksu-carousel-main-image img{
  width: 100%;
}

.ksu-active-image-container {
  display: inline-block;
}

.ksu-active-image-container img {
  max-width: 100%;
  height: auto;
}

.ksu-carousel-thumbnails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.ksu-carousel-nav {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: bold;
  border: 0;
  background-color: transparent;
}
.ksu-carousel-nav span{
  font-size: 24px;
}

.ksu-carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ksu-thumbnails-container {
  display: flex;
  gap: 25px;
  overflow: hidden;
  justify-content: center;
}

.ksu-carousel-thumbnail {
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
  border: 2px solid transparent;
}

.ksu-carousel-thumbnail:hover {
  opacity: 1;
}

.ksu-carousel-thumbnail.active {
  opacity: 1;
  border-color: #008FC4;
}

.ksu-carousel-thumbnail {
  width: 140px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}
.ksu-carousel-thumbnail div{
  width: 100%;
  height: 100%;
}
.ksu-carousel-thumbnail img {
  width: 100%;
  object-fit: fill;
  border-radius: 4px;
  height: 100%;
}

@media (max-width: 768px) {

  .ksu-carousel-thumbnail img {
    width: 60px;
    height: 45px;
  }
  .ksu-carousel-thumbnail{
    width: auto;
    height: auto;
  }
}

.node--type-post.node--view-mode-news-listing .field--name-field-image img {
  max-width: 100%;
}

.view-id-posts .js-pager__items.pager,
.view-search .js-pager__items.pager,
.view-id-paper_release .js-pager__items.pager,
.view-id-taxonomy_term .js-pager__items.pager {
  list-style: none;
  padding: 0;
}

.view-id-posts .js-pager__items.pager li,
.view-search .js-pager__items.pager li,
.view-id-paper_release .js-pager__items.pager li,
.view-id-taxonomy_term .js-pager__items.pager li {
  text-align: end;
  padding: 10px 0;
}

.view-id-posts .js-pager__items.pager li a,
.view-search .js-pager__items.pager li a,
.view-id-paper_release .js-pager__items.pager li a,
.view-id-taxonomy_term .js-pager__items.pager li a {
  text-decoration: none;
  font-weight: 600;
  color: #000;
}

.view-id-posts .js-pager__items.pager li a::after,
.view-id-taxonomy_term .js-pager__items.pager li a::after {
  content: ">>";
  font-size: small;
  padding: 0 3px;
}

.ksu-teaser-image-section .ksu-teaser-image .field--name-field-image .field__item:nth-child(2) {
  display: none;
}

.field--name-field-image .field__item:not(:nth-child(1)) {
  display: none;
}

.view-id-posts.view-display-id-university_community .node--view-mode-teaser.node--type-post {
  max-width: 890px;
  margin: auto;
}

.view-id-posts.view-display-id-university_community .ksu-teaser-overlay {
  bottom: 0;
}

.node--view-mode-card-2 .card {
  min-height: 250px;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
}
.node--view-mode-card-2 .card .card-body .card-title a{
  font-size: 15px !important;
  font-weight: 400;
  text-align: center;
  display: block;
}
.node--view-mode-card-2 .card .card-body{
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 10px;
}
.node--view-mode-card-2 .card .card-body .ksu-card-date{
  font-size: 13px;
  font-weight: 400;
  color: #6F6F6F;
}

.node--view-mode-card-2 .card .ksu-card-image div,
.node--view-mode-card-2 .card .ksu-card-image img{
  width: 100%;
}

.view .more-link {
  text-align: end;
  padding: 15px 0;
}

.view .more-link a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #162A53;
}

/* ===========================================
 * Video Modal Styles
 * =========================================== */

.video-content {
  padding: 20px;
}

.video-thumbnail-container {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.play-icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.play-icon-overlay:hover {
  background: rgba(0,0,0,0.2);
}

.play-icon {
  transition: transform 0.3s ease;
}

.play-icon-overlay:hover .play-icon {
  transform: scale(1.1);
}

.video-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
}

.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  background: #000;
  border-radius: 8px;
  max-width: 95vw;
  max-height: 90vh;
  position: relative;
}

.video-modal-header {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10000;
}

.close-modal {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background 0.3s ease;
}

.close-modal:hover {
  background: rgba(255,255,255,0.3);
}

.video-modal-body {
  padding: 20px;
}

#videoPlayer {
  width: 100%;
  max-width: 1600px;
}

#videoPlayer iframe,
#videoPlayer video {
  width: 800px!important;
  height: 450px!important;
  display: block;
}

@media screen and (max-width: 768px) {
  #videoPlayer iframe,
  #videoPlayer video {
    width: 300px!important;
    height: 169px!important;
    display: block;
  }
}

#videoPlayer iframe {
  border: none;
  width: 100%;
  height: 100%;
}

#videoPlayer video {
  width: 100%;
  height: 100%;
}

[dir="rtl"] .node .field--type-image,
.field--type-image img {
  margin: 0!important;
  padding: 0!important;
}

.node--view-mode-teaser.node--type-video {
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

#views-bootstrap-videos-block-1 .row {
  justify-content: center;
  column-gap: 30px;
}

.node--type-post.node--view-mode-agenda  .trimmed p:last-of-type {
  display: inline;
}

.node--type-post.node--view-mode-agenda .image-wrapper img {
  border-radius: 12px;
}

.node--type-post.node--view-mode-agenda .card-title::after {
  content: "";
  background: url(/themes/custom/ksu_news/icons/agenda.svg);
  position: absolute;
  width: 51px;
  height: 45px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  left: 10px;
  top: 10px;
}

.node-post-reports .border-rs {
  min-height: 170px;
}

.view-university-community .node--type-post.node--view-mode-teaser {
  max-width: 890px;
  margin: auto;
}
.release-version-text{
  font-size: 12px;
  font-weight: 400;
  color: #000 !important;
}
/* social links */
.social-media-links--platforms{
  margin-bottom: 0;
}
.social-media-links--platforms span{
  color: #008FC4;
  font-size: 20px;
}
.header-top .region-header-top > div,
.header-top .region-header-top > a{
  width: calc(100% / 3);
}
.alerts-region .container-fluid{
  padding: 0;
}
.header-top .region-header-top {
  padding-bottom: 6px;
  border-bottom: 1px solid #162A53;
}
.header-top .region-header-top .contextual-region .release-version-block p{
  font-size: 12px;
  font-weight: 400;
  color: #000;
}
.header-top .region-header-top > a{
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.header-top .region-header-top .navbar-brand img{
  width: 400px;
}
.header-top .region-header-top .search-block-form{
  display: flex;
  justify-content: flex-end;
}
.header-top .region-header-top .search-block-form .content{
  display: flex;
}
.block-ksu-content,
.block-views{
  overflow: hidden;
}
.block-views-blockposts-last-news > h2,
.block-views-blockposts-articles > h2,
.block-views-blockposts-reports > h2,
.block-most-watch-videos-block > h2,
.block-most-read-paper-version-block > h2,
.block-views-blockposts-exchanges > h2,
.view .view-header h2,
.text-formatted:not(.field__item) h2,
.custom-block h2,
.contextual-region.block h2.text-formatted {
  font-size: 30px;
  font-weight: 700;
  color: #008FC4;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}
.block-views-blockposts-reports > h2,
.block-most-watch-videos-block > h2,
.block-views-blockposts-articles > h2,
.block-most-read-paper-version-block > h2,
.block-views-blockposts-exchanges > h2,
.view .view-header h2,
.text-formatted:not(.field__item) h2,
.contextual-region.block h2.text-formatted {
  margin-bottom: 30px;
}
.block-views-blockposts-last-news > h2::after,
.block-views-blockposts-articles > h2::after,
.block-views-blockposts-reports > h2::after,
.block-most-watch-videos-block > h2::after,
.block-most-read-paper-version-block > h2::after,
.block-views-blockposts-exchanges > h2::after,
.view .view-header h2::after,
.text-formatted:not(.field__item) h2::after,
.contextual-region.block h2.text-formatted::after {
  content: "";
  height: 3px;
  position: absolute;
  top: 50%;
  transform: translatey(-50%);
  /* left: 0; */
  /* right: 150px; */
  background-color: #6FC0DD;
  width: 100%;
  margin-right: 20px;
}

.block-views-blockposts-reports .border-rs,
.node-post-card .border-rs,
.block-views-blockposts-exchanges .border-rs{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.block-views-blockposts-articles .image-container,
.node-post-card .image-container,
.block-views-blockposts-exchanges .image-container,
.block-views-blockposts-reports .image-container{
  width: 79px;
  margin-left: 20px;
}
.block-views-blockposts-articles .content-container,
.block-views-blockposts-exchanges .content-container,
.node-post-card .content-container,
.block-views-blockposts-reports .content-container{
  width: calc(100% - 79px);
}
.block-views-blockposts-articles .ksu-card-views,
.block-views-blockposts-reports .ksu-card-views,
.node-post-card .ksu-card-views,
.block-views-blockposts-articles .ksu-card-date,
.block-views-blockposts-reports .ksu-card-date,
.last-article-item .ksu-card-date,
.node-post-card .ksu-card-date,
.last-article-item .ksu-card-views{
  font-size: 13px;
  font-weight: 400;
  color: #8D8D8D !important;
}
.block-views-blockposts-articles .field--name-user-picture{
  width: 100%;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}
.block-views-blockposts-reports .image-container .field--name-field-image,
.block-views-blockposts-reports .image-container .field--name-field-image .field__item,
.block-views-blockposts-exchanges .image-container .field--name-field-image .field__item{
  width: 100%;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.block-views-blockposts-articles .field--name-user-picture img,
.last-article-item .node-post-card .image-container img,
.block-views-blockposts-reports .image-container img,
.block-views-blockposts-exchanges .image-container img{
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.block-views-blockposts-articles .contextual-region,
.block-views-blockposts-articles .contextual-region .item-wrapper,
.block-views-blockposts-articles .node-post-card,
.block-views-blockposts-articles .item-wrapper{
  height: 100%;
}

.block-views-blockposts-articles .item-wrapper:hover,
.node-post-card .item-wrapper:hover,
.block-views-blockposts-exchanges .item-wrapper:hover,
.view-display-id-reports .border-rs:hover{
  background-color: #0090c413;
}
.block-views-blockposts-articles .field--name-title{
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #162A53 !important;
}

.last-article-item .small_thin_grey,
.node-post-card .small_thin_grey,
.block-views-blockposts-exchanges .small_thin_grey{
  font-size: 13px !important;
  font-weight: 500;
  color: #000 !important;
  line-height: 14px;
  margin-top: 5px;
}
.block-views-blockposts-articles .auther-title{
  font-size: 16px !important;
  font-weight: 700;
  color: #008FC4 !important;
}
.block-views-blockposts-last-news .ksu-teaser-title{
  font-size: 16px;
  font-weight: 400;
  color: #FFF;
  line-height: 17px !important;
}
.block-views-blockposts-last-news .ksu-teaser-overlay{
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}
.block-views-blockposts-last-news .ksu-teaser-image{
  border-radius: 6px;
  overflow: hidden;
}
.block-views-blockposts-last-news .ksu-teaser-meta span{
  font-size: 12px;
}
.block-views-blockposts-reports .node-post-reports p{
    font-weight: 500;
    font-size: 13px;
}
.block-views-blockposts-articles .border-rs{
    border: 0;
    box-shadow: 0 0 10px #DDD;
}
.block-views-blockposts-articles {
  overflow: unset !important;
}
.block-views-blockposts-articles .image-container{
    border-radius: 50%;
    overflow: hidden;
}
.block-views-blockposts-articles .image-container img{
    object-fit: fill !important;
}

/* main article page */
.main-article .main-title{
  font-size: 48px;
  font-weight: 500;
}
.main-article .main-article-image img{
  width: 100%;
  object-fit: cover;
}
.main-article .post-info {
  display: flex;
  gap: 15px;
}
.main-article .post-info span{
  font-size: 12px;
  font-weight: 500;
  color: #535353;
}
.main-article .post-content-container p{
  font-size: 18px;
  font-weight: 500;
  margin-top: 50px;
}
.block-featured-posts-block > h2,
.block-last-articles-block > h2{
  font-size: 32px;
  font-weight: 700;
  color: #008FC4;
  margin-bottom: 0;
}
.burger-menu-open,
.burger-menu-close{
  display: none;
}
.block-most-watch-videos-block{
  margin-bottom: 100px;
}
.section-h .node-post-reports ,
.section-h article > div{
  height: 100%;
}
.block-views-blockposts-exchanges .node-post-card,
.block-views-blockposts-exchanges .node-post-card > div{
  height: 100%;
}

.views-element-container > .view-paper-release.view-id-paper_release > .view-content .field-content{
  width: 524px !important;
  height: auto !important;
  background-color: #D9D9D9;
  border-radius: 19px;
  overflow: hidden;
  padding: 10px;
  margin: 40px auto 100px auto;
}
.views-element-container > .view-paper-release.view-id-paper_release > .view-content img{
  width: 100% !important;
  height: auto !important;
}
.view-taxonomy-term.view-id-taxonomy_term .view-content .views-view-responsive-grid__item,
.view-taxonomy-term.view-id-taxonomy_term .view-content .views-view-responsive-grid__item .views-view-responsive-grid__item-inner ,
.view-taxonomy-term.view-id-taxonomy_term .view-content .views-view-responsive-grid__item .views-view-responsive-grid__item-inner .node--view-mode-card,
.view-taxonomy-term.view-id-taxonomy_term .view-content .views-view-responsive-grid__item .views-view-responsive-grid__item-inner .node--view-mode-card .item-wrapper{
  height: 100% !important;
}
.dropdown-item.active, .dropdown-item:active{
  background-color: #efefef !important;
}

/* contact form */
.contact-form {
  max-width: 500px;
}
.contact-form .form-item-name{
  margin-bottom: 0 !important;
}
.contact-form .form-item-name,
.contact-form .form-item-mail{
  font-size: 16px;
  font-weight: 400;
  text-align: center;
}
.contact-form .form-type-textfield label ,
.contact-form .form-type-email label ,
.contact-form .form-type-textarea label {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #008FC4;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}
.contact-form .form-check {
  display: flex;
  justify-content: flex-start;
}
.contact-form .form-check input {
  float: unset !important;
  margin-left: 10px !important;
  cursor: pointer;
}
.contact-form .form-check label {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #008FC4;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}
.contact-form .form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
}
/* Shared styles for both buttons */
.contact-form .form-actions .form-submit {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  width: auto !important;
}

/* First button (Primary - Blue) */
.contact-form .form-actions .form-submit:nth-of-type(1) {
  background-color: #008FC4;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 143, 196, 0.2);
}

.contact-form .form-actions .form-submit:nth-of-type(1):hover {
  background-color: #006fa0;
  box-shadow: 0 6px 12px rgba(0, 111, 160, 0.3);
}

.contact-form .form-actions .form-submit:nth-of-type(2) {
  background-color: #F0F0F0;
  color: #333;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-form .form-actions .form-submit:nth-of-type(2):hover {
  background-color: #e0e0e0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
.menu-over{
  background-color: #00000043;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 99;
  display: none !important;
}
.menu-over-show{
  display: block !important;
}
.view-search .node--view-mode-news-listing .field--name-field-image ,
.view-search .node--view-mode-news-listing .field--name-field-image div {
  width: 100%;
}
.view-search .node--view-mode-news-listing .field--name-field-image img{
  width: 100%;
  object-fit: cover;
}
.view-search .node--view-mode-news-listing .news-content {
  min-height: 100%;
  border-bottom: 3px solid #6FC0DD;
}
.view-search .node--view-mode-news-listing .news-content h3 a{
  font-size: 24px;
  font-weight: 500;
}
.view-search .node--view-mode-news-listing .news-content p{
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
}
.view-search .js-pager__items.pager li a{
  font-size: 16px;
  font-weight: 700;
  color: #162A53;
}
/* responsive */
@media (max-width: 1200px) {
  .main-article .main-title {
    font-size: 30px;
  }
  .node-post-card .node--title span{
    font-size: 20px;
  }
}
@media (max-width: 768px) {
  .burger-menu-open{
    display: block;
    position: absolute;
    top: 41px;
    right: 34px;
  }
  .burger-menu-close{
    display: block;
    margin: 0 auto 0 0;
  }
  .header-bottom .menu--main{
    position: fixed;
    top: 0;
    right: -240px;
    bottom: 0;
    background: #FFF;
    z-index: 99;
    padding: 20px;
    overflow-x: scroll;
    width: auto;
    transition: all 0.3s ease-in-out;
  }
  .openedMenu{
    right: -12px !important;
  }
  .header-bottom .menu--main ul{
    flex-direction: column;
    flex-wrap: nowrap;
    display: block !important;
    margin: 0;
    padding: 0;
    padding: 20px 20px 20px 50px;
  }
  .header-bottom .menu--main ul a{
      text-wrap: nowrap;
  }
  .header-bottom .menu--main ul .dropdown-menu{
    border: 0;
    text-align: right;
    padding: 0 20px 0 0;
  }
  .breaking-news-item-title a{
    font-size: 17px;
  }
  .article-title{
    font-size: 16px;
  }
  .article-category{
    min-width: 70px;
  }
  .social-media-links--platforms{
    justify-content: center;
    display: flex;
    margin: 0;
    padding: 20px 20px 20px 60px;
  }
  .header-top .region-header-top {
    padding-bottom: 6px;
    border-bottom: 1px solid #162A53;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
  }
  .header-top .region-header-top > div, .header-top .region-header-top > a{
    width: 100%;
  }
  .header-top .region-header-top .contextual-region{
    order: 2;
  }
  .header-top .region-header-top .navbar-brand {
    order: 1;
  }
  .header-top .region-header-top .search-block-form {
    order: 3;
    display: flex;
    justify-content: center;
  }
  .header-top .region-header-top .contextual-region .release-version-block p {
    text-align: center;
    margin: 10px 0;
  }
  .header-bottom .menu--main ul li a {
    font-size: 14px;
  }
  .block-views-blockposts-articles .node-post-card{
    padding: 10px;
  }
  .main-article .main-title {
    font-size: 24px;
  }
  [dir="rtl"] .article-item {
    flex-direction: column-reverse;
    align-items: flex-start;
}
}
@media (max-width: 576px) {
  .views-element-container > .view-paper-release.view-id-paper_release > .view-content .field-content{
  width: 90% !important;
  margin: 0 auto 40px auto;
  }
  .view-search .node--view-mode-news-listing .news-content h3 a{
    font-size: 20px;
  }
  .view-search .node--view-mode-news-listing .news-content p {
    font-size: 14px;
    font-weight: 500;
  }
}

input.search-submit-icon {
  background: url('/themes/custom/ksu_news/icons/arrow.svg') no-repeat center;
  width: 24px;
  height: 24px;
  border: none;
  transition: transform 0.2s ease, border 0.2s ease;
}

input.search-submit-icon:focus,
input.search-submit-icon:focus-within,
input.search-submit-icon:active,
input.search-submit-icon:hover {
  background-color: transparent;
  transform: scale(1.1);
}

.search-exposed-form details.bef--secondary:not([open]) + .form-actions {
  display: none;
}

.search-exposed-form details.bef--secondary {
  width: 100%;
  max-width: 430px;
}

.search-exposed-form {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  direction: rtl;
}

.search-exposed-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.search-exposed-form input.form-control:not([type="submit"]) {
  background: #f7f7f7;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  color: #444;
  max-width: 320px;
}

.search-exposed-form input.form-control:not([type="submit"])::placeholder {
  color: #aaa;
}

.search-exposed-form .search-submit-icon {
  background: url("/themes/custom/ksu_news/icons/arrow.svg") no-repeat center center;
  background-size: 18px 18px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0;
}

.search-exposed-form .search-submit-icon:hover {
  background-color: #f0f0f0;
  transform: scale(1.1);
}

.search-exposed-form details summary {
  font-weight: 600;
  color: #0077b6;
  cursor: pointer;
  margin: 10px 0;
  text-align: end;
}

.search-exposed-form details summary::marker {
  content: "";
}

.search-exposed-form details .details-wrapper {
  margin-top: 10px;
}

.search-exposed-form .form-advanced input.form-control {
  margin-bottom: 12px;
}

.search-exposed-form .form-basic,
.search-exposed-form .form-advanced {
  text-align: right;
}

.search-exposed-form .js-form-item {
  display: flex;
  align-items: center;
  column-gap: 10px;
  justify-content: space-between;
  max-width: 430px;
  width: 100%;
}

form[data-drupal-selector="views-exposed-form-search-search"] {
  background-color: #fff;
  padding: 10px;
}

form[data-drupal-selector="views-exposed-form-search-search"] .search-exposed-form {
  width: 100%;
}

.block-views-blockposts-block-1 img {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
}

.block-views-blockposts-block-1 .views-row {
  padding: 10px;
}

.region.region-sidebar {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.region.region-sidebar > div {
  margin-top: 0!important;
  margin-bottom: 0!important;
}

.region.region-sidebar > div > h2 {
  margin-top: 0!important;
}

.post--full .flex-direction-nav a:before {
  font-size: 30px;
}
