
:root {
  --color-primary: #0f9085;
  --color-primary-dark: #0a9189;
  --color-gold: #fbca6d;
  --color-bronze: #93521f;
  --color-peach: #fbead9;
  --color-text: #231f20;
  --color-border: #d3d1d1;
  --font-heading: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  --font-body: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #fff;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.section-badge {
  display: inline-block;
  min-width: 200px;
  padding: 10px 24px;
  text-align: center;
  color: #fff;
  background-color: var(--color-bronze);
  border: 5px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.top-head {
  background-image: url("../images/head_pattern.png");
  background-repeat: repeat;
}

.top-head .logo-link {
  display: inline-block;
}

.top-head .logo-link img {
  max-height: 110px;
}

.top-head .tagline {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  margin: 0;
  width: 360px;
  white-space: normal;
  direction: rtl;
}

.top-head .top-head-end {
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.top-head .top-head-end .tagline {
  direction: rtl;
  text-align: right;
}

.main-nav {
  background-color: var(--color-primary);
  background-image: url("../images/blue_flora.png");
  background-repeat: repeat;
}

.main-nav .nav-link {
  color: #fff !important;
  font-size: 1.1rem;
  padding: 0.9rem 1rem !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background-color: var(--color-gold);
  color: var(--color-primary) !important;
}

.main-nav .dropdown-menu {
  background-color: var(--color-gold);
  border-radius: 0;
  border: none;
  padding: 0;
  margin-top: 0;
}

.main-nav .dropdown-item {
  color: var(--color-primary);
  font-size: 1.05rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px dotted #fff;
  white-space: normal;
}

.main-nav .dropdown-item:hover,
.main-nav .dropdown-item:focus {
  background-color: var(--color-primary);
  color: #fff;
}

@media (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu,
  .dept-nav .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

.hero {
  position: relative;
}

.hero .carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
}

.hero .carousel-caption-custom {
  position: absolute;
  bottom: 50px;
  right: 50px;
  left: 50px;
  text-align: right;
}

.hero .carousel-caption-custom p {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 15px;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  transition: background-color 0.2s ease-in-out;
}

.hero a:hover .carousel-caption-custom p {
  background-color: rgba(0, 0, 0, 0.8);
}

.hero .side-box {
  position: absolute;
  z-index: 10;
  top: 30px;
  left: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 10px;
}

.hero .side-box .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  font-size: 0.95rem;
}

.hero .side-box .social-links a:hover {
  color: var(--color-gold);
}

.home-search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 220px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 6px 4px 14px;
}

.top-head .home-search-form {
  width: 360px;
}

.home-search-form .form-control {
  border: none;
  box-shadow: none;
  padding: 2px 0;
  font-size: 0.9rem;
}

.home-search-form .form-control:focus {
  box-shadow: none;
}

.home-search-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  transition: background-color 0.2s ease-in-out;
}

.home-search-form-mobile {
  width: 100%;
  margin: 10px 0 16px;
}

.home-search-form button:hover {
  background-color: var(--color-primary-dark);
}

.marquee-bar {
  position: relative;
  height: 50px;
  background-color: var(--color-primary);
  border-top: 1px dotted var(--color-gold);
  border-bottom: 1px dotted var(--color-gold);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-bar .marquee-label {
  flex-shrink: 0;
  width: 170px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gold);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.marquee-bar .marquee-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-bar .marquee-content {
  display: inline-flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.marquee-bar .marquee-content a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  margin: 0 25px;
  font-size: 1.1rem;
  white-space: nowrap;
}

.marquee-bar .marquee-content a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--color-gold);
  margin-inline-end: 10px;
}

.marquee-bar .marquee-content a:hover {
  color: var(--color-gold);
}

.marquee-bar:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

