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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ec4899;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ec4899;
}

.mobile-auth {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 2rem;
    color: #1f2937;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1f2937;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown Menu Styles */

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: #f9fafb;
    color: #ec4899;
    border-left-color: #ec4899;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 250px;
    padding: 10px 40px 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #ec4899;
}

.search-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-icon:hover {
    background: #f3f4f6;
    color: #ec4899;
}

.login-btn {
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-block;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ec4899, #f472b6, #fbbf24);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero-circle-1 {
    width: 200px;
    height: 200px;
    top: 20px;
    left: 100px;
}

.hero-circle-2 {
    width: 150px;
    height: 150px;
    top: 120px;
    right: 150px;
}

.hero-circle-3 {
    width: 250px;
    height: 250px;
    bottom: 50px;
    left: 30%;
}

.hero-circle-4 {
    width: 100px;
    height: 100px;
    bottom: 100px;
    right: 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn {
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-btn.primary {
    background: white;
    color: #ec4899;
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-btn.secondary:hover {
    background: white;
    color: #ec4899;
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 50px;
}

/* Featured Content */
.featured {
    padding: 80px 0;
    background: #f9fafb;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* More compact */
    gap: 25px;
}

.featured-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.featured-card .card-image {
    aspect-ratio: 16 / 10; /* Enforce aspect ratio */
    height: auto; /* Remove fixed height */
    max-height: none;
}

.featured-card .card-content {
    padding: 20px;
}

.featured-card .card-title {
    font-size: 1.1rem; /* Smaller title */
    margin-bottom: 10px;
}

.featured-card .card-excerpt {
    font-size: 0.9rem; /* Smaller excerpt */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;  
    overflow: hidden;
    margin-bottom: 15px;
}

.featured-card .card-meta {
    font-size: 0.8rem;
}

/* Latest Posts */
.latest-posts {
    padding: 80px 0;
    background: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3f4f6;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.post-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.category {
    color: #6b7280;
}

.date {
    color: #9ca3af;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ec4899;
}

.post-excerpt {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-author {
    font-size: 12px;
    color: #9ca3af;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: #e5e7eb;
}

.page-btn.active {
    background: #ec4899;
    color: white;
}

.page-btn.ellipsis {
    background: transparent;
    color: #9ca3af;
    cursor: default;
    pointer-events: none;
}

.page-btn.ellipsis:hover {
    background: transparent;
}

.page-dots {
    display: flex;
    align-items: center;
    color: #9ca3af;
}

/* Tags Section */
.tags {
    padding: 80px 0;
    background: #f9fafb;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.tag {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.tag:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.tag-red { background: #fef2f2; color: #dc2626; }
.tag-purple { background: #faf5ff; color: #7c3aed; }
.tag-orange { background: #fff7ed; color: #ea580c; }
.tag-pink { background: #fdf2f8; color: #ec4899; }
.tag-brown { background: #fef7f0; color: #92400e; }
.tag-gray { background: #f9fafb; color: #4b5563; }
.tag-yellow { background: #fffbeb; color: #d97706; }
.tag-amber { background: #fffbeb; color: #f59e0b; }
.tag-blue { background: #eff6ff; color: #2563eb; }
.tag-green { background: #f0fdf4; color: #16a34a; }

/* Authors Section */
.authors {
    padding: 80px 0;
    background: white;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.author-card {
    text-align: center;
    padding: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.gradient-author-1 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.gradient-author-2 { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.gradient-author-3 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.gradient-author-4 { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-author-5 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.gradient-author-6 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.gradient-author-7 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.gradient-author-8 { background: linear-gradient(135deg, #14b8a6, #06b6d4); }
.gradient-author-9 { background: linear-gradient(135deg, #f97316, #f59e0b); }
.gradient-author-10 { background: linear-gradient(135deg, #84cc16, #10b981); }
.gradient-author-11 { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.gradient-author-12 { background: linear-gradient(135deg, #6b7280, #374151); }

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.author-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: #ec4899;
    text-decoration: none;
}

.author-followers {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.follow-btn {
    border: 2px solid #ec4899;
    background: transparent;
    color: #ec4899;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background: #ec4899;
    color: white;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-desc {
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #ec4899;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
}

.footer-link {
    color: #ec4899;
    text-decoration: none;
}

.footer-link:hover {
    color: #f472b6; /* Change color on hover instead of underline */
}

/* List Page Styles */
.category-hero {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.category-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.category-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.list-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 40px 0;
}

.list-main {
    min-width: 0;
}

.filters-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: #374151;
    margin-right: 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e5e7eb;
}

.filter-btn.active {
    background: #ec4899;
    color: white;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    transition: box-shadow 0.3s ease;
}

.list-post-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.list-post-image {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.list-post-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-post-card:hover .list-post-image img {
    transform: scale(1.05);
}

.list-post-content {
    flex: 1;
    padding: 25px;
}

.list-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.list-post-category {
    background: #fdf2f8;
    color: #ec4899;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.list-post-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6b7280;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-post-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s ease;
}

.list-post-title a {
    color: inherit;
    text-decoration: none;
}

.list-post-title:hover {
    color: #ec4899;
}

.list-post-excerpt {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.list-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #9ca3af;
}

.bookmark-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.bookmark-btn:hover {
    color: #ec4899;
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 52px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
}

.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-post {
    display: flex;
    gap: 12px;
}

.sidebar-post-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-post-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sidebar-post-title a {
    color: inherit;
    text-decoration: none;
}

.sidebar-post-title:hover {
    color: #ec4899;
}

.sidebar-post-date {
    font-size: 12px;
    color: #9ca3af;
}

.sidebar-authors {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 12px;
}

.sidebar-author-info {
    flex: 1;
}

.sidebar-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.sidebar-author-followers {
    font-size: 12px;
    color: #9ca3af;
}

.sidebar-follow-btn {
    padding: 6px 12px;
    border: 1px solid #ec4899;
    background: transparent;
    color: #ec4899;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-follow-btn:hover {
    background: #ec4899;
    color: white;
}

.sidebar-tags {
    gap: 8px;
}

.sidebar-tags .tag {
    padding: 5px 12px;
    font-size: 13px;
}

.sidebar-recommendations {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-recommendation {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.sidebar-rec-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
    line-height: 1.3;
}

.sidebar-rec-title a {
    color: inherit;
    text-decoration: none;
}

.sidebar-rec-date {
    font-size: 12px;
    color: #9ca3af;
}

/* Search Highlight Styles */
.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Detail Page Styles */
.detail-container {
    max-width: 900px;
    padding: 20px 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #ec4899;
}

.breadcrumb-separator {
    color: #d1d5db;
}

.breadcrumb-current {
    color: #1f2937;
}

.article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    margin-bottom: 50px;
}

.article-header {
    padding: 40px;
    border-bottom: 1px solid #f3f4f6;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.article-category {
    background: #fdf2f8;
    color: #ec4899;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.article-reading-time {
    color: #6b7280;
    font-size: 14px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-author-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.author-name {
    font-weight: 600;
    color: #1f2937;
}

.follow-author-btn {
    color: #ec4899;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.follow-author-btn:hover {
    color: #be185d;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.separator {
    color: #d1d5db;
}

.article-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 14px;
}

.action-btn:hover {
    color: #ec4899;
}

.article-content {
    padding: 40px;
}

.article-hero-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero-image img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-text {
    line-height: 1.8;
    color: #374151;
}

.article-text img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

.article-text figure {
    margin: 30px 0;
    text-align: center;
}

.article-text figure img {
    margin: 0 auto 10px auto;
}

.article-text figcaption {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

.article-text h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1f2937;
    margin: 40px 0 20px 0;
}

.article-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin: 30px 0 15px 0;
}

.article-text p {
    margin-bottom: 20px;
}

.article-tip {
    background: #fdf2f8;
    border-left: 4px solid #ec4899;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.article-tip h3 {
    color: #1f2937;
    margin-bottom: 10px;
    margin-top: 0;
}

.article-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.article-image {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.05);
}

.article-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.article-images-grid .article-image {
    margin: 0;
}

.article-images-section {
    margin: 40px 0;
}

.article-single-image {
    margin: 30px 0;
    text-align: center;
}

.article-single-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-product-list {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.article-product-list h3 {
    color: #1f2937;
    margin-bottom: 15px;
    margin-top: 0;
}

.article-product-list ul {
    list-style: none;
    padding: 0;
}

.article-product-list li {
    color: #374151;
    margin-bottom: 8px;
}

.article-footer {
    padding: 40px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.article-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-action-btn:hover {
    background: #f3f4f6;
}

.footer-action-btn.primary {
    background: #ec4899;
    color: white;
    border-color: #ec4899;
}

.footer-action-btn.primary:hover {
    background: #be185d;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.article-tag {
    background: #fdf2f8;
    color: #ec4899;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.author-card {
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.author-card-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.author-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.author-card-bio {
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 14px;
}

.author-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.author-follow-btn {
    background: #ec4899;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.author-follow-btn:hover {
    background: #be185d;
}

.related-posts {
    margin-bottom: 50px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* More compact */
    gap: 20px;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-3px);
}

.related-post-image {
    aspect-ratio: 16 / 10; /* Enforce aspect ratio */
    height: auto; /* Remove fixed height */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-post-image img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.related-post-category {
    background: #fdf2f8;
    color: #ec4899;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.related-post-date {
    color: #9ca3af;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-title a {
    color: inherit;
    text-decoration: none;
}

.related-post-excerpt {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
}

.related-post-author {
    font-size: 12px;
    color: #9ca3af;
}

.compact-grid .related-post-card {
    flex-direction: column;
}

.compact-grid .related-post-image {
    height: 160px;
}

.compact-grid .related-post-content {
    padding: 15px;
}

.compact-grid .related-post-title {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.compact-grid .related-post-meta {
    margin-bottom: 8px;
}

.compact-grid .related-post-excerpt,
.compact-grid .related-post-author {
    display: none;
}

/* Gradient Classes */
.gradient-1 { background: linear-gradient(135deg, #ec4899, #f97316); }
.gradient-2 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.gradient-3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.gradient-4 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.gradient-5 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.gradient-6 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.gradient-7 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.gradient-8 { background: linear-gradient(135deg, #f59e0b, #eab308); }
.gradient-9 { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-10 { background: linear-gradient(135deg, #ef4444, #dc2626); }
.gradient-11 { background: linear-gradient(135deg, #ec4899, #be185d); }

.gradient-author-1 { background: linear-gradient(135deg, #f97316, #ec4899); }
.gradient-author-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.gradient-author-3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.gradient-author-4 { background: linear-gradient(135deg, #ec4899, #ef4444); }
.gradient-author-5 { background: linear-gradient(135deg, #10b981, #06b6d4); }

/* Auth Pages Styles */
.auth-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fdf2f8 0%, #fef7ff 100%);
    min-height: calc(100vh - 200px);
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.forgot-link {
    color: #ec4899;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    color: #be185d; /* Change color on hover instead of underline */
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #be185d, #9d174d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.auth-footer p {
    color: #6b7280;
    margin: 0;
}

.auth-footer a {
    color: #ec4899;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.success-message {
    background: #f0fdf4;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #bbf7d0;
    font-size: 14px;
}

/* Detail Page Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: flex-start;
}

.detail-main {
    min-width: 0;
}

.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 80px; /* Adjust based on header height */
}

/* Table of Contents Styles */
#toc-container {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-link {
    text-decoration: none;
    color: #6b7280;
    transition: color 0.3s ease;
    display: block;
}

.toc-link:hover {
    color: #ec4899;
}

.toc-h2 {
    font-weight: 500;
    padding-left: 0;
}

.toc-h3 {
    font-size: 14px;
    padding-left: 15px;
    position: relative;
}

.toc-h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: #d1d5db;
}

/* Detail Page Specific Overrides for Related Articles Grid */
.detail-main .related-posts .posts-grid.home-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Even smaller cards */
    gap: 15px; /* Reduce gap */
}

.detail-main .related-posts .post-card .post-image {
    height: 120px; /* Make image even smaller */
    aspect-ratio: 16 / 9; /* Ensure aspect ratio */
}

.detail-main .related-posts .post-card .post-content {
    padding: 10px; /* Reduce padding */
}

.detail-main .related-posts .post-card .post-title {
    font-size: 0.85rem; /* Smaller title font */
    margin-bottom: 5px;
}

.detail-main .related-posts .post-card .post-meta,
.detail-main .related-posts .post-card .post-author {
    font-size: 10px; /* Smaller meta font */
}
@media (max-width: 768px) {
    .list-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        order: -1;
    }

    /* Detail Page Layout */
    .detail-layout {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 30px; /* Adjust gap for single column */
    }

    .detail-main {
        order: 1; /* Ensure main content comes first */
    }

    .sticky-sidebar {
        position: static; /* Remove sticky behavior on mobile */
        order: 2; /* Place sidebar below main content */
        margin-top: 30px; /* Add some space */
    }

    /* Adjust font sizes and padding for article content */
    .article-header {
        padding: 20px; /* Reduce padding */
    }

    .article-title {
        font-size: 1.8rem; /* Smaller title */
    }

    .article-subtitle {
        font-size: 1rem; /* Smaller subtitle */
    }

    .article-content {
        padding: 20px; /* Reduce padding */
    }

    .article-footer {
        padding: 20px; /* Reduce padding */
    }

    .article-author-section {
        flex-direction: column; /* Stack author info and actions */
        align-items: flex-start;
        gap: 20px;
    }

    .article-actions {
        width: 100%; /* Make action buttons take full width */
        justify-content: space-around; /* Distribute buttons */
    }

    .footer-action-btn {
        padding: 8px 15px; /* Smaller buttons */
        font-size: 14px;
    }

    /* Adjust related articles grid for mobile */
    .detail-main .related-posts .posts-grid.home-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Even smaller cards for mobile */
        gap: 10px;
    }

    .detail-main .related-posts .post-card .post-image {
        height: 100px; /* Smaller image height */
    }

    .detail-main .related-posts .post-card .post-title {
        font-size: 0.8rem; /* Even smaller title */
    }

    /* Comments section adjustments */
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Homepage Compact Grid Override */
.home-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.home-posts-grid .post-image {
    height: 160px;
}

.home-posts-grid .post-content {
    padding: 15px;
}

.home-posts-grid .post-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.home-posts-grid .post-excerpt {
    display: none; /* Hide excerpt on homepage */
}

.home-posts-grid .post-meta {
    margin-bottom: 8px;
}

.home-posts-grid .post-author {
    font-size: 12px;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-wrapper {
        justify-content: space-between; /* Distribute items */
        padding: 0 15px; /* Add some padding */
    }

    .header-actions {
        gap: 10px; /* Reduce gap */
    }

    .search-box input {
        width: 150px; /* Smaller search input */
        padding: 8px 30px 8px 10px;
    }

    .login-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .header-actions {
        display: none;
    }
    
    .nav.nav-open .mobile-auth {
        display: block;
        padding: 20px;
        border-top: 1px solid #f3f4f6;
    }
    
    .nav.nav-open .mobile-auth .login-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .nav.nav-open .mobile-auth .user-menu {
        text-align: center;
    }
    
    .nav.nav-open .mobile-auth .user-menu .logout-btn {
        margin-top: 10px;
    }

    /* Mobile Nav Menu */
    .nav.nav-open {
        display: flex; /* Show menu when open */
        flex-direction: column; /* Stack items vertically */
        position: absolute; /* Position over content */
        top: 70px; /* Below header */
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
        max-height: calc(100vh - 70px); /* Full height minus header */
        overflow-y: auto;
        gap: 0; /* Reduce gap for mobile menu */
    }

    .nav.nav-open .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav.nav-open .nav-link:last-child {
        border-bottom: none;
    }

    .nav.nav-open .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav.nav-open .nav-dropdown .dropdown-item {
        padding-left: 40px;
    }

    .nav.nav-open .nav-dropdown .dropdown-arrow {
        transform: rotate(90deg); /* Indicate open state */
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .category-stats {
        gap: 30px;
    }
    
    .list-post-card {
        flex-direction: column;
    }
    
    .list-post-image {
        width: 100%;
        height: 200px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-images {
        grid-template-columns: 1fr;
    }
    
    .article-images-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .article-header,
    .article-content,
    .article-footer {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-author-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .article-footer-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Contact Page Styles */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #fdf2f8, #fef7ff);
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.contact-intro p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 30px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.contact-info-section {
    padding: 20px;
}

.contact-method {
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-method h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-method p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 10px;
}

.contact-method a {
    color: #ec4899;
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-method ul {
    list-style: none;
    padding: 0;
}

.contact-method ul li {
    color: #6b7280;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.contact-method ul li::before {
    content: '•';
    color: #ec4899;
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.social-link {
    color: #ec4899;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #be185d;
}

.faq-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e5e7eb;
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .contact-method {
        padding: 20px 15px;
    }
}

/* Careers Page Styles */
.careers-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.careers-intro {
    text-align: center;
    margin-bottom: 60px;
}

.careers-intro p {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.company-culture {
    margin-bottom: 80px;
}

.company-culture h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    margin-bottom: 50px;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.culture-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.culture-item:hover {
    transform: translateY(-5px);
}

.culture-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.culture-item h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.culture-item p {
    color: #6b7280;
    line-height: 1.6;
}

.open-positions {
    margin-bottom: 80px;
}

.open-positions h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    margin-bottom: 50px;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.position-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.position-card:hover {
    transform: translateY(-3px);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.position-header h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
}

.position-type {
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.position-location {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.position-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.position-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.skill-tag {
    background: #fdf2f8;
    color: #ec4899;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.apply-btn {
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.application-process {
    margin-bottom: 80px;
}

.application-process h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    margin-bottom: 50px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.process-step p {
    color: #6b7280;
    line-height: 1.6;
}

.benefits-section {
    margin-bottom: 80px;
}

.benefits-section h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1f2937;
    text-align: center;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.benefit-item p {
    color: #6b7280;
    line-height: 1.6;
}

.contact-hr {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #fdf2f8, #fef7ff);
    border-radius: 16px;
}

.contact-hr h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
}

.contact-hr p {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.hr-contact p {
    margin-bottom: 10px;
}

.hr-contact a {
    color: #ec4899;
    text-decoration: none;
    font-weight: 500;
}

.hr-contact a:hover {
    text-decoration: underline;
}

/* Careers Page Responsive */
@media (max-width: 768px) {
    .culture-grid {
        grid-template-columns: 1fr;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .culture-item,
    .position-card,
    .benefit-item {
        padding: 20px;
    }
    
    .contact-hr {
        padding: 40px 20px;
    }
}

/* About, Privacy, Terms Pages Styles */
.about-content,
.privacy-content,
.terms-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.7;
}

.about-section,
.privacy-section,
.terms-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f3f4f6;
}

.about-section:last-child,
.privacy-section:last-child,
.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.about-section h2,
.privacy-section h2,
.terms-section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ec4899;
    display: inline-block;
}

.about-section h3,
.privacy-section h3,
.terms-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin: 25px 0 15px 0;
}

.about-section p,
.privacy-section p,
.terms-section p {
    color: #6b7280;
    margin-bottom: 15px;
    text-align: justify;
}

.about-section ul,
.privacy-section ul,
.terms-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.about-section li,
.privacy-section li,
.terms-section li {
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.6;
}

.about-section strong,
.privacy-section strong,
.terms-section strong {
    color: #374151;
    font-weight: 600;
}

.about-section a,
.privacy-section a,
.terms-section a {
    color: #ec4899;
    text-decoration: none;
    font-weight: 500;
}

.about-section a:hover,
.privacy-section a:hover,
.terms-section a:hover {
    text-decoration: underline;
}

/* Mission List Styles */
.mission-list {
    list-style: none;
    padding-left: 0;
}

.mission-list li {
    background: #fdf2f8;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #ec4899;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Page Header Styles for Static Pages */
.page-header {
    text-align: center;
    margin: 50px;
    padding: 40px 0;
    background: linear-gradient(135deg, #fdf2f8, #fef7ff);
    border-radius: 16px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    margin: 0;
}

/* Comments Section Styles */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 20px auto;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.comments-sort {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-btn.active,
.sort-btn:hover {
    background: #ec4899;
    color: white;
    border-color: #ec4899;
}

/* Comment Form */
.comment-form-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.comment-form-header {
    display: flex;
    gap: 15px;
}

.comment-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-form-content {
    flex: 1;
}

.comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-input:focus {
    border-color: #ec4899;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.comment-tools {
    display: flex;
    gap: 8px;
}

.tool-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.tool-btn:hover {
    background: #e5e7eb;
}

.comment-submit-actions {
    display: flex;
    gap: 10px;
}

.comment-cancel-btn,
.comment-submit-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-cancel-btn {
    background: none;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.comment-cancel-btn:hover {
    background: #f3f4f6;
}

.comment-submit-btn {
    background: #ec4899;
    border: none;
    color: white;
}

.comment-submit-btn:hover {
    background: #db2777;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f3f4f6;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.author-badge {
    background: #ec4899;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.comment-time {
    color: #9ca3af;
    font-size: 12px;
}

.comment-text {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.comment-action-btn:hover {
    color: #ec4899;
}

/* Comment Reply */
.comment-reply {
    margin-top: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #f3f4f6;
    display: flex;
    gap: 15px;
}

.comment-reply .comment-avatar {
    width: 32px;
    height: 32px;
}

/* Load More Comments */
.load-more-comments {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Gradient Avatar Colors */
.gradient-author-1 {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

.gradient-author-2 {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.gradient-author-3 {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.gradient-author-4 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.gradient-author-5 {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* Responsive Design for Static Pages */
@media (max-width: 768px) {
    .about-content,
    .privacy-content,
    .terms-content {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .about-section h2,
    .privacy-section h2,
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .about-section h3,
    .privacy-section h3,
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .mission-list li {
        padding: 12px 15px;
    }
    
    .comments-section {
        padding: 20px;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .comment-form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .comment-submit-actions {
        align-self: flex-end;
    }
    
    .comment-reply {
        margin-left: 10px;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .about-section,
    .privacy-section,
    .terms-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .about-section ul,
    .privacy-section ul,
    .terms-section ul {
        padding-left: 20px;
    }
}

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.no-comments p {
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Responsive adjustments for back to top button */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

:focus-visible {
    outline: 3px solid #ec4899;
    outline-offset: 2px;
}

.nav-link:focus-visible,
.dropdown-item:focus-visible,
.login-btn:focus-visible,
.hero-btn:focus-visible,
.page-btn:focus-visible,
.follow-btn:focus-visible,
.filter-btn:focus-visible,
.logout-btn:focus-visible,
.submit-btn:focus-visible,
.search-icon:focus-visible,
.social-link:focus-visible {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
    border-radius: 6px;
}

.featured,
.latest-posts,
.tags,
.authors,
.posts-grid,
.posts-list,
.related-posts,
.authors-grid {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

.post-image img,
.list-post-image img {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
