* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  color: #333;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/*BANNER*/

.banner-container {
    position: relative;
    margin: 0 auto;
}

.banner-container .desc {
    position: absolute; /* Position the background text */
    background: rgba(245, 233, 229, 0.8); /* Black background with 0.5 opacity */
    color: #000; /* Grey text */
    border-radius: 20px;
    min-height: 300px;
    width: clamp(300px, 35%, 500px);
    padding: 60px; 

    top: 50%;
    left: 10%;
    transform: translate(0%, -50%);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;

    backdrop-filter: blur(2px);
}

.banner-container .desc .about-btn {
    text-transform: uppercase;
    font-size: 20px;
    text-decoration: none;
    color: #000;
    background: #F4B25D;
    padding: 20px 22px;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    border: 2px solid #000;
}

.banner-container .desc .about-btn:hover {
    background: #f3ca95;
}

.banner-container .desc h2 {
    font-size: 40px;
    margin-bottom: 10px;
    align-self: center;
}

.banner-container img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 600px;
    width: 100%;
    object-fit: cover;
}

/* POST */

/* POST BANNER */
.banner-container .post-img img {
    height: 300px;
}

.banner-container .post-desc {
    position: absolute; /* Position the background text */
    background: rgba(245, 233, 229, 0.6); /* Black background with 0.5 opacity */
    color: #000; /* Grey text */
    border-radius: 10px;
    padding: 30px;

    width: 80%;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    backdrop-filter: blur(2px);
    
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.banner-container .post-desc h2 {
    font-size: clamp(16px, 2vw, 32px);
    margin-bottom: 10px;
}

.banner-container .post-desc p {
    font-size: clamp(12px, 2vw, 20px);
    margin-bottom: 10px;
}

/* POST CONTENT */

.post-content {
    margin: 50px 0px 50px 0px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.post-content .text {
    width: 80%;
    background-color: rgba(245, 233, 229, 0.8);
    padding: 80px;
}

.post-content .text p {
    margin-bottom: 20px;
}

.post-content .text a {
    text-decoration: none;
    color: #000;
    overflow-wrap: break-word;
}

.post-content .text a:hover {
    color: #F4B25D;
}

/*PAGE CONTENT*/

.page-content {
    background: #fff;
    padding-bottom: 40px;
}

.ribbon-heading {
    width: 100%;
    text-align: center;
    color: #fff;
    background-color: #523A34;
    padding: 25px;
}

/* CARDS */

.card-container {
    width: 75%;
    margin: 0 auto;

    display: grid;
    gap: 15px;
}

.col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background-color: #dca54a;
    padding: 20px;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    min-height: 250px;

    justify-content: flex-start;
}

.card h3 {
    font-size: 35px;
    font-weight: bold;
    text-align: center;
}

.card p {
    line-height: 1.5;
}

.card-img {
    padding: 0px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.team-img {
    height: 300px;
}

.card-centred {
    text-align: center;
    justify-content: center;
}

.card-compact {
    min-height: auto;
    padding: 15px;
}

.card-wide {         
    grid-column: span 2;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between card and caption */
}

.caption {
    font-size: 12px; /* Smaller text */
    color: #555;
    text-align: center;
    font-style: italic;
    margin-top: 10px; /* Adds some space between the card and the caption */
}

@media (max-width: 1024px) {
    .banner-container .desc {
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(90%, 500px);
    }

    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-wide {
        grid-column: span 1; /* only 1 column because the grid is 2 columns now */
    }
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }
}