.news-section {
  position: relative;
  margin-top: 40px;
  padding: 60px 15px 70px;
  border-top: 5px solid var(--color-bronze);
  border-bottom: 5px solid var(--color-bronze);
  background-color: var(--color-peach);
  background-image: url("../images/activitiesFlora.png");
  background-position: 102% 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.news-section .section-badge {
  position: absolute;
  top: -25px;
  right: 50%;
  transform: translateX(50%);
}

.news-card {
  display: block;
  color: inherit;
  transition: background-color 0.2s ease-in-out;
  padding: 10px;
}

.news-card:hover {
  background-color: rgba(147, 82, 31, 0.15);
  color: inherit;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card .info {
  display: flex;
  justify-content: space-between;
  color: gray;
  font-weight: bold;
  font-size: 0.9rem;
  margin: 8px 0;
}

.news-card p {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0;
}

.more-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: rgba(147, 82, 31, 0.1);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  transition: all 0.2s ease-in-out;
}

.more-link:hover {
  background-color: rgba(147, 82, 31, 0.9);
  color: #fff;
}

.books-section {
  position: relative;
  padding: 50px 0;
  background-image: url("../images/issues_pattern.png");
  background-repeat: repeat;
  background-size: 80px;
}

.book-panel {
  position: relative;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  padding-top: 60px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.book-panel .section-badge {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  min-width: 0;
  width: 100%;
  background-color: var(--color-primary);
  border: none;
  background-image: url("../images/blue_flora.png");
}

.issues-grid {
  flex: 1;
  padding: 10px;
}

.book-featured {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--color-text);
  padding: 10px;
  transition: background-color 0.2s ease-in-out;
}

.book-featured:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

.book-featured img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}

.book-featured p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 12px 0 0;
  text-align: center;
  flex-shrink: 0;
}

.issues-list-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.issues-list-col .book-list-item {
  flex: 1;
}

.issues-list-col .book-list-item img {
  width: 100px;
  height: 130px;
  object-fit: cover;
  flex-shrink: 0;
}

.book-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  padding: 10px;
  margin: 0 10px;
  border-bottom: 1px solid #c4c4c4;
  transition: background-color 0.2s ease-in-out;
}

.book-list-item:last-child {
  border-bottom: none;
}

.book-list-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

.book-list-item i {
  color: var(--color-primary);
}

.book-list-item img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

.book-list-item p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0;
}

.video-section {
  position: relative;
  padding-top: 70px;
  padding-bottom: 50px;
  text-align: center;
}

.video-section .section-badge {
  margin-bottom: 20px;
}

.video-card {
  position: relative;
  display: block;
  border: 1px solid #5a5a5a;
  overflow: hidden;
  color: var(--color-text);
  text-decoration: none;
  height: 100%;
}

.video-thumb {
  position: relative;
  display: block;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition: opacity 0.2s ease-in-out;
}

.video-thumb::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  color: #fff;
  font-size: 2rem;
  opacity: 0.7;
  transition: all 0.2s ease-in-out;
}

.video-card:hover .video-thumb::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.3);
}

.video-card:hover img {
  opacity: 0.85;
}

.video-card p {
  text-align: center;
  font-size: 1.05rem;
  padding: 8px 10px;
  margin: 0;
  color: var(--color-text);
}

.page-banner {
  position: relative;
  padding: 40px 0 45px;
  background-color: var(--color-primary);
  background-image: url("../images/blue_flora.png");
  background-repeat: repeat;
  color: #fff;
  text-align: center;
}

.page-banner .breadcrumb {
  justify-content: center;
  margin-bottom: 10px;
}

.page-banner .breadcrumb-item a {
  color: var(--color-gold);
}

.page-banner .breadcrumb-item.active {
  color: #fff;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
}

.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin: 0 0 10px;
}

.page-banner p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-peach);
}

.video-library-section,
.news-list-section {
  padding: 50px 0 60px;
  background-image: url("../images/issues_pattern.png");
  background-repeat: repeat;
  background-size: 80px;
}

.channel-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 45px;
  padding: 25px;
  background-color: #fff;
  border: 1px solid #e5e5e5;
}

.channel-cta i {
  font-size: 2.8rem;
  color: #ff0000;
}

.channel-cta p {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.video-watch-section {
  padding: 40px 0;
}

.video-player-panel {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  padding: 20px;
}

.video-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.video-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-player-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 20px 0 8px;
}

