/* ===================================
   MARITIME JOBS - BLOG STYLES
   Modern, Clean, Professional Design
   =================================== */

/* ============================================
   1. BLOG HERO SECTION
   ============================================ */
.blog-hero {
    background: linear-gradient(135deg, var(--maritime-600) 0%, var(--maritime-800) 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Search Form */
.blog-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-input-group input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--gray-800);
}

.search-input-group input::placeholder {
    color: var(--gray-400);
}

.search-input-group button {
    padding: 18px 30px;
    background: var(--maritime-600);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.search-input-group button:hover {
    background: var(--maritime-700);
}

.search-input-group button i {
    font-size: 1.1rem;
}

/* ============================================
   2. FEATURED POSTS SECTION
   ============================================ */
.featured-posts {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--maritime-800);
    font-size: 2.5rem;
    font-weight: 700;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.featured-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-post-card .post-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.featured-post-card .post-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-post-card:hover .post-image::after {
    opacity: 1;
}

.featured-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post-card:hover .post-image img {
    transform: scale(1.08);
}

.featured-post-card .post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-post-card .post-category {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.featured-post-card h3 {
    margin-bottom: 15px;
    line-height: 1.4;
    flex: 1;
}

.featured-post-card h3 a {
    color: var(--maritime-900);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.35rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* stylelint-disable-line */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-card h3 a:hover {
    color: var(--maritime-600);
}

.featured-post-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* stylelint-disable-line */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-post-card .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--gray-500);
    padding-top: 15px;
    border-top: 1px solid var(--gray-100);
}

.featured-post-card .post-meta i {
    color: var(--maritime-500);
}

/* ============================================
   3. BLOG CONTENT LAYOUT
   ============================================ */
.blog-content {
    padding: 80px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

/* ============================================
   4. PAGE HEADER
   ============================================ */
.page-header {
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--maritime-200);
}

.page-header h2 {
    color: var(--maritime-900);
    margin-bottom: 10px;
    font-size: 2.25rem;
    font-weight: 700;
}

.page-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* ============================================
   5. POSTS GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 50px;
}

.post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-card .post-image {
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-card .post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-card .post-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.post-card .post-category i {
    font-size: 0.9rem;
}

.post-card h3 {
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-card h3 a {
    color: var(--maritime-900);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.5rem;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* stylelint-disable-line */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card h3 a:hover {
    color: var(--maritime-600);
}

.post-card > .post-content > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* stylelint-disable-line */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.post-card .post-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card .post-meta i {
    color: var(--maritime-500);
    font-size: 0.95rem;
}

.read-more {
    color: var(--maritime-600);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.read-more:hover {
    color: var(--maritime-700);
    gap: 12px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.no-posts i {
    font-size: 5rem;
    color: var(--gray-300);
    margin-bottom: 25px;
    display: block;
}

.no-posts h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--gray-800);
}

.no-posts p {
    color: var(--gray-600);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ============================================
   6. PAGINATION
   ============================================ */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--maritime-300);
    border-radius: 10px;
    color: var(--maritime-700);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    background: var(--maritime-600);
    color: white;
    border-color: var(--maritime-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    padding: 12px 18px;
    background: white;
    border: 2px solid var(--maritime-200);
    border-radius: 10px;
    color: var(--maritime-700);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    min-width: 48px;
    text-align: center;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--maritime-600);
    color: white;
    border-color: var(--maritime-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

/* ============================================
   7. BLOG SIDEBAR
   ============================================ */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: var(--maritime-900);
    margin-bottom: 25px;
    font-size: 1.35rem;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--maritime-200);
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-list a:hover,
.category-list a.active {
    background: linear-gradient(135deg, var(--maritime-50), var(--maritime-100));
    color: var(--maritime-800);
    transform: translateX(5px);
}

.category-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.post-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--gray-400);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
}

.category-list a:hover .post-count,
.category-list a.active .post-count {
    background: var(--maritime-600);
    color: white;
}

/* Recent Posts Widget */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-150);
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 5px;
}

.recent-posts a:hover {
    background: var(--gray-50);
}

.recent-posts img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.recent-posts .post-info {
    flex: 1;
}

