/* Core Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #fff; color: #333; line-height: 1.6; overflow-x: hidden; }

/* Header & Nav */
header { background: #1a1a1a; color: white; position: sticky; top: 0; z-index: 1000; width: 100%; }
.top-bar { background: #004a99; padding: 5px 5%; text-align: right; font-size: 0.75rem; }
nav { display: flex; justify-content: space-between; padding: 15px 5%; align-items: center; }

.logo { font-weight: bold; color: #ffcc00; font-size: 1.6rem; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; cursor: pointer; transition: 0.3s; }
.nav-links a:hover { color: #ffcc00; }

/* Page Control */
.page { display: none; padding: 40px 5%; min-height: 80vh; width: 100%; }
.page.active { display: block !important; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hero Section */
.hero-static { position: relative; height: 400px; border-radius: 10px; overflow: hidden; margin-bottom: 20px; background: #333; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: absolute; bottom: 0; background: rgba(0,0,0,0.7); color: white; padding: 30px; width: 100%; }

/* GRID SYSTEM FIX */
.gallery-grid { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; 
    gap: 20px !important; 
    width: 100% !important;
    margin-top: 20px;
}

.gallery-item { 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #fff; 
    display: flex; 
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item img { 
    width: 100% !important; 
    height: 220px !important; 
    object-fit: cover !important; 
    display: block; 
}

.caption { 
    padding: 15px; 
    text-align: center; 
    font-size: 0.9rem; 
    font-weight: bold; 
    background: #f4f4f4; 
}

/* Contact Styles */
.contact-box { background: #f4f4f4; padding: 30px; border-radius: 10px; border-top: 6px solid #004a99; max-width: 600px; }
footer { text-align: center; padding: 25px; background: #1a1a1a; color: #777; margin-top: 40px; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; text-align: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero-static { height: 250px; }
    .gallery-grid { grid-template-columns: 1fr !important; }
}
