body {
    position: relative;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #63666a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}

/* header {
    background: linear-gradient(to left, #ffffff 0%, #f3f3f3 100%);
    padding: 20px;
    border-radius: 10px;
} */

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo .red {
    color: #ba0c2f;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #63666a;
    font-size: 18px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* <-- added */
    padding: 20px;
    /* <-- added for vertical centering */
}

.tagline {
    margin: 40px 0 20px 0;
    font-size: 18px;
}

.card {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background-color: #2e7d32;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 15px 0;
}

.question-desc {
    font-size: 16px;
    text-align: left;
    margin-bottom: 20px;
}

/* Matrix Layout */
.matrix-outer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    width: 20%;
    margin: 0 auto 30px auto;
}

.matrix-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px;
    align-items: flex-end;
}

.matrix-col-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.matrix-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.matrix-label {
    font-weight: bold;
    color: #63666a;
    font-size: 16px;
}

.matrix-box {
    display: flex;
    gap: 0;
}

.matrix-cell {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #63666a;
    font-size: 20px;
    color: #63666a;
}

.amber {
    background-color: #fbfcdd;
}

/* Input and Result */
input {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 2px solid #ccc;
    font-size: 16px;
}

.result {
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

button {
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    background-color: #f3f3f3;
    color: #ba0c2f;
    font-weight: bold;
    cursor: pointer;
}

footer {
    background-color: #fff;
    font-size: 14px;
    color: #333;
}

.footer-top img {
    width: 100%;
    max-height: 160px;
    /* Controls vertical size */
    object-fit: cover;
    display: block;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 30px 50px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 220px;
    margin: 0 15px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: bold;
    color: #444;
    margin-bottom: 10px;
}

.footer-col a {
    color: #ba0c2f;
    text-decoration: none;
}

.footer-col .donate-button {
    background-color: #ba0c2f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    width: 220px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-top: 1px solid #ccc;
    flex-wrap: wrap;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #ba0c2f;
    margin: 0 8px;
    text-decoration: none;
}

.footer-bottom-left {
    color: #333;
    font-size: 13px;
}

.footer-bottom-right a {
    color: #ba0c2f;
    margin-left: 20px;
    font-size: 13px;
    text-decoration: none;
}

.footer-bottom-right a:first-child {
    margin-left: 0;
}

.intro {
    text-align: center;
    margin: 60px auto 40px auto;
    max-width: 800px;
    padding: 0 20px;
}

.intro-title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.intro-title .highlight {
    color: #ba0c2f;
}

.intro-description {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    text-align: justify;
}

.input-responsive {
    width: 572px;
}


@media (max-width: 768px) {
    header div {
        flex-direction: column;
        align-items: flex-start !important;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        padding: 10px 0;
        font-size: 16px;
        display: block;
        text-align: center;
    }

    .intro-title {
        font-size: 28px;
    }

    .intro-description {
        font-size: 16px;
    }

    .card {
        width: 90%;
        padding: 20px;
    }

    .matrix-outer {
        width: 100%;
        align-items: center;
    }

    input {
        width: 100% !important;
    }

    .buttons {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
        padding: 20px;
    }

    .footer-col {
        margin-bottom: 30px;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-right {
        margin-top: 10px;
    }

    .badge {
        display: none;
    }

    .input-responsive {
        width: 100%;
        padding: 12px;
        margin-top: 15px;
        margin-bottom: 10px;
        border-radius: 10px;
        border: 2px solid #ccc;
        font-size: 16px;
        box-sizing: border-box;
    }
}

.course-card {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 80px;
}

.course-logo {
  width: 120px;
  height: 120px;
}

/* Media query for mobile */
@media (max-width: 768px) {
  .course-card {
    flex-direction: column;
    align-items: center;
  }

  .course-logo {
    margin-bottom: 15px;
  }
}

@media (max-width: 500px) {
  .unm-logo {
    display: none !important;
  }
}