body {
    background-color: #32717A;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: clip;
}

p {
    color: white;
    font-family: 'Karla', sans-serif;
    font-size: 26px;
}

.bg-dark-blue {
    background-color: #0E4051;
}

.nav-link-size {
    font-family: 'Karla', sans-serif;
    font-size: 20px;
    color: white !important;
    margin: 8px;
    position: relative;
}

.nav-link-size::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: -2px;
    height: 2px;
    background-color: #0CA195;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.nav-link-size:hover,
.nav-link-size:focus-visible,
.nav-link-size.active {
    opacity: 100%;
}

.nav-link-size:hover::after,
.nav-link-size:focus-visible::after,
.nav-link-size.active::after {
    transform: scaleX(1);
}

/* Hovering back out reverses from the right so it feels directional, not just a fade */
.nav-link-size:not(:hover):not(:focus-visible)::after {
    transform-origin: right center;
}

#discord-link {
    background-color: #0CA195;   
    border-radius: 20px;
    color: white;
    text-align: center;
    width: 150px;
    margin: 10px;
    padding: 10px;
}

#discord-link:hover {
    opacity: 80%;
    transition: 0.3s;
}

#calendar{
    background-color:#62b0a9;
}

#aboutUs-description {
    margin-top: 50px;
    font-size: 22px;
    color: black;
}

footer {
    background-color: #0E4051;
}


#email-link {
    color: white;
    text-decoration: none;
}

#email-link:hover {
    text-decoration: none;
    opacity: 70%;
    transition: 0.2s;
}

.contact-icon {
    font-size: 30px;
    text-decoration: none;
    color: white;
}

.contact-icon:hover {
    color: #0CA195;
    transition: 0.3s ease-in;
}

.contact-info {
    margin: 30px;
}

h2 {
    color: white;
}

.sponsorship {
    color: white;
    text-decoration: underline;
}

.sponsorship:hover {
    color: #EDE912
}

h3 {
    color: white;
    font-family: 'Karla', sans-serif;
    font-size: 26px;
}

.col {
    text-align: center;
}

#home {
    min-height: 100vh;
    color: white;
    overflow: hidden;
}

.hero-description {
    max-width: 700px;
    margin-bottom: 40px;

    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-btn {
    padding: 18px 35px;
    border-radius: 16px;

    font-size: 1.15rem;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}


.hero-buttons .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Staggered entrance for the hero copy on page load */
#gwc-homepage-logo,
.hero-description,
.hero-buttons {
    opacity: 0;
    animation: heroFadeUp 0.9s ease forwards;
}

#gwc-homepage-logo { animation-delay: 0.05s; }
.hero-description  { animation-delay: 0.3s; }
.hero-buttons       { animation-delay: 0.55s; }

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 330px);
    gap: 24px;

    padding: 40px 20px;
}

.hero-image-wrap {
    --y: 0px;
    overflow: hidden;
    border-radius: 26px;
    opacity: 0;
    animation: heroImageFadeUp 0.9s ease forwards;
}

@keyframes heroImageFadeUp {
    from {
        opacity: 0;
        transform: translateY(calc(var(--y) + 26px));
    }
    to {
        opacity: 1;
        transform: translateY(var(--y));
    }
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    border-width: 1px white;
    transform: scale(1.06);
}

.image-one {
    --y: 50px;
    animation-delay: 0.7s;
}

.image-two {
    --y: -10px;
    animation-delay: 0.85s;
}

.image-three {
    --y: 50px;
    animation-delay: 1s;
}

.image-four {
    --y: 40px;
    animation-delay: 1.15s;
}

@media (prefers-reduced-motion: reduce) {
    #gwc-homepage-logo,
    .hero-description,
    .hero-buttons {
        animation: none;
        opacity: 1;
    }

    .hero-image-wrap {
        animation: none;
        opacity: 1;
        transform: translateY(var(--y));
    }

    .hero-image {
        animation: none;
        transform: none;
    }
}

.section-text{
    color:#6f6f7a;
    font-size:1.1rem;
    line-height:1.8;
    max-width:650px;
}

.about-image-wrapper{
    position:relative;
}

.about-image-wrapper img{
    border-radius:24px;
}

