/* EBNA Modern Theme */
/* Based on EBNA Chicago design - Modern, professional style */

:root {
    --primary-blue: #0f2ccf;
    --secondary-blue: #2f5dff;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --site-max-width: 1200px;
    --menu-height: 70px;
    --ebna-light-blue: #5DADE2;
    --ebna-dark-blue: #1B4F72;
    --ebna-pink: #EC7063;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body.ebna-theme {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 510px; /* Adjusted for top menu + logo + subscribe banner + main menu height */
}

/* Typography */
body.ebna-theme h1 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin: 20px 0;
}

body.ebna-theme h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    margin: 18px 0;
}

body.ebna-theme h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    margin: 16px 0;
}

body.ebna-theme h4 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 14px 0;
}

body.ebna-theme h5 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 12px 0;
}

body.ebna-theme p {
    margin: 0 0 15px 0;
}

body.ebna-theme a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.ebna-theme a:link {
    color: #ffffff;
}

body.ebna-theme a:visited {
    color: #ffffff;
}

body.ebna-theme a:hover {
    color: #cccccc;
    text-decoration: underline;
}

/* Header - Logo and Menu Bar */
.ebna-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Top Menu - Post Links Above Logo */
.ebna-top-menu {
    width: 100%;
    background-color: #2c3e50;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.ebna-top-menu-link {
    display: inline-block;
    padding: 12px 20px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ebna-top-menu-link:last-child {
    border-right: none;
}

.ebna-top-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    text-decoration: none;
}

/* Logo Container - Full Width Above Menu */
.ebna-logo-container {
    width: 100%;
    background-color: var(--bg-white);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
}

/* Subscribe Banner - Below Logo */
.ebna-subscribe-banner {
    width: 100%;
    background-color: #f8f9fa;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
}

