* {
    box-sizing: border-box;
}

body {
    background-image: url('background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    color: darkgrey;
    font-family: "Malugn Gothic", sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

.top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.top img:first-of-type {
    height: 140px !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.top img:last-of-type {
    height: 90px !important;
    width: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.top img:hover {
    transform: scale(1.8) translate(0, 10px);
}

h1 {
    margin: 0;
    padding: 5px;
}

.gp {
    background-color: rgba(33, 0, 0);
    color: darkgrey !important;
    padding: 8px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 36px;
    border: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px 12px rgba(255, 255, 255, 0.6); 
    font-family: 'Cinzel', serif; 
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gp:hover {
    background-color: #D4AF37;
    color: #200000 !important;
    transform: scale(1.4);
    box-shadow: 0 0 20px #D4AF37;
}

/* Design adaptabil pentru Tablete și Telefoane */
@media (max-width: 1024px) {
    .//top {
        gap: 20px;
    }
    .logo-trinity { height: 90px !important; }
    .logo-other { height: 60px !important; }
}

@media (max-width: 600px) {
    .gp {
        font-size: 24px;
        white-space: normal;
        max-width: 220px;
        line-height: 1.2;
        padding: 10px;
    }
    .top {
        flex-direction: column;
        gap: 15px;
    }
    a, .button {
        width: 85%; /* Butoanele nu mai sunt fixe la 250px, ci ocupă 85% din ecran */
        font-size: 20px;
    }
    .nav-row {
        flex-direction: column; /* Butoanele se pun unul sub altul pe telefon */
        gap: 10px;
    }
}


a, .button {
    background-color: #200000;
    color: darkgrey;
    padding: 12px 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 22px; /* Sincronizat cu articolele și footerul */
    display: inline-block;
    font-family: "Malugn Gothic", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid darkgrey;
    width: 250px;
    text-align: center;
}

.button:hover, a:hover {
    background-color: #D4AF37;
    color: #200000;
    transform: scale(1.4);
    box-shadow: 0 0 15px #D4AF37;
}

.back-btn {
    background-color: #200000;
    color: darkgrey;
    padding: 8px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 22px; /* Sincronizat la 22px */
    border: 1px solid darkgrey;
    transition: all 0.3s ease;
    font-family: "Malugn Gothic", sans-serif;
}

.back-btn:hover {
    background-color: #D4AF37;
    color: #200000;
}

.judith-button {
    border: 1px solid darkgrey !important;
}

main {
    text-align: center;
    padding-top: 30px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.nav-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-list, .contact-panel, .support-panel, .about-panel {
    background: rgba(32, 0, 0, 0.9);
    padding: 30px;
    border-radius: 15px;
    margin: 30px auto;
    border: 1px solid #D4AF37;
    color: darkgrey;
    display: flex; /* Schimbat din none în flex */
    flex-direction: column;
    align-items: center;
    width: 95%;
}

/* Adăugăm regula care ascunde DOAR elementele cu atributul [hidden] */
[hidden] {
    display: none !important;
}

@media (min-width: 1024px) {
    .article-list, .contact-panel, .support-panel, .about-panel {
        width: 85% !important;
    }
}

/* Această regulă va face secțiunile vizibile pe prima pagină când JS activează butonul */
.show-section {
    display: flex !important;
}

.section-title {
    color: #D4AF37 !important; 
    font-size: 28px;
    margin-bottom: 25px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-align: center;
}

.article-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
    width: 100%;
}

.article-title {
    width: 300px !important;
    flex-shrink: 0;
}

/* Stilul pentru corpul articolelor - Sincronizat cu footer-ul */
.article-body-container { 
    text-align: left; 
    line-height: 1.8; 
}

.article-body-container h2 { 
    text-align: center; 
    color: #D4AF37; 
    font-family: 'Cinzel', serif; 
    font-size: 32px; 
}

.article-body-container p { 
    font-size: 22px;
    color: darkgrey;
    margin-bottom: 15px;
}

.preview-text {
    font-size: 18px;
    font-style: italic;
    color: #D4AF37;
    flex-grow: 1;
    margin: 0 15px;
    text-align: center;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-panel label {
    display: block;
    margin: 15px 0;
    text-align: left;
    font-weight: bold;
    color: #D4AF37;
}

.contact-panel input, .contact-panel textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: rgba(32, 0, 0, 0.5);
    border: 1px solid darkgrey;
    color: darkgrey;
    border-radius: 5px;
}

hr {
    width: 50%;
    margin: 30px auto;
    border: 0;
    border-top: 1px solid darkgrey;
}

.thanks {
    background-color: #200000;
    color: darkgrey;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 50px;
    font-family: "Malugn Gothic", sans-serif;
    box-shadow: 0 7px 7px 7px rgba(255, 255, 255, 0.4); 
}

.thanks p {
    font-size: 22px;
    font-family: "Malugn Gothic", sans-serif;
    margin: 0;
}
