:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #222222; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #172a28; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #145a24; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

.quote-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 50px 30px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* شعار الاتحاد */
.president-logo {
    width: 250px;
    margin-bottom: 20px;
}

/* عنوان القسم */
.statement-title {
    color: var(--dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* نصوص القسم */
.president-text,
.president-text-end {
    color: var(--dark);
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 30px;
}

/* علامة الاقتباس العلوية – اليسار */
.quote-icon-start {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 50px;
    color: var(--primary);
    opacity: 0.8;
}

/* علامة الاقتباس السفلية – اليمين */
.quote-icon-end {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 50px;
    color: var(--primary);
    opacity: 0.8;
}

.member {
    height: 400px !important;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.text-primary {
    color: rgb(24, 91, 24) !important;
}

.fixed-size {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.fixed-size .media-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767.98px) {

    .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    color: #fff !important; 
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* التغليف العام */
.pagination-wrapper nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}


/* إزالة الخلفية الافتراضية للـ ul */
.pagination {
    display: flex;
    gap: 0.5rem;
}

.pagination-wrapper nav + p,
.pagination-wrapper p.small.text-muted {
    display: none !important;
}

/* تصميم الأزرار كدوائر */
.pagination .page-item .page-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #28a745; /* أخضر */
    border: 1px solid #28a745;
    font-weight: bold;
    transition: all 0.3s;
    padding: 0;
}

/* زر الصفحة الحالي */
.pagination .page-item.active .page-link {
    background-color: #28a745; /* أخضر */
    color: white;
    border-color: #28a745;
}

/* hover effect */
.pagination .page-item .page-link:hover {
    background-color: #28a745;
    color: white;
}

/* استبدال prev و next بأسهم */
.pagination .page-item.prev .page-link::before {
    content: '❮'; /* السهم لليسار */
    font-size: 16px;
}
.pagination .page-item.next .page-link::before {
    content: '❯'; /* السهم لليمين */
    font-size: 16px;
}

/* إزالة النص الافتراضي Prev/Next */
.pagination .page-item.prev .page-link span,
.pagination .page-item.next .page-link span {
    display: none;
}

.btn-primary{
    background-color: #145a24;
    border-color: #145a24;
}


/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: var(--surface-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.blog-posts .post-img {
  max-height: 240px;
  margin: -30px -30px 15px -30px;
  overflow: hidden;
}

.blog-posts .post-category {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 10px;
}

.blog-posts .title {
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.blog-posts .title a {
  color: var(--heading-color);
  transition: 0.3s;
  text-decoration: none;
}

.blog-posts .title a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.blog-posts .post-author-img {
  width: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.blog-posts .post-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.blog-posts .post-date {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-details .post-img img {
  max-width: 100%;
  height: auto;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 28px;
  font-weight: 700;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 60px;
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
  background-color: var(--surface-color);
  padding: 30px;
  /* margin: 60px 0 30px 0; */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.widget-title {
  color: var(--heading-color);
  font-size: 20px;
  font-weight: 700;
  padding: 0;
  margin: 0 0 20px 0;
}

.widget-item {
  margin-bottom: 40px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  padding: 3px 10px;
  position: relative;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}


/* الحالة العامة (LTR) */
.search-widget form button {
  background: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 15px;
  margin: -1px;
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
  line-height: 0;
}

/* عندما تكون الصفحة RTL */
html[dir="rtl"] .search-widget form button,
html[lang="ar"] .search-widget form button {
  right: auto;
  left: 0;
  border-radius: 4px 0 0 4px;
}

html[dir="rtl"] .search-widget form input[type=text],
html[lang="ar"] .search-widget form input[type=text] {
  text-align: right;
}

.categories-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget ul li {
  padding-bottom: 10px;
}

.categories-widget ul li:last-child {
  padding-bottom: 0;
}

.categories-widget ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.categories-widget ul a:hover {
  color: var(--accent-color);
}

.categories-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.recent-posts-widget .post-item {
  display: flex;
  margin-bottom: 15px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 15px;
  flex-shrink: 0;
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.recent-posts-widget .post-item h4 a {
  color: var(--default-color);
  transition: 0.3s;
  text-decoration: none !important;
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
  text-decoration: none !important;
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

html[dir="rtl"] .recent-posts-widget .post-item img {
    margin-left: 15px;
    margin-right: 0;
}


.info-icon {
font-size: 1.2rem;
}

.event-gallery-item {
background-color: #dee2e6;
border-radius: 1rem;
aspect-ratio: 1 / 1;
transition: transform .3s ease;
}
.event-gallery-item:hover {
transform: scale(1.04);
}

.lightbox-prev, .lightbox-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0.8;
}

.btn-primary {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

.btn-primary:hover {
    background-color: #157347;
    border-color: #157347;
    color: #fff;
}

.text-justify {
    text-align: justify;
}


html[dir="rtl"] .bg-dark {
    background-color: #0F4229 !important;
}

/* روابط سريعة */
html[dir="rtl"] .footer .btn.btn-link,
html[lang="ar"] .footer .btn.btn-link {
    text-align: right;
    text-decoration: none;
}

/* LTR */
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

/* RTL */
html[dir="rtl"] .footer .btn.btn-link::before {
    content: none !important;
}

html[dir="rtl"] .footer .btn.btn-link::after {
    position: relative !important;
    content: "\f104" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    margin-right: 10px !important;
}
