@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Variables for Dark Mode */
:root {
    --header-bg: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --body-bg: linear-gradient(135deg, #003366 0%, #00a8cc 50%, #0077b6 100%);
    --text-color: #333;
    --section-bg: rgba(255, 255, 255, 0.95);
    --news-item-bg: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    --modal-bg: #fefefe;
    --input-border: #e1e5e9;
    --input-focus-border: #667eea;
    --button-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --button-hover-bg: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}



/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--body-bg);
    color: var(--text-color);
    min-height: 100vh;
    box-sizing: border-box;
}

header {
    background: var(--header-bg);
    color: white;
    padding: 5px;
    padding-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    height: auto;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.search-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.search-bar {
    display: flex;
    gap: 5px;
    align-items: center;
}

    .search-bar input {
        width: auto;
        flex: 1;
        max-width: 200px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-family: 'Roboto', sans-serif;
    }

.search-bar button {
    padding: 10px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8em;
    transition: all 0.3s ease;
    width: auto;
    flex-shrink: 0;
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#applyBtn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#applyBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #003366 0%, #00a8cc 50%, #0077b6 100%);
    padding: 10px 20px;
    border-radius: 20px;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.02), 0 0 2px rgba(255, 255, 255, 0.05), 0 0 3px rgba(255, 255, 255, 0.01), 1px 1px 1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    line-height: 1;
    animation: titleGlow 1.5s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 1px rgba(255, 255, 255, 0.01), 0 0 2px rgba(255, 255, 255, 0.02), 0 0 3px rgba(255, 255, 255, 0.005), 1px 1px 1px rgba(0, 0, 0, 0.05);
    }
    to {
        text-shadow: 0 0 2px rgba(255, 255, 255, 0.02), 0 0 4px rgba(255, 255, 255, 0.03), 0 0 6px rgba(255, 255, 255, 0.01), 1px 1px 1px rgba(0, 0, 0, 0.05);
    }
}



.language-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.language-selector label {
    font-size: 0.9em;
    font-weight: 500;
    color: white;
}

.language-selector select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.2em;
    min-width: 150px;
    height: 44px;
    cursor: pointer;
    background-color: white;
    box-sizing: border-box;
}

nav {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 3;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

nav button {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 16px;
    margin: 0;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

#adminLoginBtn, #adminLogoutBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 4;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 6px 8px;
    margin: 0;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}



h1, h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: var(--section-bg);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

form:hover {
    transform: translateY(-5px);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

input, textarea, select, button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

textarea {
    height: 200px;
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    background: var(--button-bg);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 44px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--button-hover-bg);
}

#searchResults, #adminNews {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

#categoriesSelect {
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background: #fff;
    width: 100%;
    max-width: 300px;
    transition: all 0.3s ease;
}

#categoriesSelect:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.categories-buttons {
    display: none;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.category-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 44px;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.news-item {
    border: none;
    padding: 20px;
    margin-bottom: 0;
    border-radius: 15px;
    background: var(--news-item-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Read more button styles */
.read-more-btn {
    background: #ff6b35;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    margin-left: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background: #e55a2b;
}

.news-item img, .news-item video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Horizontal media layout for multiple images/videos */
.media-horizontal-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.media-horizontal-container::-webkit-scrollbar {
    height: 6px;
}

.media-horizontal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.media-horizontal-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.media-horizontal-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.media-item {
    flex: 0 0 auto;
    width: 200px;
    position: relative;
}

.media-item .image-container,
.media-item .video-container {
    margin: 0;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.small-title {
    font-size: 0.8em;
    color: #666;
    text-align: right;
    margin: 5px 0 10px 0;
    font-weight: 500;
}

.news-item img:first-child, .news-item video:first-child {
    margin-top: 0;
}

.news-item a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.news-item a:hover {
    color: #764ba2;
}

.news-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.news-buttons button {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.news-buttons button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.news-buttons button:hover::before {
    left: 100%;
}

.news-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.news-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.like-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.like-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #ff6b6b);
}

.like-btn.liked {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
}

.like-btn.liked i {
    color: #fff;
}

.share-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.share-btn:hover {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
}

/* Status indicator styles */
.status-indicator.approved {
    color: #28a745; /* Green for approved */
    font-weight: bold;
}

.status-indicator.pending {
    color: #ffc107; /* Yellow/Orange for pending */
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Post News Button - Redesigned Floating Action Button */
#postNewsBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
}

#postNewsBtn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#postNewsBtn:active {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.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);
    backdrop-filter: blur(5px);
}

#message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #333;
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    display: block;
}

.modal-content {
    background-color: var(--modal-bg);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .header-bottom {
        flex-direction: column;
    }



    .search-container {
        margin: 0 auto;
    }



    .hamburger-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.5em;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    #adminLoginBtn {
        display: none;
    }

    .hamburger-btn:hover {
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .reload-btn {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1001;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.5em;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    #postNewsBtn {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 1001;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.2em;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        text-align: center;
        line-height: 50px;
        padding: 0;
        margin: 0;
        text-indent: -9999px;
    }

    #postNewsBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    #postNewsBtn::before {
        content: '+';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5em;
        font-weight: bold;
        color: white;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 1000;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    nav.show {
        display: flex;
    }

    nav button {
        padding: 10px 20px;
        margin: 5px 0;
        width: 100%;
        display: block;
    }

    .contact-mobile {
        display: block;
    }

    .contact-email {
        display: none;
    }





    .container {
        padding: 0 10px;
    }

    section {
        margin: 10px 0;
        padding: 15px;
    }

    form {
        padding: 20px;
    }

    h1, h2 {
        font-size: 1.8em;
    }

    .news-item {
        padding: 15px;
    }

    #searchResults, #adminNews, #categoriesList {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Make admin buttons responsive */
    .news-item button {
        padding: 8px 16px;
        margin: 2px;
        font-size: 0.8em;
        width: auto;
        display: inline-block;
    }

    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    /* Language selector in hamburger menu */
    .language-selector {
        text-align: center;
        margin-bottom: 10px;
        width: 100%;
    }

    .language-selector label {
        display: block;
        margin-bottom: 5px;
        font-size: 0.9em;
    }

    .language-selector select {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    /* Categories responsive */
    #categoriesSelect {
        display: none;
    }

    .categories-buttons {
        display: grid;
    }

    /* Increase image and video sizes for small screens */
    .news-item img, .news-item video {
        min-height: 200px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 80%;
        max-width: 300px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 1000;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        align-items: center;
    }

    nav.show {
        display: flex;
    }

    nav button {
        margin: 5px 0;
        width: 100%;
        max-width: 200px;
    }



    h1, h2 {
        font-size: 1.5em;
    }

    input, textarea, select, button {
        padding: 10px;
    }

    .news-item {
        padding: 10px;
    }

    /* Ensure all buttons are fully responsive */
    button {
        width: 100%;
        box-sizing: border-box;
    }

    /* Specific adjustments for admin buttons */
    .news-item button {
        width: calc(50% - 4px);
        margin: 2px;
        font-size: 0.6em;
        padding: 4px 6px;
    }



/* Modal responsive */
    .modal-content {
        width: 98%;
        margin: 5% auto;
        padding: 10px;
    }

    /* Increase image and video sizes for very small screens */
    .news-item img, .news-item video {
        min-height: 250px;
        width: 100%;
    }
}

/* Tablet-specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 15px;
    }

    header h1 {
        font-size: 2.5em;
    }

    .search-bar input {
        max-width: 250px;
        padding: 10px;
    }

    nav button {
        padding: 10px 20px;
        font-size: 1em;
    }

    section {
        padding: 15px;
    }

    #searchResults, #adminNews, #categoriesList {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .news-item {
        padding: 15px;
    }

    /* Modal adjustments for tablets */
    .modal-content {
        width: 80%;
        max-width: 700px;
        padding: 25px;
    }
}

