/* Reviews Section Styles */
.reviews-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.03'%3E%3Cpath d='M30 5L35 20H50L38.5 29L43.5 44L30 35L16.5 44L21.5 29L10 20H25L30 5Z' fill='%23002A7F'/%3E%3C/g%3E%3C/svg%3E")
        repeat;
    pointer-events: none;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(60px);
    }
}

.reviews-wrapper {
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.reviews-header h2 {
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    opacity: 0;
    animation: slideInLeft 1s ease 0.3s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.instagram-link {
    opacity: 0;
    animation: slideInRight 1s ease 0.5s forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.instagram-link a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 24px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 42, 127, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.instagram-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 42, 127, 0.15);
    border-color: var(--primary-color);
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.instagram-link a:hover .instagram-icon {
    transform: scale(1.1) rotate(15deg);
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 42, 127, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 42, 127, 0.05);
    height: 100%; /* Make card fill the slide height */
}

.review-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--secondary-color)
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 42, 127, 0.15);
}

.review-card:hover::before {
    opacity: 1;
}

.review-card:hover .review-text p,
.review-card:hover .author-name,
.review-card:hover .author-position,
.review-card:hover .review-date {
    color: white;
}

.review-card:hover .star:not(.filled) {
    color: rgba(255, 255, 255, 0.5);
}

.review-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.review-icon img {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 15px;
}

.star {
    font-size: 1.2rem;
    color: #e5e7eb;
    transition: all 0.3s ease;
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.3);
}

.review-text {
    margin-bottom: 18px;
    text-align: center;
}

.review-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
    font-style: italic;
    position: relative;
    margin: 0;
}

.review-text p::before,
.review-text p::after {
    content: '"';
    font-size: 1.8rem;
    color: var(--primary-color);
    opacity: 0.4;
    position: absolute;
    font-family: "Times New Roman", serif;
    font-weight: bold;
}

.review-text p::before {
    top: -8px;
    left: -12px;
}

.review-text p::after {
    bottom: -16px;
    right: -12px;
}

.review-author {
    text-align: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.author-position {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.review-date {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Swiper Styles */
.reviews-swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Center slide text vertically */
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    height: auto;
}

.swiper-slide .review-card {
    width: 100%;
}

.swiper-pagination-bullet {
    background-color: var(--primary-color) !important;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

/* No Reviews Placeholder */
.no-reviews {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 40px;
}

.no-reviews-content {
    text-align: center;
    max-width: 400px;
}

.no-reviews-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    opacity: 0.6;
}

.no-reviews h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: var(--font-family);
}

.no-reviews p {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}