/* Home page specific styles */
.new-project-btn {
    padding: 0;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
    height: 40px;
    line-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    min-width: 160px;
    gap: 8px;
}

.new-project-btn:hover {
    background-color: #218838;
}

.credits-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-box {
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid #e9ecef;
}

.project-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #495057;
    margin-top: auto;
}

.project-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-draft {
    background-color: #e9ecef;
    color: #495057;
}

.status-in-progress {
    background-color: #cff4fc;
    color: #055160;
}

.status-completed {
    background-color: #d1e7dd;
    color: #0f5132;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.project-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.header-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding-top: 0;
}

.intro-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.intro-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.intro-section h2 {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 300;
}

.intro-text p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.6;
}

/* Tagline styling */
/* Hidden Latin info that reveals on title hover */
.verbum-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    text-align: center;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.intro-title:hover + .verbum-info {
    max-height: 350px; /* enough room for h2 & h3 */
    opacity: 1;
}

/* Refined tagline */
.intro-tagline {
    font-size: 1rem; /* corrected syntax */
    font-weight: 300;
    color: #b8b8b8;
    margin: 0;
    max-width: 600px;
}

/* Styling for explanatory subtitle under Verbum Baculum */
.verbum-info h3 {
    font-size: 1rem;
    font-weight: 300;
    color: #999;
    margin: 0.25rem 0 0;
    max-width: 600px;
}

/* Common container styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
