/* Component styles for Steinroth Partners website */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: #1A2A42;
    margin: 10% auto;
    padding: 40px;
    max-width: 600px;
    position: relative;
    border-top: 5px solid #DECA9C;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #E2E8F0;
}

.modal h3 {
    font-family: 'Optima', sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.modal h4 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
    font-style: italic;
    color: #DECA9C;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h5 {
    font-family: 'Optima', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #DECA9C;
}

.modal-section p {
    color: #E2E8F0;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.login-modal-content {
    background-color: #1A2A42;
    margin: 15% auto;
    padding: 30px;
    max-width: 400px;
    position: relative;
    border-top: 5px solid #DECA9C;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    margin-bottom: 15px;
    padding: 10px;
    border: none;
    background-color: #121E30;
    color: #FFFFFF;
    font-family: 'EB Garamond', serif;
}

.login-form button {
    padding: 10px;
    background-color: #DECA9C;
    color: #0D1320;
    border: none;
    cursor: pointer;
    font-family: 'Optima', sans-serif;
    letter-spacing: 1px;
}

.login-error {
    color: #ff6b6b;
    margin-top: 10px;
    display: none;
}

/* Buttons and Links */
.view-all {
    text-align: center;
    margin-top: 50px;
}

.view-all-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #DECA9C;
    text-decoration: none;
    border: 1px solid #DECA9C;
    font-family: 'Optima', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background-color: rgba(222, 202, 156, 0.1);
    color: #FFFFFF;
    border-color: #FFFFFF;
}

/* Homepage Principles Section */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.principle {
    text-align: center;
    padding: 30px;
    border-bottom: 1px solid #1E293B;
}

.principle h3 {
    font-family: 'Optima', sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #DECA9C;
}

.principle p {
    font-size: 16px;
    color: #E2E8F0;
}

/* Home Recognition Section */
.recognition-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.recognition-item {
    text-align: center;
    padding: 30px;
    border-bottom: 1px solid #1E293B;
    transition: transform 0.3s ease;
}

.recognition-item:hover {
    transform: translateY(-5px);
}

.recognition-item h3 {
    font-family: 'Optima', sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #DECA9C;
}

.recognition-item p {
    font-size: 16px;
    color: #E2E8F0;
}

/* Leadership Profiles */
.leadership {
    background-color: #121E30;
}

.leaders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.leader {
    background-color: #1A2A42;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #DECA9C;
}

.leader:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.leader h3 {
    font-family: 'Optima', sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 5px;
    color: #FFFFFF;
}

.leader h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    font-style: italic;
    color: #DECA9C;
}

.leader p {
    font-size: 15px;
    margin-bottom: 10px;
    color: #E2E8F0;
}

/* Enhanced Contact Section */
.contact {
    text-align: center;
    padding: 80px 0;
}

.contact-info {
    margin-top: 40px;
    background-color: #1A2A42;
    padding: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border-left: 3px solid #DECA9C;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #E2E8F0;
}

.contact-info a {
    color: #DECA9C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #FFFFFF;
}

.contact-note {
    margin-top: 25px;
    font-style: italic;
    font-size: 14px !important;
    color: #DECA9C !important;
    letter-spacing: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }
    
    .contact-info {
        padding: 30px;
        max-width: 100%;
    }
}

/* Featured Articles Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-article {
    background-color: #1A2A42;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #DECA9C;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-article a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-thumbnail {
    height: 200px;
    overflow: hidden;
    background-color: #0D1320;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.featured-article:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-preview {
    padding: 25px;
}

.article-preview h3 {
    font-family: 'Optima', sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.article-meta {
    font-size: 14px;
    color: #DECA9C;
    margin-bottom: 15px;
    font-style: italic;
}

.article-excerpt {
    font-size: 16px;
    color: #E2E8F0;
    line-height: 1.6;
}

/* Archive Article Styles */
.archive-article {
    background-color: #1A2A42;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #DECA9C;
    margin-bottom: 20px;
}

.archive-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.archive-article a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.archive-article h3 {
    font-family: 'Optima', sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #FFFFFF;
    letter-spacing: 1px;
}

/* Archive Filter Controls */
.archive-filters {
    padding: 40px 0;
    background-color: #101620;
    border-bottom: 1px solid #1E293B;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 12px;
    color: #DECA9C;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

select {
    padding: 10px 15px;
    background-color: #1A2A42;
    border: 1px solid #1E293B;
    color: #FFFFFF;
    font-family: 'EB Garamond', serif;
    min-width: 200px;
}

#reset-filters {
    align-self: flex-end;
    padding: 10px 20px;
    background-color: transparent;
    color: #DECA9C;
    border: 1px solid #DECA9C;
    font-family: 'Optima', sans-serif;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#reset-filters:hover {
    background-color: rgba(222, 202, 156, 0.1);
    color: #FFFFFF;
    border-color: #FFFFFF;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 50px 0;
}

