/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tailwind Override - Mevcut stilleri koru */
* {
    box-sizing: border-box !important;
}
            body,html {
                font-family: "Roboto",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
                text-rendering: optimizeLegibility;
                -webkit-font-smoothing: antialiased;
                margin: 0;
                padding: 0;
                -webkit-tap-highlight-color: #fff0;
                -webkit-backface-visibility: hidden;
                position: relative;
                cursor: default;
                background: #f2f6ff;
                color: #272a48;
                font-size: 16px;
                line-height: 26.40px;
                font-weight: 400;
                scroll-behavior: smooth;
            }

            
a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* Override Tailwind container */
body .container {
    max-width: 1200px !important;
}

/* Top Header Bar */
.top-header-bar {
    background: linear-gradient(135deg, #2c3e8f 0%, #1e2a5e 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trust-badge {
    font-size: 12px;
    opacity: 0.9;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.followers-text {
    font-size: 12px;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 4px;
}

.social-icons a:hover {
    opacity: 0.8;
    background: rgba(255,255,255,0.1);
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

/* Main Header */
.main-header {
    background: linear-gradient(135deg, #3d52a0 0%, #2c3e8f 100%);
    padding: 20px 0;
}

.main-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: block;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 280px;
    display: block;
    transition: opacity 0.3s;
    object-fit: contain;
}

.logo-image:hover {
    opacity: 0.9;
}

/* Gradient background */
.main-header {
    background: linear-gradient(135deg, #3d52a0 0%, #2c3e8f 100%);
}

.subscribe-btn {
    background: #ffd93d;
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.subscribe-btn:hover {
    background: #ffc107;
    transform: translateY(-2px);
}

.subscribe-btn .icon {
    font-size: 16px;
}

/* Navigation Menu */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 16px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #d32f2f;
    border-bottom-color: #d32f2f;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn,
.search-btn,
.hamburger-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover,
.search-btn:hover,
.hamburger-btn:hover {
    color: #d32f2f;
}

.search-btn svg,
.hamburger-btn svg {
    width: 20px;
    height: 20px;
}

.search-btn:hover svg,
.hamburger-btn:hover svg {
    stroke: #d32f2f;
}

/* Ad Banner */
.ad-banner {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ad-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content img {
    width: 730px;
    height: 90px;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
}

.search-icon {
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: #fff;
    margin-bottom: 40px;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* Main Left Right Container */
.main-left-right {
    padding: 0 20px;
    position: relative;
}

@media only screen and (min-width: 1220px) {
    .main-left-right {
        padding: 0 20px 20px;
    }
}

/* Main Content Layout */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 50px;
    margin-top: 20px;
}

/* Post Card Stilleri - Category Style */
.posts-grid {
    display: grid;
    gap: 30px;
}

.post-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    padding: 12px 16px;
}

/* Post row: structure where image and content are siblings outside a backgrounded card */
.post-row {
    display: flex;
    align-items: center;
    gap: 25px;
    background: transparent; /* no background as requested */
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: all 0.2s ease;
    padding: 8px 0;
}

.post-row:hover {
    box-shadow: none;
}

.post-row .post-card-image {
    flex: 0 0 250px;
    width: 250px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
}

.post-row .post-card-content {
    flex: 1 1 auto;
    padding: 0;
    overflow: visible;
    position: relative;
}

/* Default thumbnail size inside the card */
.post-card .post-card-image {
    flex: 0 0 250px;
    width: 250px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.post-card .post-card-image img {
    position: static;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Loading / Lazy states for images */
.post-card .post-card-image img.loading {
    filter: blur(6px) grayscale(30%);
    transform: scale(1.03);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.post-card .post-card-image img.loaded {
    filter: none;
    transform: none;
}
.post-card .post-card-image img:hover {
    transform: scale(1.04);
}

/* Hover effect for thumbnails (applies to both post-card and post-row structures) */
.post-card-image img:hover,
.post-row .post-card-image img:hover,
.post-card .post-card-image img:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 0.35s ease;
    will-change: transform;
}

/* Small thumbnail variant: 250x130 (keeps same width but provided for clarity) */
.post-card.small-thumb .post-card-image {
    flex: 0 0 250px;
    width: 250px;
    height: 130px;
}

/* Full-width banner-style thumbnail: image above content */
.post-card.fullwidth-thumb {
    flex-direction: column;
    gap: 16px;
}
.post-card.fullwidth-thumb .post-card-image {
    width: 100%;
    flex: none;
    height: 130px;
    border-radius: 8px;
}

/* Responsive: stack cards on smaller screens */
@media (max-width: 900px) {
    .post-card {
        flex-direction: column;
        align-items: stretch;
    }
    .post-card .post-card-image {
        width: 100%;
        height: 180px;
        flex: none;
    }
}

.post-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.post-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

/* Thumbnail image inside post card - absolute fill with smooth transform */
.post-card-image img {
    max-width: 220px;
    max-height: 150px;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.post-card-content {
   /* padding: 20px 25px 20px 0;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
    margin-top: 8px;
    overflow: visible;
    position: relative;
    align-items: center;
    flex-wrap: wrap;
}

.post-date,
.post-author,
.post-category-meta,
.post-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-date svg,
.post-author svg,
.post-category-meta svg,
.post-views svg {
    width: 14px;
    height: 14px;
    color: #d32f2f;
    flex-shrink: 0;
}

/* Share button and dropdown menu */
.post-share {
    position: relative;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    font-size: 16px;
}

.share-btn:hover {
    color: #d32f2f;
}

.share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    z-index: 100;
    overflow: hidden;
}

.post-share:hover .share-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.share-link:last-child {
    border-bottom: none;
}

.share-link:hover {
    background: #f5f5f5;
    color: #d32f2f;
}

.share-link svg {
    width: 16px;
    height: 16px;
    display: block;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
}

.post-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

/* Post title used in markup */
.post-title {
    color: #272a48;
    font-weight: 600;
    line-height: 30px;
    font-size: 19px;
}

.post-card-title a:hover {
    color: #d32f2f;
}

.post-card-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Compact excerpt used in post cards - clamp to 3 lines */
.post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 0;
    padding-right: 2%;
    margin: 12px 0;
}

.read-more {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 30px;
}

.main-column {
    min-width: 0;
}

/* Sidebar Stilleri */
.sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form input:focus {
    outline: none;
    border-color: #d32f2f;
}

.search-form button {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #b71c1c;
}

/* Categories List */
.category-list,
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.categories-list li {
    border-bottom: 1px solid #e5e5e5;
}

.category-list li:last-child,
.categories-list li:last-child {
    border-bottom: none;
}

.category-list a,
.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.category-list a:hover,
.categories-list a:hover,
.category-list a.active,
.categories-list a.active {
    color: #d32f2f;
    padding-left: 8px;
}

.category-list span,
.categories-list span {
    color: #999;
    font-size: 13px;
}

.category-count {
    background: #f5f5f5;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.popular-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.popular-post-number {
    width: 32px;
    height: 32px;
    background: #d32f2f;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
}

.popular-post-content h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.4;
}

.popular-post-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.popular-post-content h4 a:hover {
    color: #d32f2f;
}

.popular-post-date {
    font-size: 12px;
    color: #999;
}

/* Ad Widget */
.ad-widget {
    padding: 0;
    border: none;
    margin-bottom: 25px;
}

.sidebar-ad {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Trending News Widget */
.trending-widget {
    border: 1px solid #e5e5e5;
}

.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.trending-post-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-post-content {
    flex: 1;
}

.trending-post-content h4 {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.trending-post-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.trending-post-content h4 a:hover {
    color: #d32f2f;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.newsletter-widget .widget-title {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-widget p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-form button {
    width: 100%;
    background: #fff;
    color: #667eea;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #f0f0f0;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud .tag {
    display: inline-block;
    background: #f5f5f5;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.tags-cloud .tag:hover {
    background: #d32f2f;
    color: #fff;
}

/* Footer */
.footer {
    background: #101217;
    color: #fff;
    padding: 50px 0 20px;
}

.footer .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-widget h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.footer-widget p {
    color: #bfbfbf;
    font-size: 14px;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul a {
    color: #cfcfcf;
    font-size: 14px;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-widget ul a:hover {
    color: #ff6b6b;
    padding-left: 6px;
}

.footer .social-icons a {
    color: #fff;
    opacity: 0.95;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.04);
    color: #bfbfbf;
    font-size: 14px;
}

/* Match HTML footer markup (some pages use .footer-section) */
.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #fff;
}

.footer-section p {
    color: #bfbfbf;
    font-size: 14px;
    line-height: 1.8;
}

/* Footer Newsletter */
.newsletter-section {
    flex: 1;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.footer-newsletter-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.1);
    border-color: #d32f2f;
}

.footer-newsletter-form button {
    width: 100%;
    background: #d32f2f;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.footer-newsletter-form button:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

/* Contact Item */
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item svg {
    flex-shrink: 0;
    color: #d32f2f;
}

.contact-item a {
    color: #bfbfbf;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #d32f2f;
}

.contact-item span {
    color: #bfbfbf;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #cfcfcf;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: #ff6b6b;
}

.footer-social a {
    display: inline-block;
    margin-right: 8px;
    color: #fff;
    background: rgba(255,255,255,0.03);
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    border-radius: 5px;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .active {
    background: #ff6b6b;
    color: #fff;
}

/* Responsive */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .post-card {
        grid-template-columns: 280px 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu ul {
        gap: 15px;
        font-size: 14px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    /* Mobile Post Cards - Horizontal Compact Layout */
    .post-card,
    .post-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
        margin-bottom: 15px;
        background: #fff;
        border-radius: 8px;
        overflow: visible;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .post-card .post-card-image,
    .post-row .post-card-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        border-radius: 6px;
        margin: 0;
        overflow: hidden;
    }
    
    .post-card .post-card-image img,
    .post-row .post-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    
    .post-card .post-card-content,
    .post-row .post-card-content {
        padding: 0;
        flex: 1;
        min-width: 0;
    }
    
    .post-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .post-title a {
        color: #1a1a1a;
        font-weight: 600;
    }
    
    .post-meta {
        display: none; /* Hide meta info on mobile */
    }
    
    .post-meta svg {
        width: 12px;
        height: 12px;
    }
    
    .post-excerpt {
        display: none; /* Hide excerpt on mobile for cleaner layout */
    }
    
    .read-more {
        display: none; /* Hide read more link on mobile */
    }
    
    .post-category {
        font-size: 11px;
        padding: 4px 10px;
        top: 10px;
        left: 10px;
    }
    
    /* Posts Grid Mobile */
    .posts-grid {
        gap: 20px;
    }
    
    .post-card-title {
        font-size: 18px;
    }
    
    .post-card-image {
        height: 200px;
    }
    
    .post-card-content {
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Main Content Padding */
    .main-left-right {
        padding: 0 15px;
    }
    
    .main-content {
        margin-top: 15px;
        gap: 30px;
    }
}


/* Flowbite Modal Styles - Tailwind Replacement */
.hidden {
    display: none;
}

.fixed {
    position: fixed;
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.left-0 {
    left: 0;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-h-full {
    max-height: 100%;
}

.relative {
    position: relative;
}

.p-4 {
    padding: 1rem;
}

.bg-white {
    background-color: #fff;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.flex {
    display: flex;
}

.border-b {
    border-bottom-width: 1px;
}

.rounded-t {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-500 {
    color: #6b7280;
}

.bg-transparent {
    background-color: transparent;
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:text-gray-900:hover {
    color: #111827;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.ms-auto {
    margin-left: auto;
}

.inline-flex {
    display: inline-flex;
}

.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.font-medium {
    font-weight: 500;
}

.block {
    display: block;
}

.ps-10 {
    padding-left: 2.5rem;
}

.ps-3 {
    padding-left: 0.75rem;
}

.border {
    border-width: 1px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

.text-white {
    color: #fff;
}

.absolute {
    position: absolute;
}

.inset-y-0 {
    top: 0;
    bottom: 0;
}

.start-0 {
    left: 0;
}

.pointer-events-none {
    pointer-events: none;
}

.end-2\.5 {
    right: 0.625rem;
}

.bottom-2\.5 {
    bottom: 0.625rem;
}

.bg-blue-700 {
    background-color: #1d4ed8;
}

.hover\:bg-blue-800:hover {
    background-color: #1e40af;
}

.focus\:ring-4:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.text-center {
    text-align: center;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.divide-y {
    border-top-width: 1px;
}

.divide-gray-100 > * + * {
    border-top: 1px solid #f3f4f6;
}

.w-44 {
    width: 11rem;
}

.hover\:bg-gray-600:hover {
    background-color: #4b5563;
}

.hover\:text-white:hover {
    color: #fff;
}

/* Dark mode support */
.dark .dark\:bg-gray-700 {
    background-color: #374151;
}

.dark .dark\:border-gray-600 {
    border-color: #4b5563;
}

.dark .dark\:text-white {
    color: #fff;
}

.dark .dark\:text-gray-400 {
    color: #9ca3af;
}

.dark .dark\:text-gray-200 {
    color: #e5e7eb;
}

.dark .dark\:bg-gray-600 {
    background-color: #4b5563;
}

.dark .dark\:hover\:bg-gray-600:hover {
    background-color: #4b5563;
}

.dark .dark\:hover\:text-white:hover {
    color: #fff;
}

.dark .dark\:hover\:bg-gray-700:hover {
    background-color: #374151;
}

.dark .dark\:placeholder-gray-400::placeholder {
    color: #9ca3af;
}

.dark .dark\:focus\:ring-blue-500:focus {
    --tw-ring-color: #3b82f6;
}

.dark .dark\:focus\:border-blue-500:focus {
    border-color: #3b82f6;
}

.dark .dark\:bg-blue-600 {
    background-color: #2563eb;
}

.dark .dark\:hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.dark .dark\:focus\:ring-blue-800:focus {
    --tw-ring-color: #1e40af;
}

/* Responsive */
@media (min-width: 768px) {
    .md\:p-5 {
        padding: 1.25rem;
    }
    
    .md\:inset-0 {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
    }
}


/* Layout Containers - Consistent Width */
.post-detail-layout,
.search-layout,
.contact-layout,
.legal-content,
.page-content {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 50px;
    overflow: hidden;
}

/* Post Detail Content - Prevent Overflow */
.post-detail-content {
    min-width: 0;
    overflow: hidden;
}

/* Ad Widget - Google AdSense Compatible */
.ad-widget {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-widget ins.adsbygoogle {
    display: block;
    min-height: 250px;
}

/* Ad Banner - Header */
.ad-banner .ad-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner ins.adsbygoogle {
    display: block;
    min-height: 90px;
}

/* Placeholder for development (remove in production) */
.ad-placeholder {
    padding: 60px 20px;
}

.ad-placeholder p {
    font-size: 16px;
    color: #999;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.ad-placeholder span {
    font-size: 13px;
    color: #bbb;
}

/* Page Link Styles */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover {
    background: #f5f5f5;
    border-color: #d32f2f;
    color: #d32f2f;
}

.page-link.active {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

/* Category Page Specific Styles */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    margin-bottom: 40px;
}

.category-header-content {
    text-align: center;
    color: #fff;
}

.category-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #fff;
}

.category-description {
    font-size: 18px;
    margin: 0 0 20px 0;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.category-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
}

.post-count {
    background: rgba(255,255,255,0.2);
    padding: 6px 15px;
    border-radius: 20px;
}

/* Category Layout */
.category-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 50px;
}

/* Featured Category Post */
.featured-category-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.featured-post-image {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-category-post:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-post-image .post-category-badge,
.post-item-image .post-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d32f2f;
    color: #fff;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.featured-post-content {
    padding: 30px;
}

.featured-post-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.featured-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.featured-post-title a:hover {
    color: #d32f2f;
}

.featured-post-content .post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.post-author,
.post-date,
.post-read-time {
    display: flex;
    align-items: center;
}

.featured-post-excerpt {
    font-size: 12px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    background: #d32f2f;
    color: #fff;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: #b71c1c;
    transform: translateX(5px);
}

/* Category Posts List */
.category-posts-list {
    display: grid;
    gap: 30px;
}

.category-post-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.category-post-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.post-item-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-post-item:hover .post-item-image img {
    transform: scale(1.08);
}

.post-item-content {
    padding: 20px 25px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-item-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.post-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.post-item-title a:hover {
    color: #d32f2f;
}

.post-item-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.post-item-content .post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 14px 40px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    background: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

/* Category Sidebar */
.category-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Category Responsive */
@media (max-width: 1024px) {
    .category-layout,
    .post-detail-layout,
    .search-layout,
    .contact-layout,
    .legal-content {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        position: static;
    }
    
    .category-post-item {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        position: static;
    }
    
    .category-title {
        font-size: 32px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .featured-post-image {
        height: 300px;
    }
    
    .featured-post-title {
        font-size: 24px;
    }
    
    /* Category Post Items - Mobile Horizontal Compact Layout */
    .category-post-item {
        display: flex;
        flex-direction: row;
        gap: 8px;
        background: #fff;
        border-radius: 8px;
        overflow: visible;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .post-item-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        border-radius: 6px;
        overflow: hidden;
    }
    
    .post-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
    
    .post-item-content {
        padding: 0;
        flex: 1;
        min-width: 0;
    }
    
    .post-item-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .post-item-excerpt {
        display: none; /* Hide excerpt on mobile for cleaner layout */
    }
    
    .category-posts-list {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 25px 0;
    }
    
    .category-title {
        font-size: 22px;
    }
    
    .category-description {
        font-size: 13px;
    }
    
    .featured-post-content {
        padding: 15px;
    }
    
    .featured-post-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .featured-post-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Category Post Items - Smaller Screens */
    .category-post-item {
        gap: 6px;
        padding: 8px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .post-item-image {
        width: 100px;
        height: 100px;
    }
    
    .post-item-content {
        padding: 0;
    }
    
    .post-item-title {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .post-item-excerpt {
        display: none; /* Hide excerpt on small mobile screens */
    }
    
    .category-posts-list {
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* Trending Widget */
.trending-widget {
    background: #fff;
}

.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-post {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.trending-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-post-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-post-content {
    flex: 1;
}

.trending-post-content h4 {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.trending-post-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.trending-post-content h4 a:hover {
    color: #d32f2f;
}

/* Post Detail Meta Styles */
.post-detail-content .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 30px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666;
}

.post-detail-content .post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-detail-content .post-meta svg {
    flex-shrink: 0;
}

.post-read-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-read-time svg {
    width: 14px;
    height: 14px;
}

/* Mobile Optimization - Additional Responsive Styles */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Header */
    .top-header-bar {
        display: none; /* Hide top bar on very small screens */
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    .logo-image {
        height: 45px;
        max-width: 200px;
    }
    
    .subscribe-btn {
        display: none; /* Hide subscribe button on mobile */
    }
    
    /* Navigation */
    .nav-menu {
        display: none; /* Hide main menu, show hamburger only */
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .menu-btn {
        display: none;
    }
    
    /* Main Content */
    .main-left-right {
        padding: 0 15px;
    }
    
    .main-content {
        gap: 20px;
    }
    
    /* Post Cards - Compact Horizontal for Small Screens */
    .post-card,
    .post-row {
        flex-direction: row;
        gap: 6px;
        padding: 8px;
        margin-bottom: 12px;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }
    
    .post-card .post-card-image,
    .post-row .post-card-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        border-radius: 5px;
        overflow: hidden;
    }
    
    .post-card .post-card-image img,
    .post-row .post-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 5px;
    }
    
    .post-card .post-card-content,
    .post-row .post-card-content {
        padding: 0;
        flex: 1;
        min-width: 0;
    }
    
    .post-title {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    .post-card-title {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .post-meta {
        display: none; /* Hide meta info on small mobile screens */
    }
    
    .post-meta svg {
        width: 11px;
        height: 11px;
    }
    
    .post-excerpt {
        display: none; /* Hide excerpt on small mobile screens */
    }
    
    .post-card-excerpt {
        display: none; /* Hide excerpt on small mobile screens */
    }
    
    .read-more {
        display: none; /* Hide read more link on small mobile screens */
    }
    
    .post-category,
    .post-category-badge {
        font-size: 10px;
        padding: 3px 8px;
        top: 4px;
        left: 4px;
    }
    
    /* Posts Grid */
    .posts-grid {
        gap: 15px;
    }
    
    /* Sidebar */
    .sidebar {
        margin-top: 30px;
    }
    
    .sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    /* Trending Posts */
    .trending-post-image {
        width: 50px;
        height: 50px;
    }
    
    .trending-post-content h4 {
        font-size: 12px;
    }
    
    /* Popular Posts */
    .popular-post-image {
        width: 60px;
        height: 60px;
    }
    
    .popular-post-content h4 {
        font-size: 13px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 13px;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
    }
    
    /* Ad Banner */
    .ad-banner {
        padding: 10px 0;
    }
    
    /* Category Page */
    .category-header {
        padding: 25px 0;
    }
    
    .category-title {
        font-size: 22px;
    }
    
    .category-description {
        font-size: 14px;
    }
    
    .category-post-item {
        grid-template-columns: 1fr;
    }
    
    .post-item-image {
        height: 180px;
    }
    
    .post-item-content {
        padding: 15px;
    }
    
    .post-item-title {
        font-size: 16px;
    }
    
    /* Post Detail */
    .post-detail-content .post-title {
        font-size: 22px;
    }
    
    .post-featured-image {
        height: 200px;
    }
    
    .post-body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .post-body h2 {
        font-size: 18px;
    }
    
    .post-body h3 {
        font-size: 16px;
    }
    
    /* Pagination */
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 13px;
    }
}

/* Tablet Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .logo h1 {
        font-size: 28px;
    }
    
    .subscribe-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .nav-menu a {
        padding: 14px 15px;
        font-size: 13px;
    }
    
    .post-card-title {
        font-size: 18px;
    }
    
    .category-title {
        font-size: 28px;
    }
}

/* Landscape Mobile (max-height: 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    .main-header {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .nav-menu a {
        padding: 10px 15px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-menu a,
    .menu-btn,
    .search-btn,
    .hamburger-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .post-card,
    .category-post-item,
    .trending-post,
    .popular-post {
        cursor: pointer;
    }
    
    /* Remove hover effects on touch devices */
    .post-card:hover,
    .category-post-item:hover {
        transform: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images and icons for retina displays */
    .logo h1 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    .top-header-bar,
    .main-nav,
    .ad-banner,
    .ad-widget,
    .sidebar,
    .footer,
    .search-btn,
    .hamburger-btn,
    .subscribe-btn {
        display: none !important;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .post-card,
    .category-post-item {
        page-break-inside: avoid;
    }
}


/* Hide Mobile Menu on Desktop */
.mobile-menu-overlay,
.mobile-menu {
    display: none;
}

/* Mobile Header & Menu Styles */
@media (max-width: 768px) {
    /* Simplified Mobile Header */
    .top-header-bar {
        display: none;
    }
    
    .main-header {
        background: linear-gradient(135deg, #3d52a0 0%, #2c3e8f 100%);
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .main-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 22px;
        color: #fff;
    }
    
    .subscribe-btn {
        display: none;
    }
    
    /* Mobile Navigation Bar */
    .main-nav {
        position: sticky;
        top: 60px;
        background: #fff;
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 0;
        z-index: 999;
    }
    
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }
    
    /* Hide desktop menu */
    .nav-menu {
        display: none;
    }
    
    /* Mobile Action Buttons */
    .nav-actions {
        display: flex;
        gap: 15px;
        align-items: center;
        width: 100%;
        justify-content: flex-end;
    }
    
    .menu-btn {
        display: none;
    }
    
    .search-btn,
    .hamburger-btn {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
    }
    
    .search-btn svg,
    .hamburger-btn svg {
        width: 24px;
        height: 24px;
    }
    
    /* Mobile Slide Menu - Show on mobile */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        background: linear-gradient(135deg, #3d52a0 0%, #2c3e8f 100%);
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-header h2 {
        color: #fff;
        font-size: 18px;
        margin: 0;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 32px;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    /* Mobile Menu Items */
    .mobile-menu-items {
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .mobile-menu-items li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-menu-items a {
        display: flex;
        align-items: center;
        padding: 16px 20px;
        color: #333;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .mobile-menu-items a:active {
        background: #f5f5f5;
    }
    
    .mobile-menu-items a.active {
        color: #d32f2f;
        background: #fff5f5;
    }
    
    .mobile-menu-items svg {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        opacity: 0.7;
    }
    
    /* Mobile Menu Footer */
    .mobile-menu-footer {
        padding: 20px;
        border-top: 1px solid #f0f0f0;
        margin-top: 20px;
    }
    
    .mobile-menu-footer h3 {
        font-size: 14px;
        color: #666;
        margin: 0 0 15px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-social-links {
        display: flex;
        gap: 15px;
    }
    
    .mobile-social-links a {
        width: 40px;
        height: 40px;
        background: #f5f5f5;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        transition: all 0.2s;
    }
    
    .mobile-social-links a:active {
        background: #e0e0e0;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.container {
    overflow-x: hidden;
}

/* Responsive tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Responsive iframes and embeds */
iframe,
embed,
object {
    max-width: 100%;
}

/* Fix for long words breaking layout */
.post-title,
.post-excerpt,
.post-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Search Modal Z-Index Fix */
#search-modal {
    z-index: 99999 !important;
}

[data-modal-backdrop] {
    z-index: 99998 !important;
}

/* Modal içeriği en üstte */
#search-modal > div {
    z-index: 100000 !important;
}

/* Matrix-style Rotating Text */
#rotating-text {
    font-weight: 600;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#rotating-text:hover {
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.8), 0 0 25px rgba(0, 255, 65, 0.4);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar Module Style - Numbered List */
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700);
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300);

.sidebar .module {
    max-width: 100%;
    margin: 20px 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar .module h3 {
    background: #f1f1f1;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0;
    color: #666;
}

.sidebar .module h3 span {
    color: #1797D2;
    border-bottom: 2px solid;
}

.sidebar .module .recipe {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f1f1f1;
    padding: 8px 6px;
    transition: background 0.3s;
}

.sidebar .module .recipe:last-child {
    border-bottom: 0;
}

.sidebar .module .recipe:hover {
    background: #f9f9f9;
}

.sidebar .module .recipe .counter span {
    display: block;
    padding: 5px 10px;
    background: #ffdf00;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 700;
    color: #666;
    font-size: 18px;
    border-radius: 3px;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar .module .recipe .post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.sidebar .module .recipe .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar .module .recipe .post-details {
    flex: 1;
    font-family: "Roboto Condensed", sans-serif;
    min-width: 0;
}

.sidebar .module .recipe .post-details .title {
    font-size: 13px;
    line-height: 18px;
    margin: 0;
    font-weight: 600;
}

.sidebar .module .recipe .post-details .title a {
    color: #222;
    text-decoration: none;
    display: block;
    transition: color 0.25s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar .module .recipe .post-details .title a:hover {
    color: #e31d38;
}

.sidebar .module .recipe .post-meta-small {
    margin-top: 4px;
    font-size: 10px;
    color: #999;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

.sidebar .module .recipe .post-meta-small .post-date-small,
.sidebar .module .recipe .post-meta-small .post-views-small {
    display: inline-block;
}


/* Spinner Animasyonu */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Load More Button Disabled State */
#load-more-posts:disabled,
#load-more-category-posts:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
