/* TESTIMONIALS PAGE STYLES */

/* PAGE HEADER */
.page-header {
    padding: 100px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.03);
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.page-intro {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* FILTER SECTION */
.testimonial-filters {
    padding: 60px 0 30px;
}

.filter-container {
    text-align: center;
}

.filter-container h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* TESTIMONIALS GRID */
.testimonials-section {
    padding: 0 0 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimony-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.testimony-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.testimony-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimony-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--background);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.testimony-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.testimony-text {
    margin-bottom: 20px;
    line-height: 1.7;
    flex: 1;
}

.testimony-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.testimony-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.testimony-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* SHARE TESTIMONY SECTION */
.share-testimony {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.03);
}

.share-testimony-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.share-testimony-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.share-testimony-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 30px 0;
}

.modal-content {
    background-color: var(--background);
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin-bottom: 0;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

/* TESTIMONY FORM STYLES */
.testimony-form .form-group {
    margin-bottom: 20px;
}

.testimony-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.testimony-form input,
.testimony-form select,
.testimony-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
}

.testimony-form input:focus,
.testimony-form select:focus,
.testimony-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.testimony-form textarea {
    resize: vertical;
}

.helper-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.submit-testimony-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: var(--background);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 30px;
}

.submit-testimony-btn:hover {
    opacity: 0.9;
}

.form-message {
    text-align: center;
    margin-top: 20px;
    min-height: 20px;
}

/* EMPTY STATE */
.empty-testimonials {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .page-intro {
        font-size: 1rem;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 25px;
        margin: 0 10px;
    }
}