/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: white;
    direction: rtl;
    text-align: right;
    background-image: url('assets/pattern.webp'); /* Replace with the actual file name */
    background-color: #f5f3ef; /* Fallback color matching the tone of the texture */
    background-repeat: repeat; /* Repeats the texture seamlessly */
    background-size: auto;
}

/* Header Styling */
/* header {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px;
    text-align: center;
} */

header {
    background-image: url('assets/banner.png');
    background-size: cover; /* Ensures the image covers the entire header */
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center horizontally */
    height: 30vh; /* Full viewport height */    
    justify-content: center; /* Center content vertically within the header */

}

/* Header Styling */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; /* Stacks image and title vertically */
    /* Stacks image and title vertically */
}

/* Push nav to the bottom */
nav {

}

header h1 {
    font-size: 3.5em;
    color: #08770b; /* Adjust for better readability */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Adds shadow for readability */
}

@media (max-width: 768px) {
    video{
        width:100% !important;        
    }
    .icon{
        width: 50px !important;
        height: 50px !important;
    }
    .header-content h1 {
        font-size: 1.0rem; /* Smaller size for tablets and mobile */
    }

    .header-content p {
        font-size: 1.2rem;
    }

    .px-5 {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    
    header{
        height:15vh    
    }

    .first-row{
        padding-top:10px !important
    }

    ol{
        padding:0px !important;
    }

    .arabic-list{
        font-size:1.6em !important;
    }
    .mb-4{margin-bottom: 0!important;}
    #archive{
        padding-top:20px
    }
}

.icon {
    width: 130px; /* Adjust size as needed */
    height: 130px;
    border-radius: 50%; /* Makes the icon circular */
}

 


nav a {
    color: #158363;
    text-decoration: none;
    padding: 10px;
    margin: 0 5px;
    font-size: 1.1em;
}

nav a:hover {
    background-color: #333;
    border-radius: 5px;
}

/* Main Content */
main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
}

section h2 {
    margin-bottom: 10px;   
}

/* Video Styling */
#video video {
    width: 100%;
    max-width: 600px;
}

/* Footer with Background Image */
footer {
    background: url('assets/footer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background-attachment: fixed; */
    padding: 50px 20px;
    color: #fff;
    text-align: center;
    min-height: 900px;
}

/* Optional: Footer Content Styling */
footer h2 {
    margin-bottom: 20px;
}

footer p {
    font-size: 1.2em;
}

p {
    font-family: 'Amiri', 'Scheherazade New', serif; /* Arabic-style font */
    font-size: 1.8em;
    line-height: 2.0;
    direction: rtl;
    text-align: justify;
    color: #4d4d4d; 
}

/* Arabic Font Styling for Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Lateef', serif; /* Apply Islamic-style font with fallback */
    font-weight: 700; /* Make headers bold */
    color: #006b04; /* Adjust color as desired */
    text-align: right; /* Aligns header to the right for an Arabic layout */
    direction: rtl; /* Ensures right-to-left text direction */
    margin-bottom: 15px; /* Adds space below headers */
}

.content-block {
    text-align: center;
}

.video-link {
    display: inline-block;
    margin-top: 10px; /* Adds space above the link */
    font-size: 1.1em; /* Optional: slightly increases font size */
}

.first-row{
    padding-top:100px
}


.arabic-list {
    text-align: right; /* Aligns text to the right */
    direction: rtl; /* Ensures the list flows from right to left */
    list-style-type: arabic-indic; /* Uses Arabic numerals */
    font-size: 1.2em;
    color: #4d4d4d; /* Use the same color as other text */

}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 3 columns if space allows */
    gap: 20px; /* Space between grid items */
    padding: 20px;
}

.video-grid video {
    width: 100%; /* Ensures video fits within each grid cell */
    height: auto;
}