.ebna-subscribe-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: var(--primary-blue);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.ebna-subscribe-link:hover {
    background-color: var(--secondary-blue);
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.ebna-subscribe-link:active {
    transform: translateY(0);
}

.ebna-forum-link {
    background-color: var(--accent-gold);
    color: #000000 !important;
}

.ebna-forum-link:hover {
    background-color: #d4af37;
    color: #000000 !important;
}

.ebna-logo {
    max-width: 100%;
    max-height: 314px;
    height: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
    cursor: pointer;
}

/* Scrolled state - smaller logo */
.ebna-header.scrolled .ebna-logo {
    max-height: 144px;
}

.ebna-header.scrolled .ebna-logo-container {
    padding: 10px 20px;
}

/* Navigation Menu Bar */
.ebna-nav {
    display: flex;
    gap: 0;
    width: 100%;
    align-items: stretch;
}

.ebna-nav-item {
    flex: 1;
    transition: opacity 0.3s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.ebna-nav-item:last-child {
    border-right: none;
}

/* Individual Menu Item Colors */
.ebna-nav-item-1 {
    background-color: var(--ebna-light-blue);
}

.ebna-nav-item-2 {
    background-color: var(--ebna-dark-blue);
}

.ebna-nav-item-3 {
    background-color: var(--ebna-pink);
}

.ebna-nav-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ebna-nav-item a {
    display: block;
    width: 100%;
    padding: 20px 30px;
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ebna-nav-item a:link {
    color: #ffffff;
}

.ebna-nav-item a:visited {
    color: #ffffff;
}

.ebna-nav-item a:hover {
    text-decoration: none;
    color: #f0f0f0;
}

.ebna-nav-item a:active {
    color: #ffffff;
}

/* Main Content Area */
.ebna-main {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* Mission Statement Section */
.ebna-mission {
    background-color: var(--bg-light);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.ebna-mission-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ebna-mission h1 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.ebna-mission-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Content Sections */
.ebna-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.ebna-section-title {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Calendar/Events Styles */
.ebna-calendar {
    width: 100%;
    margin-top: 20px;
}

.ebna-event {
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
}

.ebna-event-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.ebna-event-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.ebna-event-description {
    font-size: 16px;
    color: var(--text-dark);
}

/* Footer */
.ebna-footer {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
}

.ebna-footer-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.ebna-footer a {
    color: #ffffff;
    margin: 0 15px;
}

.ebna-footer a:hover {
    color: var(--secondary-blue);
}

/* Contact Form Styles */
.ebna-form {
    max-width: 600px;
    margin: 0 auto;
}

.ebna-form-group {
    margin-bottom: 20px;
}

.ebna-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.ebna-form-group input[type="text"],
.ebna-form-group input[type="email"],
.ebna-form-group textarea,
.ebna-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ebna-form-group input[type="text"]:focus,
.ebna-form-group input[type="email"]:focus,
.ebna-form-group textarea:focus,
.ebna-form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(15, 44, 207, 0.1);
}

.ebna-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Subscribe Form Specific Styles */
.ebna-subscribe-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.ebna-subscribe-intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.ebna-subscribe-form {
    max-width: 100%;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.ebna-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.ebna-form-half {
    flex: 1;
}

.ebna-form-group input::placeholder {
    color: #999;
    opacity: 0.7;
}

.required {
    color: #d9534f;
    font-weight: bold;
}

.ebna-captcha-group {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.ebna-form-actions {
    margin-top: 30px;
    text-align: center;
}

.ebna-button-large {
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
}

.ebna-form-note {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.ebna-form-note small {
    font-size: 13px;
}

/* Subscribe Success Message */
.ebna-subscribe-success {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
}

.ebna-subscribe-success h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.ebna-subscribe-success p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.ebna-button {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ebna-button:hover {
    background-color: var(--secondary-blue);
}

/* Social Sharing Buttons */
.social-share-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.social-share-buttons h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-dark);
}

.social-share-buttons .share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ebna-share-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background-color: #6c757d;
    color: #ffffff !important;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.ebna-share-button:link,
.ebna-share-button:visited {
    color: #ffffff !important;
}

.ebna-share-button:hover {
    background-color: #5a6268;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

.ebna-share-button:active {
    transform: translateY(0);
}

/* RSS Link Post Styles */
.ebna-rss-link-badge {
    display: inline-block;
    background-color: #5DADE2;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.ebna-rss-source-link {
    margin: 20px 0 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #5DADE2;
    border-radius: 4px;
    text-align: center;
}

.ebna-rss-source-link .ebna-button {
    display: inline-block;
    width: auto;
}

/* Comment Section Styles */
.ebna-comments {
    margin-top: 40px;
}

.ebna-comment-form {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.ebna-comment-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.ebna-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.ebna-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ebna-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ebna-comments-list h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.ebna-comment-item {
    background-color: var(--bg-light);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
}

.ebna-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.ebna-comment-author {
    color: var(--primary-blue);
    font-size: 16px;
}

.ebna-comment-date {
    color: var(--text-light);
    font-size: 14px;
}

.ebna-comment-body {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 15px;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body.ebna-theme {
        padding-top: 0;
    }

    .ebna-header {
        position: static;
    }

    .ebna-logo-container {
        padding: 15px;
    }

    .ebna-logo {
        max-height: 80px;
    }

    .ebna-subscribe-banner {
        padding: 10px 15px;
    }

    .ebna-subscribe-link {
        font-size: 14px;
        padding: 8px 16px;
    }

    .social-share-buttons .share-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }

    .social-share-buttons .share-button {
        width: 100%;
        justify-content: center;
    }

    .ebna-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .ebna-nav-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .ebna-nav-item:last-child {
        border-bottom: none;
    }

    .ebna-nav-item a {
        padding: 15px 20px;
        font-size: 18px;
    }

    .ebna-nav-item:hover {
        transform: none;
    }

    .ebna-main {
        padding: 20px 15px;
    }

    .ebna-mission {
        padding: 40px 15px;
    }

    .ebna-mission h1 {
        font-size: 24px;
    }

    .ebna-mission-content {
        font-size: 16px;
    }

    .ebna-section {
        padding: 20px 15px;
    }

    body.ebna-theme h1 {
        font-size: 26px;
    }

    body.ebna-theme h2 {
        font-size: 22px;
    }

    body.ebna-theme h3 {
        font-size: 18px;
    }

    .ebna-form-row {
        flex-direction: column;
        gap: 0;
    }

    .ebna-form-half {
        width: 100%;
    }

    .ebna-subscribe-form {
        padding: 20px;
    }

    .ebna-button-large {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .ebna-top-menu {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ebna-top-menu-link {
        font-size: 13px;
        padding: 10px 15px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .ebna-nav-item a {
        padding: 12px 15px;
        font-size: 16px;
    }

    .ebna-logo {
        max-height: 60px;
    }

    .ebna-top-menu-link {
        font-size: 12px;
        padding: 8px 12px;
    }

    body.ebna-theme h1 {
        font-size: 24px;
    }

    body.ebna-theme h2 {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    .ebna-header,
    .ebna-footer,
    .no-print {
        display: none !important;
    }

    body.ebna-theme {
        padding-top: 0;
    }

    .ebna-main {
        max-width: 100%;
    }
}
