/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
    font-family: 'Moon Time';
    src: url('../fonts/moon-time-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Basic Styling */
p {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6; /* Add line height for readability */
}

h3 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
    font-family: 'Moon Time';
}

body {
    background: #e5f3f3;
}

/* Banner Styling */
.banner-container {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow banners to wrap to the next line */
    justify-content: center; /* Center banners horizontally */
    
    margin-bottom: 20px; /* Space below the banners */
}

.banner {
    max-width: 100%; /* Ensure banners don't exceed container width */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Spacing between banners */
    margin-bottom: 10px; /* Add margin bottom for spacing when wrapping */
}

/* Image Dimensions */
.dimension {
    max-width: 150px; /* Adjusted to control image size in class cards */
    height: auto;
    border-radius: 10px;
}

.container {
    text-align: center;
}

.container .row {
    /* Container and Row Styling */
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.container .row:hover {
    transform: translateY(-5px);
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Text Styling */
.container .row .col h3 {
    color: #000;
    font-weight: 500;
    font-size: 3em;
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: 1px;
    margin-top: 20px;
}

.container .row .col h4 {
    color: #000;
    font-weight: 500;
    font-size: 1.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
    margin-top: 0;
    display: inline-block;
    letter-spacing: 1px;
}

.container .row .col h5 {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: relative;
    color: #fff;
    font-weight: 300;
    letter-spacing: 1px;
    background-color: #7ae1d5;
    padding: 10px;
}

.container .row .col p {
    color: #000;
    position: relative;
    margin: 10px 0 0;
    padding: 0;
    font-size: 16px;
    font-weight: 200;
    margin-bottom: 10px;
    margin-top: 10px;
}

/* Link Styling */
.container .row .col a {
    display: inline-block;
    padding: 10px 10px;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 1px;
    color: #FFD700;
    background: transparent;
    border-radius: 15px;
    margin-top: 10px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    background: #7ae1d5;
    color: #fff;
    outline: none;
    border: none;
    max-width: 150px;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 767px) {
  
  /* This rule will center the image and text block inside the card */
  .container .row {
    flex-direction: column;
    align-items: center;
  }

  /* This rule will center the text (h3, h4, etc.) inside the text block */
  .container .row .col.p-4 {
    text-align: center;
  }
  
  /* This rule makes the main title a more suitable size for mobile screens */
  .container .row .col h3 {
    font-size: 2.5em; 
  }
}

@media (min-width: 768px) {
  
  /* This vertically centers the image with the text block beside it */
  .container .row {
    align-items: center;
  }

  /* We'll make the class thumbnail image a bit larger on desktop */
  .dimension {
    max-width: 220px;
  }
  
}
