body {
  font-family: "Playfair Display", serif;
  margin: 0;
  padding: 0;
}

/* --- 1. LAYOUT CONTAINERS --- */
.testimonials-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- 2. HERO SECTION --- */
.testimonials-hero {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url("/assets/images/testimonials/testimonial_banner.jpg");
  background-size: cover;
  background-position: center -150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.testimonials-hero h1 {
  position: relative;
  font-size: 4em;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  z-index: 1;
  margin: 0;
}

/* --- 3. SUBTITLE SECTION --- */
.testimonials-subtitle {
  background-color: #ffffff;
  padding: 20px 20px 10px 20px;
  text-align: center;
}

.testimonials-subtitle h2 {
  font-size: 3em;
  font-weight: 400;
  color: #63d2ff;
  margin: 0;
  text-align: center;
}

/* --- 4. TESTIMONIALS SECTION --- */
.testimonials {
  padding: 20px 40px 80px;
}

.testimonials .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* --- 5. MASONRY GRID LAYOUT --- */
.testimonials-grid {
  column-count: 2;
  column-gap: 20px;
  width: 100%;
}

/* Testimonial Card */
.testimonial-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 20px 35px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  position: relative;
  overflow: visible;
}

.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Quote Icon */
.testimonial-card::before {
  content: "“";
  font-size: 100px;
  line-height: 1;
  color: #939393;
  position: absolute;
  top: 8px;  
  left: 25px;
  font-weight: normal;
  z-index: 0;
}

/* Testimonial Image */
.testimonial-image {
  margin: 20px 0 15px 0; 
  overflow: hidden;
  border-radius: 4px; 
  max-width: 300px; 
  width: 100%; 
  text-align: left; 
}

.testimonial-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.testimonial-card:hover .testimonial-image img {
  transform: scale(1.03);
}

/* Testimonial Content */
.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-content h3 {
  font-size: 1.8em;
  font-weight: 700;
  color: #000000;
  margin: 0 0 20px 50px;
  line-height: 1.3;
}

.testimonial-content p {
  font-size: 0.95em;
  line-height: 1.8;
  color: #4a4a4a;
  margin: 0 0 15px 0;
  text-align: justify;
}

.testimonial-content p:last-of-type {
  margin-bottom: 20px;
}

/* Testimonial Meta */
.testimonial-meta {
  margin-top: 25px;
  padding-top: 0;
  border-top: none;
  font-size: 0.9em;
  color: #666666;
  text-align: right;
}

.testimonial-meta strong {
  font-weight: 500;
  color: #2c2c2c;
  font-style: italic;
  display: block;
  margin-bottom: 2px;
  font-size: 1em;
}

.testimonial-meta span {
  color: #999999;
  font-size: 0.85em;
  display: inline;
}

/* --- 6. ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-card {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

/* --- 7. RESPONSIVE DESIGN --- */

/* Large Desktop (2 columns with more space) */
@media (min-width: 1400px) {
  .testimonials-grid {
    column-count: 2;
    column-gap: 25px;
  }
  
  .testimonials .container {
    max-width: 1600px;
    padding: 0 60px;
  }
  
  .testimonials {
    padding: 60px 80px 80px;
  }
}

/* Desktop (2 columns) - Default */
@media (min-width: 993px) and (max-width: 1399px) {
  .testimonials-grid {
    column-count: 2;
    column-gap: 20px;
  }
  
  .testimonials {
    padding: 60px 40px 80px;
  }
}

/* Tablet (2 columns) */
@media (max-width: 992px) {
  .testimonials-grid {
    column-count: 2;
    column-gap: 18px;
  }
  
  .testimonials {
    padding: 40px 30px 60px;
  }
  
  .testimonial-card {
    padding: 35px 30px;
    margin-bottom: 25px;
  }
  
  .testimonial-content h3 {
    font-size: 1.35em;
  }
  
  .testimonial-image {
    margin: -35px -30px 20px -30px;
  }
  
  .testimonial-card::before {
    font-size: 85px;
    top: 12px;
    left: 20px;
  }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
  .testimonials-hero {
    height: 300px;
    background-position: center 20%;
  }
  
  .testimonials-hero h1 {
    font-size: 2.5em;
    letter-spacing: 6px;
  }
  
  .testimonials-subtitle {
    padding: 20px 20px;
  }
  
  .testimonials-subtitle h2 {
    font-size: 2em;
  }
  
  .testimonials {
    padding: 30px 20px 50px;
  }
  
  .testimonials-grid {
    column-count: 1;
    column-gap: 0;
  }
  
  .testimonial-card {
    padding: 30px 25px;
    margin-bottom: 20px;
  }
  
  .testimonial-content h3 {
    font-size: 1.3em;
  }
  
  .testimonial-content p {
    font-size: 0.93em;
  }
  
  .testimonial-image {
    margin: -30px -25px 18px -25px;
  }
}

/* Mobile Portrait (1 column) */
@media (max-width: 600px) {
  .testimonials-grid {
    column-count: 1;
    column-gap: 0;
  }
  
  .testimonial-card {
    margin-bottom: 20px;
  }
  
  .testimonials {
    padding: 30px 15px 50px;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .testimonials-hero {
    height: 250px;
    background-position: center 15%;
  }
  
  .testimonials-hero h1 {
    font-size: 2em;
    letter-spacing: 4px;
  }
  
  .testimonials-subtitle {
    padding: 30px 15px;
  }
  
  .testimonials-subtitle h2 {
    font-size: 1.5em;
  }
  
  .testimonial-card {
    padding: 25px 20px;
  }
  
  .testimonial-card::before {
    font-size: 70px;
    top: 8px;
    left: 15px;
  }
  
  .testimonial-content h3 {
    font-size: 1.2em;
  }
  
  .testimonial-content p {
    font-size: 0.9em;
    line-height: 1.7;
  }
  
  .testimonial-meta {
    font-size: 0.88em;
  }
  
  .testimonial-image {
    margin: -25px -20px 15px -20px;
  }
}

/* Tablet Landscape */
@media (max-width: 1024px) and (min-width: 769px) {
  .testimonials-hero {
    background-position: center 0px;
  }
  
  .testimonials-grid {
    column-count: 2;
    column-gap: 28px;
  }
}

/* --- 8. PRINT STYLES --- */
@media print {
  .testimonials-grid {
    column-count: 2;
    column-gap: 20px;
  }
  
  .testimonial-card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .testimonial-card:hover {
    transform: none;
  }
  
  .testimonials {
    background-color: #ffffff;
  }
}