/* ALAPVETŐ BEÁLLÍTÁSOK */
* { box-sizing: border-box; } /* Fontos, hogy a padding ne nyomja ki a dobozt */

.main-wrapper { max-width: 1400px; margin: 20px auto; padding: 0 15px; }
.main-layout { display: flex; gap: 15px; align-items: flex-start; }

.white-container-box, .news-container-box, .poll-container-box {
    background: #ffffff; padding: 20px; border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.sidebar-left { flex: 0 0 270px; }
.sidebar-right { flex: 0 0 220px; }
.main-content-area { flex: 1; min-width: 0; }

/* HÍREK */
.sidebar-news-item { padding: 12px 0; border-bottom: 1px solid #f9f9f9; text-align: left; }
.sn-header { display: flex; justify-content: space-between; align-items: center; }
.sn-date { color: #007BFF; font-weight: bold; font-size: 0.75rem; }
.sn-title { display: block; font-size: 0.95rem; font-weight: bold; margin: 3px 0; }

.sn-text { 
    font-size: 0.85rem; color: #666; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis;
}

.btn-read-more {
    background: none; border: none; color: #007BFF; font-size: 0.8rem;
    font-weight: bold; cursor: pointer; padding: 5px 0; text-decoration: underline;
}

/* JAVÍTOTT MODAL STÍLUS (NEM LÓG KI) */
.custom-modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    align-items: center;    /* Függőlegesen középre */
    justify-content: center; /* Vízszintesen középre */
    padding: 15px;          /* Biztonsági margó mobilon */
}

.modal-dialog {
    width: 100%;
    max-width: 550px;
    display: flex;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 15px;
    width: 100%;            /* A modal-dialog 100%-a */
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    animation: modalFadeIn 0.3s;
}

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

.close-modal {
    position: absolute; right: 15px; top: 10px; color: #aaa;
    font-size: 28px; font-weight: bold; cursor: pointer;
}

.modal-header h2 { margin: 0 25px 5px 0; color: #003366; font-size: 1.3rem; text-align: left; }
.modal-body { text-align: left; font-size: 0.95rem; color: #333; line-height: 1.6; max-height: 70vh; overflow-y: auto; }

/* SZOLGÁLTATÁSOK */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.service-card {
    background: #ffffff; border: 1px solid #f0f0f0; padding: 15px;
    border-radius: 12px; border-left: 4px solid #007BFF;
    display: flex; flex-direction: column; align-items: flex-start;
}

/* ITT ÁLLÍTHATOD AZ IKON MÉRETÉT */
.sc-icon { 
    font-size: 2rem;       /* Itt vedd nagyobbra, ha szükséges */
    margin-bottom: 15px;   /* Több hely az ikon és a szöveg között */
    display: block;
}

.sc-content strong { display: block; color: #003366; font-size: 1rem; margin-bottom: 5px; }
.sc-content p { margin: 0; color: #777; font-size: 0.85rem; line-height: 1.3; }

/* RESPONSIVE */
@media (max-width: 1150px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .sidebar-right { display: none; } }
@media (max-width: 768px) {
    .main-layout { flex-direction: column; }
    .sidebar-left, .main-content-area { width: 100%; flex: none; }
    .sidebar-left { order: 2; margin-top: 20px; }
    .main-content-area { order: 1; }
    .services-grid { grid-template-columns: 1fr; }
}
