 :root {
     --sa-blue: #137294;
     --sa-green: #70ac1a;
     --sa-dark: #0d2235;
 }

 /* Hero section */
 .hero-section {
     background: linear-gradient(135deg, rgba(19, 114, 148, 0.95), rgba(112, 172, 26, 0.9)),
         url('../img/testimonial/testimonial.png') center/cover no-repeat;
     min-height: 320px;
     color: #fff;


     /* ADD THIS */
     display: flex;
     justify-content: center;
     /* horizontally center */
     align-items: center;
     /* vertically center */
     text-align: center;
     /* center heading & paragraph */
 }

 .hero-section .col-lg-7 {
     text-align: center !important;
     margin: 0 auto;
 }


 .hero-section h1 {
     font-weight: 800;
     letter-spacing: 0.5px;
 }

 .hero-section p.lead {
     font-size: 1.1rem;
     opacity: 0.95;
 }

 .hero-illustration {
     max-width: 220px;
 }

 /* Brand button */
 .btn-accent {
     background-color: var(--sa-blue);
     border-color: var(--sa-blue);
     color: #070202ff;
     font-weight: 600;
     border-radius: 30px;
 }

 .btn-accent:hover {
     background-color: #0f5870;
     border-color: #0f5870;
     color: #0c0101ff;
 }

 /* Section headings */
 .section-title {
     color: var(--sa-dark);
     font-weight: 700;
 }

 /* Force hero section text to stay white */
 .hero-section p,
 .hero-section p strong {
     color: #ffffff !important;
 }


 .section-subtitle {
     color: #6c757d;
 }

 .section-title span {
     color: var(--sa-blue);
 }

 .section-title .accent {
     color: var(--sa-green);
 }

 /* Carousel controls */
 .carousel-control-prev,
 .carousel-control-next {
     width: 5%;
 }

 .carousel-control-prev-icon,
 .carousel-control-next-icon {
     background-color: rgba(0, 0, 0, 0.65);
     border-radius: 50%;
     padding: 16px;
     background-size: 60%;
 }

 .carousel-control-prev:hover .carousel-control-prev-icon,
 .carousel-control-next:hover .carousel-control-next-icon {
     background-color: rgba(0, 0, 0, 0.9);
 }

 /* ---------- NEW MODERN CARD (non-video) ---------- */
 .modern-card {
     background: #fff;
     border-radius: 16px;
     padding: 18px;
     padding-bottom: 0;
     box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
     transition: .3s ease;
     height: auto !important;
     position: relative;

     /* ⭐ FIX HEIGHT BREAKING */
     display: flex;
     flex-direction: column;
 }


 .modern-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
 }

 .testi-header {
     display: flex;
     align-items: center;
     gap: 14px;
 }

 .testi-photo {
     width: 75px;
     height: 75px;
     border-radius: 50%;
     padding: 4px;
     background: #fff;
     border: 3px solid var(--theme-color);
     flex-shrink: 0;
 }

 .testi-photo img {
     width: 100%;
     height: 100%;
     border-radius: 50%;
     object-fit: cover;
 }

 .testi-name {
     font-size: 1.1rem;
     font-weight: 700;
     color: var(--theme-color);
 }

 .testi-role {
     font-size: 0.9rem;
     color: #666;
 }

 .testi-divider {
     border-top: 1px solid #e4e4e4;
     margin: 10px 0 8px;
 }

 .testi-message {
     font-size: 0.93rem;
     color: #444;
     min-height: 70px;
     max-height: none !important;
     overflow: visible !important;

     /* ⭐ Auto expand in card */
     flex-grow: 1;
 }


 .testi-bottom {
     background: var(--theme-color);
     padding: 9px 14px 10px;
     border-radius: 0 0 16px 16px;
     color: #fff;
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin: 0 -18px;
     margin-top: auto !important;

 }

 .star-rating i {
     color: #fff;
     margin-right: 3px;
     font-size: 15px;
 }

 .testi-quote {
     font-size: 20px;
     opacity: 0.9;
 }

 /* Old simple card used for video testimonials */
 .video-testimonial-card {
     border-radius: 18px;
     border: 1px solid #eef1f4;
     transition: transform 0.25s ease, box-shadow 0.25s ease;
     background: #fff;
 }

 .video-testimonial-card:hover {
     transform: translateY(-6px);
     box-shadow: 0 14px 32px rgba(15, 40, 70, 0.12);
 }

 /* Modal styling */
 .modal-header {
     background: var(--sa-blue);
 }

 .modal-title {
     font-weight: 700;
 }

 .modal-dialog {
     max-width: 900px;
 }

 .modal-body {
     max-height: 75vh;
     overflow-y: auto;
 }

 .form-control,
 .form-select,
 textarea.form-control {
     border-radius: 10px;
     font-size: 0.95rem;
 }

 .form-control-sm,
 .form-select-sm {
     height: 38px !important;
     font-size: 0.9rem;
     border-radius: 8px;
 }

 textarea.form-control-sm {
     min-height: 70px;
     max-height: 100px;
 }

 .submit-btn {
     width: 220px;
     background: #137294;
     color: #fff;
     padding: 10px 20px;
     font-size: 15px;
     border-radius: 8px;
     display: block;
     margin: 0 auto;
     transition: 0.2s;
     border: none;
 }

 .submit-btn:hover {
     background: #0f5870;
 }