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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header and Logo Section */
section:first-of-type {
    background-color: #2c3e50;
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

section:first-of-type img {
    float: left;
    margin: 10px 30px 10px 40px;
    padding: 5px;
    max-width: 120px;
    height: auto;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation styling*/
nav {
    float: right;
    margin: 20px 40px 0 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

nav li {
    padding: 0;
}

nav a {
    display: inline-block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    background-color: #34495e;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    background-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Clearfix for Float */
section:first-of-type::after {
    content: "";
    display: table;
    clear: both;
}

/* Content Sections */
section {
    margin: 0 auto 30px;
    max-width: 1200px;
    padding: 30px 40px;
    background-color: white;
    border-left: 4px solid #3498db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

section:nth-of-type(2) {
    border-left-color: #3498db;
}

section:nth-of-type(3) {
    border-left-color: #2ecc71;
}

section:nth-of-type(4),
section:nth-of-type(5),
section:nth-of-type(6) {
    border-left-color: #e74c3c;
}

/* Heading Styles */
h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

h2 {
    font-size: 2em;
    color: #34495e;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    color: #34495e;
    margin-bottom: 15px;
    padding-bottom: 8px;
    font-weight: 600;
}

/* Paragraph Styles */
p {
    font-size: 1em;
    color: #555;
    margin: 15px 0;
    padding: 0 5px;
    line-height: 1.8;
}

/* Image Styles */
img:not(section:first-of-type img) {
    display: block;
    clear: both;
    max-width: 90%;
    height: auto;
    margin: 40px auto;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

img:not(section:first-of-type img):hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px 40px;
    margin-top: 50px;
    font-size: 0.95em;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    section:first-of-type {
        padding: 15px;
    }
    
    section:first-of-type img {
        float: none;
        display: block;
        margin: 10px auto;
        max-width: 100px;
    }
    
    nav {
        float: none;
        margin: 15px 0 0 0;
        text-align: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    
    section {
        margin: 0 10px 20px;
        padding: 20px;
        border-left: 3px solid;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    section {
        margin: 0 5px 15px;
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    h3 {
        font-size: 1.1em;
    }
}
