@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular.ttf");
  }
  
:root {
  --text-color: #333;
  --background-color: #f4f4f4;
  --card-background: white;
  --primary-color: #678cb3;
  --accent-color: #333;
  --border-color: #eee;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

#testimonials {
    background-color: var(--background-color);
    padding: 60px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    align-items: center;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 6px 12px var(--shadow-color);
    padding: 30px;
    transition: transform 0.3s ease;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 1px solid var(--primary-color);
}

.testimonial-profile-pic {
    width: 20%; 
    height: 20%; 
   
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.author-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.author-details {
    color: var(--text-color);
    font-size: 0.9em;
}

.admin-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.error {
    color: red;
    margin-bottom: 15px;
}

.success {
    color: green;
    margin-bottom: 15px;
}

.add-testimonial-btn {
  display: inline-block;
  margin: 20px auto;
  text-align: center;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.add-testimonial-btn:hover {
  background-color: black;
}

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

.character-count {
    display: block;
    text-align: right;
    color: var(--text-color);
    font-size: 0.8em;
    margin-top: 5px;
}

textarea#testimonial {
    resize: none;
    width: 100%;
}

.btn-primary {
    background-color: #678cb3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: black;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary.submit-testimonial {
    background-color: var(--primary-color);
    width: 100%;
    margin-top: 15px;
}

.btn-primary.submit-testimonial:hover {
    background-color: #4a6382;
    transform: translateY(-3px);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.btn-primary.submit-testimonial:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px var(--shadow-color);
}