/* The Heron-Allen Society - Custom Theme Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and site title styling */
#banner {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 8px;
}

#banner h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: normal;
}

#banner h1 a {
    color: white;
    text-decoration: none;
}

#banner h1 a:hover {
    color: #ecf0f1;
}

/* Subtitle styling - This is where you control the subtitle appearance */
#banner .subtitle {
    font-size: 0.9em;
    font-style: italic;
    color: #bdc3c7;
    margin-top: 15px;
    margin-bottom: 25px;
    font-weight: 300;
    line-height: 1.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
#banner nav {
    margin-top: 20px;
}

#banner nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

#banner nav ul li {
    position: relative;
}

#banner nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
}

#banner nav ul li a:hover,
#banner nav ul li.active a {
    background-color: #34495e;
}

/* Dropdown menu styles */
#banner nav ul li.dropdown .dropdown-arrow {
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

#banner nav ul li.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

#banner nav ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #34495e;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

#banner nav ul li.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

#banner nav ul li.dropdown .dropdown-menu li a {
    padding: 10px 15px;
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #2c3e50;
    transition: background-color 0.3s;
}

#banner nav ul li.dropdown .dropdown-menu li:last-child a {
    border-bottom: none;
}

#banner nav ul li.dropdown .dropdown-menu li a:hover,
#banner nav ul li.dropdown .dropdown-menu li.active a {
    background-color: #2c3e50;
}

/* Additional styling for active dropdown parent */
#banner nav ul li.dropdown.active > a {
    background-color: #34495e;
}

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

#banner nav ul li.dropdown .dropdown-menu li {
    width: 100%;
}

#banner nav ul li.dropdown .dropdown-menu li a {
    padding: 10px 15px;
    color: #ecf0f1;
    border-radius: 0;
    border-bottom: 1px solid #2c3e50;
}

#banner nav ul li.dropdown .dropdown-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}

#banner nav ul li.dropdown .dropdown-menu li a:hover {
    background-color: #2c3e50;
}

/* Main content area */
#content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Article styles */
article {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

article:last-child {
    border-bottom: none;
}

article header h1,
article header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

article header h1 {
    font-size: 2.2em;
}

article header h3 {
    font-size: 1.5em;
}

article header h3 a {
    color: #2c3e50;
    text-decoration: none;
}

article header h3 a:hover {
    color: #3498db;
}

.meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.meta .author,
.meta .category a {
    color: #e74c3c;
    text-decoration: none;
}

.meta .category a:hover {
    text-decoration: underline;
}

/* Content styling */
.entry-content,
.summary {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Hero image styling */
.hero-image {
    width: 70%;
    margin: -30px auto 10px auto;
    border-radius: 8px;
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Image caption styling */
.image-caption {
    width: 70%;
    margin: 0 auto 30px auto;
    font-size: 0.85em;
    color: #7f8c8d;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.entry-content h1 {
    font-size: 1.8em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.entry-content h2 {
    font-size: 1.5em;
}

.entry-content h3 {
    font-size: 1.3em;
}

.entry-content p {
    margin-bottom: 15px;
}

.entry-content ul,
.entry-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.entry-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* Image styling */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 10px 0;
}

/* Hide page title on About page */
body.page-about .entry-title {
    display: none;
}

/* Hide page title on Contact page */
body.page-contact .entry-title {
    display: none;
}

/* Hide entry title on all pages globally */
.entry-title {
    display: none;
}

/* Tags */
.tags {
    margin-top: 15px;
    font-size: 0.9em;
}

.tags a {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    margin-right: 5px;
}

.tags a:hover {
    background-color: #3498db;
    color: white;
}

/* Sidebar */
#sidebar {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#sidebar section {
    margin-bottom: 30px;
}

#sidebar h2 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

#sidebar ul {
    list-style: none;
}

#sidebar ul li {
    margin-bottom: 8px;
}

#sidebar ul li a {
    color: #2c3e50;
    text-decoration: none;
}

#sidebar ul li a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Footer */
#contentinfo {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9em;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

#contentinfo a {
    color: #3498db;
    text-decoration: none;
}

#contentinfo a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.pagination a {
    color: #3498db;
    text-decoration: none;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #3498db;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
}

.page-info {
    margin: 0 15px;
    color: #7f8c8d;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    #banner {
        padding: 20px 15px;
    }
    
    #banner h1 {
        font-size: 2em;
    }
    
    #banner .subtitle {
        font-size: 1em;
    }
    
    #banner nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    #content {
        padding: 20px;
    }
}

/* Article listing styles for pages with related articles */
.related-articles,
.all-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.related-articles h2,
.all-articles h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 25px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.article-list {
    display: grid;
    gap: 25px;
}

.article-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-summary header h3 {
    margin-bottom: 8px;
    font-size: 1.3em;
}

.article-summary header h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.article-summary header h3 a:hover {
    color: #3498db;
}

.article-summary .meta {
    color: #7f8c8d;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.article-summary .summary {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.article-summary footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.article-summary .read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #3498db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.article-summary .read-more:hover {
    background-color: #3498db;
    color: white;
}

.article-summary .tags {
    font-size: 0.8em;
}

.article-summary .tags a {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 3px 6px;
    border-radius: 3px;
    text-decoration: none;
    margin-right: 4px;
}

.article-summary .tags a:hover {
    background-color: #3498db;
    color: white;
}
