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

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

h1 {
    margin-top: 1rem; /* Adds 8px margin (if root font size is 16px) */
}

h2,h3, h4, h5, h6 {
    margin-top: 0.5rem; /* Adds 8px margin (if root font size is 16px) */
}

hr {
    margin-top: 0.5rem; /* Adds 8px margin (if root font size is 16px) */
    margin-bottom: 0.5rem; /* Adds 8px margin (if root font size is 16px) */
}

p {
    margin-bottom: 0.5rem; /* Adds 8px margin (if root font size is 16px) */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2e8b57; /* Natural green */
    color: white;
    padding: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 40px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.menu > li {
    position: relative;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.menu a:hover {
    color: #add8e6; /* Light complementary blue */
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #3cb371; /* Slightly lighter green for dropdown */
    list-style: none;
    padding: 0.5rem;
    display: none;
    border-radius: 4px;
}

.menu > li:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
}

.dropdown a:hover {
    background: #add8e6; /* Light complementary blue */
    color: #2e8b57; /* Green text for contrast */
}

/* Main Layout */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 5rem auto;
    gap: 2rem;
    padding: 1rem;
}

.content {
    flex: 3;
}

.sidebar {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Image Section */
.image-section img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease;
}

.image-section.visible img {
    transform: translateY(0);
    opacity: 1;
}

/* Text Section */
.text-section {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.6s ease, transform 0.6s ease;
}

.text-section.visible {
    transform: translateY(0);
    opacity: 1;
}

/* Sidebar Links */
.links-section {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.links-section ul {
    list-style: none;
    padding: 0;
}

.links-section ul li {
    margin-bottom: 0.5rem;
}

.links-section ul li a {
    text-decoration: none;
    color: #333;
}

.links-section ul li a:hover {
    color: #0066cc;
}

/* Ad Section */
.ad-section {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.responsive-ad { width: 454px; height: 728px; }
@media(min-width: 800px) { .responsive-ad { width: 454px; height: 728px } }

/* Footer */
footer {
    background-color: #2e8b57; /* Same natural green as navbar */
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
}

footer a {
    color: #add8e6; /* Light complementary blue */
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

picture img {
  width: 100%;
  height: auto;
  max-width: 686px; /* Default size */
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column; /* Stack content vertically */
    }

    .content {
        order: 1; /* Ensure content is at the top */
    }

    .sidebar {
        order: 2; /* Move sidebar below content */
    }
    
    .responsive-ad { width: 681px; height: 100px; }
    
    picture img {
        max-width: 100%; /* Full width on smaller screens */
    }
}

