@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {

    background-color: #14213D;
    padding: 1rem 0;
}

.main-header .nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.main-header .nav-link:hover {
    color: #FCA311;
}

/* Page Title */
.page-title {
    text-align: center;
    color: #14213D;
    margin: 2rem 0;
    font-size: 2.5rem;
    font-weight: 600;
}

.page-subtitle {
    text-align: center;
    color: #6B7280;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.input-group {
    border-radius: 8px;
    overflow: hidden;
}

.input-group input {
    border: 1px solid #E5E7EB;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.input-group .btn-primary {
    background-color: #14213D;
    border: none;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: 500;
}

.input-group .btn-primary:hover {
    background-color: #1e3a8a;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #14213D;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-text {
    color: #001d3d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid #E5E7EB;
    padding: 1rem 1.5rem;
}

.card-meta {
    color: #6B7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Badge Styles */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    font-size: 0.75rem;
    border-radius: 4px;
}

.badge-pinned {
    background-color: #FCA311;
    color: #fff;
}

/* Read More Button */
.btn-read-more {
    color: #14213D;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.btn-read-more:hover {
    color: #FCA311;
}

.btn-read-more i {
    margin-left: 0.5rem;
}

/* Single Post Styles */
.post-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 2rem;
}

.post-title {
    color: #14213D;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #001d3d;
}

.post-meta i {
    margin-right: 0.5rem;
}

.post-meta .tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-body {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-gallery h3 {
    color: #14213D;
    font-size: 1.5rem;
    font-weight: 600;
}

.breadcrumb {
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #14213D;
}

.breadcrumb-item.active {
    color: #ffffff;
}

.post-navigation .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.post-navigation .btn i {
    margin-right: 0.5rem;
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: #14213D;
    min-height: 100vh;
    padding: 20px;
}

.admin-sidebar .nav-link {
    color: #fff;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: #FCA311;
}

.admin-content {
    padding: 2rem;
}

/* Editor Styles */
.ck-editor__editable {
    min-height: 400px;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-img-top {
        height: 180px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .admin-sidebar {
        min-height: auto;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .post-content {
        padding: 1.5rem;
    }
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.post-card.pinned {
    border: 2px solid #facc15;
}

.pinned-tag {
    position: absolute;

    background: #facc15;
    color: #001d3d;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    z-index: 1;
}

.post-image {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image i {
    font-size: 2rem;
    color: #dee2e6;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card .post-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #001d3d;
    margin: 1.5rem 1.5rem 0.75rem;
}

.post-card .post-date {
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #001d3d;
    font-size: 0.875rem;
    margin: 0 1.5rem 0.75rem;
}

.post-card .post-summary {
    color: #374151b5;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 1.5rem 1rem;
}

.post-card .post-tags {
    margin: 0 1.5rem 1rem;
}

.post-card .post-tag {
    color: #001d3d;
    font-size: 0.875rem;
    margin-right: 1rem;
    text-decoration: none;
}

.post-card .post-tag::before {
    content: '#';
    margin-right: 0.125rem;
}

.post-card .read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #001d3d;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 1.5rem 1.5rem;
}

.post-card .read-more:hover {
    color: #0056b3;
}

/* Grid Spacing */
.g-4 {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 2rem;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #001d3d;
}

.text-secondary {
    color: #6c757d !important;
}

/* Search Box */
.search-box .input-group {
    border-radius: 4px;
    overflow: hidden;
}

.search-box .input-group-text {
    border: 1px solid #dee2e6;
    border-right: none;
    padding: 0.75rem 1rem;
}

.search-box .form-control {
    border: 1px solid #dee2e6;
    border-left: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-box .form-control:focus {
    box-shadow: none;
}

.search-box .btn-dark {
    background-color: #212529;
    border: none;
    font-weight: 500;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #001d3d;
}

/* Refresh Button */
.btn-refresh {
    color: #001d3d;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh:hover {
    color: #0056b3;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background-color: #001d3d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
    color: #fff;
}

/* Responsive Navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #ffffff;
    font-size: 1rem;
    text-decoration: none;
}

.social-link:hover {
    color: #0056b3;
}

/* Footer */
.footer {
    background-color: #001d3d;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-text {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-contact span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

.footer-logo {
    text-align: center;
    margin: 3rem 0;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-copyright {
    text-align: center;
    color: #888;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Footer */
@media (max-width: 767.98px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-title {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        margin: 2rem 0;
    }
    
    .footer-logo img {
        height: 60px;
    }
}

/* Post Details */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #001d3d;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
}

.back-link:hover {
    color: #0056b3;
}

.post-details {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-featured-image {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.post-details .post-title {
    font-size: 2rem;
    font-weight: 600;
    color: #001d3d;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #001d3d;
    font-size: 0.875rem;
}

.post-date, .post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-tags {
    display: flex;
    gap: 1rem;
}

.post-tag {
    color: #001d3d;
}

.post-tag::before {
    content: '#';
    margin-right: 0.125rem;
}

.post-content {
    padding: 2rem;
    color: #001d3d;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-gallery {
    padding: 0 2rem 2rem;
}

.gallery-item {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} 