/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
   
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@700&display=swap');
   
:root {
	--bg-primary: #ffe7d4;
	--nav-bg: rgba(51, 51, 51, 0.95);
	--nav-hover: rgba(255, 255, 255, 0.15);
	--text-highlight: #ffd28c;
	--text-light: #ffffff;
	--button-color: #ff8c42;
	--button-hover: #e6782e;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background-color: var(--bg-primary);
	font-family: 'Inter', sans-serif;
	font-size: large;
}

h1, h2, h3, h4, h5, h6, .brand-text {
	font-family: 'Montserrat', sans-serif;
}

/* =========================================
   UNIFIED NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333; 
    padding: 10px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 50px;
    width: auto;
}

.brand-text {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    color: #ffffff;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 700; 
    font-size: 1.1rem;
    transition: background 0.3s, color 0.3s;
    border-radius: 4px;
	/* THE FIX: Reserves 3px of invisible space so the active border doesn't stretch the navbar */
    border-bottom: 3px solid transparent;
}

.nav-links li a:hover {
    background-color: #111;
    color: #ffd28c; 
}

.nav-links li a.active {
    background-color: #111;
    color: #ffd28c;
    border-bottom: 3px solid #ffd28c;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 900px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 100%; 
        height: 100vh;
        background-color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        padding-top: 20px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0; 
    }
    
    .nav-links li a {
        padding: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.toggle .line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}


/* =========================================
   3. HERO BANNER
   ========================================= */
.hero-banner {
	background-image: url("background.jpg");
	background-size: cover;
	background-position: center;
	text-align: center;
	padding: 40px 20px;
	border-bottom: 3px solid var(--nav-bg);
}

.hero-banner h1 {
	color: yellow;
	font-size: 36px;
	margin: 0;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

@media screen and (max-width: 900px) {
	.hero-banner h1 {
		font-size: 28px;
	}
}

/* =========================================
   4. LAYOUT & SPACING
   ========================================= */
.center {
	text-align: center;
	padding-top: 40px;
	padding-bottom: 20px;
    color: #333;
}

/* =========================================
   5. SPONSORSHIP GRID
   ========================================= */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
    padding: 20px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.grant-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 2px solid #ccc;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
}

.grant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--button-hover);
}

.grant-logo {
    height: 75px;          /* Forces all logos to be the exact same height */
    max-width: 100%;       /* Ensures wide logos don't break out of the card */
    object-fit: contain;   /* Prevents the image from stretching or distorting */
    margin-bottom: 20px;   /* Adds breathing room between the logo and the text */
}

.grant-card h3 {
    color: #333;
    font-size: 1.4rem;
    
}

.grant-year {
    color: var(--button-hover);
    font-size: 1.2rem;
    font-weight: 700;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
	background: #333;
	color: #fff;
	padding: 20px 0;
	text-align: center;
	font-size: 16px;
}