body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1, h2 {
    color: #0d6efd;
}

a { 
    color: #0d6efd; 
    text-decoration: none; 
}

a:hover { 
    text-decoration: underline; 
}

.container {
    width: 95%; 
    max-width: 1800px; 
    margin: 0 auto;
    background: #fff; 
    padding: 25px; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.content-item-wrapper {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.content-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f8f9fa; 
    padding: 20px; 
    border: 1px solid #ddd;
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.content-item h2 {
    margin-top: 0; 
    margin-bottom: 10px; 
    font-size: 1.1em;
}

.content-item p {
    margin-bottom: 0;
    flex-grow: 1;
    font-size: 0.95em;
    overflow: hidden;
}

.read-more-wrapper {
    margin-top: auto;
    padding-top: 10px;
    text-align: right;
}

.read-more {
    font-weight: bold; 
    font-size: 0.9em;
    color: #0056b3;
}

.link-list li { 
    margin-bottom: 8px; 
}

.link-list a { 
    font-weight: bold; 
}
.form-group { 
    margin-bottom: 15px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
}

.form-group input, 
.form-group textarea, 
.link-input-group input {
    width: 100%; 
    padding: 15px; 
    border: 1px solid #888;
    border-radius: 5px; 
    box-sizing: border-box; 
    font-size: 16px;
}

.form-group input:focus, 
.form-group textarea:focus, 
.link-input-group input:focus {
    outline: none; 
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.link-input-group { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-bottom: 20px; 
}

#content-form h2 { 
    margin-top: 30px; 
}

#content-form .btn-primary { 
    margin-top: 25px; 
}
.content-full-thumbnail {
            width: 100%;
            max-width: 600px;
            height: auto;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 20px;
        }
.body-login {
    display: grid;
    place-items: center;
    min-height: 90vh;
    padding: 0; 
}

.container-login {
    width: 330px;
    max-width: 100%;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.container-login h1 {
    text-align: center;
    margin-top: 0;
}

.container-login .form-group {
    margin-bottom: 1rem;
}

.container-login .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.container-login .form-group input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem; 
}

.container-login .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
}

.container-login .btn:hover {
    background-color: #0b5ed7;
}

.btn {
    display: inline-block; 
    padding: 10px 20px; 
    border: none;
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 1em; 
    font-weight: bold;
    text-decoration: none;
    text-align: center;
}

.btn-primary { 
    background-color: #0d6efd; 
    color: white; 
}
.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-secondary { 
    background-color: #6c757d; 
    color: white; 
}
.btn-secondary:hover {
    background-color: #5a6268;
}

.error-msg {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-msg {
    color: #0f5132;
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1000;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe; 
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 400px; 
    border-radius: 8px;
    text-align: center; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; 
    animation: animateTop 0.4s ease;
}

.modal-content h2 { 
    margin-top: 0; 
}

.modal-success h2 { 
    color: #155724; 
}

.modal-error h2 { 
    color: #721c24; 
}

.modal-success .close-btn { 
    display: none; 
}

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

.close-btn:hover, 
.close-btn:focus { 
    color: black; 
    text-decoration: none; 
}

@keyframes animateTop { 
    from { margin-top: 5%; opacity: 0; } 
    to { margin-top: 15%; opacity: 1; } 
}
.content-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f8f9fa; 
    padding: 0; 
    border: 1px solid #ddd;
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    overflow: hidden; 
}
.content-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.content-text-wrapper {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.content-text-wrapper p {
    margin-bottom: 0;
    flex-grow: 1;
    font-size: 0.95em;
    overflow: hidden;
}

.form-group input[type="file"] {
    padding: 10px;
    background-color: #f8f9fa;
    font-size: 14px;
}