/* Enrollment Section Styles */
.enroll-section {
    background: url('/static/uploads/enroll.jpg') center center/cover no-repeat;
    color: #fff;
    border-radius: 32px;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
}

.enroll-section::before {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(162, 89, 230, 0.377) 0%, rgba(255, 124, 43, 0.377) 100%);
    z-index: 0;
    border-radius: 32px;
}

.enroll-section > * {
    position: relative;
    z-index: 1;
}

.enroll-images-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.enroll-img {
  width: clamp(140px, 26vw, 240px);
  aspect-ratio: 3 / 4;
  object-fit: cover;             /* was object-fit: fill inline */
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  flex-shrink: 0;
}

.enlarge-broshur {
    cursor: pointer;
    transition: transform 0.2s;
}

.enlarge-broshur:hover {
    transform: scale(1.05);
}

.enroll-content {
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem;
}

.enroll-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.705);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.enroll-btn {
    display: inline-block;
    background: #fff;
    color: #a259e6;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 2.2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
    text-decoration: none;
}

.enroll-btn:hover {
    background: #a259e6;
    color: #fff;
    box-shadow: 0 6px 32px rgba(162,89,230,0.22);
}

.enroll-img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
}

.enroll-img-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.35);
    background: #fff;
}

.enroll-copy { 
  margin-bottom: 1rem; 
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Touch-friendly modal close target */
.enroll-img-modal .close-modal { line-height: 1; padding: 0 0.25em; }