@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Poppins: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');

* {
    text-decoration: none;
    font-family: "Poppins", serif;
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.logo img{
    width: 204px;
    display: block; 
}


.navbar {
    align-items: center;
    background-color: rgb(35, 48, 71);
    padding-left: 16px;
    width: 100%;
    box-sizing: border-box;
}

h2 {
    color: rgb(35, 48, 71);
    font-size: 16px;
    font-weight: bold;
}

h1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

h5 {
    color: #9FECED;
    font-size: 16px;
    font-weight: 700;
}

.hero {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;

    height: 234px;
    width: 100%;
    background-color: rgb(35, 48, 71);
}

.main-content {
    display: block;
    padding: 16px;
    padding-top: 32px;
}

.content-heading {
    padding-bottom: 16px;

}

.card-container {
    display: flex;
    /* Use flexbox for the layout */
    flex-wrap: wrap;
    /* Allow wrapping of the cards */
    justify-content: flex-start;
    /* Align the cards to the left */
    gap: 34px;
    /* Set the gap between the cards to 34px */
    width: 100%;
    /* Ensure the container takes full width */
}

.main-card {
    position: relative;
    width: 100%;
    /* Make the card take up 100% of the container's width */
    max-width: 1066px;
    /* Max width constraint */
    min-width: 358px;
    /* Min width constraint */
    height: 212px;
    /* Mobile height */
    border-radius: 20px;
    overflow: hidden;
}

.img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ensures the image container fills the whole card */

}

.img-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the images fit within the container */
    display: block;
}

.img1 {
    z-index: 1;
    /* Image 1 is the background layer */
}

.img2 {
    z-index: 2;
    /* Image 2 is on top of Image 1 */
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.container {
    position: absolute;
    top: 0%;
    /* This will place the container and its content slightly above the center */
    left: 50%;
    transform: translateX(-50%);
    /* Centers the text horizontally */
    width: 100%;
    text-align: center;
    /* Centers the text */
    z-index: 3;
    /* Ensures the text stays above the image */
    padding-top: 53px;
    /* Top padding */
    padding-bottom: 53px;
    /* Bottom padding */
}

.highlight {
    color: white;
    /* "JOIN US" in white */
    font-size: 14px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    padding-bottom: 16px;
}

.combined-bg {
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0));
    padding: 8px;
    /* Adds space inside the background for both lines */
    border-radius: 8px;
    /* Smooth rounded corners for the combined background */
    text-align: center;
    /* Centers the text within the combined background */
}

.secondary {
    color: #9FECED;
    margin: 5px 0;
    /* Adds some space between the two lines */
}

.line-1 {
    font-size: 18px;
    /* Font size for "HAVE YOU EVER?" */
}

.line-2 {
    font-size: 14px;
    /* Font size for "CMDT Thesis Exhibition 2025" */
}

.content {
    display: block;
    padding: 0px;
    padding-top: 32px;
    justify-content: center;
}

.content b {
    padding-left: 16px;
    color: rgb(35, 48, 71);
}


.card {
    display: flex;
    flex-direction: column;
    border-radius: 20px 20px 20px 20px;
    width: 100%;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2);
    overflow: hidden;

    border-color: #000000;
}

.card img {
    width: 100%;
}

.card-body {
    background-color: #fffcfc;
    flex-grow: 1;
    padding: 24px;
}

.card-title {
    color: #233047;
    font-weight: bold;
    font-size: 16px;
    margin: 0px;
    padding: 0px;

}

.card-text {
    line-height: 1.4;
    margin: 10px 0px 0px 0px;
    font-size: 8px;
    color: #858585;

}

.navy-line {
    width: 100%;
    border: 4px solid rgb(35, 48, 71);
    /* Temporary border for debugging */
}


.cardcontent {
    display: grid;
    grid-template-columns: 34px 146px;
    grid-template-rows: 17px 17px;
    gap: 0px 8px;
    padding-top: 19px;
    grid-auto-flow: row;
    grid-template-areas:
        "image-box adminname"
        "image-box date";
}

.cardcontent h3 {
    color: rgb(109, 109, 109);
    font-size: 14px;
}

.image-box {
    grid-area: image-box;
    justify-content: center;
    padding-top: 0px;
}

.image-box img {
    width: 100%;
    /* Make the thumbnail image take up the full width of its container */
    height: auto;
    /* Maintain the aspect ratio of the image */
    object-fit: cover;
    /* Ensure the image covers the area of its container */
    display: block;
    /* Ensures the image is displayed without extra space below */
    margin-left: auto;
    /* Center image horizontally */
    margin-right: auto;
    /* Center image horizontally */
}