.video-watch-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: gray;
  font-size: 0.95rem;
  margin: 0;
}

.video-watch-meta i {
  color: #ff0000;
  font-size: 1.1rem;
}

.related-videos-title,
.related-news-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-bronze);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.article-section {
  padding: 40px 0;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.7;
  text-align: center;
  margin: 0 0 24px;
}

.article-hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

.share-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.share-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  transition: opacity 0.2s ease-in-out;
}

.share-icons a:hover {
  opacity: 0.85;
  color: #fff;
}

.share-icons .share-whatsapp {
  background-color: #25d366;
}

.share-icons .share-telegram {
  background-color: #229ed9;
}

.share-icons .share-twitter {
  background-color: #1da1f2;
}

.share-icons .share-facebook {
  background-color: #1877f2;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 18px;
  text-align: justify;
}

.topic-gallery-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  text-align: right;
  margin: 40px 0 16px;
}

.topic-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.topic-gallery-grid a {
  display: block;
  overflow: hidden;
}

.topic-gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.2s ease-in-out;
}

.topic-gallery-grid a:hover img {
  transform: scale(1.05);
}

.project-section {
  position: relative;
  padding: 60px 0 70px;
  background-color: var(--color-peach);
  overflow: hidden;
}

.project-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 180px;
  background-image: url("../images/issues_flora.png");
  background-position: right 50%;
  background-repeat: no-repeat;
  background-size: 180px;
  transform: scaleX(-1);
  pointer-events: none;
}

.project-section > .container {
  position: relative;
  z-index: 1;
}

.project-panel,
.map-panel {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  height: 100%;
}

.map-panel {
  min-height: 380px;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.project-panel {
  padding: 30px 25px;
}

.project-intro {
  margin: 20px 0 0;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.9;
}

.project-form {
  margin-top: 20px;
}

.project-form .form-label {
  font-family: var(--font-heading);
  color: var(--color-bronze);
  margin-bottom: 4px;
}

.project-form .form-control,
.footer-contact-form .form-control {
  border-radius: 4px;
  border: 1px solid #b4b4b4;
  background-color: rgba(251, 202, 109, 0.1);
}

.project-form .form-control:focus,
.footer-contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 144, 133, 0.15);
}

.submit-btn {
  display: inline-block;
  border: none;
  padding: 10px 40px;
  margin-top: 6px;
  background-color: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border-radius: 6px;
  transition: background-color 0.2s ease-in-out;
}

.submit-btn:hover {
  background-color: var(--color-primary-dark);
}

.submit-btn-sm {
  width: 100%;
  padding: 6px 20px;
  font-size: 1rem;
}

.project-form-note,
.footer-form-note {
  margin-top: 14px;
  font-size: 0.95rem;
}

.project-form-note a,
.footer-form-note a {
  color: var(--color-primary);
}

.site-footer {
  background-color: var(--color-primary-dark);
  background-image: url("../images/blue_flora.png");
  background-repeat: repeat;
  color: #fff;
  padding: 40px 15px 20px;
}

.site-footer .footer-logo img {
  max-width: 220px;
}

.site-footer .footer-logo {
  align-self: center;
}

.site-footer h2 {
  font-size: 1.3rem;
  border-bottom: 1px solid #76c1bd;
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.site-footer .contact-info {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.8;
}

.footer-contact-form .form-control {
  background-color: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  font-size: 0.95rem;
}

.footer-contact-form .form-control::placeholder {
  color: #6c757d;
}

.footer-contact-form .submit-btn-sm {
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
}

.footer-contact-form .submit-btn-sm:hover {
  background-color: #fff;
}

.footer-form-note {
  color: #fff;
}

.footer-form-note a {
  color: var(--color-gold);
}

.site-footer .related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .related-list li a {
  display: block;
  padding: 6px 10px;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  transition: background-color 0.2s ease-in-out;
}

.site-footer .related-list li a:hover {
  background-color: rgba(0, 0, 0, 0.15);
}

.site-footer .copyright {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 24px;
  padding-top: 16px;
}

.issues-page-section {
  padding: 50px 0 60px;
}

.issues-page-section > .container > .section-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 10px;
}

