/* css/styles.css */

/* Common Styles */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.navbar {
    background-color: #1f1f1f;
}

/* Logo Styling */
.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

/* Navigation Links Styling */
.navbar-nav .nav-link {
    color: #ffffff !important;
    padding-right: 15px;
    padding-left: 15px;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #6c63ff !important;
}

/* Language Selector Icons */
.navbar-nav .flag-icon{
    width: 20px; /* Adjusted size */
    height: 20px; /* Adjusted size */
    margin-left: 8px; /* Adjusted for RTL support */
    cursor: pointer;
    transition: transform 0.2s;
}

.navbar-nav .flag-icon:hover {
    transform: scale(1.1);
}

/* Prevent nav-links from wrapping */
.navbar-nav {
    white-space: nowrap;
}

/* Section Styling */
.section {
    padding: 60px 0;
}

/* Team Section */
.team-member {
    background-color: #1f1f1f;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s;
    height: 100%;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member .title {
    font-weight: bold;
    color: #6c63ff;
    margin-bottom: 10px;
}

.team-member p {
    text-align: left !important;
}

/* Products Section */
.products-buttons .btn {
    margin: 10px;
}

/* News Section */
.news-carousel .carousel-item {
    padding: 20px;
}

.news-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.5rem;
    color: #6c63ff;
    margin-bottom: 5px;
}

.news-date {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-bottom: 10px;
}

.news-description {
    text-align: left;
}

.carousel-item-inner {
    display: flex;
    align-items: flex-start;
}

/* Blogs Section */
.blogs-section {
    background-color: #1f1f1f;
    padding: 60px 0;
}

.blogs-title {
    color: #6c63ff;
    margin-bottom: 40px;
    text-align: center;
}

.blogs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
}

.blog-title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.blog-date {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 15px;
}

.no-blogs-message {
    text-align: center;
    font-size: 1.2rem;
    color: #cccccc;
    margin-top: 20px;
}

/* Blog Detail Section */
.blog-detail-title {
    color: #6c63ff;
    margin-bottom: 20px;
    text-align: center;
}

.blog-detail-date {
    text-align: center;
    color: #cccccc;
    margin-bottom: 30px;
}

.blog-detail-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 0 15px;
}

.back-button {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    text-align: center;
}

.back-button a {
    color: #ffffff;
    text-decoration: none;
    background-color: #6c63ff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block;
}

.back-button a:hover {
    background-color: #5750d9;
}

/* Footer Styling */
footer {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .team-member img {
        width: 100px;
        height: 100px;
    }
    .contact-icon {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    .team-member .title {
        font-size: 1rem;
    }
    .blog-title {
        font-size: 1.5rem;
    }
    .blog-content {
        padding: 0 20px;
    }
    .blog-detail-content {
        padding: 0 10px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .team-member img {
        width: 120px;
        height: 120px;
    }
    .contact-icon {
        font-size: 1.75rem;
        margin-right: 12px;
    }
    .team-member .title {
        font-size: 1.25rem;
    }
    .blog-title {
        font-size: 2rem;
    }
    .blog-content {
        padding: 0 30px;
    }
    .blog-detail-content {
        padding: 0 20px;
    }
}

/* Additional Styles from index.php */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* RTL Support */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="rtl"] .blog-detail-content,
body[dir="rtl"] .blog-content {
    text-align: right;
}

body[dir="rtl"] .back-button {
    margin-left: auto;
    margin-right: 0;
}

body[dir="rtl"] .back-button a {
    display: inline-block;
}

body[dir="rtl"] .navbar-nav .nav-link {
    margin-left: 15px;
    margin-right: 0;
}
