/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: #2196f3;
    font-size: 24px;
    font-weight: bold;
    margin-left: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.search-bar {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

.search-bar i {
    color: #777;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.create-post-btn {
    display: flex;
    align-items: center;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.create-post-btn i {
    margin-right: 5px;
}

.create-post-btn:hover {
    background-color: #0d8aee;
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d4f;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    cursor: pointer;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #2196f3;
}

/* Policies header */
.policies-header {
    background-color: #0d2c54;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.policies-header h1 {
    font-size: 32px;
    font-weight: bold;
}

/* Content container */
.content-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Sidebar */
.sidebar {
    width: 250px;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.sidebar ul {
    margin-top: 20px;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar a {
    display: block;
    padding: 12px 15px;
    color: #333;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
    white-space: nowrap; /* Keep text on one line */
    overflow: hidden;    /* Hide overflow if any */
    text-overflow: ellipsis; /* Show ellipsis if text overflows */
}

.sidebar a:hover {
    background-color: #f5f5f5;
}

.sidebar a.active {
    background-color: #0d2c54;
    color: white;
}

.sidebar a:hover:not(.active) {
    background-color: #f0f0f0;
}

.update-info {
    color: #777;
    font-size: 14px;
}

/* Main content */
.main-content {
    flex-grow: 1;
    padding-left: 30px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.content-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

.update-info {
    color: #777;
    font-size: 14px;
}

.rules-content p {
    margin-bottom: 15px;
    font-size: 15px;
}

.rule {
    margin: 20px 0;
}

.rule h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

h3 {
    font-size: 20px;
    margin: 25px 0 15px;
}

/* Footer */
footer {
    background-color: #0d2c54;
    color: white;
    padding: 30px 0;
}

.footer-container {
    display: flex;
    justify-content: right;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 80px;
}

.footer-section {
    text-align: left;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    font-weight: bold;
}


.footer-section ul {
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section a {
    color: white;
    transition: color 0.2s;
    font-size: 14px;
}

.footer-section a:hover {
    color: #ccc;
}

/* Responsive styles */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .main-content {
        padding-left: 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .footer-section {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .update-info {
        margin-top: 10px;
    }

    .header-container {
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 20px;
    }
}

.rules-content ol,
.rules-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.rules-content ol li,
.rules-content ul li {
    margin-bottom: 8px;
    font-weight: 500;
}

.rules-content ul li {
    list-style-type: disc;
}

.rules-content h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.rules-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Policies header with right-aligned title */
.policies-header {
    background-color: #0d2c54;
    color: white;
    padding: 20px 0;
}

.policies-title-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left; /* Right-align the POLICIES text */
}

.policies-header h1 {
    font-size: 32px;
    font-weight: bold;
}

.rules-content ol a {
    color: #0d2c54;
    transition: color 0.2s, text-decoration 0.2s;
}

.rules-content ol a:hover {
    color: #2196f3;
    text-decoration: underline;
}
