/* Custom Styles for Elfanar */

:root {
    --primary-color: #198754;
    --secondary-color: #f8f9fa;
    --dark-color: #212529;
    --text-muted: #6c757d;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover:not(.btn),
.nav-link.active:not(.btn) {
    color: var(--primary-color) !important;
}

.nav-link.btn:hover {
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 100px;
    background-color: #f0f7f4;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-img-wrapper {
    position: relative;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 1.5rem;
    z-index: -1;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

/* Product Card */
.product-card {
    transition: transform 0.3s ease, shadow 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
}

.product-card img {
    height: 250px;
    object-fit: cover;
}

/* Contact Section */
.contact-icon {
    transition: transform 0.3s ease;
}

.contact-section .card:hover .contact-icon {
    transform: scale(1.1);
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 40px 0 60px;
        text-align: center;
        min-height: auto;
        display: block;
    }

    .hero-text .d-flex {
        justify-content: center;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }
}

/* Blog Post & Policy Pages */
.blog-post-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 76px);
}
.blog-post {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    margin-bottom: 40px;
}
.blog-post-header {
    margin-bottom: 30px;
}
.blog-post-header h1 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}
.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s;
}
.blog-back-link:hover {
    color: var(--primary-color);
}
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
}
.blog-post-meta svg {
    color: var(--primary-color);
}
.blog-post-image {
    margin-bottom: 30px;
    text-align: center;
}
.blog-post-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
}
.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}
.blog-post-content h2, .blog-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}
.blog-post-footer {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
    text-align: center;
}
.related-posts h3 {
    font-weight: 700;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: var(--dark-color);
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.related-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.related-post-card:hover {
    transform: translateY(-5px);
}
.related-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.related-post-content {
    padding: 20px;
}
.related-post-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.5;
}
.related-post-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.related-post-content h4 a:hover {
    color: var(--primary-color);
}