/* =========================================================================
   JOYN INC. MASTER STYLESHEET
   ========================================================================= */

/* Exact Brand Colors */
:root {
    --joy-blue: #39adfd;   
    --joy-yellow: #fec802; 
    
    --off-white: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--off-white);
    color: var(--text-dark);
}

/* Centered Navigation & Header */
header {
    background-color: white; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    gap: 25px; 
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--joy-blue); 
}

/* Homepage Hero Section */
.hero {
    background-color: var(--joy-blue);
    color: var(--text-light);
    padding: 80px 5%;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; 
}

.hero-logo-box {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    flex: 0 0 auto;
}

.hero-logo-box img {
    width: 350px; 
    height: auto;
    display: block;
}

.hero-text-box {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero h2 {
    font-size: 3.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--joy-yellow); 
}

.hero p {
    font-size: 1.3rem;
    margin: 0 0 35px 0;
    line-height: 1.6;
}

/* Buttons */
.btn {
    background-color: var(--joy-yellow);
    color: var(--text-dark);
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    border: 2px solid var(--joy-yellow);
}

.btn:hover {
    background-color: transparent;
    color: var(--joy-yellow);
    transform: translateY(-2px);
}

/* Subpage Hero Section */
.sub-hero { 
    background-color: var(--joy-blue); 
    color: var(--text-light); 
    text-align: center; 
    padding: 60px 20px; 
}

.sub-hero h1 { 
    font-size: 3rem; 
    margin: 0; 
    text-transform: uppercase; 
    color: var(--joy-yellow); 
}

/* Universal Content Containers */
.content-container { 
    max-width: 1000px; 
    margin: 50px auto; 
    padding: 0 20px; 
    line-height: 1.8; 
}

.content-container h2 { 
    color: var(--joy-blue); 
    font-size: 2rem; 
    border-bottom: 2px solid var(--joy-yellow); 
    padding-bottom: 10px; 
    display: inline-block; 
    margin-top: 40px;
}

/* Homepage Pillars Grid */
.pillars {
    padding: 80px 5%;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.pillars h3 {
    font-size: 2.5rem;
    color: var(--joy-blue);
    margin-bottom: 50px;
}

.grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.card {
    background: white;
    border-top: 6px solid var(--joy-blue); 
    border-radius: 8px;
    padding: 35px 25px;
    width: 30%; 
    min-width: 280px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    text-decoration: none; 
    color: inherit; 
    display: block; 
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-top: 6px solid var(--joy-yellow); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
}

.card h4, .card h3 {
    color: var(--joy-blue);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.card p {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Assorted Subpage Layouts */
.track-box { background: white; border-left: 6px solid var(--joy-yellow); padding: 30px; margin-bottom: 30px; border-radius: 0 8px 8px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.track-box h2 { color: var(--joy-blue); margin-top: 0; border: none; padding: 0;}
.funding-note { background-color: var(--off-white); padding: 15px; border-radius: 5px; font-size: 0.95rem; margin-top: 15px; border: 1px solid #ddd; }

.bios, .feature-grid, .resource-grid { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 30px;}
.bio-card, .feature-box, .resource-card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); flex: 1; min-width: 300px; border-top: 6px solid var(--joy-blue);}
.feature-box { border-top: 6px solid var(--joy-yellow); }
.resource-card { border-top: none; border-left: 6px solid var(--joy-blue); }
.bio-card h3, .feature-box h3, .resource-card h3 { color: var(--joy-blue); margin-top: 0; margin-bottom: 5px;}
.bio-card h4 { color: var(--joy-yellow); margin-top: 0; font-size: 1rem;}

.club-list { list-style: none; padding: 0; }
.club-list li { background: white; margin-bottom: 15px; padding: 20px 25px; border-left: 5px solid var(--joy-blue); border-radius: 0 8px 8px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.club-list li h4 { margin: 0 0 10px 0; color: var(--joy-blue); font-size: 1.3rem; }
.club-list li p { margin: 0; color: #555; }

.contact-box { background-color: var(--joy-yellow); padding: 30px; border-radius: 8px; text-align: center; margin-top: 50px; font-weight: bold; }
.contact-box a { color: var(--text-dark); text-decoration: none; border-bottom: 2px solid var(--text-dark); }

.event-item { background: white; display: flex; margin-bottom: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; }
.event-date { background-color: var(--joy-yellow); color: var(--text-dark); padding: 20px; min-width: 100px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.event-date .month { font-weight: bold; text-transform: uppercase; font-size: 1.1rem; }
.event-date .day { font-size: 2.5rem; font-weight: bold; line-height: 1; margin: 5px 0;}
.event-details { padding: 25px; flex: 1; }
.event-details h3 { margin-top: 0; color: var(--joy-blue); font-size: 1.5rem; margin-bottom: 5px;}
.event-details .time-location { color: #777; font-size: 0.9rem; margin-bottom: 15px; font-weight: bold;}
.event-details p { margin: 0; line-height: 1.5; color: #444;}

/* Footer */
footer {
    background-color: var(--joy-blue); 
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}