/* Global styles */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e5e9e6;
}


/* Header styles */

.header {
    background-color: #007982;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo styles */

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.logo span {
    color: #007BFF;
}

.logo img {
    max-width: 100%;
    height: auto;
}


/* Navigation styles */

nav {
    flex: 1;
    text-align: right;
}

.navigation {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.navigation li {
    margin-left: 20px;
}

.navigation a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s;
}

.navigation a:hover {
    color: #0056b3;
}


/* Header Search */
.header-search {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.header-search form {
    display: flex;
    gap: 0;
}

.header-search input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 10px 0 0 10px;
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    transition: all 0.2s ease;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.header-search input:focus {
    background: #fff;
    color: #1e293b;
    outline: none;
    border-color: #0d9488;
}

.search-btn {
    padding: 12px 20px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #0f766e;
}

/* Join Page (links.html) */
.join-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.join-page h1 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 15px;
}

.join-page h2 {
    font-size: 20px;
    color: #0d9488;
    margin: 20px 0 15px 0;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 8px;
}

.contact-info {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-info .predesc {
    margin: 20px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    text-align: left;
}

.innertag {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    background: #0d9488;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.innertag:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

.btn.serbtn.add-to-profile {
    display: inline-block;
    padding: 16px 40px;
    background: #0d9488;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 20px 0;
}

.btn.serbtn.add-to-profile:hover {
    background: #0f766e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
}

.contact-info span {
    display: inline-block;
    margin: 0 15px 10px 0;
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
}

.addbtn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.2s ease;
}

.addbtn:hover {
    background: #0f766e;
}

/* Mobile Responsive for Join Page */
@media (max-width: 600px) {
    .join-page {
        padding: 15px;
    }
    
    .join-page h1 {
        font-size: 22px;
    }
    
    .contact-info {
        padding: 20px 15px;
    }
    
    .btn.serbtn.add-to-profile {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
    
    .contact-info span {
        display: block;
        margin: 5px 0;
    }
}


/* Main section styles */

section {
    display: flex;
    /* Flexbox for side-by-side layout */
    max-width: 90%;
    /* Max width for the section */
    margin: 20px auto;
    /* Centering with margin */
    padding: 20px;
    /* Padding around the section */
    background-color: #ffffff;
    /* Background color for the section */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Light shadow */
}


/* Main content styles */

.main {
    width: 70%;
    /* Fixed width for the main content */
    padding: 20px;
    /* Padding inside the main content area */
}


/* Sidebar styles */

.sidebar {
    width: 280px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0d9488;
}

.sidebar .category-list,
.sidebar .quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .category-list li,
.sidebar .quick-links li {
    margin-bottom: 8px;
}

.sidebar .category-list a,
.sidebar .quick-links a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar .category-list a:hover,
.sidebar .quick-links a:hover {
    background: #f1f5f9;
    color: #0d9488;
    transform: translateX(4px);
}

.sidebar .cat-icon,
.sidebar .link-icon {
    margin-right: 10px;
    font-size: 16px;
}

.sidebar .social-links {
    text-align: center;
}

.sidebar .social-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar .social-btn.telegram {
    background: #229ED9;
    color: #fff;
}

.sidebar .social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}


/* Footer styles */

footer {
    background-color: #333;
    /* Footer background color */
    color: #ffffff;
    /* Footer text color */
    text-align: center;
    /* Center align text */
    padding: 20px 0;
    /* Padding for the footer */
}

footer ul {
    list-style: none;
    /* Remove default list styling */
    padding: 0;
    /* Remove padding */
    margin: 0;
    /* Remove margin */
    display: flex;
    /* Flexbox for layout */
    flex-wrap: wrap;
    /* Allow items to wrap */
    justify-content: center;
    /* Center items */
}

footer li {
    margin: 0 15px;
    /* Margin between footer items */
}

footer a {
    color: #ffffff;
    /* Link color */
    text-decoration: none;
    /* Remove underline */
    transition: color 0.3s;
    /* Smooth color transition on hover */
}

footer a:hover {
    color: #007BFF;
    /* Change color on hover */
}


/* General heading styles */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    /* Remove default margins */
    font-weight: normal;
    /* Default font weight */
}


/* H1 styles */

h1 {
    font-size: 2.5em;
    /* Font size for H1 */
    color: #333;
    /* Text color */
    margin-bottom: 20px;
    /* Space below the heading */
    text-align: center;
    /* Center align the heading */
}


/* H2 styles */

h2 {
    font-size: 2em;
    /* Font size for H2 */
    color: #007BFF;
    /* Different color for H2 */
    margin-bottom: 15px;
    /* Space below the heading */
    text-align: left;
    /* Left align the heading */
}


/* H3 styles */

h3 {
    font-size: 1.75em;
    /* Font size for H3 */
    color: #555;
    /* Text color */
    margin-bottom: 10px;
    /* Space below the heading */
    text-align: left;
    /* Left align the heading */
}


/* H4 styles */

h4 {
    font-size: 1.5em;
    /* Font size for H4 */
    color: #777;
    /* Text color */
    margin-bottom: 10px;
    /* Space below the heading */
    text-align: left;
    /* Left align the heading */
}


/* H5 styles */

h5 {
    font-size: 1.25em;
    /* Font size for H5 */
    color: #999;
    /* Text color */
    margin-bottom: 5px;
    /* Space below the heading */
    text-align: left;
    /* Left align the heading */
}


/* H6 styles */

h6 {
    font-size: 1em;
    /* Font size for H6 */
    color: #bbb;
    /* Text color */
    margin-bottom: 5px;
    /* Space below the heading */
    text-align: left;
    /* Left align the heading */
}

.social-media {
    list-style: none;
    /* Remove default list styling */
    padding: 0;
    /* Remove padding */
    margin: 10px 0 0;
    /* Margin for spacing */
    display: flex;
    /* Flexbox for layout */
    justify-content: center;
    /* Center items */
}

.social-media li {
    margin: 0 10px;
    /* Space between social media items */
}

.social-media a {
    color: #ffffff;
    /* Link color */
    text-decoration: none;
    /* Remove underline */
    transition: color 0.3s;
    /* Smooth color transition on hover */
}

.social-media a:hover {
    color: #007BFF;
    /* Change color on hover */
}


/* Breadcrumb styles */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: #e9ecef;
    border-radius: 0.375rem;
}

