/* Banner Styling */
.testimonial-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('../assets/images/banners/testimonials-banner.jpg');
  background-size: cover;
  background-position: center;
}

/* Featured Testimonials */
.featured-testimonials {
  padding: 80px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.featured-testimonial {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-testimonial:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
  display: flex;
  padding: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  align-items: center;
}

.profile-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f0f0f0;
  margin-right: 15px;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.university {
  color: #666;
  font-size: 14px;
  margin: 5px 0;
}

.rating {
  color: #ffb400;
  font-size: 14px;
  margin-top: 5px;
}

.testimonial-body {
  padding: 30px;
  position: relative;
}

.quote-icon {
  font-size: 28px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.testimonial-body p {
  line-height: 1.8;
  color: #555;
}

.achievement-badge {
  background: linear-gradient(135deg, #ffbd59 0%, #0c2759 100%);
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  color: white;
  font-size: 14px;
  margin-top: 15px;
}

/* Video Testimonials */
.video-testimonials {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.video-testimonial {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.video-testimonial:hover {
  transform: translateY(-7px);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  cursor: pointer;
}

.video-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-testimonial:hover .video-wrapper img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2575fc;
  font-size: 24px;
  transition: all 0.3s ease;
}

.video-wrapper:hover .play-button {
  background: white;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.video-info p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* Success Stats */
.success-stats {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffbd59 0%, #0c2759 100%);
  color: white;
  text-align: center;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 40px;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: -webkit-linear-gradient(white, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Testimonial Carousel */
.testimonial-carousel-section {
  padding: 80px 0;
}

.testimonial-carousel {
  display: flex;
  margin-top: 40px;
  overflow-x: hidden;
  padding: 20px 0;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 300px;
  margin-right: 30px;
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.student-details {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.student-details img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.carousel-navigation {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
}

.prev-btn, .next-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2575fc;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prev-btn:hover, .next-btn:hover {
  background: #1a5dc8;
  transform: translateY(-3px);
}

/* Country Tabs */
.success-by-country {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.country-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 30px;
}

.country-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  margin: 0 8px 10px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.country-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffbd59;
  transition: width 0.3s ease;
}

.country-tab:hover::after,
.country-tab.active::after {
  width: 100%;
}

.country-tab.active {
  color: #ffbd59;
  font-weight: 600;
}

.country-panel {
  display: none;
}

.country-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.country-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.country-testimonial {
  background: white;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.country-testimonial:hover {
  transform: translateY(-5px);
}

.country-testimonial img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

/* Share Story Form */
.share-story-section {
  padding: 80px 0;
}

.form-container {
  max-width: 800px;
  margin: 40px auto 0;
  background: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.testimonial-form input,
.testimonial-form textarea {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 14px;
  transition: all 0.3s ease;
}

.testimonial-form input:focus,
.testimonial-form textarea:focus {
  border-color: #2575fc;
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

.btn-submit {
  background: linear-gradient(135deg, #ffbd59 0%, #0c2759 100%);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Testimonial Page Styles */

/* Banner Styles */
.testimonial-banner {
    background-image: url('../assets/images/testimonials/banner.jpg');
    background-size: cover;
    background-position: center center;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 41, 0.7);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.banner-content p {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Status Message Styles */
.status-message {
    padding: 15px 0;
    margin-bottom: 30px;
    transition: opacity 0.5s ease;
}

.status-message.success {
    background-color: #e7f7e7;
    border-top: 1px solid #c3e6c3;
    border-bottom: 1px solid #c3e6c3;
    color: #2c662d;
}

.status-message.error {
    background-color: #f8e7e7;
    border-top: 1px solid #e6c3c3;
    border-bottom: 1px solid #e6c3c3;
    color: #a54343;
}

.status-message p {
    margin: 0;
    display: flex;
    align-items: center;
}

.status-message i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Featured Testimonials */
.featured-testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.featured-testimonial {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info {
    margin-left: 15px;
}

.student-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #333;
}

.university {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.rating {
    margin-top: 8px;
    color: #FFD700;
}

.testimonial-body {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-size: 1.8rem;
    color: #e7e7e7;
    margin-bottom: 10px;
}

.testimonial-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.achievement-badge {
    display: inline-block;
    margin-top: 15px;
    background-color: #f8f5ff;
    border: 1px solid #e5dbff;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.85rem;
    color: #6200ea;
    font-weight: 600;
    align-self: flex-start;
}

/* Video Testimonials */
.video-testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.video-testimonial {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #000;
    cursor: pointer;
}

.video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-testimonial:hover .video-wrapper img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.play-button i {
    color: #fff;
    font-size: 30px;
    margin-left: 8px; /* Adjust to center play icon */
}

.video-testimonial:hover .play-button {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.video-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Success Stats Styles */
.success-stats {
    padding: 80px 0;
    background-color: #001e60;
    color: #fff;
}

.success-stats .section-title {
    color: #fff;
    margin-bottom: 50px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    min-width: 200px;
    margin: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffb100;
}

.stat-item p {
    font-size: 1.1rem;
    margin: 0;
}

/* Testimonial Carousel Styles */
.testimonial-carousel-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    overflow-x: visible;
    padding: 20px 0;
    margin-bottom: 30px;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.testimonial-card p {
    margin: 10px 0 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.student-details {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.student-details img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.student-details div {
    margin-left: 15px;
}

.student-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.student-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #001e60;
    color: #fff;
    border-color: #001e60;
}

.prev-btn.disabled, .next-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f9f9f9;
    color: #ccc;
    border-color: #eee;
}

/* Success by Country Styles */
.success-by-country {
    padding: 80px 0;
    background-color: #fff;
}

.country-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.country-tab {
    padding: 12px 25px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.country-tab:hover {
    background-color: #e9e9e9;
    color: #333;
}

.country-tab.active {
    background-color: #001e60;
    color: #fff;
}

.country-panel {
    display: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.country-panel.active {
    display: block;
}

.country-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.country-testimonial {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.country-testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.country-testimonial img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.country-testimonial h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.country-testimonial p:first-of-type {
    margin-top: 0;
    color: #666;
    font-size: 0.9rem;
}

.country-testimonial p:last-of-type {
    margin-top: 15px;
    font-style: italic;
    color: #555;
}

/* Share Story Form Styles */
.share-story-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a6bff;
    outline: none;
}

.btn-submit {
    background-color: #001e60;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #003399;
}

/* Animation Classes */
.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animated {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-600 {
    transition-delay: 0.6s;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 2.8rem;
    }
    .banner-content p {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .testimonial-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .banner-content h1 {
        font-size: 2.4rem;
    }
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    .banner-content p {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .testimonial-card {
        flex: 0 0 calc(100% - 20px);
    }
    .country-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    .form-container {
        padding: 25px;
    }
}

/* Share Your Success Story Form Responsive Fixes */
.share-story-section .form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.testimonial-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* For tablets and larger screens */
@media (min-width: 768px) {
    .testimonial-form .form-row {
        flex-direction: row;
    }
    
    .testimonial-form .form-row .form-group {
        flex: 1;
        min-width: 0; /* Prevent flex items from overflowing */
    }
}

.testimonial-form .form-group {
    margin-bottom: 1.2rem;
    width: 100%;
}

.testimonial-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.testimonial-form input,
.testimonial-form select,
.testimonial-form textarea {
    width: 100%;
    min-width: 0; /* Prevents input fields from exceeding container width */
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.testimonial-form textarea {
    resize: vertical;
}

/* Rating component specific adjustments */
.rating-container {
    margin-bottom: 2rem;
}

.rating-wrapper {
    display: flex;
    align-items: center;
}

/* Button styling */
.btn-submit {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color, #ffbd59);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--secondary-color, #0c2759);
    transform: translateY(-2px);
}