.issue-card {
  display: flex;
  height: 100%;
  border: 1px solid #d3d1d1;
  text-decoration: none;
  color: var(--color-text);
  background-color: #fff;
  transition: box-shadow 0.2s ease-in-out;
}

.issue-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--color-text);
}

.issue-card img {
  width: 40%;
  flex-shrink: 0;
  object-fit: cover;
}

.issue-card-body {
  flex: 1;
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.issue-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.issue-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 16px;
  flex: 1;
}

.issue-actions {
  display: flex;
  gap: 8px;
}

.issue-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
}

.about-section {
  padding: 50px 0 60px;
}

.about-section > .container > .section-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 30px;
}

.about-image {
  display: block;
  max-width: 700px;
  width: 100%;
  height: auto;
  margin: 0 auto 30px;
  border: 1px solid #d3d1d1;
}

.about-body {
  max-width: 900px;
  margin: 0 auto;
}

.about-body p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 18px;
  text-align: justify;
}

.about-team-lead {
  font-family: var(--font-heading);
  line-height: 1.9;
  text-align: right;
}

.about-team-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.about-team-list {
  padding-inline-start: 20px;
  line-height: 2;
}

.photo-gallery-section {
  padding: 50px 0 60px;
}

.photo-gallery-section > .container > .section-badge {
  display: block;
  width: fit-content;
  margin: 0 auto 30px;
}

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

.photo-grid a {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #d3d1d1;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease-in-out;
}

.photo-grid a::after {
  content: "\F62C";
  font-family: bootstrap-icons;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  background-color: rgba(15, 144, 133, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.photo-grid a:hover img {
  transform: scale(1.08);
}

.photo-grid a:hover::after {
  opacity: 1;
}

.dept-header .top-head {
  background-image: none;
  background-color: #fff;
  border-bottom: 3px solid var(--color-bronze);
}

.dept-header .dept-divider {
  width: 1px;
  height: 40px;
  background-color: var(--color-border);
}

.dept-header .dept-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-bronze);
}

.dept-header .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--color-peach);
  color: var(--color-bronze);
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.dept-header .social-links a:hover {
  background-color: var(--color-bronze);
  color: #fff;
}

