.partner-universities-section {
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.7);
  margin-top: 40px;
}

.section-title {
  font-family: "Cinzel", serif;
  color: #4b2e00;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  font-size: 2rem;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #c89f28);
  margin: 15px auto 0;
}

.universities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.university-card {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.university-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #c89f28);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.university-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(212, 175, 55, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.1);
}

.university-card:hover::after {
  transform: scaleX(1);
}

.university-logo {
  transition: all 0.4s ease;
  filter: grayscale(30%);
}

.university-card:hover .university-logo {
  transform: scale(1.15);
  filter: grayscale(0%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1.15); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1.15); }
}

.university-logo {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.university-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.university-logo span {
  /* Fallback initials styling */
  width: 100%;
  height: 100%;
  background-color: #f8f9f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #4b2e00;
  border: 2px solid #d4af37;
}

.university-name {
  font-weight: 600;
  color: #1f1f1f;
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .universities-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
}


.testimonials-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9f7 0%, #e8e0d0 100%);
    overflow: hidden;
}

.testimonial-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ffffff" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23ffffff" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"/></svg>');
    background-size: cover;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 10px;
    color: #4b2e00;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    color: #6d5c3e;
    font-size: 1.2rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    width: 350px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(248, 249, 247, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    margin-right: 15px;
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.testimonial-author {
    font-weight: 700;
    color: #4b2e00;
    margin-bottom: 5px;
}

.testimonial-meta {
    color: #6d5c3e;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.7;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.2);
    font-family: serif;
    line-height: 1;
}

.google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    gap: 15px;
}

.google-badge span {
    font-weight: 600;
    color: #4b2e00;
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Floating bubbles background */
.testimonial-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    animation: float 15s infinite linear;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

/* Add bubbles of different sizes */
.testimonial-bubble:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.testimonial-bubble:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 10%;
    animation-delay: 2s;
}

.testimonial-bubble:nth-child(3) {
    width: 70px;
    height: 70px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

/* Animation for cards when they come into view */
@keyframes cardEntrance {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.testimonial-card {
    animation: cardEntrance 0.6s ease-out both;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.5s; }
.testimonial-card:nth-child(4) { animation-delay: 0.7s; }


.alerts-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8e0d0 100%);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #4b2e00;
    margin-bottom: 10px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #c89f28);
    margin: 15px auto 0;
}

.section-subtitle {
    color: #6d5c3e;
    font-size: 1.1rem;
}

/* Alert Cards */
.alert-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.alert-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Country-specific border colors */
.alert-card[data-country="uk"] { 
    border-left-color: #220000; /* Maroon */
    background: linear-gradient(to bottom right, #f8f9f7, #f0e9dd); /* Off White gradient */
}

.alert-card[data-country="australia"] { 
    border-left-color: #D4AF37; /* Gold */
    background: linear-gradient(to bottom right, #f8f9f7, #f0e9dd);
}

.alert-card[data-country="newzealand"] { 
    border-left-color: #220000; /* Maroon */
    background: linear-gradient(to bottom right, #f8f9f7, #f0e9dd);
}

.alert-card[data-country="usa"] { 
    border-left-color: #D4AF37; /* Gold */
    background: linear-gradient(to bottom right, #f8f9f7, #f0e9dd);
}

.country-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.country-name {
    font-family: 'Cinzel', serif;
    color: #4b2e00;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.alert-content p {
    color: #5a3e3e;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 60px;
}

.alert-badge {
    display: inline-block;
    background: #ccc0b2;
    color: #220000;
    padding: 4px 10px;
    border: 1px solid #d4af37;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.alert-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #220000;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #220000;
}

.alert-button:hover {
    background: #d4af37;
    color: #220000;
    border-color: #d4af37;
}

.alert-button svg {
    transition: transform 0.3s ease;
}

.alert-button:hover svg {
    transform: translateX(3px);
}

/* Footer */
.alerts-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.alerts-footer p {
    color: #5a3e3e;
    margin-bottom: 20px;
}

.consultation-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4af37, #c89f28);
    color: #220000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.consultation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Hover Animations */
.alert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.alert-card[data-country="uk"]:hover,
.alert-card[data-country="newzealand"]:hover {
    box-shadow: 0 15px 30px rgba(34, 0, 0, 0.15); /* Maroon tinted shadow */
    border-left-width: 6px;
}

.alert-card[data-country="australia"]:hover,
.alert-card[data-country="usa"]:hover {
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15); /* Gold tinted shadow */
    border-left-width: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .alert-cards-container {
        grid-template-columns: 1fr;
    }
}