h1 {
    font-family: "Tiempos Headline", seris;
}

h2 {
    margin-bottom: 20px;
}

.badge-one {
    display: inline-block;
    background-color: #e0f7fa;
    color: #00796b;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
    width: 88px;
}

.badge-other {
    display: inline-block;
    background-color: #e0f7fa;
    color: #00796b;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
    width: 97px;
}

.additional-text {
    font-size: 16px;
    color: #2a3e52;
    margin-top: 20px;
    line-height: 1.5;
}

.additional-text a {
    text-decoration: none;
    color: #00a0d2;
}

.box {
   background-color: #f8f9fa;
   padding: 20px;
   border: 1px solid #ddd;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
   margin-bottom: 20px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   height: 250px;
}

.info-box {
    background: linear-gradient(135deg, #ffffff, #f4f4f4); 
    border-left: 4px solid #007bff; 
    border-right: none; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    border-radius: 12px; 
    padding: 24px; 
    position: relative;
    font-family: 'Arial', sans-serif; 
    font-size: 16px;
    color: #333; 
    max-width: 800px; 
    line-height: 1.6; 
}

.info-box p {
    line-height: 1.8;
    color: #2a3e52;
}

.info-box-right {
    background: linear-gradient(135deg, #ffffff, #f4f4f4); 
    border-right: 4px solid #007bff; 
    border-left: none; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
    border-radius: 12px; 
    padding: 24px;
    position: relative;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #333;
    max-width: 800px;
    line-height: 1.6;
}

.info-box-right p {
    line-height: 1.8;
    color: #2a3e52;
}

.badge-teacher {
    display: inline-block;
    background-color: #e0f7fa;
    color: #00796b;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
    width: 66px;
}

h2 {
    margin-bottom: 20px;
}

.three-columns {
    display: flex;
}

.column {
    flex: 1;
    margin-right: 20px;
}

.column:last-child {
    margin-right: 0;
}

h1 {
    color: #000;
    font-size: 24px;
    margin-bottom: 20px;
}

.container-fluid.my-5 .row {
    margin-bottom: 20px; /* Space above the text on mobile/tablet */
}

/* For large screens (laptop/PC), space is on the left of the text */
@media (min-width: 768px) {
    .container-fluid.my-5 .row {
        margin-bottom: 0; /* Remove bottom space for large screens */
    }

    .container-fluid.my-5 .col-md-6:first-child {
        padding: 180px; /* Add space to the right of the image (left of the text) */
    }
}

@media screen and (max-width: 400px) {
    .badge-teacher {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 248px;
    }
    
    .badge-one {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 182px;
	   margin-top: 10px;
    }
    
    .badge-other {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 235px;
	   margin-top: 10px;
    }
	
    .image-section img {
        margin-top: 10px; /* Add space above the image if needed */
    }
}

@media screen and (min-width: 401px) and (max-width: 720px) {
    .badge-teacher {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 248px;
    }
    
    .badge-one {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 182px;
	   margin-top: 10px;
    }
    
    .badge-other {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 235px;
	   margin-top: 10px;
    }
	
    .image-section img {
        margin-top: 10px; /* Add space above the image if needed */
    }
}

@media screen and (min-width: 721px) and (max-width: 768px) {
    .badge-teacher {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 248px;
    }
    
    .badge-one {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 182px;
	   margin-top: 10px;
    }
    
    .badge-other {
       display: inline-block;
       background-color: #e0f7fa;
       color: #00796b;
       padding: 5px 10px;
       border-radius: 5px;
       font-size: 12px;
       margin-bottom: 10px;
       width: 235px;
	   margin-top: 10px;
    }
	
    .image-section img {
        margin-top: 10px; /* Add space above the image if needed */
    }
}

/* Responsive layout adjustments for tablets and smaller screens */
@media (max-width: 1024px) {
    .container-fluid.my-5 .row {
        flex-direction: column; /* Stack text and image vertically */
        align-items: center;   /* Center align content */
    }

    .col-md-6 {
        width: 100%;           /* Make each column take full width */
        text-align: center;    /* Center align text */
        margin-bottom: 20px;   /* Add spacing between text and image */
    }

    .image-section img {
        margin-bottom: 20px;   /* Ensure spacing below the image if needed */
    }

    h1 {
        font-size: 1.6rem; /* Reduce header size for tablets */
    }

    .badge-one, .badge-other, .badge-teacher {
        font-size: 14px;
        padding: 5px 15px; /* Adjust padding for badges */
        width: auto; /* Remove fixed widths */
        margin-bottom: 15px;
    }
}

/* iPad Mini, iPad Air optimizations (landscape/portrait) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container-fluid.my-5 .row {
        margin: 20px 0;
    }

    .image-section img {
        margin-bottom: 20px; /* Space between image and text */
    }

    h1 {
        font-size: 1.8rem;
        text-align: center;
    }
}

/* For small mobile devices */
@media (max-width: 768px) {
    .badge-one, .badge-other, .badge-teacher {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Improvements for large desktops */
@media (min-width: 1200px) {
    .container-fluid.my-5 .row {
        justify-content: space-between;
        align-items: center;
    }

    .col-md-6:first-child {
        padding: 50px; /* Add space around content for large screens */
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 1200px) {
    .col-md-6 {
        flex: 0 0 auto !important;
      	width: auto !important;
    }
}