/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    max-height: 630px;
    max-width: 400px;
    width: 90%;
    overflow-y: auto; /* Add this to enable vertical scrolling */
}
.modal-content h3 {
    font-size: 24px;
}
.modal-content h4 {
    margin: 9px auto 20px;
    font-weight: 600;
    font-size: 16px;
    background: #2ca65b;
    color: #fff;
    padding: 10px;
}
.modal-content p {
    text-align: left;
    line-height: 22px;
    font-size: 16px;
     /* Add this to enable vertical scrolling */
    text-align: justify;
}

.close {
    font-weight: 700;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 37px;
    cursor: pointer;
    color: green;
}

/* Additional styling */
.executives-section {
    display: flex;
    margin: 0 auto 40px;
    background: #e7e7e8;
    padding-bottom: 40px;
    width: 100%;
    /* max-width: 1010px; */
    column-gap: 10px;
    justify-content: space-around;
    flex-direction: row;
}

.executive {
    /* border: 1px solid #ddd; */
    padding: 10px;
    text-align: center;
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 2px #ccc;
    max-width: 257px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.executive img {
    max-width: 305px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
    position: relative;
    max-height: 275px;
    filter: grayscale(100%);
}

.executive h3 {
    margin: 20px auto;
}

.read-more-btn {
    background-color: #33a65e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.read-more-btn:hover {
    background-color: #303642;
}

.profile-pic {
    width: 240px;
    height: 240px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 4px solid #ddd;
    margin: 15px;
    filter: grayscale(1);
}


/* --------------------- Responsive styles -----------------------*/


/* Extra Small Devices (phones) */
@media screen and (max-width: 575px) {
  /* Your CSS styles for extra small devices here */
  .executive {
    padding: 10px;
    text-align: center;
    width: 100%;
    background: #fff;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    margin: 20px auto;
}
.executives-section {
    display: flex;
    margin: 0 auto 40px;
    padding-bottom: 40px;
    column-gap: 10px;
    justify-content: space-around;
    flex-direction: column;
}
}

/* Small Devices (portrait tablets and large phones) */
@media screen and (min-width: 576px) and (max-width: 767px) {
  /* Your CSS styles for small devices here */
}

/* Medium Devices (landscape tablets) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  /* Your CSS styles for medium devices here */
}

/* Large Devices (laptops and desktops) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  /* Your CSS styles for large devices here */
}

/* Extra Large Devices (large laptops and desktops) */
@media screen and (min-width: 1200px) {
  /* Your CSS styles for extra large devices here */
}
