@import url('https://fonts.googleapis.com/css2?family=Caprasimo&display=swap');

/* === ABOUT SECTION === */
.about-section {
    padding: 0rem 1rem;
    background: #f5f5f5;
    font-family: "Caprasimo", serif;
    text-align: center;
}

.about-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-section-title {
    font-size: 2.5rem;
    color: #003344;
    margin-bottom: 0.5rem;
}

.about-section-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === BLOCK LAYOUT === */
.about-block {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.about-text {
    flex: 1;
    min-width: 300px;
     text-align: justify;
}

.about-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #002233;
}

.about-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

/* === IMAGE BLOCK === */
.about-image {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.about-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    opacity: 0.85;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
    .about-section-title {
        padding: 1rem;
    font-size: 1.5rem;
}

.about-section-subtitle {
    font-size: 1rem;
}
    
  .about-block {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    text-align: justify;
  }

  .about-image {
    order: -1; /* ✅ move image before text */
    flex: unset;
    max-width: 220px;
    height: auto;
    
  }

  .about-image img {
    max-height: none;
  }

  .about-text {
      
    order: 0;
    
      font-size: 1.2rem;
    text-align: justify;
  }
}
