* {
    box-sizing: border-box;
}

#Container {
    display: flex !important;
    flex-direction: column !important; 
    gap: 2px !important; 
    width: 100% !important;
    max-width: 1100px; 
    margin: 0 auto !important;
    padding: 5px !important;
    height: auto !important;
    position: relative !important;
}

#Container > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important; 
}

.project-card-simple {
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-left: 6px solid #0056b3 !important; 
    width: 100% !important;
    min-height: 75px !important;
    display: flex !important;
    align-items: center !important; 
    padding: 15px 25px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out !important;
    position: relative !important;
    float: none !important;
}

.project-card-simple:hover {
    transform: translateX(8px) !important; 
    background-color: #f9fbff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    border-left-color: #0073e6 !important;
}

.project-card-simple h4 {
    margin: 0 !important;
    padding: 0 !important;
    color: #2c3e50 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    font-family: 'Roboto', sans-serif !important;
    line-height: 1.3 !important;
    pointer-events: none;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 10000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    margin: 0 !important;
    border-radius: 20px !important;
    width: 95%;
    max-width: 750px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

#modalTitle {
    padding: 20px 30px;
    margin: 0;
    background: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 101;
}

.close-modal:hover { 
    color: #e53e3e; 
}

#modalCover {
    background: #f7fafc;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

#modalCover img {
    max-width: 80%;
    max-height: 250px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05));
}

.modal-description {
    padding: 35px 45px;
}

#modalIntro {
    font-size: 1.15rem;
    color: #2d3748;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid #0056b3;
    font-weight: 500;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0056b3;
    color: white !important;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 14px 0 rgba(0, 86, 179, 0.39);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-project:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.23);
}

#modalBar {
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    padding: 20px 0;
}

#modalBar img {
    width: 90%;
    margin: 0 auto;
    display: block;
    opacity: 0.9;
}

.modal-content::-webkit-scrollbar { 
    width: 8px; 
}

.modal-content::-webkit-scrollbar-track { 
    background: #f1f1f1; 
}

.modal-content::-webkit-scrollbar-thumb { 
    background: #cbd5e0; 
    border-radius: 10px; 
}

#pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#pagination button {
    background: #0056b3;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
}

#pagination button:hover {
    background: #003d80;
}