:root {
    --primary-green: #2e7d32;
    --light-green: #4caf50;
    --dark-green: #1b5e20;
    --light-gray: #f5f5f5;
    --medium-gray: #9e9e9e;
    --dark-gray: #424242;
}

.bg-dark-green {
    background-color: var(--dark-green) !important;
}

.text-green {
    color: var(--primary-green) !important;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('/static/images/hero-bg.jpg') center/cover;
    color: white;
    padding: 120px 0;
}

.stats-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: -50px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-green);
    font-weight: bold;
}

/* Services */
.service-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s;
    background: var(--light-gray);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.service-link {
    text-decoration: none;
    color: inherit;
}

.service-link:hover {
    text-decoration: none;
    color: inherit;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

/* Instagram Preview on Homepage */
.instagram-preview-item {
    transition: all 0.3s ease;
}

.instagram-preview-item:hover {
    transform: translateY(-5px);
}

.instagram-preview-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

.instagram-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-preview-item:hover .instagram-preview-image img {
    transform: scale(1.05);
}

.instagram-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.instagram-preview-item:hover .instagram-preview-overlay {
    background: rgba(46, 125, 50, 0.8);
}

.instagram-preview-overlay i {
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.instagram-preview-item:hover .instagram-preview-overlay i {
    opacity: 1;
    transform: scale(1);
}

.instagram-preview-caption {
    padding: 0 5px;
}

/* Instagram Gallery */
.instagram-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.instagram-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.instagram-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.instagram-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.instagram-image-container {
    height: 300px;
    overflow: hidden;
    position: relative;
}

/* Loading state */
.instagram-image:not([src]),
.instagram-image[src=""],
.instagram-image[src*="undefined"] {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.instagram-image:not([src])::after,
.instagram-image[src=""]::after,
.instagram-image[src*="undefined"]::after {
    content: "GREEN ART";
    position: absolute;
    color: white;
}

.instagram-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.instagram-image.loaded {
    opacity: 1;
}

.instagram-item:hover .instagram-image {
    transform: scale(1.05);
}

.instagram-info {
    padding: 20px;
}

.instagram-caption {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.5;
    max-height: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.instagram-date {
    font-size: 0.85rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
}

.no-photos {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-gray);
    border-radius: 15px;
    margin: 40px 0;
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    background: rgba(46, 125, 50, 0.9);
    opacity: 1;
}

.instagram-view-btn {
    color: white;
    background: none;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.instagram-item:hover .instagram-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.instagram-view-btn:hover {
    background: white;
    color: var(--primary-green);
}

.btn-instagram {
    background: #E4405F;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-instagram:hover {
    background: #C13584;
    color: white;
}



/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .stats-box {
        margin-top: 20px;
    }
    
    .instagram-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .instagram-image-container {
        height: 250px;
    }
    
    .instagram-preview-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .instagram-gallery {
        grid-template-columns: 1fr;
    }
}

/* FAQ Styling */
.faq-accordion .accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: #2e7d32;
    color: white;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-body {
    padding: 1rem 1.25rem;
    background-color: white;
}

/* FAQ Grid Layout */
.faq-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .faq-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    border-color: #2e7d32;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.1);
}

.faq-header {
    padding: 1.25rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.faq-content {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content.show {
    padding: 1.25rem;
    max-height: 1000px;
}

/* FAQ List Style */
.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-list-item {
    border-bottom: 1px solid #eee;
}

.faq-list-item:last-child {
    border-bottom: none;
}

.faq-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding-bottom: 1rem;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2e7d32; /* GREEN ART primary green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.back-to-top:hover {
    background-color: #1b5e20; /* Darker green */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(46, 125, 50, 0.4);
}

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

/* Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}