/* Styling for admin images (the smaller images inside the card) */
.cardcontent .image-box img {
    width: 34px;
    /* Set the admin image width */
    height: 34px;
    /* Set the admin image height */
    object-fit: cover;
    /* Ensure the admin image is contained within the set size */
    margin-left: auto;
    /* Center admin image horizontally */
    margin-right: auto;
    /* Center admin image horizontally */
}

.adminname {
    grid-area: adminname;
}

.date {
    grid-area: date;
}

h3 {
    font-size: 14px;
}

h4 {
    font-size: 12px;
    color: #858585;
    font-weight: 400;
}

.card-container {
    display: flex;
    padding: 0 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    width: 100%;
}


footer {
    background-color: rgb(15, 15, 15);
    margin-top: 40px;
    padding: 16px;
    padding-bottom: 44px;
    width: 100%;
}

.footer-content {
    padding-bottom: 0px;
    gap: 16px;
}

.footer-content h4 {
    font-size: 14px;
    font-weight: 400;
}

.custom-br {
    height: 10px;
    /* Set your custom height here */
    width: 100%;
    /* Full width */
    clear: both;
    /* Ensures it clears any floated elements */
}

.icon {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;

}

.footer-link {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer-link h4 {
    font-size: 10px;
    font-weight: 400;
}

@media (min-width: 768px) {

    .content-wrapper {
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }


    .navbar {
        /* Increase navbar height */
        padding: 6px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        height: 234px;
        /* Expand hero section for desktop */
    }

    h1 {
        font-size: 40px;
        /* Larger font for desktop hero */
    }

    .main-content {
        width: 100%;
        /* Restrict content width on larger screens */
        padding-left: 0px;
        padding-right: 0px;
    }

    .content-heading {
        position: relative;
        display: flex;
        align-items: center;
    }

    .content-heading h2 {
        font-size: 22px;
        margin-right: 30px;
        /* Adds some space between the text and the line */
    }

    .content-heading b {
        font-size: 22px;
        margin-right: 30px;
        padding: 0;
        /* Adds some space between the text and the line */
    }

    .content-heading::after {
        content: '';
        flex-grow: 1;
        /* Fills the remaining space */
        height: 2px;
        /* Thickness of the line */
        background-color: rgb(176, 176, 176);
        /* Navy color */
        display: block;
    }

    .main-card {
        width: 100%;
        max-width: 1200px;
        /* Optional: to prevent the card from stretching too wide */
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        background: #ffffff;
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
    }


    /* Image Container */
    .img-container {
        position: relative;
        width: 100%;
        height: 400px;
        /* Adjust as needed */
    }

    .img-container img:nth-child(1) {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .img-container img:nth-child(2) {
        width: 100%;
        /* Adjust width to scale down */
        height: auto;
        object-fit: cover;
        position: absolute;
        bottom: 0;
        right: 0;
        transform: scale(1);
        /* Slightly scale down */
        transition: left 0.5s ease, right 0.5s ease, transform 0.5s ease;
    }

    .container {
        position: absolute;
        top: 0;
        left: 50%;
        width: 100%;
        text-align: center;
        z-index: 3;
        padding-top: 33px;
        padding-bottom: 53px;
    }

    .highlight {
        color: white;
        /* "JOIN US" in white */
        font-size: 16px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 2);
        letter-spacing: 2px;
        padding-bottom: 16px;
        text-align: center;
    }

    .combined-bg {
        background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0));
        padding: 8px;
        /* Adds space inside the background for both lines */
        border-radius: 20px;
        /* Smooth rounded corners for the combined background */
        text-align: center;
        /* Centers the text within the combined background */
    }

    .secondary {
        text-align: center;
        color: #9FECED;
        margin: 5px 0;
        /* Adds some space between the two lines */
    }


    .line-1 {
        font-size: 22px;
        /* Font size for "HAVE YOU EVER?" */
    }

    .line-2 {
        font-size: 14px;
        /* Font size for "CMDT Thesis Exhibition 2025" */
    }

    .main-content {
        width: 100%;
    }

    .main-card {
        display: flex;
        height: 400px;
        max-width: 100%;
        width: auto;
    }

    .main-content img {
        width: 100%;
        object-fit: cover;
    }

    .container {
        width: 100%;
    }

    .img {
        width: 100%;
    }

    .card .img-container {
        width: 100%;
        /* Make sure the container stretches across the full width */
        height: auto;
        /* Let the height adjust naturally based on the content */
    }

    .card .img-container img {
        display: flex;
        width: 100%;
        /* Stretch the image across the container's width */
        height: auto;
        /* Let the height adjust automatically */
        object-fit: cover;
        /* Ensure the image covers the container */
    }

    .card-container {
        justify-content: flex-start;
        gap: 34px;
        /* 34px gap between cards */
        padding-left: 0;
        padding-right: 0;
    }

    .card {
        width: 332px;
        /* Card width */
        height: 326px;
        /* Adjust card height */
    }

    footer {
        padding-top: 56px;
        padding-bottom: 48px;
        padding-left: 187px;
        padding-right: 187px;
        display: flex;
        justify-content: space-between;
    }

    .footer-content h5 {
        font-size: 16px;
        /* Larger footer title */
    }

    .footer-link .icon {

        justify-content: flex-end;
        padding-right: 0px;
        padding-bottom: 40px;
    }

    .footer-link h4 {
        font-size: 12px;
    }

    .icon {
        padding-top: 8px;
        gap: 24px;
        /* Add more spacing between icons */
    }
}