#about{
    background-color:rgb(223, 246, 252);
    margin: 0px;
    padding: 60px 24px;
}

.gallery-section {
    padding: 70px 24px;
    background-color: #f7fbfb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    overflow: hidden;
    border: 1px solid rgba(14, 64, 81, 0.12);
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 6px 18px rgba(14, 64, 81, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(14, 64, 81, 0.15);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image {
    transform: scale(1.04);
}

.semester-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.94);
    color: #0e4051;
    font-family: "Karla", sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(14, 64, 81, 0.14);
}

.gallery-content {
    padding: 20px;
}

.gallery-content h3 {
    margin: 0 0 10px;
    color: #0e4051;
    font-family: "Oswald", sans-serif;
    font-size: 24px;
}

/* Tablet */
@media screen and (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media screen and (max-width: 600px) {
    .gallery-section {
        padding: 50px 16px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-card {
        border-radius: 15px;
    }

    .gallery-image-container {
        aspect-ratio: 1 / 1;
    }

    .semester-badge {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .gallery-content {
        padding: 13px;
    }

    .gallery-content h3 {
        margin-bottom: 6px;
        font-size: 18px;
    }

    .gallery-card:hover {
        transform: none;
    }

    .gallery-card:hover .gallery-image {
        transform: none;
    }
}

/* ===== Board: continuous auto-scrolling strip ===== */
#board {
    overflow: hidden;
    padding-block: 60px 70px;
}

.board-scroll-outer {
    overflow: hidden;
    width: 100%;
    margin-top: 30px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.board-scroll-track {
    display: flex;
    align-items: stretch;
    gap: 28px;
    width: max-content;
    padding: 10px 4px 20px;
    animation: board-marquee 40s linear infinite;
}

.board-scroll-outer:hover .board-scroll-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .board-scroll-track {
        animation: none;
    }
}

@keyframes board-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.board-scroll-card {
    flex: 0 0 260px;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 25px rgba(14, 64, 81, 0.18);
    text-align: center;
}

.board-scroll-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
}

.board-scroll-body {
    padding: 18px 16px 22px;
}

.board-scroll-body h3 {
    margin-bottom: 6px;
    color: #0E4051;
    font-family: 'Karla', sans-serif;
    font-size: 20px;
}

.board-scroll-body p {
    margin: 2px 0;
    color: #0E4051;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
}

@media (max-width: 600px) {
    #board {
        padding-block: 48px 56px;
    }

    .board-scroll-track {
        gap: 16px;
    }

    .board-scroll-card {
        flex-basis: 180px;
    }

    .board-scroll-card img {
        height: 150px;
    }

    .board-scroll-body {
        padding: 12px 12px 16px;
    }

    .board-scroll-body h3 {
        font-size: 16px;
    }

    .board-scroll-body p {
        font-size: 12px;
    }
}

/* ===== Resources section ===== */
#resources {
    background-color: #62b0a9;
    padding-top: 64px;
    padding-bottom: 64px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid rgba(14, 64, 81, 0.1);
    border-radius: 18px;
    background: white;
    box-shadow: 0 6px 16px rgba(14, 64, 81, 0.08);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 26px rgba(14, 64, 81, 0.14);
}

.resource-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e6f7f5;
    color: #0ca195;
    font-size: 22px;
}

.resource-card h3 {
    margin: 0;
    color: #0e4051;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
}

.resource-card p {
    margin: 0;
    color: #587078;
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.resources-locked {
    max-width: 700px;
    margin: 56px auto 0;
    padding: 32px;
    border-radius: 20px;
    background: #0e4051;
    box-shadow: 0 14px 32px rgba(14, 64, 81, 0.22);
}

.locked-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.locked-header i {
    font-size: 26px;
    color: #0CA195;
    flex-shrink: 0;
}

.locked-header h3 {
    margin: 0 0 6px;
    color: white;
    font-family: 'Karla', sans-serif;
    font-size: 22px;
}

.locked-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Karla', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.locked-links{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:24px;
}

.locked-links a{
    display:flex;
    align-items:center;
    gap:12px;

    padding:14px 18px;

    background:#fff;
    border-radius:12px;

    color:#0E4051;
    text-decoration:none;

    transition:.25s;
}

