/*
Theme Name: APKora
Theme URI: https://apkora.com
Author: Your Name
Author URI: https://apkora.com
Description: A modern WordPress theme for Android APK files, apps, and games
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apkora
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    color: inherit;
}

.logo .apk {
    color: #4cc9f0;
}

.logo .theme {
    color: #f72585;
}

.primary-menu {
    display: flex;
}

.primary-menu li {
    margin-left: 1.5rem;
}

.primary-menu li a {
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.primary-menu li a:hover {
    color: #4cc9f0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background-color: #d81b6f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.3);
}

.btn-secondary {
    background-color: #4cc9f0;
    color: white;
}

.btn-secondary:hover {
    background-color: #3aa8d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 201, 240, 0.3);
}

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

.btn-outline:hover {
    background-color: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.featured-section, .recent-apps-section, .recent-games-section, .popular-games-section {
    padding: 5rem 0;
}

.featured-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.1;
}

.recent-apps-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.recent-games-section {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.popular-games-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ===== BEAUTIFUL GRID FOR ALL SECTIONS ===== */
.featured-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 2rem !important;
}

/* Modern App Card - FOR ALL SECTIONS */
.featured-section .app-card,
.recent-apps-section .app-card,
.recent-games-section .app-card,
.popular-games-section .app-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    padding: 30px 25px !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 8px 40px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
    margin-bottom: 0 !important;
}

.featured-section .app-card::before,
.recent-apps-section .app-card::before,
.recent-games-section .app-card::before,
.popular-games-section .app-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f72585 100%) !important;
    border-radius: 24px 24px 0 0 !important;
    z-index: 2 !important;
}

.featured-section .app-card::after,
.recent-apps-section .app-card::after,
.recent-games-section .app-card::after,
.popular-games-section .app-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent) !important;
    transition: left 0.6s !important;
    z-index: 1 !important;
}

.featured-section .app-card:hover::after,
.recent-apps-section .app-card:hover::after,
.recent-games-section .app-card:hover::after,
.popular-games-section .app-card:hover::after {
    left: 100% !important;
}

.featured-section .app-card:hover,
.recent-apps-section .app-card:hover,
.recent-games-section .app-card:hover,
.popular-games-section .app-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 40px rgba(102, 126, 234, 0.1) !important;
    border-color: rgba(102, 126, 234, 0.2) !important;
}

/* App Info Layout - FOR ALL SECTIONS */
.featured-section .app-info,
.recent-apps-section .app-info,
.recent-games-section .app-info,
.popular-games-section .app-info {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    position: relative !important;
    z-index: 3 !important;
}

/* App Icon - Premium Design FOR ALL SECTIONS */
.featured-section .app-icon,
.recent-apps-section .app-icon,
.recent-games-section .app-icon,
.popular-games-section .app-icon {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(102, 126, 234, 0.2) !important;
    background: white !important;
    transition: all 0.4s ease !important;
    border: 3px solid rgba(255, 255, 255, 0.9) !important;
    position: relative !important;
}

.featured-section .app-card:hover .app-icon,
.recent-apps-section .app-card:hover .app-icon,
.recent-games-section .app-card:hover .app-icon,
.popular-games-section .app-card:hover .app-icon {
    transform: scale(1.15) rotate(3deg) !important;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 8px 25px rgba(102, 126, 234, 0.3) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

.featured-section .app-icon-image,
.recent-apps-section .app-icon-image,
.recent-games-section .app-icon-image,
.popular-games-section .app-icon-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.featured-section .app-card:hover .app-icon-image,
.recent-apps-section .app-card:hover .app-icon-image,
.recent-games-section .app-card:hover .app-icon-image,
.popular-games-section .app-card:hover .app-icon-image {
    transform: scale(1.2) !important;
}

.featured-section .default-icon,
.recent-apps-section .default-icon,
.recent-games-section .default-icon,
.popular-games-section .default-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 2.2rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: inherit !important;
}