/* Big screens: reduce hamburger menu size horizontally and center buttons */
@media (min-width: 1025px) {
    header {
        overflow: visible;
    }

    .hamburger-btn {
        display: none;
    }

    /* Position title at top left */
    .title-contact {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 2;
        text-align: left;
    }

    /* Position search bar at top right */
    .search-container {
        position: absolute;
        top: 5px;
        right: 5px;
        z-index: 3;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    /* Position #topRightNav below search bar */
    #topRightNav {
        position: absolute;
        top: 45px;
        right: 5px;
        z-index: 3;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    #topRightNav .language-selector {
        font-size: 0.8em;
        flex-direction: row;
        align-items: center;
    }

    #topRightNav .language-selector select {
        font-size: 1em;
        min-width: 120px;
        height: 36px;
        padding: 8px;
    }

    #topRightNav button {
        padding: 6px 8px;
        font-size: 0.8em;
    }

    /* Center categories and post news buttons in header */
    .header-bottom {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        padding-top: 50px;
    }

    .search-container {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    nav {
        position: static;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 0;
    }

    nav button {
        margin: 0;
        max-width: 120px;
        padding: 8px 12px;
        font-size: 0.85em;
    }

    #hamburgerBtn {
        position: absolute;
        top: 100%;
        right: 5px;
        z-index: 1001;
        width: 30px;
        height: 30px;
        font-size: 1em;
        padding: 0;
    }

    #postNewsBtn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1001;
        background: #fff;
        color: #333;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 6px 8px;
        font-size: 0.8em;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        max-width: none;
    }

    #postNewsBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .reload-btn {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        font-size: 1.5em;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .reload-btn:hover {
        transform: translateX(-50%) translateY(-4px) scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    .reload-btn:active {
        transform: translateX(-50%) translateY(-2px) scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }


}



/* Drag and Drop Styles */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.5);
    position: relative;
    margin-bottom: 10px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.drop-zone.drag-over {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.drop-zone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone p {
    margin: 0;
    font-weight: 500;
    color: #555;
}

/* File Preview Styles */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.file-preview-item {
    position: relative;
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-preview-item img,
.file-preview-item video {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.file-preview-item .file-info {
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8em;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.file-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.file-preview-item .remove-btn:hover {
    background: rgba(255, 0, 0, 1);
}



/* Image Zoom Modal Styles */
#zoomedImage {
    max-width: 90%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}


/* Translation Controls Styles */
.translation-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.translation-controls:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.translate-lang-select {
    padding: 8px 12px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.translate-lang-select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.translate-lang-select:hover {
    border-color: #764ba2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.translate-btn, .show-original-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.translate-btn::before, .show-original-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.translate-btn:hover::before, .show-original-btn:hover::before {
    left: 100%;
}

.translate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.translate-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.translate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.translate-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.show-original-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.show-original-btn:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.show-original-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive translation controls */
@media (max-width: 768px) {
    .translation-controls {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .translate-lang-select {
        width: 100%;
        min-width: auto;
    }

    .translate-btn, .show-original-btn {
        width: 100%;
        padding: 10px 16px;
    }
}

/* Ultra wide screens: limit news card max-width to prevent too wide cards */
@media (min-width: 1440px) {
    .news-item {
        max-width: 450px;
    }
}
