/* Variables and Base Styles */
:root {
    --primary-color: #1F4C73;
    --secondary-color: #2A6F97;
    --accent-color: #61A5C2;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --gold: #C5A572;
    --pattern-color: rgba(31, 76, 115, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Amiri', serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}
.header-container {
    display: flex;
    align-items: center; /* Vertically center the items */
    justify-content: center; /* Horizontally center the items */
    padding: 10px;
}

.header-logo {
    height: 160px; /* Adjust the height as needed */
    margin-right: 20px; /* Space between the image and the heading */
}

.header-container h1 {
    margin: 0;
    font-size: 2rem; /* Adjust the font size as needed */
}
/* Reset some browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Banner Container */
.banner-container {
    width: 100%;
    max-width: 2000px; /* Adjust as needed */
    height: 300px; /* Set a fixed height for consistency */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0; /* Fallback background color */
}

/* Banner Image */
.banner-image {
    width: 100%;
    height: 100%; /* Fill the container height */
    object-fit: cover; /* Ensures the image covers the container */
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .banner-container {
        height: 200px; /* Adjust height for tablets */
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: 150px; /* Adjust height for mobile devices */
    }
}



/* Islamic Patterns and Decorative Elements */
.islamic-pattern-top,
.islamic-pattern-bottom {
    height: 40px;
    background-image: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 20c5.523 0 10-4.477 10-10S5.523 0 0 0v20zm20 20c0-5.523-4.477-10-10-10S0 34.477 0 40h20zm20 0v-20c-5.523 0-10 4.477-10 10s4.477 10 10 10zm0-40V0c-5.523 0-10 4.477-10 10s4.477 10 10 10z" fill="%231F4C73" fill-opacity="0.1"/></svg>');
    background-repeat: repeat-x;
}

/* Header Styles */
header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-family: 'Scheherazade New', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}
header h2 {
    font-family: 'Scheherazade New', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}
/* Research page */
.subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.6rem;
    font-family: Jamil Noori Nastaleeq;
    margin-bottom: 20px;
}
  .research-center-button {
    margin: 20px 0;
    text-align: center;
  }
  
  .btn-research {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #1e4b5f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #1e4b5f;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
  }
  
  .btn-research:hover {
    background-color: white;
    color: #1e4b5f;
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0,0,0,0.15);
  }
  
  .btn-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
  }
  
  .btn-text {
    font-size: 16px;
    letter-spacing: 0.5px;
  }

  /* For mobile screens */
  @media (max-width: 768px) {
    .btn-research {
      padding: 10px 18px;
    }
    
    .btn-text {
      font-size: 14px;
    }
  }

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('background.jpg') no-repeat center center/cover; /* Optional: Add a background image */
    color: white; /* Adjust text color as needed */
    text-align: center; /* Center-align text */
    padding: 100px 0; /* Adjust padding as needed */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Optional: Add an overlay for better text readability */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.5rem; /* Adjust font size as needed */
    margin-bottom: 20px;
}

.hero .arabic {
    font-size: 1.5rem; /* Adjust font size as needed */
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem; /* Adjust font size as needed */
    margin-bottom: 20px;
}

.hero .btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--gold); /* Adjust button color as needed */
    color: white;
    text-decoration: none;
    border-radius: 5px; /* Optional: Add border radius */
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: darken(var(--gold), 10%); /* Adjust hover color as needed */
}
/* General Styles */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* Featured Section */
.featured-section {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.featured-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.featured-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
}

.card-image.spiritual {
    background-image: url('spritiual.jpg');
}

.card-image.knowledge {
    background-image: url('knowledge.jpg');
}

.card-image.lifestyle {
    background-image: url('lifestyle.jpg');
}

.featured-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.featured-card p {
    font-size: 1rem;
    color: #666;
}
/* Video Section */
.video-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.videos-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.video-item {
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border: 2px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 10px;
}

.video-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.video-item video {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content {
    padding: 20px;
}

.about-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
}
.about-image {
    text-align: center; /* Centering image */
}

.about-image img {
    width: 100%; 
    max-width: 400px; /* Adjust as needed */
    height: auto;
    border: 5px solid var(--gold);
    border-radius: 10px;
    object-fit: cover;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    border-radius: 10px;
    font-family: 'Amiri', serif;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-form button {
    padding: 15px 30px;
    background-color: var(--gold);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: darken(var(--gold), 10%);
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .featured-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        padding: 20px;
    }

    .video-item {
        width: 100%;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(197, 165, 114, 0.3);
    border-radius: 10px;
    font-family: 'Amiri', serif;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gold);
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--gold);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.scroll-top.visible {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .hero {
        height: 400px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .islamic-frame {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .featured-card {
        margin: 0 15px;
    }

    .hero .arabic {
        font-size: 2rem;
    }
}