/* --- GLOBAL RESET & VARIABLES --- */
.mobile-toggle {
    display: none; /* HIDDEN BY DEFAULT ON ALL SCREENS */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #e6b91d;
    --color-primary-dark: #d1a005;
    --color-primary-light: #fff9e4;
    --color-meteorite: #ffdb85;
    --color-dark: #1d1e20;
    --color-gray: #727586;
    --color-gray-light: #f2f3f6;
    --color-light: #fff;
    --color-success: #00b090;
    --color-warning: #ffcd35;
}

/* --- NAVIGATION STYLES (DESKTOP & MOBILE BASE) --- */
nav {
    background: var(--color-gray-light);
    opacity: 0.87;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: Georgia, "Times New Roman", "Times", serif;    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

nav a {
    display: block;
    color: var(--color-dark);
    text-decoration: none;
    padding: 15px 25px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: var(--color-primary);
}

/* main body edits for visual */
body {
	font-family: "College", "Georgia", "Times New Roman", serif;
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
	    
}

/* Header Section */
.header {
    background-color: var(--color-gray-light);
    color: var(--color-dark);
    padding: 60px 20px;
    text-align: center;
}

/* The size seting for the h1 within the header above the navigation */
.header h1 {
    font-size: 48px;
	margin-bottom: 10px;
    font-weight: 700;
	color: var(--color-primary-dark);
}

/* The size setting for the p within the header above the navigation */
.header p {
    font-size: 18px;
    color: var(--color-dark);
}

	/* News Section */
	.news-section {
		padding: 10px 20px;
		background: var(--color-light);
	}

	.news-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 30px;
		margin-top: 40px;
	}

	.news-card {
		background: var(--color-light);
		border-radius: 10px;
		overflow: hidden;
		box-shadow: 0 2px 10px rgba(0,0,0,0.08);
		transition: transform 0.3s ease;
		border: 1px solid var(--color-gray-light);
	}

	.news-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 4px 15px rgba(0,0,0,0.12);
	}

	.news-image {
		width: 100%;
		height: 250px;
		background: var(--color-gray-light);
		overflow: hidden;
	}

	.news-image img {
		width: 100%;
		height: 100%;
		pbject-fit: cover;
	}


	.news-content {
		padding: 25px; 
	}

	.news-date {
		font-size: 12px;
		color: var(--color-primary);
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}

	.news-card h3 {
		font-size: 18px;
		color: var(--color-dark);
		margin: 12px 0;
		line-height: 1.4;
	}

	.news-card p {
		font-size: 14px;
		color: var(--color-gray);
		line-heightL 1.6;
		margin-bottom: 15px;
	}

	.news-link {
		color: var(--color-primary);
		text-decoration: none;
		font-weight: 600;
		transition: color 0.3s ease;
		display: inline-block;
	}

	.news-link: hover {
		color: var(--color-primary-dark);
	}

 	/* Section Below Gallery */
	.gallery-footer-section {
    		width: 100%;
            	background: #D3D3D3;
    		padding: 60px 20px;
    		text-align: center;
    		margin-top: 0;
	}

	.gallery-footer-container {
    		max-width: 1170px;
    		margin: 0 auto;
    		background: var(--color-light);
    		padding: 50px 40px;
    		border-radius: 10px;
    		box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	}

	.gallery-footer-container h3 {
    		font-size: 24px;
    		color: var(--color-primary-dark);
    		margin-bottom: 15px;
	}

	.gallery-footer-container p {
    		font-size: 14px;
    		color: var(--color-gray);
    		margin-bottom: 30px;
    		line-height: 1.6;
	}

	.gallery-footer-button {
    		display: inline-block;
    		padding: 15px 40px;
    		background: var(--color-dark);
    		color: var(--color-light);
    		text-decoration: none;
    		border-radius: 8px;
    		font-size: 16px;
    		font-weight: 600;
    		transition: all 0.3s ease;
    		border: none;
    		cursor: pointer;
	}

	.gallery-footer-button:hover {
    		background: var(--color-primary-dark);
    		box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    		transform: translateY(-2px);
	}
	
	.gallery-footer-icon {
    		font-size: 48px;
    		margin-bottom: 20px;
	}
        


footer {
    background: var(--color-gray-light);
    color: var(--color-dark);
    padding: 40px 20px;
    text-align: center;
    margin-top: 5px;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.9;
}

footer a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primary-light);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 8px;
    background-color: var(--color-primary);
    border-radius: 5px;
    transition: background-color 0.3 ease, transform 0.3s ease;
}

.social-links a img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(1);
    transition: filter 0.3 ease;
}

.social-links a:hover {
    background-color: var(--color-light);
    transform: scale(1.1);
}

.social-links a:hover img {
    filter: brightness(1.2);
}

/* --- MOBILE STYLES (768px AND BELOW) --- */
@media (max-width: 768px) {
    
    /* --- CRITICAL FIX FOR BACKGROUND ZOOMING --- */
    header {
        background-attachment: scroll !important; /* Stops the zoom/jump glitch */
        background-position: center top !important; /* Locks image to top */
        background-size: cover !important;
        padding: 180px 20px; /* Adjusted padding for mobile view */
    }

    /* 1. The Custom Hamburger Button */
    .mobile-toggle {
        display: block !important;
        position: absolute;
        top: 18px;
        right: 25px;
        width: 30px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
        padding: 0;
        -webkit-appearance: none;
        appearance: none;
    }

    /* The 3 Lines (Bars) */
    .mobile-toggle .bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-light);
        margin: 5px 0;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Transform to 'X' */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-primary);
    }
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-primary);
    }

    /* 2. The Menu List */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #121212;
        padding: 0;
        margin: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 100;
        border-top: 1px solid rgba(255,255,255,0.1);
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }

    nav ul.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        justify-content: center;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 18px 0;
        font-size: 18px;
        color: var(--color-light);
        text-decoration: none;
        transition: background-color 0.3s ease, color 0.3s ease;
        font-weight: 500;
    }

    nav a:hover {
        background-color: rgba(230, 185, 29, 0.1);
        color: var(--color-primary);
    }

	.header {
		padding: 60px 15px;
		max-width: 100%;
	}
	
    .header h1 {
        font-size: 32px;
		max-bottom: 12px;
    }
            
    .header p {
        font-size: 16px;
    }
            
    .hero-section {
        padding: 40px 20px;
    }
            
    .hero-section h2 {
        font-size: 1.7rem;
	}
	
	.news-section {
		padding: 40px 15px;
	}

	.container {
		max-width: 1200px;
		margin: 0 auto;
	}

	.news-grid {
		gap: 24px;
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.news-card {
		display: flex;
		flex-direction: column;
	}
	
	.news-image {
		height: 200px;
		width: 100%;
	}

	.news-content {
		padding: 20px;
	}

	.news-content h3 {
		font-size: 18px;
		margin-bottom: 10px;
	}

	.news-content p {
		line-height: 1.6;
		margin-bottom: 1.5rem;
	}
	
    .content-grid {
        grid-template-columns: 1fr;
    }
	
}



