.ticker-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-start; /* Align ticker to top */
    border-radius: 8px; /* Rounded corners */
}

.ticker {
    display: flex;
    white-space: nowrap;
    will-change: transform; /* Optimize for animation */
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 40px 0; /* Added top padding to fine-tune position */
    font-size: 14px; /* Slightly larger for readability */
    font-family: 'Inter', sans-serif; /* Modern font */
    color: #1a202c; /* Darker for contrast */
    border-radius: 6px; /* Rounded items */
    margin: 0 10px; /* Space between items */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
}

.ticker-item:hover {
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Hover shadow */
}

.ticker-content {
    font-size: 13px;
    line-height: 0.2;
    color: #2d3748;
}

.ticker-content a {
    text-decoration: none;
    color: #ffffff; /* Link color */
    transition: color 0.3s ease;
}

.ticker-content a:hover {
    color: var(--color-three); /* Darker on hover */
}


/* Updated keyframes for smoother animation */
@keyframes ticker-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .ticker-container {
        height: 36px;
        max-width: 100%; /* Full width on mobile */
    }
    .ticker-item {
        padding: 3px 20px 0; /* Adjusted for mobile */
        font-size: 12px; /* Smaller text */
        margin: 0 5px;
    }
    .ticker-content {
        font-size: 12px;
        line-height: 1.3; /* Tighter for mobile */
    }
}

/* Submit form styling remains unchanged */
.submit-post-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
}

.submit-post-container h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #1a202c;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    color: #2d3748;
    background-color: #f7fafc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 8px rgba(43, 108, 176, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    display: none;
}

#file-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2b6cb0;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#file-label:hover {
    background-color: #1a4971;
}

#file-chosen {
    margin-left: 15px;
    font-size: 14px;
    color: #4a5568;
}

button[type="submit"] {
    width: 100%;
    padding: 12px 20px;
    background-color: #2b6cb0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #1a4971;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.2);
}

button[type="submit"]:active {
    background-color: #153e61;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
}

.success-message {
    margin-top: 20px;
    font-size: 14px;
    color: #2b6cb0;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submitted .success-message {
    opacity: 1;
}

@media (max-width: 500px) {
    .submit-post-container {
        padding: 15px;
        margin: 10px;
    }
    #file-label {
        width: 100%;
        text-align: center;
    }
    #file-chosen {
        display: block;
        margin: 10px 0 0 0;
        text-align: center;
    }
}