.breadcrumbs__link {
    color: #007bff;
    text-decoration: none;
}

.breadcrumbs__link:hover {
    text-decoration: underline;
}

.sep {
    margin: 0 0.5rem;
    color: #6c757d;
}

.current {
    color: #6c757d;
}


/* Responsive styles */


/* Main content styles */

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1 1 calc(25% - 20px);
    background-color: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 253px;
    margin: auto;
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.card h3 {
    margin: 10px 0;
    font-size: 1.5em;
    text-align: center;
}

.card p {
    font-size: 1em;
    color: #666;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    color: #fff;
    background-color: #007BFF;
    border-radius: 5px;
    text-decoration: none;
}

.card a:hover {
    background-color: #0056b3;
}

.post-thumbnail {
    text-align: center;
}

.post-thumbnail img {
    width: 100%;
}


/* link table */

table {
    max-width: 600px;
    width: 95%;
    border-collapse: collapse;
    background-color: #e0f1ff;
    margin: 25px auto;
}

th,
td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    overflow-wrap: anywhere;
}

th {
    text-align: center;
}

.expandable-row {
    cursor: pointer;
}

.description {
    display: none;
    /* Hidden by default */
    transition: all 0.3s ease;
    /* Smooth transition for visibility changes */
}

.arrow {
    cursor: pointer;
    width: 30px;
    /* Fixed width for the arrow column */
}

.title {
    overflow-wrap: anywhere
}

.join-button-cell {
    width: 50px;
    /* Fixed width for the join button column */
    text-align: center;
    /* Center the join button */
}

.join-button {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    border-radius: 5px;
    width: 50px;
    /* Fixed width for the join button */
}

@media (max-width: 768px) {
    section {
        flex-direction: column;
        /* Stack main content and sidebar on mobile */
    }
    .main {
        width: 100%;
        padding: 0px;
    }
    .sidebar {
        margin-top: 20px;
        /* Margin between main content and sidebar */
        width: auto;
        /* Reset width to auto for responsiveness */
    }
    .logo {
        font-size: 20px;
        /* Smaller logo size on mobile */
    }
    h1 {
        font-size: 2em;
        /* Smaller font size for H1 on mobile */
    }
    h2 {
        font-size: 1.75em;
        /* Smaller font size for H2 on mobile */
    }
    h3 {
        font-size: 1.5em;
        /* Smaller font size for H3 on mobile */
    }
    h4 {
        font-size: 1.25em;
        /* Smaller font size for H4 on mobile */
    }
    .card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .card {
        flex: 1 1 100%;
    }
}

/* Trending Section */
.trending-section {
    margin: 40px 0;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
}

.trending-section h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #0d9488;
    color: #1e293b;
}

.trending-group-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.trending-group-section h3 {
    font-size: 16px;
    color: #0d9488;
    margin: 0 0 12px 0;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    display: inline-block;
}

.trending-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trending-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    min-width: 200px;
    transition: all 0.2s ease;
}

.trending-link-item:hover {
    border-color: #0d9488;
    background: #0d9488;
}

.trending-link-item:hover .link-name,
.trending-link-item:hover .badge {
    color: #fff;
}

.trending-link-item .link-name {
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.trending-link-item .badge {
    padding: 3px 8px;
    background: #0d9488;
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.trending-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #0d9488;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.trending-tag:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 30px 0;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.pagination .page-btn {
    padding: 10px 20px;
    background: #0d9488;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-btn:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

.pagination .page-info {
    color: #64748b;
    font-size: 14px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 20px 0;
}

.no-results h3 {
    color: #1e293b;
    margin-bottom: 10px;
}

.no-results p {
    color: #64748b;
    margin-bottom: 20px;
}

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0d9488;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}