/* Custom Styles for Sarkari Sanket */

/* General Styles */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Hero Section */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.display-4 {
    font-weight: 700;
    color: #2c3e50;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: #495057;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.default-img-placeholder {
    height: 220px;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-img-placeholder i {
    font-size: 3rem;
    opacity: 0.3;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.4;
}

.card-text {
    color: #6c757d;
    margin-bottom: 20px;
}

.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 62, 80, 0.3);
}

/* Category Card */
.category-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(44, 62, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-circle i {
    font-size: 2rem;
    color: #2c3e50;
}

/* Blog Post */
.blog-post {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #2c3e50;
    font-weight: 600;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content a {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.2s ease;
}

.post-content a:hover {
    color: #2980b9;
    border-bottom-color: rgba(41, 128, 185, 0.7);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Sidebar */
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
}

.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: #2c3e50;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #fff;
}

footer a {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    display: inline-block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: #3498db !important;
    transform: translateX(3px);
}

footer hr {
    margin: 2rem 0;
    opacity: 0.1;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2c3e50;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top i {
    font-size: 1.5rem;
}

.back-to-top:hover {
    background-color: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

/* Animations */
.animate__animated {
    visibility: hidden;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .blog-post {
        padding: 2rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .blog-post {
        padding: 1.5rem;
    }
    
    .post-content {
        font-size: 1.05rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .blog-post {
        padding: 1.25rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
}

/* Custom Colors */
.bg-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-color: #1a252f;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-color: #2c3e50;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
}