.locked-links a:hover{
    transform:translateX(6px);
    background:#eef9f8;
}

.locked-links i{
    color:#0CA195;
    font-size:22px;
}

@media (max-width: 600px) {
    .resources-locked {
        padding: 22px;
        margin-top: 40px;
    }

    .locked-header {
        gap: 12px;
    }
}


/* ===== Responsive fixes ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

img, svg, iframe {
    max-width: 100%;
}

.navbar > .container-fluid {
    flex-wrap: wrap;
}

.navbar-brand,
.navbar .nav-link {
    min-width: 0;
}

#gwc-logo-white {
    display: block;
    width: 125px;
    height: auto;
    margin: 6px 0;
}

#gwc-homepage-logo {
    display: block;
    width: min(600px, 100%);
    height: auto;
    margin-top: 50px;
    margin-bottom: 50px;
}

.svg-header {
    display: block;
    width: min(450px, calc(100% - 32px));
    height: auto;
    margin-inline: auto;
}

#home .container-fluid,
#home .row,
#about .row {
    min-width: 0;
}

#home .row {
    margin-inline: 0;
}

#home [class*="col-"],
#about [class*="col-"] {
    min-width: 0;
}

.about-image-wrapper {
    overflow: hidden;
}

#calendar {
    padding: 64px 24px 60px;
}

.calendar-frame {
    width: min(1100px, 100%);
    margin: 32px auto 0;
    overflow: hidden;
    border-radius: 18px;
    background: white;
}

.calendar-frame iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
}

.gallery-grid,
.gallery-card,
.gallery-image-container,
.gallery-content {
    min-width: 0;
}

.gallery-content h3,
#aboutUs-description {
    overflow-wrap: anywhere;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 24px;
}

.footer-brand,
.footer-contact {
    min-width: 0;
}

.footer-contact {
    margin: 0;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 12px 0 18px;
    }

    .nav-link-size {
        margin: 2px 0;
        padding: 10px 4px;
    }

    #discord-link {
        width: fit-content;
        margin: 10px 0 0;
        padding-inline: 18px;
    }

    #home {
        padding-top: 110px;
    }

    #home .min-vh-100 {
        min-height: auto !important;
    }

    #home .col-lg-6:first-child {
        padding-inline: 8px;
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .image-collage {
        grid-template-rows: repeat(2, 240px);
        max-width: 720px;
        margin-inline: auto;
    }

    #about {
        padding: 72px 24px;
    }

    #aboutUs-description {
        margin-top: 0;
    }

    .calendar-frame iframe {
        height: 650px;
    }
}

@media (max-width: 600px) {
    section {
        padding-block: 56px;
    }

    .navbar {
        padding-block: 4px;
    }

    #gwc-logo-white {
        width: 104px;
    }

    #home {
        padding: 104px 16px 56px;
    }

    #gwc-homepage-logo {
        margin: 20px auto 24px;
    }

    .hero-description {
        margin-bottom: 28px;
        font-size: 1.1rem;
        line-height: 1.55;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-btn {
        width: 100%;
        padding: 14px 18px;
        font-size: 1rem;
    }

    .image-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 150px);
        gap: 10px;
        padding: 34px 0 0;
    }

    .hero-image,
    .hero-image-wrap {
        border-radius: 16px;
    }

    .image-one,
    .image-two,
    .image-three,
    .image-four {
        --y: 0px;
    }

    #about {
        padding: 64px 16px;
    }

    #about .row {
        --bs-gutter-x: 0;
    }

    #aboutUs-description {
        font-size: 17px;
        line-height: 1.65;
        text-align: left;
    }

    #calendar {
        padding: 64px 12px;
    }

    .calendar-frame {
        margin-top: 22px;
        border-radius: 12px;
    }

    .calendar-frame iframe {
        height: 560px;
    }

    .gallery-section {
        padding: 64px 12px;
    }

    .gallery-grid {
        gap: 10px;
    }

    .gallery-content h3 {
        font-size: 16px;
        line-height: 1.25;
    }

    footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .calendar-frame iframe {
        height: 500px;
    }
}

html {
    scroll-padding-top: 70px;
}

#about,
#calendar,
#gallery,
#resources,
#sponsorship,
#board {
    scroll-margin-top: 0;
}
