body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}

header {
    background: #007849;
    color: white;
    padding: 1rem;
    text-align: center;
}

header nav a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem;
}

section {
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #007849;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}


/* Event grid */
#campus-events,
#club-trips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Individual event/trip card */
.event-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #007849;
}

.event-date,
.event-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

/* Card container for events and trips */
#campus-events,
#club-trips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

/* Event/Trip Card */
.event-card,
.trip-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    padding-top: 2.5rem;
    /* NEW - More top padding for date badge */
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.event-card:hover,
.trip-card:hover {
    transform: translateY(-5px);
}

/* Date badge in corner */
.date-badge {
    position: absolute;
    top: 0.7rem;
    /* slightly lower than hard top */
    right: 1rem;
    background: #007849;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
}

/* Card text */
.event-title,
.trip-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #007849;
}

.event-location,
.trip-location {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

/* Button style */
.learn-more {
    display: inline-block;
    margin-top: 0.5rem;
    background: #007849;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.learn-more:hover {
    background: #005a35;
}


#trip-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.trip-info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    padding-top: 2.5rem;
    /* NEW - Consistent top padding */
    position: relative;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trip-info-card:hover {
    transform: translateY(-5px);
}

.trip-info-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007849;
    margin-bottom: 0.5rem;
}

.trip-info-description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.trip-info-button {
    background: #007849;
    color: white;
    padding: 8px 12px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.trip-info-button:hover {
    background: #005a35;
}


/* HERO Section */
.hero {
    background-image: linear-gradient(rgba(0, 120, 73, 0.7), rgba(0, 77, 44, 0.7)), url('./background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-button {
    background: white;
    color: #007849;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s, color 0.3s;
}

.hero-button:hover {
    background: #005a35;
    color: white;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    clip-path: circle(50% at 50% 50%);
    background: white;
}

#contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.contact-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    transition: transform 0.2s;
    text-align: center;
    text-decoration: none; /* Remove underline on link */
    color: inherit; /* Inherit text color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .contact-card:hover {
    transform: translateY(-5px);
    background: #f0f0f0;
  }
  
  /* Logos for social links */
  .social-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }
  

.contact-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007849;
    margin-bottom: 0.3rem;
}

.contact-email {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.8rem;
    word-break: break-word;
}

.social-icon {
    display: inline-block;
    margin: 0.5rem;
    font-size: 2rem;
    color: #007849;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #005a35;
}

#about-us {
    margin-top: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    color: #333;
  }
  


@media (max-width: 1000px) {
    #about-us {
        padding: 1rem;
        font-size: 1.4rem;
    }

    .event-title, .trip-title {
        font-size: 1.6rem;
    }

    .event-location, .trip-location {
        font-size: 1.2rem;
    }

    body {
        font-size: 1.2rem;
    }


}

/* Container for all river cards */
.river-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Individual river card */
.river-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    text-align: left;
}

/* Error card styling */
.river-card.error {
    background-color: #ffe6e6;
    border-color: #ffcccc;
}

/* River card headings */
.river-card h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

/* River card links */
.river-card a {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.river-card a:hover {
    text-decoration: underline;
}

/* Chip styles */
.runnable-chip {
    display: inline-block;
    background-color: #4caf50; /* Green for runnable */
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-left: 8px;
}

.not-runnable-chip {
    display: inline-block;
    background-color: #f44336; /* Red for not runnable */
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-left: 8px;
}

/* Description container */
.description-container {
    margin-top: 10px;
}

/* Toggle button */
.toggle-description {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.toggle-description:hover {
    background-color: #0056b3;
}

/* Description content */
.description-content {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}