/* App Details - FOR ALL SECTIONS */
.featured-section .app-details,
.recent-apps-section .app-details,
.recent-games-section .app-details,
.popular-games-section .app-details {
    flex-grow: 1 !important;
    min-width: 0 !important;
    position: relative !important;
    z-index: 3 !important;
}

.featured-section .app-title,
.recent-apps-section .app-title,
.recent-games-section .app-title,
.popular-games-section .app-title {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.featured-section .app-title a,
.recent-apps-section .app-title a,
.recent-games-section .app-title a,
.popular-games-section .app-title a {
    color: inherit !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #667eea 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.featured-section .app-title a:hover,
.recent-apps-section .app-title a:hover,
.recent-games-section .app-title a:hover,
.popular-games-section .app-title a:hover {
    background: linear-gradient(135deg, #667eea 0%, #f72585 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    transform: translateX(5px) !important;
}

/* Meta Items - PREMIUM STYLING FOR ALL SECTIONS */
.featured-section .app-meta,
.recent-apps-section .app-meta,
.recent-games-section .app-meta,
.popular-games-section .app-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 20px !important;
    align-items: center !important;
    position: relative !important;
    z-index: 3 !important;
}

.featured-section .meta-item,
.recent-apps-section .meta-item,
.recent-games-section .meta-item,
.popular-games-section .meta-item {
    display: inline-block !important;
    padding: 10px 18px !important;
    border-radius: 25px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.3) !important;
    border: 2px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.featured-section .meta-item::before,
.recent-apps-section .meta-item::before,
.recent-games-section .meta-item::before,
.popular-games-section .meta-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent) !important;
    transition: left 0.6s !important;
}

.featured-section .meta-item:hover::before,
.recent-apps-section .meta-item:hover::before,
.recent-games-section .meta-item:hover::before,
.popular-games-section .meta-item:hover::before {
    left: 100% !important;
}

.featured-section .meta-item:hover,
.recent-apps-section .meta-item:hover,
.recent-games-section .meta-item:hover,
.popular-games-section .meta-item:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.4) !important;
}

