/* Base styles and resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #b88c46;
    --secondary-color: #d4b485;
    --light-beige: #f5f0e5;
    --dark-beige: #e5d9c3;
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --section-padding: 4rem 0;
    --border-radius: 8px;
}

html, body {
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 85%;
    margin: 0 auto;
    padding: 0 1rem;
}

.rtl-layout {
    text-align: right;
}

/* Header Styles */
header {
    height: 110px;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

header.sticky {
    position: fixed;
    background-color: rgb(240 227 211 / 79%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: #000;
    transition: color 0.3s;
}

header.sticky .nav-link {
    color: #333;
}

.main-slider {
    background-image: url('../images/main-slider-bg.svg');
    background-repeat: no-repeat;
    background-size: cover;
}



.card-content {
    padding-top: 5rem !important;
}

.card-icon {
    position: absolute;
    top: -50px;
    right: 0px;
    width: 120px;
}

/* Optional: for responsiveness */
@media (max-width: 768px) {
    .card-icon {
        font-size: 3rem;
        top: -20px;
        right: -15px;
    }
}
.main-quote {
    margin-top: 6.2rem;
    margin-bottom: 1.5rem;
    justify-items: center;
}

.main-text {
    color: #555;
    font-size: 1.2em;
    line-height: 1.5;
}

.main-text-colored {
    color: #c29b58;
    font-size: 1.5em;
    line-height: 1;
    font-weight: bold;
}

.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    width: 80px;
}

.logo {
    width: 100%;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.gold-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.gold-button:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
    padding: var(--section-padding);
    background-color: var(--light-beige);
    background-image: url('/public/assets/bg-pattern.png');
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.hero-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-text {
    flex: 2;
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sheikh-image {
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.signature-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.signature img {
    max-width: 150px;
    margin-bottom: 0.5rem;
}

.signature p {
    font-weight: bold;
}

.author-note {
    color: var(--primary-color);
    font-style: italic;
}

.cta-button-container {
    text-align: center;
    margin: 2rem 0;
}

/* Featured Section */
.featured-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: normal;
    font-size: 0.9rem;
}

.featured-cards {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.featured-card {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-number {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem 0;
}

.card-content {
    padding: 2rem;
    text-align: center;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.card-text {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.card-button {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid var(--primary-color);
    transition: color 0.3s;
}

.card-button:hover {
    color: var(--secondary-color);
}

/* Publications Section */
.publications-section {
    padding: var(--section-padding);
    background-color: var(--light-beige);
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.publication-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-bottom: 3rem;
}

.publication-image {
    height: 200px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.publication-date {
    padding: 0.5rem 1rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

.publication-title {
    padding: 0 1rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.arrow-link {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.arrow-link:hover {
    transform: translateX(-5px);
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--white);
    text-align: center;
}

.testimonials-decoration {
    margin: 2rem auto;
    max-width: 300px;
}

.decoration-image {
    width: 100%;
}

.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-item {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.testimonial-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-statement {
    margin: 2rem auto;
    max-width: 700px;
    line-height: 2;
}

/* Footer */
.site-footer {
    background-color: var(--dark-beige);
    padding: 4rem 0 1rem;
    color: var(--text-color);
}

.footer-upper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    flex: 2;
}

.footer-nav-column {
    flex: 1;
    min-width: 200px;
}

.footer-nav-column h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.footer-nav-column ul li {
    margin-bottom: 0.5rem;
}

.footer-nav-column ul li a {
    transition: color 0.3s;
}

.footer-nav-column ul li a:hover {
    color: var(--primary-color);
}

.footer-partners {
    flex: 1;
    min-width: 300px;
}

.partner-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.partner-logo {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-layout {
        flex-direction: column-reverse;
    }

    .hero-image {
        margin-bottom: 2rem;
    }

    .featured-cards {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .publication-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .testimonial-item {
        width: 120px;
        height: 120px;
    }

    .footer-upper {
        flex-direction: column;
    }

    .footer-nav-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .publication-grid {
        grid-template-columns: 1fr;
    }
}


body {
    font-family: 'Tajawal', 'Noto Sans Arabic', 'Segoe UI', sans-serif;
    background-color: #fbf7f2;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;

}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../images/home-bg.svg');
    opacity: 0.4; /* Adjust as needed */
    z-index: -1;
}


.content {
    height: 2000px;
    padding-top: 100px;
}

.primary-btn {
    background: #d3a662;
    color: #fff !important;
    font-weight: bold;
    border-radius: 1.5em;
    border: none;
    transition: background .2s;
}

.primary-btn:hover {
    background: #c29b58;
}

.feature-icon {
    background: #fdf6e6;
    border: 1px solid #edd4a6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    margin-bottom: 1em;
}

.carousel-card {
    background: #fff;
    border: 1px solid #eee9dd;
    border-radius: 1.3em;
    padding: 1.2em;
    text-align: right;
    min-width: 300px;
    max-width: 250px;
    margin: 0 auto;
}

.visitor-img {
    border-radius: 50%;
    border: 2px solid #e2cfa2;
    box-shadow: 0px 2px 10px #e4d8c1;
    width: 78px;
    height: 78px;
    object-fit: cover;
    margin-bottom: .5em;
}

.footer {
    background-image: url('../images/footer-bg.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 7.5rem !important;
    padding-bottom: 7.5rem !important;
    width: 105%;
}

.rtl-carousel .carousel-inner {
    direction: ltr;
}

.rtl-carousel .carousel-item {
    direction: rtl;
}

/* Fix Bootstrap's default LTR indicators and arrows */
.carousel-control-prev {
    right: -3rem;
    left: auto;
}

.carousel-control-next {
    left: -3rem;
    right: auto;
}

@media (max-width: 768px) {
    .carousel-card {
        max-width: none;
    }

    .carousel-control-prev, .carousel-control-next {
        display: none;
    }
}
