/* Blog Page Styles */

/* Reset and fix mobile visibility */
.desktop-view {
    display: block !important;
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

.mobile-view {
    display: none !important;
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

body {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
    margin: 0;
    padding: 0;
}

.container {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

main {
    background-color: #ffffff !important;
    color: #2c3e50 !important;
}

/* Force visibility on mobile */
@media (max-width: 979px) {
    .desktop-view {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .mobile-view {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #ffffff !important;
    }
    
    body {
        background-color: #ffffff !important;
        color: #2c3e50 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .container {
        background-color: #ffffff !important;
        color: #2c3e50 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    main {
        background-color: #ffffff !important;
        color: #2c3e50 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Header Styles */
.d-header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    padding: 15px 0 !important;
}

.d-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.d-logo-area {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.d-nav {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.d-nav a {
    text-decoration: none !important;
    color: #2c3e50 !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.d-nav a:hover {
    color: #27ae60 !important;
}

.d-nav a.active {
    color: #27ae60 !important;
    font-weight: 600 !important;
}

.btn-d-login {
    background: #27ae60 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: background 0.3s ease !important;
}

.btn-d-login:hover {
    background: #219a52 !important;
}

/* Mobile Header Styles */
.header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    padding: 15px 0 !important;
}

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

.search-bar {
    display: none !important;
}

.search-input {
    display: none !important;
}

.search-icon {
    display: none !important;
}

/* Header Styles */
.blog-header {
    text-align: center;
    padding: 60px 0 40px;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.blog-header .highlight {
    color: #27ae60;
}

.blog-header .subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search and Navigation Section */
.search-nav-section {
    background: #f8f9fa;
    padding: 30px 0;
    border-radius: 12px;
    margin-bottom: 50px;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.search-bar input::placeholder {
    color: #95a5a6;
}

.search-btn {
    padding: 10px 15px;
    background: #27ae60;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #219a52;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover {
    border-color: #27ae60;
    color: #27ae60;
    background: #f0f9f4;
}

.nav-btn.active {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

/* Recent Posts Section */
.recent-posts {
    margin-bottom: 60px;
}

.recent-posts h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}

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

/* Blog Card Styles */
.blog-card {
    /* background: white; */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 25px;
}

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

.blog-meta .category {
    background: #e8f5e8;
    color: #27ae60;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-meta .date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #219a52;
}

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

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

/* Footer Styles */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-color: #ffffff;
        color: #2c3e50;
    }
    
    .desktop-view {
        background-color: #ffffff;
        color: #2c3e50;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
        color: #2c3e50;
    }
    
    .blog-header .subtitle {
        font-size: 1rem;
        color: #7f8c8d;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .nav-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        color: #555;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .recent-posts h2 {
        font-size: 1.8rem;
        color: #2c3e50;
    }
    
    .blog-title {
        font-size: 1.1rem;
        color: #2c3e50;
    }
    
    .blog-meta .category {
        color: #27ae60;
    }
    
    .blog-meta .date {
        color: #7f8c8d;
    }
    
    .read-more {
        color: #27ae60;
    }
    
    .search-nav-section {
        background: #f8f9fa;
        padding: 20px 15px;
        border-radius: 12px;
        margin-bottom: 30px;
    }
    
    .blog-header {
        padding: 40px 0 30px;
    }
}

@media (max-width: 480px) {
    body {
        background-color: #ffffff;
        color: #2c3e50;
    }
    
    .desktop-view {
        background-color: #ffffff;
        color: #2c3e50;
    }
    
    .blog-header {
        padding: 40px 0 30px;
    }
    
    .blog-header h1 {
        color: #2c3e50;
    }
    
    .blog-header .subtitle {
        color: #7f8c8d;
    }
    
    .search-bar {
        margin: 0 auto 20px;
    }
    
    .search-bar input {
        padding: 12px 20px;
        color: #2c3e50;
        background: white;
    }
    
    .blog-content {
        padding: 20px;
        background: white;
        color: #2c3e50;
    }
    
    .blog-card {
        background: white;
        color: #2c3e50;
    }
    
    .nav-buttons {
        justify-content: center;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 140px;
        color: #555;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .recent-posts h2 {
        color: #2c3e50;
    }
    
    .blog-title {
        color: #2c3e50;
    }
    
    .blog-meta .category {
        color: #27ae60;
    }
    
    .blog-meta .date {
        color: #7f8c8d;
    }
    
    .read-more {
        color: #27ae60;
    }
}
