/* Main Styles for Ufuq Website */

/* General Styles */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header Styles */
.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-left: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 30px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Services Section */
.service-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #0d6efd;
}

/* Large Service Icons for Services Page */
.service-icon-large {
    font-size: 8rem;
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    width: 200px;
    height: 200px;
    line-height: 200px;
    border-radius: 50%;
    margin: 0 auto;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-icon-large:hover {
    transform: scale(1.1);
    background-color: rgba(13, 110, 253, 0.2);
}

/* Client Icons */
.client-icon {
    width: 50px;
    height: 50px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Blog Section */
.blog-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Article Content Styling */
.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 1.2rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.2rem;
    padding-right: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.article-body blockquote {
    border-right: 4px solid #0d6efd;
    padding: 0.5rem 1rem;
    margin: 1.5rem 0;
    background-color: rgba(13, 110, 253, 0.05);
    font-style: italic;
}

.article-body table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.article-body table th,
.article-body table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.article-body table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* About Section Icon */
.about-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.about-icon-container:hover {
    transform: scale(1.05);
    background-color: rgba(13, 110, 253, 0.2);
}

.about-icon {
    font-size: 8rem;
    color: #0d6efd;
}

/* Testimonials Styling */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    margin-left: 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0d6efd;
}

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

.testimonial-author-info h5 {
    margin: 0;
    font-weight: 600;
}

.testimonial-author-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Developer Credit */
.developer-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.developer-name {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-name:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Article Textarea Styling */
.article-textarea {
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    padding: 15px;
    min-height: 500px;
    direction: rtl;
    resize: vertical;
}

/* Contact Form */
.contact-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.contact-info {
    background-color: #0d6efd;
    color: white;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.contact-info i {
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: #343a40;
    color: white;
    padding: 50px 0 20px;
}

footer h5 {
    margin-bottom: 20px;
    font-weight: 700;
}

footer ul li {
    margin-bottom: 10px;
}

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #0d6efd;
}

/* About Page */
.about-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Team Card for Homepage */
.team-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 15px;
    height: 100%;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    object-fit: cover;
    border: 5px solid #f8f9fa;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 50px auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* RTL Specific Adjustments */
.navbar-nav {
    padding-right: 0;
}

.me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}
