/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Container and Grid Layout */
.container {
    display: grid;
    grid-template-areas: 
        "header header"
        "nav content";
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 120px;
    background: #003300;
    z-index: 1;
}

.header {
    grid-area: header;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 120px;
    margin-left: 250px;
    width: calc(100% - 250px);
}

.header-image {
    background: url('../graphics/top2.jpg') center center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}


/* Navigation Styles */
.sidebar {
    grid-area: nav;
    background: #003300;
    padding: 0;
    position: relative;
    z-index: 100;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
    background: #004d00;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid #004d00;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    background: #003300;
}

.nav-link:hover {
    background: #004d00;
    color: #fffacd;
    transform: translateX(5px);
}

.nav-link.active {
    background: #004d00;
    color: #fffacd;
    border-left: 4px solid #fffacd;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #fffacd;
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    width: 4px;
}

/* Main Content Area */
.content {
    grid-area: content;
    padding: 2rem;
    background: #fff;
    overflow-y: auto;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-text h2 {
    font-size: 2.2rem;
    color: #003300;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.hero-text .highlight {
    font-weight: bold;
    color: #003300;
    font-size: 1.2rem;
    font-style: italic;
}

.hero-image {
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

/* Content Loading */
.content-loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
}

/* Image Gallery Styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Text Content */
h2 {
    color: #003300;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #fffacd;
}

h3 {
    color: #004d00;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Contact Styles */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid #003300;
    margin: 2rem 0;
}

.contact-info h3 {
    color: #003300;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 200px 1fr;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-areas: 
            "header"
            "nav"
            "content";
        grid-template-columns: 1fr;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #003300;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .header {
        height: 100px;
        margin-left: 0;
        width: 100%;
    }
    
    .container::before {
        display: none;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.4rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

/* Accessibility Improvements */
.nav-link:focus,
button:focus {
    outline: 3px solid #fffacd;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .container {
        grid-template-areas: 
            "header"
            "content";
        grid-template-columns: 1fr;
    }
    
    .content {
        padding: 0;
    }
}

/* Legacy Image Support */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Page iframe styles */
.page-iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