.recent-posts .post-info h4 {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--maritime-800);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* stylelint-disable-line */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-posts a:hover .post-info h4 {
    color: var(--maritime-600);
}

.recent-posts .post-date {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
}

.recent-posts .post-date i {
    font-size: 0.75rem;
}

/* Tags Widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 10px 18px;
    background: var(--maritime-50);
    color: var(--maritime-700);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tag-item:hover {
    background: var(--maritime-600);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

/* ============================================
   8. INDIVIDUAL POST PAGE
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    padding: 20px 0;
    border-bottom: 2px solid var(--gray-150);
    margin-top: 64px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 12px;
    color: var(--gray-400);
    font-size: 1.2rem;
    font-weight: 300;
}

.breadcrumb a {
    color: var(--maritime-600);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--maritime-700);
    text-decoration: underline;
}

.breadcrumb .active {
    color: var(--gray-600);
    font-weight: 600;
}

/* Post Layout */
.blog-post {
    padding: 60px 0;
    background: #fafbfc;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    align-items: start;
}

.post-main {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Post Header */
.post-header {
    margin-bottom: 40px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-category a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category a:hover {
    opacity: 0.8;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--maritime-900);
    line-height: 1.2;
    margin-bottom: 25px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.95rem;
    color: var(--gray-600);
    padding: 20px 0;
    border-top: 2px solid var(--gray-150);
    border-bottom: 2px solid var(--gray-150);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.meta-item i {
    color: var(--maritime-500);
    font-size: 1rem;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gray-800);
    margin-bottom: 50px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--maritime-900);
    margin: 50px 0 25px 0;
    font-weight: 700;
    line-height: 1.3;
}

.post-content h1 { font-size: 2.25rem; }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.75rem; }
.post-content h4 { font-size: 1.5rem; }

.post-content p {
    margin-bottom: 25px;
}

.post-content ul,
.post-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-content blockquote {
    border-left: 5px solid var(--maritime-600);
    padding: 25px 30px;
    margin: 40px 0;
    background: linear-gradient(135deg, var(--maritime-50), var(--maritime-100));
    font-style: italic;
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--maritime-900);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 35px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-content a {
    color: var(--maritime-600);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--maritime-200);
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: var(--maritime-700);
    border-bottom-color: var(--maritime-600);
}

/* Tables in post content */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.post-content th {
    background: var(--maritime-600);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content td {
    padding: 15px;
    border-bottom: 1px solid var(--gray-150);
    color: var(--gray-700);
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:hover {
    background: var(--gray-50);
}

/* Post Tags */
.post-tags {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    border: 2px solid var(--gray-150);
}

.post-tags h4 {
    margin-bottom: 20px;
    color: var(--maritime-900);
    font-size: 1.2rem;
    font-weight: 700;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Social Sharing */
.social-sharing {
    margin-bottom: 50px;
    padding: 35px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    border: 2px solid var(--gray-150);
}

.social-sharing h4 {
    margin-bottom: 25px;
    color: var(--maritime-900);
    font-size: 1.2rem;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Comments Section */
.comments-section {
    margin-bottom: 50px;
}

.comments-section h3 {
    color: var(--maritime-900);
    margin-bottom: 35px;
    font-size: 2rem;
    font-weight: 700;
}

.comment-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    border: 2px solid var(--gray-150);
}

.comment-form h4 {
    margin-bottom: 30px;
    color: var(--maritime-900);
    font-size: 1.5rem;
    font-weight: 700;
}

.comment-form .form-group {
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--maritime-800);
    font-size: 0.95rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--gray-250);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--maritime-500);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.no-comments {
    text-align: center;
    color: var(--gray-600);
    font-style: italic;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    border: 2px dashed var(--gray-250);
}

.comment-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--gray-150);
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: var(--maritime-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-150);
}

.comment-author {
    font-weight: 700;
    color: var(--maritime-900);
    font-size: 1.1rem;
}