.janoob-header .top-head {
  position: relative;
  min-height: 230px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2f7a6f;
  background-image: url("../images/janoob/topHeadBKG.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: none;
  overflow: hidden;
}

.janoob-header .dept-topbar {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.janoob-header .social-links a {
  background-color: transparent;
  color: var(--color-gold);
  width: 32px;
  height: 32px;
  font-size: 1.15rem;
  border-radius: 0;
}

.janoob-header .social-links a:hover {
  background-color: transparent;
  color: #fff;
}

.janoob-header .dept-search {
  display: flex;
  align-items: center;
  width: 230px;
  max-width: 60vw;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 6px 14px;
}

.janoob-header .dept-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.janoob-header .dept-search button {
  border: none;
  background: transparent;
  color: #6c7888;
  display: flex;
  align-items: center;
}

.janoob-header .dept-logo-link {
  position: relative;
  z-index: 2;
  display: block;
}

.janoob-header .dept-logo-link img {
  max-height: 150px;
  width: auto;
}

.janoob-header .dept-corner {
  position: absolute;
  z-index: 1;
  top: -35px;
  right: calc((100% - 100vw) / 2);
  bottom: -35px;
  width: 300px;
  height: auto;
  background-color: rgba(108, 120, 136, 0.55);
  background-image: url("../images/janoob/corner-rays.png");
  background-size: cover;
  background-position: center;
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.janoob-header .dept-corner img {
  max-height: 130px;
}

@media (max-width: 767.98px) {
  .janoob-header .dept-corner {
    display: none;
  }

  .janoob-header .dept-topbar {
    position: static;
    align-items: center;
    margin-bottom: 16px;
  }

  .janoob-header .top-head {
    flex-direction: column;
  }
}

.dept-nav {
  background-color: var(--color-bronze);
  background-image: none;
}

.dept-nav .nav-link {
  color: #fff !important;
  font-size: 1.05rem;
  padding: 0.9rem 1rem !important;
}

.dept-nav .nav-link:hover,
.dept-nav .nav-link.active {
  background-color: var(--color-gold);
  color: var(--color-bronze) !important;
}

.dept-nav .dropdown-menu {
  background-color: var(--color-gold);
  border-radius: 0;
  border: none;
  padding: 0;
  margin-top: 0;
}

.dept-nav .dropdown-item {
  color: var(--color-bronze);
  font-size: 1.05rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px dotted #fff;
  white-space: normal;
}

.dept-nav .dropdown-item:hover,
.dept-nav .dropdown-item:focus {
  background-color: var(--color-bronze);
  color: #fff;
}

.empty-state {
  padding: 30px 10px;
  margin: 0;
  text-align: center;
  color: #888;
  font-size: 0.95rem;
}

.turath-section {
  position: relative;
  padding: 60px 15px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.turath-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(35, 31, 32, 0.55);
}

.turath-section .container {
  position: relative;
  z-index: 1;
}

.turath-section .section-badge {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.turath-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.turath-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease-in-out;
}

.turath-card p {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-align: center;
}

.turath-card:hover {
  color: #fff;
}

.turath-card:hover img {
  transform: scale(1.08);
}

.research-card {
  position: relative;
}

.placeholder-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 10px;
  background-color: var(--color-bronze);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 4px;
}

.research-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background-color: var(--color-peach);
  color: var(--color-bronze);
  font-size: 2.8rem;
}

@media (max-width: 767.98px) {
  .top-head .logo-link img {
    max-height: 85px;
  }

  .marquee-bar .marquee-label {
    width: 105px;
    font-size: 0.9rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .carousel-item {
    height: 380px;
  }

  .hero .side-box {
    display: none;
  }

  .book-featured,
  .book-list-item {
    flex-direction: column;
    text-align: center;
  }

  .book-featured img {
    height: 220px;
  }

  .book-featured,
  .issues-list-col {
    height: auto;
  }

  .project-section {
    background-image: none;
  }

  .project-section::before {
    display: none;
  }

  .channel-cta {
    flex-direction: column;
    text-align: center;
  }

  .page-banner h1 {
    font-size: 1.5rem;
  }

  .topic-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .issue-card {
    flex-direction: column;
  }

  .issue-card img {
    width: 100%;
    height: 200px;
  }
}
.footer-contact-form input[type="email"] {
  direction: rtl;
  text-align: right;
}

.footer-contact-form input[type="email"]::placeholder {
  text-align: right;
}

.project-success-toast {
  position: fixed;
  inset-block-start: 24px;
  inset-inline-start: 50%;
  z-index: 2100;
  width: min(calc(100% - 32px), 560px);
  transform: translateX(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-success-toast.is-closing {
  opacity: 0;
  transform: translate(-50%, -12px);
  pointer-events: none;
}

.project-success-toast__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: var(--color-primary-dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: var(--font-heading);
  line-height: 1.7;
}

.project-success-toast__content > i {
  flex: 0 0 auto;
  color: var(--color-gold);
  font-size: 1.35rem;
}

.project-success-toast__content span {
  flex: 1;
}

.project-success-toast__close {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: background-color 0.2s ease;
}

.project-success-toast__close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.contact-success-toast {
  position: fixed;
  inset-block-start: 24px;
  inset-inline-start: 50%;
  z-index: 2100;
  width: min(calc(100% - 32px), 560px);
  transform: translateX(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-success-toast.is-closing {
  opacity: 0;
  transform: translate(-50%, -12px);
  pointer-events: none;
}

.contact-success-toast__content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: var(--color-primary-dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: var(--font-heading);
  line-height: 1.7;
}

.contact-success-toast__content > i {
  flex: 0 0 auto;
  color: var(--color-gold);
  font-size: 1.35rem;
}

.contact-success-toast__content span {
  flex: 1;
}

.contact-success-toast__close {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: background-color 0.2s ease;
}

.contact-success-toast__close:hover {
  background: rgba(255, 255, 255, 0.28);
}
