/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #232D4B; /* UVA Blue */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #232D4B;
    padding: 0.5rem 0;
    z-index: 1000;
}

/* Main content styles */
main {
    padding: 2rem;
    margin-top: 150px;
    min-height: calc(100vh - 300px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 300px; /* Increased padding to prevent footer overlap */
}

section {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
}

.logo-text {
    font-family: 'Times New Roman', serif;
    font-size: 4.5rem;
    font-weight: bold;
    color: #F9DCBF;
    letter-spacing: 0.2em;
    margin-bottom: 0;
}

.vertical-bar {
    width: 4px;
    height: 60px;
    background-color: #F9DCBF;
    margin: 0 1rem;
}

.full-name {
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    color: #F9DCBF;
    margin-bottom: 0;
}

h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    text-decoration: underline;
    text-decoration-color: #F9DCBF;
    text-underline-offset: 0.5rem;
    text-decoration-thickness: 0.15rem;
}

p {
    margin-bottom: 1rem;
    color: white;
}

/* Footer styles */
footer {
    background-color: #232D4B;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.footer-logos {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.footer-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    height: 100px;
    width: auto;
}

/* Responsive design */
@media (max-width: 1024px) {
    .partner-logos {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.25rem;
    }

    .partner-list ul {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.5rem 1.5rem;
    }

    /* Impact box spacing on tablets */
    #about p:nth-of-type(2) {
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
        min-height: calc(100vh - 8rem);
        margin-top: 120px;
        padding-bottom: 200px; /* Reduced padding for mobile */
    }

    section {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 3.5rem;
        letter-spacing: 0.08em;
    }

    h2 {
        font-size: 1.5rem;
        text-align: center;
        text-decoration: underline;
        text-decoration-color: #F9DCBF;
        text-underline-offset: 0.4rem;
        text-decoration-thickness: 0.12rem;
    }

    p {
        text-align: center;
        font-size: 1rem;
        line-height: 1.4;
    }

    #about p {
        text-align: left;
        font-size: 1rem;
        line-height: 1.4;
    }

    .footer-logo {
        height: 80px;
    }

    .carousel-controls {
        padding: 0 0.5rem;
    }

    .carousel-button {
        padding: 0.75rem;
        font-size: 1.25rem;
        min-width: 40px;
        min-height: 40px;
    }

    .image-collage {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .image-container {
        padding: 0.1rem;
        display: inline-block;
    }

    .image-container img {
        height: auto;
    }

    .team-grid {
        gap: 1.5rem;
    }

    .team-image-container {
        width: 150px;
        height: 150px;
    }

    footer {
        padding: 0.75rem 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    main {
        padding: 0.5rem;
        margin-top: 100px;
        padding-bottom: 200px; /* Reduced padding for small mobile */
    }

    .logo-text {
        font-size: 2.5rem;
        letter-spacing: 0.06em;
    }

    h2 {
        font-size: 1.25rem;
        text-decoration: underline;
        text-decoration-color: #F9DCBF;
        text-underline-offset: 0.3rem;
        text-decoration-thickness: 0.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    #about p {
        text-align: left;
        font-size: 0.9rem;
    }

    .footer-logos {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-logo {
        height: 60px;
    }

    .carousel-slide {
        flex-direction: column;
        gap: 0.5rem;
    }

    .image-collage {
        gap: 0.15rem;
    }

    .image-container {
        padding: 0.05rem;
        display: inline-block;
    }

    .image-container img {
        height: auto;
    }

    .team-grid {
        gap: 1rem;
    }

    .team-image-container {
        width: 120px;
        height: 120px;
        border-width: 4px;
    }

    .partner-logos {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .partner-logo {
        max-width: 120px;
        max-height: 70px;
    }

    .partner-list ul {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .partner-list li {
        font-size: 0.9rem;
    }

    /* Impact box spacing on mobile */
    #about p:nth-of-type(2) {
        padding: 0.75rem 0.9rem;
    }

    footer {
        padding: 0.5rem 0;
    }
}

/* Add touch-friendly styles */
@media (hover: none) {
    .image-container img:hover,
    .partner-logo-container:hover {
        transform: none;
    }

    .carousel-button {
        background: rgba(35, 45, 75, 0.9);
    }
}

/* Add landscape orientation support */
@media (max-height: 500px) and (orientation: landscape) {
    main {
        margin-top: 80px;
        padding-bottom: 125px;
    }

    .logo-text {
        font-size: 2.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.image-collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #232D4B;
    padding: 0.5rem;
    height: auto;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-height: 400px; /* Limit maximum height */
}

.image-container img:hover {
    transform: scale(1.05);
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    gap: 1rem;
}

.image-container {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-container img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.carousel-button {
    background: rgba(35, 45, 75, 0.7);
    color: #F9DCBF;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background: rgba(35, 45, 75, 0.9);
}

@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column;
    }
    
 }

a {
    color: #F9DCBF; /* UVA 25% orange */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #E57200; /* UVA orange */
    text-decoration: underline;
}

#about ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

#about li {
    margin-bottom: 1rem;
}

#about p {
    text-align: left;
    margin-bottom: 1rem;
    color: white;
}

/* Impact section styles (second paragraph inside #about) */
#about p:nth-of-type(2) {
    background-color: rgba(249, 220, 191, 0.1);
    border-left: 4px solid #F9DCBF;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    white-space: pre-line; /* Respect line breaks inside the Impact text */
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.partner-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: #F9DCBF;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 80px;
}

.partner-logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.partner-logo {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.partner-list {
    text-align: center;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.partner-list ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem 2rem;
    text-align: left;
}

.partner-list li {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 0.95rem;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 6px solid #F9DCBF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.team-image[alt="Bella Lu"] {
    transform: scale(1.8);
    object-position: center 50%;
}

.team-name {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Alumni Styles */
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.alumni-member {
    text-align: center;
    padding: 1rem;
    background-color: transparent;
}

.alumni-image-container {
    width: 100%;
    margin-bottom: 1rem;
    border: 4px solid #F9DCBF;
    border-radius: 8px;
    padding: 4px;
    background-color: #F9DCBF;
}

.alumni-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.alumni-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.alumni-years {
    color: white;
    font-size: 0.9rem;
} 