/* 
 * Esol Sunflower Oil Mills
 * Main Stylesheet
 */

 :root {
    --primary: #4CAF50;    /* Green */
    --secondary: #FFD700;  /* Gold/Yellow */
    --dark: #333333;
    --light: #F8F9FA;
    --text-color: #333333;
    --heading-color: #212529;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #388E3C;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: calc(50% - 40px);
}

.bg-light-green {
    background-color: rgba(76, 175, 80, 0.1);
}

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

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-sticky {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Section */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    height: 600px;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* About Section */
.about-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content .icon-box {
    margin-top: 40px;
}

.about-content .icon-box .icon {
    float: left;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    background: rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
}

.about-content .icon-box .icon i {
    color: var(--primary);
    font-size: 28px;
    transition: all 0.3s ease;
}

.about-content .icon-box:hover .icon {
    background: var(--primary);
}

.about-content .icon-box:hover .icon i {
    color: white;
}

.about-content .icon-box .title {
    margin-left: 85px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 18px;
}

.about-content .icon-box .description {
    margin-left: 85px;
    line-height: 24px;
    font-size: 14px;
}

/* Products Section */
.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.product-card img {
    max-width: 200px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-card .btn {
    border-radius: 50px;
    padding: 10px 25px;
}

/* Process Section */
.process-step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    height: 100%;
}

.process-step .step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.process-step h4 {
    margin-bottom: 15px;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    border-top: 2px dashed var(--primary);
    z-index: -1;
}

.process-row .col-lg-3:last-child .process-step::after {
    display: none;
}

/* Testimonials */
.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 15px;
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 8px rgba(76, 175, 80, 0.1);
}

.testimonial-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-item h5 {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.testimonial-item .stars {
    margin-bottom: 15px;
    color: #FFD700;
}

/* Contact Section */
.contact-info-box {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    height: 100%;
}

.contact-info-box i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info-box h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-form {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.contact-form .btn {
    border-radius: 50px;
    padding: 12px 30px;
}

/* Gallery */
.gallery-item-wrapper {
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: block;
}

.gallery-item img {
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay i {
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gallery-filter {
    margin-bottom: 30px;
}

.gallery-filter .btn {
    margin: 0 5px 10px;
}

.gallery-filter .btn.active {
    background-color: var(--primary);
    color: white;
}

/* Page Header */
.page-header {
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
}

.breadcrumb {
    background: transparent;
    display: inline-flex;
}

/* Timeline for Certification Process */
.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 0 50px 30px 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    left: 50%;
    top: 10px;
    margin-left: -8px;
}

.timeline-content {
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* Instagram Feed */
.instagram-item {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.instagram-item img {
    transition: transform 0.5s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

/* Icon Box Small */
.icon-box-sm {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
}

.icon-box-lg {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    margin: 0 auto;
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 20px;
}

.faq-item .faq-header {
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
}

.faq-item .faq-header h4 {
    margin: 0;
    font-size: 18px;
    padding-right: 30px;
}

.faq-item .faq-header::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.faq-item.active .faq-header::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-item .faq-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-body {
    max-height: 1000px;
    padding: 20px;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    background-color: #202327 !important;
    border-top: 3px solid var(--primary);
}

footer h5 {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

footer p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links a {
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

.link-arrow {
    font-size: 20px;
    font-weight: bold;
    margin-right: 8px;
    line-height: 1;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: #1a73e8; /* Blue color as in the screenshot */
    color: white;
    text-align: center;
    line-height: 40px;
    z-index: 9999;
    border-radius: 5px 5px 0 0;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

.back-to-top:hover {
    height: 45px;
    background-color: #1565C0; /* Darker blue on hover */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    footer h5 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        width: 100%;
        border-radius: 0;
    }
}
/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .process-step::after {
        display: none;
    }
    .timeline::before {
        left: 40px;
    }
    .timeline-dot {
        left: 40px;
    }
    .timeline-content {
        width: 100%;
        padding-left: 70px;
    }
    .timeline-item {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-slide {
        height: 450px;
    }
    .section-padding {
        padding: 40px 0;
    }
    .section-title h2 {
        font-size: 28px;
    }
    .page-header {
        padding: 60px 0;
    }
    .page-header h1 {
        font-size: 28px;
    }
}

/* Animation for elements */
[data-aos] {
    visibility: hidden;
}
[data-aos].aos-animate {
    visibility: visible;
}

/* Language-specific adjustments */
html[lang="sw"] .hero-content h1 {
    font-size: 42px;
}

@media (max-width: 768px) {
    html[lang="sw"] .hero-content h1 {
        font-size: 26px;
    }
}