.no-results p {
    font-size: 18px;
    color: #E2E8F0;
}

.no-results a {
    color: #DECA9C;
    text-decoration: none;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Article Detail Page Styling */
.article-content {
    padding: 60px 0;
}

.article-title {
    font-family: 'Optima', sans-serif;
    font-size: 32px;
    font-weight: 400;
    margin: 30px 0;
    color: #FFFFFF;
    letter-spacing: 1px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #1E293B;
}

.author-info {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    background-color: #1A2A42; /* Placeholder */
}

.author-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-family: 'Optima', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: #DECA9C;
    font-style: italic;
}

.publication-date {
    font-size: 14px;
    color: #808080;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #E2E8F0;
}

.lead {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-body h2 {
    font-family: 'Optima', sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin: 40px 0 20px;
    color: #DECA9C;
    letter-spacing: 1px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 3px solid #DECA9C;
    background-color: rgba(222, 202, 156, 0.05);
    font-style: italic;
    color: #FFFFFF;
}

/* Related Articles Section */
.related-insights {
    padding: 60px 0;
    background-color: #121E30;
}

.related-insights h2 {
    font-family: 'Optima', sans-serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    color: #FFFFFF;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
}

.related-insights h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: #DECA9C;
    margin: 15px auto 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-article {
    background-color: #1A2A42;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #DECA9C;
}

.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.related-article a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.related-article h3 {
    font-family: 'Optima', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #FFFFFF;
    letter-spacing: 1px;
}

/* Insights intro content */
.insights-intro {
    padding: 60px 0;
    background-color: #101620;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
    color: #E2E8F0;
}

/* Modal Header with Author Info */
.modal-header {
    display: flex;
    margin-bottom: 25px;
}

.modal-header .author-info {
    display: flex;
    align-items: center;
}

.modal-header .author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #1A2A42;
    margin-right: 20px;
}

.modal-header .author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header .author-details {
    display: flex;
    flex-direction: column;
}

.modal-header h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.modal-header h4 {
    margin-top: 0;
}

/* Adjust modal content to account for the new header layout */
.modal-content {
    padding-top: 30px;
}

.modal-section:first-of-type {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .modal-header .author-info {
        flex-direction: column;
    }
    
    .modal-header .author-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
/* Overview Section Columns */
.overview-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.overview-column {
    text-align: left;
    padding: 30px;
    background-color: #1A2A42;
    border-left: 3px solid #DECA9C;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.overview-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.overview-column h3 {
    font-family: 'Optima', sans-serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #DECA9C;
    /* Fixed height for all headings to ensure alignment */
    height: 24px;
    display: flex;
    align-items: center;
}

.overview-column p {
    font-size: 16px;
    line-height: 1.6;
    color: #E2E8F0;
    /* Make paragraph take up remaining space */
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .overview-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .overview-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .overview-column {
        margin-bottom: 20px;
        padding: 25px; /* Slightly reduce padding for mobile */
    }
    
    /* Make sure headings are fully visible on mobile */
    .overview-column h3 {
        height: auto;
        min-height: auto;
        margin-bottom: 15px;
    }
    
    /* Adjust overview section padding for mobile */
    #overview {
        padding: 60px 0 40px; /* Adjust vertical padding on mobile */
    }
}
/* Improved Overview Section Readability */
.overview-column p {
    line-height: 1.8; /* Increased from 1.6 */
    margin-bottom: 15px;
}

/* Improved Visual Hierarchy */
section h2 {
    letter-spacing: 3px; /* Increased from 2px */
}

section h2:after {
    height: 2px; /* Increased from 1px */
}

/* Make introductory paragraphs slightly lighter to increase contrast with headings */
section > .container > p {
    font-size: 17px;
    line-height: 1.7;
}
/* Article hero section styling to match archive/index */
.article-hero {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    background-color: #121E30;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(18, 30, 48, 0.85), rgba(16, 22, 32, 0.9)), url('../images/insights-hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.7;
}

.article-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-hero .article-title {
    margin: 30px 0;
    max-width: 800px;
}

/* Enhanced related article styling to match archive */
.related-article {
    position: relative;
    overflow: hidden;
}

.related-article::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 42, 66, 0) 0%, rgba(26, 42, 66, 0) 85%, rgba(26, 42, 66, 0.5) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-article:hover {
    transform: translateY(-5px);
}

.related-article:hover::after {
    opacity: 1;
}

.related-article:hover h3 {
    color: #DECA9C;
}

.related-article h3 {
    transition: color 0.3s ease;
}
/* Add some extra padding at the bottom of contact section to ensure visibility */
#contact {
    padding-bottom: 120px;
}