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

/* Typography */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f8f8;
    padding-bottom: 2rem;
}

/* Header */
#main-header {
    background-color: #222;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.site-title {
    margin: 0;
    font-size: 3.5rem;
    font-weight: bold;
}

/* Navigation */
#main-nav {
    margin-top: 1rem;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-item {
    margin: 0 2rem;
}

.nav-item a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-item a:hover,
.nav-item a:focus {
    background-color: #444;
    color: #ddd;
}

/* Sections */
section {
    padding: 3rem 10%;
    border-bottom: 2px solid #ddd;
}

.intro-section {
    background-color: #fafafa;
}

.api-types-section,
.using-apis-section,
.best-practices-section,
.resources-section {
    background-color: #e9e9e9;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #222;
}

/* Articles */
article {
    margin-bottom: 2.5rem;
}

.api-type h3,
.api-usage h3,
.best-practice h3 {
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 1rem;
}

/* Resources List */
.resources-list {
    list-style-type: none;
}

.resources-list li {
    background-color: #fff;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border-left: 5px solid #5cb85c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.resources-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.resources-list li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.resources-list li a:hover {
    color: #5cb85c;
}

/* Footer */
#main-footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

#main-footer p {
    margin: 0;
    font-size: 1.2rem;
}
