@import url('https://fonts.cdnfonts.com/css/optima');
@import url('https://fonts.cdnfonts.com/css/helvetica-255'
);
/* General styles */
body {
    font-family: 'Helvetica Light';
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #333;
    background: #fff;
    font-style: lighter;
    font-variant: lighter;
}

/* Larger version of the body */
body.large-body {
    font-size: 20px; /* Increase base font size */
    text-align: center;
}

a, a:hover, a:visited, a:active {
    color: inherit;
    text-decoration: none;
   }

/* Header */
header {
    padding: 20px;
    background: #fff;
    font-size: 16px;
}

header h1 {
    margin: 0;
    padding: 0;
    font-size: 60px;
    text-align: center;
    font-family: Optima;
    font-style: normal;
    font-variant: normal;
}

header h2 {
    font-family: "Helvetica Light";
    margin: 0;
    padding: 0;
    font-size: 16px;
    text-align: center;
    font-style: lighter;
    font-variant: lighter;
    color: #333;
}


header .plus-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 48px;
    text-decoration: none;
    background: white;
    color: grey;
    padding: 8px 15px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

header .plus-button:hover {
    background: white;
    color: white;
}

/* Container holding all projects */
.project-list {
    display: flex;
    flex-direction: column; /* Stack projects vertically */
    align-items: center;    /* Center them horizontally on the page */
    gap: 40px;              /* Space between projects */
    padding: 40px 0;
    width: 100%;
}

/* Each project block */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* Align text to image’s right edge */
    width: 90%;
    max-width: 800px;
    transition: transform 0.2s;
    opacity: 0; 
    transform: translateY(10px); 
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Image fills the card width */
.project-card img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    display: block;
}

/* Text below image, aligned to image’s right edge */
.project-description {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
    text-align: right;
    width: 100%;
}

/* Description text on individual project pages */
.project-page-description {
    font-size: 16px;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 5px auto;
    color: #333;
    text-align: center;
}

.project-card.show {
      opacity: 1;
      transform: translateY(0);
  }

/* Vertical Gallery */
.vertical-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vertical-gallery img {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 15px;
    border-radius: 0px;
    opacity: 0; /* Initially hidden */
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.vertical-gallery img.show {
    opacity: 1;
    transform: translateY(0);
}

/* Partners Page - Centering Content */

body.partners-page .partners-content {
    margin-top: 5vh;
    width: 90%;
    max-width: 400px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Lower header for partners page */
body.partners-page header {
    margin-top: 20vh; /* 20% down the viewport height */
    text-align: center;
    max-width: 400px;
}

/* Partner Details */
.partner {
    margin-bottom: 30px;
}

/* Partners Page Layout */
body.partners-page {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background: #fff;
}

.partner img {
    width: 150px;
    height: 150px;
    border-radius: 0%;
    object-fit: cover;
}

/* Copyright Text */
.footer-text {
    text-align: center;
    color: #7c7c7c; /* Change this color if needed */
    font-size: 14px;
    padding: 20px;
    position: relative;
}

@media (max-width: 768px) {

    /* Body: remove side padding so cards truly center */
    body {
        padding: 0;
    }

    /* Keep the list centered */
    .project-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }

    /* Center project cards precisely */
    .project-card {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* ensures text aligns to image’s right edge */
        width: 94%; /* slightly inset to prevent edge clipping */
        margin: 0;
    }

    /* Ensure image is perfectly centered */
    .project-card img {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
        border-radius: 0px;
    }

    /* Text: align with right edge of image */
    .project-description {
        width: 100%;
        text-align: right;
        margin-top: 4px;
        margin-right: 0;
        padding-right: 0; /* prevents overshoot */
        font-size: 13px;
        line-height: 1.3;
        color: #333;
    }
}