@media (min-width: 1024px) {

    .content-wrapper {
        max-width: 1200px;
        padding-left: 30px;
        padding-right: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    h1 {
        font-size: 40px;
        /* Larger font for desktop hero */
    }

    .main-content {
        width: 100%;
        /* Restrict content width on larger screens */
        padding-left: 0px;
        padding-right: 0px;
    }

    .content-heading {
        position: relative;
        display: flex;
        align-items: center;
    }

    .content-heading h2 {
        font-size: 22px;
        margin-right: 30px;
        /* Adds some space between the text and the line */
    }

    .content-heading b {
        font-size: 22px;
        margin-right: 30px;
        padding: 0;
        /* Adds some space between the text and the line */
    }

    .content-heading::after {
        content: '';
        flex-grow: 1;
        /* Fills the remaining space */
        height: 2px;
        /* Thickness of the line */
        background-color: rgb(176, 176, 176);
        /* Navy color */
        display: block;
    }

    .main-card {
        width: 100%;
        max-width: 1200px;
        /* Optional: to prevent the card from stretching too wide */
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        background: #ffffff;
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        height: 300px;
    }


    /* Image Container */
    .img-container {
        position: relative;
        width: 100%;
        height: 300px;
        /* Adjust as needed */
    }

    .img-container img:nth-child(1) {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .img-container img:nth-child(2) {
        width: 70%;
        /* Adjust width to scale down */
        height: auto;
        object-fit: cover;
        position: absolute;
        bottom: 0;
        right: 0;
        transform: scale(1);
        /* Slightly scale down */
        transition: left 0.5s ease, right 0.5s ease, transform 0.5s ease;
    }

    .container {
        position: absolute;
        top: 5%;
        /* This will place the container and its content slightly above the center */
        left: 180px;
        /* Fixed 30px from the left border */
        width: 100%;
        max-width: 335px;
        text-align: center;
        /* Centers the text */
        z-index: 3;
        /* Ensures the text stays above the image */
        padding-top: 53px;
        /* Top padding */
        padding-bottom: 53px;
        /* Bottom padding */
    }

    .highlight {
        color: white;
        /* "JOIN US" in white */
        font-size: 16px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 2);
        letter-spacing: 2px;
        padding-bottom: 16px;
        text-align: center;
    }

    .combined-bg {
        background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0));
        padding: 8px;
        /* Adds space inside the background for both lines */
        border-radius: 20px;
        /* Smooth rounded corners for the combined background */
        text-align: center;
        /* Centers the text within the combined background */
    }

    .secondary {
        text-align: center;
        color: #9FECED;
        margin: 5px 0;
        /* Adds some space between the two lines */
    }

}

@media (min-width: 1441px) {

    .content-wrapper{
        width: 1200px;
    }

    .main-card {
        display: flex;
        height: 600px;
        max-height: fit-content;

    }

    .main-content img {
        width: 100%;
        object-fit: cover;
    }

    .container {
        position: absolute;
        top: 5%;
        /* This will place the container and its content slightly above the center */
        left: 300px;
        /* Fixed 30px from the left border */
        max-width: 500px;
    }

    .img {
        width: 100%;
    }

    .card .img-container {
        width: 100%;
        /* Make sure the container stretches across the full width */
        height: auto;
        /* Let the height adjust naturally based on the content */
    }

    .card .img-container img {
        display: flex;
        width: 100%;
        /* Stretch the image across the container's width */
        height: auto;
        /* Let the height adjust automatically */
        object-fit: cover;
        /* Ensure the image covers the container */
    }

    .img-container img:nth-child(2) {
        width: 60%;
        /* Adjust width to scale down */
        height: auto;
        object-fit: cover;
        position: absolute;

        bottom: 0;
        right: 0;
        transform: translateX(0);
        /* Slightly scale down */
        transition: transform 0.3s ease-in-out;
    }
}

@media screen and (max-width: 768px) {
    .img-container img:nth-child(2) {
        left: 50%;
        /* Center horizontally */
        transform: translateX(-50%);
        /* Center by moving it left by 50% of its own width */
        bottom: 0;
        /* Keep at the bottom */
    }
}