/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, var(--lime-green) 0%, var(--lime-green-dark) 100%);
    padding: clamp(5rem, 10vw, 7rem) clamp(2rem, 4vw, 4rem);
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    letter-spacing: 2px;
}

.blog-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Content Section */
.blog-content {
    padding: clamp(4rem, 8vw, 6rem) clamp(2rem, 4vw, 4rem);
    background: #e8e8e8;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

/* Blog Item */
.blog-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(50, 205, 50, 0.2);
    border-color: var(--lime-green);
}

.blog-item-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-item:hover .blog-item-img {
    transform: scale(1.05);
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.blog-image-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.blog-item-content {
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-item-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: clamp(0.8rem, 1.5vw, 1rem);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    line-height: 1.3;
}

.blog-item-description {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    flex: 1;
}

/* Rating Display */
.blog-item-rating {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rating-display .stars {
    display: flex;
    gap: 2px;
}

.rating-display .star {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    color: #d1d5db;
    line-height: 1;
}

.rating-display .star.active {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.rating-value {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 700;
    color: #1a1a1a;
}

.rating-count {
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    color: #6b7280;
}

/* Blog Item Button */
.blog-item-btn {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: #ffffff;
    border: none;
    padding: clamp(0.8rem, 1.2vw, 1rem) clamp(1.5rem, 2.5vw, 2rem);
    border-radius: 12px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 600;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-item-btn:hover {
    background: linear-gradient(135deg, var(--lime-green-dark) 0%, var(--lime-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.3);
}

.blog-item-btn:active {
    transform: translateY(0);
}

/* Review Modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.review-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.review-modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    padding: clamp(2rem, 4vw, 3rem);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.review-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.review-modal-close:hover {
    background: #f3f4f6;
    color: #1a1a1a;
    transform: rotate(90deg);
}

.review-modal-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    font-family: 'Montserrat', 'Poppins', sans-serif;
    padding-right: 3rem;
}

/* Review Form */
.review-form {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.review-form .form-group {
    margin-bottom: clamp(1.2rem, 2vw, 1.5rem);
}

.review-form label {
    display: block;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', 'Poppins', sans-serif;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: clamp(0.8rem, 1.2vw, 1rem);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-family: 'Poppins', 'Inter', sans-serif;
    transition: var(--transition);
    outline: none;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    border-color: var(--lime-green);
    box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.1);
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-star {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #d1d5db;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.rating-star:hover,
.rating-star.active {
    color: #fbbf24;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Review Submit Button */
.review-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: #ffffff;
    border: none;
    padding: clamp(1rem, 1.5vw, 1.2rem);
    border-radius: 12px;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    font-weight: 700;
    font-family: 'Montserrat', 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.review-submit-btn:hover {
    background: linear-gradient(135deg, var(--lime-green-dark) 0%, var(--lime-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.3);
}

.review-submit-btn:active {
    transform: translateY(0);
}

/* Reviews List */
.reviews-list {
    border-top: 2px solid #e5e7eb;
    padding-top: clamp(1.5rem, 3vw, 2rem);
    margin-top: clamp(1.5rem, 3vw, 2rem);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px;
    width: 100%;
}

.review-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    border-left: 4px solid var(--lime-green);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-item-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.review-item-rating {
    display: flex;
    gap: 2px;
}

.review-item-rating .star {
    font-size: 1.1rem;
    color: #fbbf24;
}

.review-item-date {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: #6b7280;
    width: 100%;
    margin-top: 0.5rem;
}

.review-item-comment {
    color: #4a5568;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
}

/* Active Nav Link */
.nav-link.active {
    color: var(--lime-green-dark);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lime-green);
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: clamp(1.5rem, 3vw, 2rem);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .review-modal-content {
        margin: 1rem;
        padding: clamp(1.5rem, 3vw, 2rem);
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .blog-item-image {
        height: 200px;
    }

    .review-modal.active {
        padding: 1rem;
    }
}