/*
 * Ithra Portal — professional theme (Bootstrap 5.3.3 RTL override)
 * File: assets/css/prof.css
 * Loaded AFTER bootstrap.rtl.min.css and style.css, so these rules win.
 */

:root {
  --bs-primary: #0f4c5c;
  --bs-primary-rgb: 15, 76, 92;
  --bs-secondary: #d49b36;
  --bs-body-font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  --bs-body-color: #1e293b;
  --bs-body-bg: #f5f8fa;
  --bs-border-color: #dbe4e8;
  --bs-link-color: #0f4c5c;
  --bs-link-hover-color: #a9761f;

  --brand: #0f4c5c;
  --brand-dark: #093642;
  --brand-light: #e8f3f5;
  --accent: #d49b36;
  --accent-dark: #a9761f;
}

body {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  line-height: 1.7;
}

a {
  transition: color .2s ease;
}

/* ---------- Navbar ---------- */
nav.navbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand)) !important;
  box-shadow: 0 2px 10px rgba(9, 54, 66, .25);
  padding-block: 12px;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.navbar-brand i {
  color: var(--accent);
  margin-inline-end: 6px;
}

.navbar .nav-link {
  border-radius: 8px;
  margin-inline: 2px;
  padding: 8px 14px !important;
  font-weight: 600;
  color: rgba(255, 255, 255, .88) !important;
  transition: background .2s ease, color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
}

.navbar .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .35);
}

.navbar .btn-outline-light {
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.navbar .btn-outline-light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand-dark);
}

/* ---------- Hero section ---------- */
.hero,
header.hero,
section.hero,
div[style*="background"][style*="0b5e57"],
div[style*="background"][style*="0f4c5c"] {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, #287889) !important;
  padding: clamp(40px, 7vw, 80px) 20px;
  color: #fff;
  text-align: center;
}

.hero h1,
.hero h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: 18px;
}

.hero p {
  max-width: 780px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}

.hero .btn,
.hero a.btn {
  background: var(--accent);
  border: none;
  color: var(--brand-dark);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(212, 155, 54, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(212, 155, 54, .45);
}

/* ---------- Section titles (gallery, news, events) ---------- */
h2, h3, .section-title {
  color: var(--brand-dark);
  font-weight: 800;
}

h2 + hr,
.section-title + hr {
  display: none;
}

section h2,
section h3 {
  position: relative;
  padding-inline-start: 14px;
  border-inline-start: 4px solid var(--accent);
}

/* ---------- Cards (gallery items, event/news cards) ---------- */
.card {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 76, 92, .06);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 76, 92, .14);
}

.card-title {
  color: var(--brand-dark);
  font-weight: 700;
}

.card-body {
  padding: 20px;
}

/* Empty-state text like "لا توجد صور بعد" */
.text-muted {
  color: #8a97a3 !important;
}

/* ---------- Buttons (site-wide) ---------- */
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-success,
.btn-outline-success {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  font-weight: 700;
  border-radius: 8px;
}

.btn-secondary,
.btn-warning {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--brand-dark);
  font-weight: 700;
}

.btn {
  border-radius: 8px;
}

/* ---------- "الفعاليات والأنشطة" / "آخر الأخبار" two-column blocks ---------- */
.row > div > .btn,
.row .btn.w-100 {
  margin-top: 10px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--brand-dark) !important;
  color: #dbecef;
  padding: 40px 0 24px;
  margin-top: 50px;
}

footer h5,
footer h6,
footer strong {
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

footer a {
  color: #cfe6ea;
}

footer a:hover {
  color: var(--accent);
}

footer hr {
  border-color: rgba(255, 255, 255, .15);
}

/* ---------- Tables (if used in admin/board pages) ---------- */
table.table thead {
  background: var(--brand);
  color: #fff;
}

table.table tbody tr:hover {
  background: var(--brand-light);
}

/* ---------- Focus accessibility ---------- */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid rgba(212, 155, 54, .7);
  outline-offset: 2px;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--brand-dark);
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
  }

  .navbar .nav-link {
    color: rgba(255, 255, 255, .9) !important;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 30px 16px;
  }

  .hero h1,
  .hero h2 {
    font-size: 1.4rem;
  }

  .card-body {
    padding: 14px;
  }
}






/* Ithra Portal — refined footer
 * Add this at the END of assets/css/prof.css
 */

footer {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 54px 0 20px;
  color: #cfe3e6;
  background:
    radial-gradient(circle at 12% 0%, rgba(212, 155, 54, .12), transparent 28%),
    linear-gradient(135deg, #063a45 0%, #073f49 55%, #052f39 100%) !important;
  border-top: 4px solid #d49b36;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: linear-gradient(135deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 18px 18px;
}

footer .container,
footer > .container-fluid {
  position: relative;
  z-index: 1;
}

footer .row {
  align-items: flex-start;
}

footer .row > div {
  margin-bottom: 28px;
}

footer h5,
footer h6,
footer strong {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  padding-bottom: 9px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

footer h5::after,
footer h6::after,
footer strong::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 3px;
  border-radius: 4px;
  background: #d49b36;
}

footer p {
  margin: 0 0 9px;
  color: #b9d0d4;
  font-size: .9rem;
  line-height: 1.9;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer li {
  margin-bottom: 8px;
}

footer li a,
footer a {
  display: inline-block;
  color: #b9d0d4;
  text-decoration: none !important;
  font-size: .9rem;
  transition: color .2s ease, transform .2s ease;
}

footer li a::before {
  content: "‹";
  display: inline-block;
  margin-inline-end: 7px;
  color: #d49b36;
  font-weight: 800;
  transition: transform .2s ease;
}

footer li a:hover,
footer a:hover {
  color: #fff;
  transform: translateX(-3px);
}

footer li a:hover::before {
  transform: translateX(-3px);
}

footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 10px;
}

footer .contact-item i,
footer .bi,
footer .fas,
footer .fa {
  margin-top: 5px;
  color: #d49b36;
}

footer hr {
  margin: 14px 0 18px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  opacity: 1;
}

footer .copyright,
footer .copyright p,
footer .text-center p {
  color: #91b2b8;
  font-size: .78rem;
  text-align: center;
}

footer .social-links {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

footer .social-links a::before {
  display: none;
}

footer .social-links a:hover {
  border-color: #d49b36;
  color: #fff;
  background: #d49b36;
  transform: translateY(-3px);
}

@media (max-width: 767.98px) {
  footer {
    padding: 38px 20px 18px;
    text-align: center;
  }

  footer h5::after,
  footer h6::after,
  footer strong::after {
    right: 50%;
    transform: translateX(50%);
  }

  footer .social-links {
    justify-content: center;
  }

  footer .contact-item {
    justify-content: center;
  }
}



.text-light-emphasis {
    color: #ffffff !important;
}



*{
    font-family: "Cairo", sans-serif;
}
}











@media (min-width: 768px)
{
    .col-md-6 {
        flex: 0 0 auto;
        width: 48% !important;
        background-color: var(--bs-body-bg);
        border-radius: 10px !important;
        margin: 1% !important;
        padding: 10px !important;
    }
}