.comment-author a {
    color: var(--maritime-600);
    margin-left: 10px;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.comment-content {
    line-height: 1.7;
    color: var(--gray-700);
    font-size: 1.05rem;
}

/* Post Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--maritime-200);
}

.related-post-image {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    flex: 1;
}

.related-post-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.related-post-content h4 {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    font-weight: 700;
}

.related-post-content h4 a {
    color: var(--maritime-900);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* stylelint-disable-line */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-content h4 a:hover {
    color: var(--maritime-600);
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Newsletter Widget (Sidebar only) */
.newsletter-widget {
    background: linear-gradient(135deg, var(--maritime-600) 0%, var(--maritime-800) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.newsletter-widget * {
    position: relative;
    z-index: 1;
}

.newsletter-widget h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
}

.newsletter-widget p {
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Sidebar newsletter form styles only */
.sidebar-widget .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-widget .newsletter-form input {
    padding: 15px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
}

.sidebar-widget .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-widget .newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.sidebar-widget .newsletter-form button {
    padding: 15px;
    background: white;
    color: var(--maritime-700);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.sidebar-widget .newsletter-form button:hover {
    background: var(--maritime-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   9. RTL LANGUAGE SUPPORT
   ============================================ */

/* RTL Support for Footer Social Icons */
[dir="rtl"] .footer-social {
    direction: ltr !important;
}

[dir="rtl"] .footer-bottom {
    direction: rtl;
}

[dir="rtl"] .footer-bottom-left {
    flex-direction: column-reverse;
}

/* RTL Support for Social Share Buttons */
[dir="rtl"] .share-buttons {
    direction: ltr !important;
}

[dir="rtl"] .share-btn {
    direction: ltr !important;
}

/* RTL Support for breadcrumb */
[dir="rtl"] .breadcrumb ol {
    direction: rtl;
}

[dir="rtl"] .breadcrumb li:not(:last-child)::after {
    content: '‹';
    margin-left: 0;
    margin-right: 12px;
}

/* RTL Support for Meta Items */
[dir="rtl"] .meta-item {
    direction: ltr;
}

[dir="rtl"] .post-meta {
    justify-content: flex-end;
}

/* RTL Support for Category and Tags */
[dir="rtl"] .post-category,
[dir="rtl"] .tag-item {
    direction: ltr;
}

/* RTL Support for Newsletter */
[dir="rtl"] .email-input-group {
    direction: ltr;
}

[dir="rtl"] .footer-newsletter {
    direction: rtl;
}

[dir="rtl"] .newsletter-content {
    direction: rtl;
}

/* RTL Support for Contact Items */
[dir="rtl"] .footer-contact-info {
    direction: rtl;
}

[dir="rtl"] .contact-item {
    direction: ltr;
}

/* ============================================
   10. RESPONSIVE DESIGN
   ============================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .blog-layout,
    .post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-sidebar,
    .post-sidebar {
        position: static;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .post-main {
        padding: 40px;
    }
    
    .post-title {
        font-size: 2.5rem;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 2.25rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-input-group input,
    .search-input-group button {
        border-radius: 0;
    }
    
    .search-input-group input {
        border-radius: 16px 16px 0 0;
    }
    
    .search-input-group button {
        border-radius: 0 0 16px 16px;
    }
    
    .featured-posts,
    .blog-content {
        padding: 50px 0;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        gap: 25px;
    }
    
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-card .post-image {
        height: 200px;
        min-height: auto;
    }
    
    .post-card .post-content {
        padding: 25px;
    }
    
    .post-main {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1.05rem;
    }
    
    .post-content h1 { font-size: 1.75rem; }
    .post-content h2 { font-size: 1.5rem; }
    .post-content h3 { font-size: 1.35rem; }
    .post-content h4 { font-size: 1.2rem; }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
        width: 100%;
    }
    
    .comment-form,
    .comment-item {
        padding: 25px;
    }
    
    .related-post-item {
        flex-direction: column;
    }
    
    .related-post-image {
        width: 100%;
        height: 180px;
    }
    
    .breadcrumb {
        margin-top: 56px;
        padding: 15px 0;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.85rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .sidebar-widget {
        padding: 25px 20px;
    }
    
    .post-main {
        padding: 25px 20px;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .comment-form,
    .comment-item {
        padding: 20px;
    }
    
    .pagination-btn,
    .pagination-number {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

