body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
select {
    font-family: 'Speda', sans-serif !important;

}

/* Test element to verify font loading */
.font-test {
    font-family: 'Speda', sans-serif !important;
    font-size: 24px;
    margin: 20px;
    padding: 20px;
    border: 1px solid #000;
}


table.dataTable th {
    background-color: rgb(208, 213, 218);
}

html[dir="rtl"] .page-pretitle {

    font-size: .625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.6;
    color: #ff0033;
}

html[dir="rtl"] .dropdown-menu-end[data-bs-popper] {
    right: -140px;
    left: auto;
}

html[dir="ltr"] .dropdown-menu-end[data-bs-popper] {
    right: 0px;
    left: auto;
}

html[dir="rtl"] .dropdown-menu-end2[data-bs-popper] {
    right: -135px;
    left: auto;
}

html[dir="ltr"] .dropdown-menu-end2[data-bs-popper] {
    right: 0px;
    left: auto;
}


html[dir="rtl"] .dropdown-menu-arrow.dropdown-menu-end:before {
    right: auto;
    left: 0.75rem;
}


html[dir="ltr"] .dropdown-menu-arrow.dropdown-menu-end:after {
    right: 0.75rem;
    left: auto;
}


html[dir="ltr"] .dropdown-menu-arrow.dropdown-menu-end2:before {
    right: 0.75rem;
    left: auto;
}

html[dir="rtl"] div.dataTables_wrapper div.dataTables_filter {
    text-align: left;
}

.flex-row-reverse {
    flex-direction: row !important;
}

.alert-positive {
    color: #0f5132 !important;
    background-color: #91efc5 !important;
    border-color: #badbcc !important;
}

.alert-negative {
    color: #fbfbfb !important;
    background-color: #ef9191 !important;
    border-color: #dbbaba !important;
}

hr,
hr {
    margin: 1rem 0 !important;
}

.dropdown-content {
    display: none;
}

.dropdown-content a {
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}


.note-float-left {
    margin: 10px;
}
.note-float-right {
    margin: 10px;
}

.carousel-inner {
    height: 650px; /* Fixed height for the carousel */
    overflow: hidden; /* Ensure that the images don't overflow */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image fits nicely */
    position: absolute;
    top: 0;
    left: 0;
}

.caption-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 5;
}

.carousel-caption {
    position: absolute;
    bottom: 20px; /* Move the text closer to the bottom */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 700px; /* Slightly smaller max width for tighter text alignment */
   
  
    border-radius: 15px; /* Softer rounded corners */
   
    color: white; /* Ensure the text is white */
   
    margin-bottom: 25px;
    padding: 1.5rem 2rem; /* Padding to prevent text from sticking to the edges */
}

.carousel-caption h5 {
    font-size: 2rem; /* Slightly smaller title */
    font-weight: 700; /* Bold weight */
    background: linear-gradient(45deg, #fff, #e0e0e0); /* Gradient text effect */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem; /* Reduced margin */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for better readability */
}

.carousel-caption p {
    font-size: 1.3rem; /* Slightly smaller description */
    line-height: 1.4; /* Tighter line spacing for more compact text */
    color: #f5f5f5;
    margin-bottom: 1.5rem; /* Reduced margin between text elements */
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for contrast */
}

.carousel-caption .btn {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem; /* Adjusted padding for a more balanced button size */
    border-radius: 20px;
    border: none;
    background-color: #2c3e50; /* More neutral, subtle dark color */
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2); /* Subtle shadow */
}

.carousel-caption .btn:hover {
    transform: translateY(-3px); /* Slight hover effect */
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.3);
    background-color: #496b90; /* Darker shade on hover */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: 0.3s ease;
}

/* Carousel indicators completely removed */
.carousel-indicators {
    display: none !important;
}

/* Custom styling for read more buttons in activities and events */
.btn-primary {
    background-color: transparent !important;
    border: 2px solid #dc3545 !important; /* Red border */
    color: #620D0F !important; /* Maroon text */
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #620D0F !important; /* Maroon fill on hover */
    border-color: #620D0F !important;
    color: white !important; /* White text on hover */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(98, 13, 15, 0.3) !important;
}

.logo {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.fixed-responsive-img {
    width: 100%; 
    height: 200px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.responsive-card-img {
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    border-radius: 0.25rem; 
}

.footer {
    background-color: #212529;
    color: #ffffff;
    padding: 4rem 0 2rem 0;
}
.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: #ffffff;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
}
.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}


.upcoming-events {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Universal Text Styling */
.text-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    font-weight: 300;
}

.text-content[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

.text-content[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

/* Section Title */
.dynamic-text {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #222;
}

.dynamic-text[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

.dynamic-text[dir="ltr"] {
    text-align: left;
    direction: ltr;
}

/* Event Cards */
.event-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.event-card img {
    border-bottom: 1px solid #ddd;
}

/* Event Date */
.event-date {
    font-size: 0.9rem;
    color: #888;
}

.event-date[dir="rtl"] {
    text-align: right;
}

.event-date[dir="ltr"] {
    text-align: left;
}