/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
header {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

header img {
    height: 3rem;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.1);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
}

header .flex {
    gap: 1rem;
}

header a, header span {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

header a.text-blue-500:hover {
    color: #2b6cb0;
}

header a.text-blue-500.hello {
    background: #1a202c;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

header a.text-blue-500.hello:hover {
    background: #2d3748;
    transform: translateY(-2px);
}

/* Navigation */
.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.navigation a {
    background: #3182ce;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.navigation a:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
}

/* Forms and Inputs */
/* form {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}
 */
form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

form input, form select, form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form button {
    background: #3182ce;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background: #2b6cb0;
    transform: translateY(-2px);
}

/* Specific Button Styles */
form button.bg-green-500 {
    background: #38a169;
}

form button.bg-green-500:hover {
    background: #2f855a;
}

form button.bg-red-500 {
    background: #e53e3e;
}

form button.bg-red-500:hover {
    background: #c53030;
}

form button.bg-yellow-500 {
    background: #ecc94b;
}

form button.bg-yellow-500:hover {
    background: #d69e2e;
}

form button.bg-purple-500 {
    background: #805ad5;
}

form button.bg-purple-500:hover {
    background: #6b46c1;
}

/* Announcement Section */
.bg-white.p-4.sm\:p-6 {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2.text-xl.sm\:text-2xl {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

ul.space-y-2 li {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

ul.space-y-2 li p.text-sm.sm\:text-base {
    font-size: 0.9rem;
    color: #4a5568;
}

ul.space-y-2 li p.text-xs.sm\:text-sm {
    font-size: 0.8rem;
    color: #718096;
}

/* Ad Cards */
.grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
    display: grid;
    gap: 1.5rem;
}

.bg-gray-50.p-2.sm\:p-4 {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-gray-50.p-2.sm\:p-4:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

img.w-full.h-32.sm\:h-48 {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

img.w-full.h-32.sm\:h-48:hover {
    transform: scale(1.05);
}

h3.font-semibold.text-sm.sm\:text-lg {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
}

p.text-gray-600.text-xs.sm\:text-base {
    font-size: 0.9rem;
    color: #4a5568;
}

p.text-green-700.font-semibold {
    color: #38a169;
    font-weight: 600;
}

p.text-blue-700 {
    color: #3182ce;
}

p.text-purple-700 {
    color: #805ad5;
}

.text-blue-500:hover {
    color: #2b6cb0;
}

.text-red-500:hover {
    color: #c53030;
}

.text-green-500:hover {
    color: #2f855a;
}

.text-purple-500:hover {
    color: #6b46c1;
}

/* Status Badges */
.bg-green-100.text-green-800,
.bg-gray-100.text-gray-800 {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Single Post View */
.bg-white.p-4.sm\:p-6.rounded-lg.shadow.mb-6 {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.flex.flex-col.sm\:flex-row.gap-4.mb-4 img {
    width: 100%;
    max-width: 12rem;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flex.flex-col.sm\:flex-row.gap-4.mb-4 img:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (min-width: 640px) {
    header {
        flex-direction: row;
        justify-content: space-between;
    }

    .navigation {
        flex-direction: row;
    }

    form {
        padding: 2rem;
    }

    h2.text-xl.sm\:text-2xl {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 2rem;
    }

    header {
        padding: 2rem;
    }

    .navigation a {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    form input, form select, form textarea {
        font-size: 1rem;
    }

    form button {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* Animation for Buttons and Links */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

button:hover, a.bg-blue-500:hover, a.bg-green-500:hover {
    animation: pulse 0.3s ease;
}