/* Force Background Colors with Premium Gradients FOR ALL SECTIONS */
.featured-section .meta-item.version-color,
.recent-apps-section .meta-item.version-color,
.recent-games-section .meta-item.version-color,
.popular-games-section .meta-item.version-color {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #2471a3 100%) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.featured-section .meta-item.download-color,
.recent-apps-section .meta-item.download-color,
.recent-games-section .meta-item.download-color,
.popular-games-section .meta-item.download-color {
    background: linear-gradient(135deg, #27ae60 0%, #219652 50%, #1e8449 100%) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.featured-section .meta-item.category-color,
.recent-apps-section .meta-item.category-color,
.recent-games-section .meta-item.category-color,
.popular-games-section .meta-item.category-color {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 50%, #6c3483 100%) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 4rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.category-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.category-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ===== BEAUTIFUL BLOG SECTION ===== */
.main-content {
    padding: 4rem 0 0 0;
	border-radius:15px;
	margin-bottom:4rem;
}

.primary-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.primary-content .section-title {
    text-align: center;
    position: relative;
    display: block;
    width: 100%;
}

.primary-content .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto 0 auto;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.primary-content .section-title:hover::after {
    width: 120px;
}

/* Enhanced Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Enhanced Post Card */
.post-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #f8f9fa;
    position: relative;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 2;
}

/* Enhanced Post Thumbnail */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    pointer-events: none;
}

/* Enhanced Post Content */
.post-content {
    padding: 2rem;
    position: relative;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    background: linear-gradient(135deg, #1a1a2e 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-title a:hover {
    background: linear-gradient(135deg, #667eea 0%, #f72585 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.post-date, .post-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.post-date::before {
    content: '📅';
    font-size: 0.9rem;
}

.post-category::before {
    content: '📁';
    font-size: 0.9rem;
}

.post-category a {
    color: #667eea;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-category a:hover {
    color: #f72585;
}

/* Enhanced Post Excerpt */
.post-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Enhanced Read More Button */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Enhanced Pagination */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    color: #666;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 45px;
}

.pagination .page-numbers:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 3rem 0 1.5rem;
}

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

.footer-column h3 {
    color: #4cc9f0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column .apk {
    color: #4cc9f0;
}

.footer-column .theme {
    color: #f72585;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a:hover {
    color: #4cc9f0;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #2d2d44;
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== NO CONTENT MESSAGE ===== */
.no-content {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    font-size: 1.1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        width: 100%;
        margin-top: 1rem;
    }
    
    .primary-menu {
        flex-direction: column;
        display: none;
        width: 100%;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu li {
        margin: 0;
        border-bottom: 1px solid #2d2d44;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu li a {
        display: block;
        padding: 0.8rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .featured-section .app-info,
    .recent-apps-section .app-info,
    .recent-games-section .app-info,
    .popular-games-section .app-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .featured-section .app-icon,
    .recent-apps-section .app-icon,
    .recent-games-section .app-icon,
    .popular-games-section .app-icon {
        margin: 0 auto;
    }
    
    .featured-section .app-meta,
    .recent-apps-section .app-meta,
    .recent-games-section .app-meta,
    .popular-games-section .app-meta {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .primary-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .featured-section .app-card,
    .recent-apps-section .app-card,
    .recent-games-section .app-card,
    .popular-games-section .app-card {
        padding: 25px 20px !important;
    }
    
    .featured-section .app-icon,
    .recent-apps-section .app-icon,
    .recent-games-section .app-icon,
    .popular-games-section .app-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .featured-section .app-title,
    .recent-apps-section .app-title,
    .recent-games-section .app-title,
    .popular-games-section .app-title {
        font-size: 1.2rem !important;
    }
    
    .featured-section .meta-item,
    .recent-apps-section .meta-item,
    .recent-games-section .meta-item,
    .popular-games-section .meta-item {
        padding: 8px 14px !important;
        font-size: 10px !important;
    }
    
    .primary-content {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .post-card {
        border-radius: 15px;
    }
    
    .post-content {
        padding: 1.2rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .read-more {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ===== BEAUTIFUL HERO SEARCH BAR ===== */
.hero-search {
    max-width: 700px;
    margin: 2rem auto 3rem;
    position: relative;
}

.search-form {
    width: 100%;
}

.search-container {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 5px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 4px 15px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 20px 25px;
    font-size: 1.1rem;
    color: #333;
    outline: none;
    border-radius: 50px 0 0 50px;
}

.search-input::placeholder {
    color: #999;
    font-weight: 500;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.search-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

/* Search Suggestions */
.search-suggestions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.suggestion-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Search */
@media (max-width: 768px) {
    .hero-search {
        max-width: 90%;
        margin: 1.5rem auto 2.5rem;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: 25px;
        padding: 0;
        overflow: hidden;
    }
    
    .search-input {
        border-radius: 25px 25px 0 0;
        padding: 18px 20px;
        font-size: 1rem;
        text-align: center;
    }
    
    .search-button {
        border-radius: 0 0 25px 25px;
        padding: 15px 20px;
        font-size: 1rem;
        min-width: auto;
    }
    
    .search-suggestions {
        gap: 8px;
    }
    
    .suggestion-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .hero-search {
        max-width: 95%;
    }
    
    .search-input {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    .search-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .search-suggestions {
        flex-direction: column;
        gap: 8px;
    }
    
    .suggestion-label {
        font-size: 0.85rem;
    }
}


/* ===== SINGLE POST PAGE STYLES ===== */
.single-apk-page {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* App Header Section */
.app-header-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 1px solid #f0f0f0;
}

.app-icon-large {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid #fff;
}

.app-icon-image-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon-large-default {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.app-header-content {
    flex: 1;
}

.app-title-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a1a2e 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-short-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.app-header-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-badge {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.downloads-badge {
    background: linear-gradient(135deg, #27ae60 0%, #219652 100%);
}

.size-badge {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

.btn-download-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    color: white;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.3);
}

.btn-download-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(247, 37, 133, 0.4);
    color: white;
}

.download-icon {
    font-size: 1.4rem;
}

/* Details Table */
.details-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.details-table {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    background: linear-gradient(135deg, #1a1a2e 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description Section */
.description-section {
    margin-bottom: 3rem;
}

.app-description {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    line-height: 1.8;
    color: #333;
}

.app-description p {
    margin-bottom: 1.5rem;
}

.app-description p:last-child {
    margin-bottom: 0;
}

/* FAQs Section */
.faqs-section {
    margin-bottom: 3rem;
}

.faqs-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Review Section */
.review-section {
    margin-bottom: 3rem;
}

.review-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    line-height: 1.8;
    color: #333;
    font-style: italic;
}

/* Comments Section */
.comments-section {
    margin-bottom: 3rem;
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.random-apps-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.random-app-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.random-app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.random-app-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.random-app-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.random-app-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.random-app-default-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.random-app-details {
    flex: 1;
    min-width: 0;
}

.random-app-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
    line-height: 1.3;
}

.random-app-title a {
    color: inherit;
    text-decoration: none;
}

.random-app-title a:hover {
    color: #667eea;
}

.random-app-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.random-meta-item {
    font-size: 0.75rem;
    padding: 3px 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 10px;
    font-weight: 600;
}

.no-random-apps {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .app-header-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .app-icon-large {
        margin: 0 auto;
    }
    
    .app-title-large {
        font-size: 2rem;
    }
    
    .table-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .details-table {
        padding: 1.5rem;
    }
    
    .app-description,
    .review-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .single-apk-page {
        padding: 1rem 0;
    }
    
    .app-header-section {
        padding: 1.5rem;
    }
    
    .app-title-large {
        font-size: 1.8rem;
    }
    
    .app-header-meta {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}


/* Beautiful Comments Section Styles */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title:before {
    content: "💬";
    font-size: 20px;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author-avatar {
    margin-right: 15px;
}

.comment-author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #667eea;
}

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

.comment-author-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 4px;
}

.comment-date {
    color: #718096;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-date:before {
    content: "🕒";
    font-size: 12px;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
}

.comment-reply {
    margin-top: 15px;
}

.comment-reply a {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comment-reply a:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.comment-reply a:before {
    content: "↩️";
}

/* Children comments */
.children {
    list-style: none;
    padding-left: 30px;
    margin-top: 20px;
}

.children .comment {
    background: #f8fafc;
    border-left: 3px solid #667eea;
}

/* Comment Form */
.comment-respond {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
}

.comment-reply-title {
    color: white;
    font-size: 22px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-reply-title:before {
    content: "✍️";
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-comment {
    grid-column: 1 / -1;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

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

.form-submit {
    margin-top: 10px;
}

.submit {
    background: #ffffff;
    color: #667eea;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit:before {
    content: "🚀";
}

/* Logged in user info */
.logged-in-as {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.logged-in-as a {
    color: white;
    text-decoration: underline;
}

/* No comments yet */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-style: italic;
}

/* Responsive */
@media (min-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .comment-form-comment {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .comments-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .comment {
        padding: 20px;
    }
    
    .children {
        padding-left: 20px;
    }
    
    .comment-respond {
        padding: 20px;
    }
}


/* Archive Pages - Specific to archive.php only */
.main-content .archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.main-content .archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.main-content .archive-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.main-content .archive-search {
    max-width: 600px;
    margin: 0 auto;
}

.main-content .archive-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.main-content .filter-group {
    margin-bottom: 1rem;
}

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

.main-content .filter-label {
    font-weight: 600;
    margin-right: 1rem;
    color: #495057;
}

.main-content .filter-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    margin: 0.25rem;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.main-content .filter-tag:hover,
.main-content .filter-tag.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Only apply app-excerpt to archive pages */
.main-content .app-excerpt {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Only apply no-content to archive pages */
.main-content .no-content {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.main-content .no-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #6c757d;
}

/* Single Post Styles - Only for single.php */
.single-post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-post .post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.single-post .post-title {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #333;
}

.single-post .post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: #666;
    margin-bottom: 1rem;
}

.single-post .meta-item {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.single-post .featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.single-post .download-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.single-post .download-section h3 {
    margin-bottom: 1rem;
    color: #333;
}

.single-post .download-info ul {
    list-style: none;
    margin: 1rem 0;
}

.single-post .download-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.single-post .download-info li:last-child {
    border-bottom: none;
}

.single-post .download-button-container {
    text-align: center;
    margin-top: 2rem;
}

.single-post .download-btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

.single-post .security-note {
    color: #28a745;
    font-weight: 500;
}

.single-post .post-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.single-post .post-categories,
.single-post .post-tags {
    margin-bottom: 1rem;
}

.single-post .related-posts {
    margin-top: 3rem;
}

/* Responsive Design for Archive and Single Pages Only */
@media (max-width: 768px) {
    .main-content .archive-title {
        font-size: 2rem;
    }
    
    .main-content .archive-filters {
        padding: 1rem;
    }
    
    .main-content .filter-tag {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .main-content .filter-label {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .single-post .post-title {
        font-size: 2rem;
    }
    
    .single-post .post-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .single-post .featured-image {
        height: 250px;
    }
}
/* Filter Styles */
.archive-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.filter-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.filter-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.filter-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tag:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    text-decoration: none;
}

.filter-tag.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
}

/* Section Header for Filters */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header .section-title {
    margin-bottom: 0;
    color: #333;
}

.section-header .archive-filters {
    margin-bottom: 0;
    flex: 1;
    max-width: 600px;
}

/* Responsive Design for Filters */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .section-header .archive-filters {
        max-width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .filter-tag {
        display: block;
        margin: 0.25rem 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .archive-filters {
        padding: 1rem;
    }
    
    .filter-group {
        gap: 0.25rem;
    }
    
    .filter-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}
/* Archive page specific section title divider */
.archive .section-title::after,
.post-type-archive-games .section-title::after,
.post-type-archive-apps .section-title::after,
.post-type-archive-apk_files .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1rem 0;
    border-radius: 2px;
}




/* Footer Widget Areas - 4 Columns with Flexbox */
.footer-widget-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-widget h3,
.footer-widget .widget-title,
.footer-column h3,
.footer-column .widget-title {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3::after,
.footer-widget .widget-title::after,
.footer-column h3::after,
.footer-column .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}
.footer-col-2 .widget-title::after
{
	margin-left:20px !important;
}
/* Rest of your existing CSS remains the same */
.footer-column p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-column ul li {
    margin-bottom: 10px;
    color: #ccc;
    text-align: left;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left;
    display: block;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-column .footer-menu {
    text-align: left;
}

.footer-column .footer-menu li {
    text-align: left;
}

.footer-column .footer-menu li a {
    text-align: left;
    padding-left: 0;
}

.footer-column .apk {
    color: #007cba;
}

.footer-column .theme {
    color: #fff;
}

/* Responsive with flexbox */
@media (max-width: 1024px) {
    .footer-column {
        flex: 1 1 calc(50% - 30px);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .footer-column {
        flex: 1 1 100%;
    }
}

/* Copyright section */
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

.copyright a {
    color: #ccc;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
}

.trademark-notice {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.7;
}
/* mobile toggle menu*/
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .primary-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu li a {
        display: block;
        padding: 12px 0;
        color: #333;
    }
}
/* Single Blog Page Layout */
.single-blog-page {
    padding: 40px 0;
}

.blog-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Primary Content Styles */
.blog-primary-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.blog-featured-image {
    width: 100%;
    overflow: hidden;
}

.blog-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content-section {
    padding: 30px;
}

.blog-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.blog-title {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.blog-meta span {
    display: flex;
    align-items: center;
}

.blog-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 20px;
    color: #ccc;
}

.blog-description {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.blog-description p {
    margin-bottom: 20px;
}

.blog-comments-section {
    padding: 0 30px 30px;
}

/* Sidebar Styles */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.widget-title {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #333;
    padding-bottom: 10px;
}

/* Apps Grid Styles */
.apps-grid,
.related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-card,
.related-post-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.app-card:hover,
.related-post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.app-info,
.related-post-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-icon,
.related-post-thumbnail {
    flex-shrink: 0;
}

.app-icon-image,
.related-post-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.app-default-icon,
.related-post-default-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.app-details,
.related-post-details {
    flex: 1;
}

.app-title,
.related-post-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.3;
}

.app-title a,
.related-post-title a {
    color: #333;
    text-decoration: none;
}

.app-title a:hover,
.related-post-title a:hover {
    color: #007cba;
}

.app-meta,
.related-post-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.app-version,
.app-downloads,
.related-post-date {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.no-apps,
.no-related-posts {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-meta span:not(:last-child)::after {
        display: none;
    }
    
    .blog-content-section {
        padding: 20px;
    }
    
    .blog-comments-section {
        padding: 0 20px 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}
.error-404
{
	padding: 4rem 0;
	margin-left:auto !important;
	margin-right:auto !important;
}

.error-content h1, .error-content h2, .error-content a, .error-content p
{
	margin-top: 15px;
}

/* Blog Hero Section */
.apk-blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

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

.apk-blog-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.apk-blog-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Blog Search */
.apk-blog-search {
    margin: 2rem 0;
}

.apk-blog-search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.apk-blog-search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.apk-blog-search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apk-blog-search-button:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Blog Buttons */
.apk-blog-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.apk-blog-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.apk-blog-btn-primary {
    background: white;
    color: #667eea;
}

.apk-blog-btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.apk-blog-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.apk-blog-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.apk-blog-btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.apk-blog-btn-outline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Blog Grid */
.apk-blog-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.apk-blog-main-content {
    padding: 60px 0;
}

.apk-blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.apk-blog-section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.apk-blog-section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.apk-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.apk-blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.apk-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.apk-blog-post-thumbnail {
    position: relative;
    overflow: hidden;
}

.apk-blog-post-featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.apk-blog-card:hover .apk-blog-post-featured-image {
    transform: scale(1.05);
}

.apk-blog-post-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.apk-blog-category-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.apk-blog-post-content {
    padding: 25px;
}

.apk-blog-post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.apk-blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.apk-blog-post-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.apk-blog-post-title a {
    color: #333;
    text-decoration: none;
}

.apk-blog-post-title a:hover {
    color: #667eea;
}

.apk-blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.apk-blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.apk-blog-read-more {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.apk-blog-read-more:hover {
    gap: 8px;
    color: #764ba2;
}

.apk-blog-post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.apk-blog-post-author img {
    border-radius: 50%;
}

/* Blog Pagination */
.apk-blog-pagination {
    display: flex;
    justify-content: center;
    margin: 60px 0 30px;
}

.apk-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    margin: 0 5px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
}

.apk-blog-pagination .page-numbers:hover {
    border-color: #667eea;
    color: #667eea;
}

.apk-blog-pagination .page-numbers.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.apk-blog-pagination .page-numbers.dots {
    border: none;
    color: #666;
}

.apk-blog-pagination .page-numbers.prev,
.apk-blog-pagination .page-numbers.next {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Newsletter Section */
.apk-blog-newsletter-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.apk-blog-newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.apk-blog-newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.apk-blog-newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.apk-blog-newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.apk-blog-newsletter-form button {
    white-space: nowrap;
}

/* No Content State */
.apk-blog-no-content {
    text-align: center;
    padding: 80px 20px;
}

.apk-blog-no-content-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.apk-blog-no-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.apk-blog-no-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apk-blog-title {
        font-size: 2.2rem;
    }
    
    .apk-blog-description {
        font-size: 1rem;
    }
    
    .apk-blog-search-container {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .apk-blog-search-input {
        padding: 15px;
    }
    
    .apk-blog-search-button {
        justify-content: center;
        padding: 12px;
    }
    
    .apk-blog-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .apk-blog-btn {
        width: 200px;
        text-align: center;
    }
    
    .apk-blog-section-title {
        font-size: 2rem;
    }
    
    .apk-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .apk-blog-post-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .apk-blog-newsletter-form {
        flex-direction: column;
    }
    
    .apk-blog-pagination .page-numbers {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}