* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f5f6f8;
    color: #333;
}

/* NAVBAR */
/* .navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #111827;
}

.navbar-logo {
    height: 36px;
}

.navbar-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
}

.nav-link:hover {
    color: #111827;
}

.nav-primary {
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
} */

.nav-primary:hover {
    background-color: #1d4ed8;
}
.navbar-brand strong {
    font-size: 1.1rem;
}

.navbar-brand small {
    font-size: 0.8rem;
}

/* CONTENT */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}
/* ===============================
   CATEGORY SELECT PAGE
================================ */

.category-select {
    max-width: 1200px;
}

/* Header */
.category-title-main {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1f2937; /* neutral dark */
    margin-bottom: 0.25rem;
}

.category-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* mobile */
    gap: 1rem;
}

/* Tablet */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .modal-dialog-centered {
        align-items: flex-start !important;
        margin-top: 4vh;
    }
}

/* Card */
.category-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
}

/* Hover / tap feedback */
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* Image */
.category-image {
    width: 100%;
    aspect-ratio: 4 / 3;      /* clean, consistent cards */
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* no cropping */
}
.logout-item {
    display: flex;
    align-items: center;
}

.logout-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.logout-icon {
    width: 38px;
    height: auto;
    display: block;
}
/* Name */
.category-name {
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    text-align: center;
    background: #ffffff;
}
#image-preview {
    padding-right: 12px;
}

/* Make ALL Django RadioSelect widgets inline */
/* Make Django RadioSelect inline */
.radio-inline > div {
    display: inline-block;
    margin-right: 1.25rem;
}
/* For jobs category only */
.jobs-form .mb-3 {
    display: flex;
    flex-direction: column !important;  /* force vertical */
}

.jobs-form .mb-3 label {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.jobs-form .mb-3 .form-control,
.jobs-form .mb-3 .form-check {
    width: 100%;
}

.capitalize {
    text-transform: capitalize;
    padding-left: 5px;
}


.thumb-box {
    width: 120px;
    height: 120px;
    overflow: hidden;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#imageModal img {
    max-width: 90vw;
    max-height: 75vh;
    min-width: 400px;
    min-height: 300px;
    object-fit: contain;
}
/* ===== SLOGAN (REFINED & WARM) ===== */

.slogan-main {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.6px;
    color: #374151; /* warm charcoal */
}

.slogan-faith {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    font-weight: bold;
    margin-top: 2px;
    color: #6b4e2e; /* warm faith tone */
}
/* ===== MOBILE SLOGAN ===== */

.mobile-slogan {
    background: #f9fafb; /* very light warm gray */
}

.mobile-slogan-main {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
}

.mobile-slogan-faith {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #6b4e2e;
    margin-top: 2px;
}
.modal-content {
    border-radius: 14px;
}

.modal-title {
    font-weight: 600;
}

.modal-body p {
    line-height: 1.6;
    font-size: 0.95rem;
}
.modal-dialog {
    max-height: 90vh;
}

.modal-content {
    max-height: 90vh;
}

.modal-body {
    overflow-y: auto;
}


/* .modal-dialog-scrollable {
    height: auto;
} */

/* .modal-dialog-scrollable .modal-content {
    max-height: 85vh !important;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
} */
/* #contactModal textarea {
    min-height: 120px;
    max-height: 200px;
} */

.modal-dialog-scrollable {
    height: auto !important;
    max-height: none !important;
}
.category-card-small {
    transition: transform .15s ease;
}

.category-card-small:hover {
    transform: translateY(-3px);
}
.btn-publish {
    background: linear-gradient(135deg, #0d6efd, #20c997);
    color: #fff !important;
    border: none;
}
.page-title{
    margin-bottom:25px;
    font-size:28px;
}

.my-posts{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:25px;
}

.post-card{
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 3px 8px rgba(0,0,0,0.06);
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,0.1);
}

.post-image img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.post-content{
    padding:15px;
}

.post-title{
    font-size:18px;
    margin-bottom:12px;
}

.post-actions{
    display:flex;
    gap:8px;
}

.btn{
    padding:7px 12px;
    border-radius:6px;
    font-size:14px;
    text-decoration:none;
    color:white;
}

.btn.view{
    background:#007bff;
}

.btn.edit{
    background:#f0ad4e;
}

.btn.delete{
    background:#dc3545;
}

.btn:hover{
    opacity:0.9;
}

.empty-state{
    padding:40px;
    text-align:center;
    color:#777;
}
.btn-publish:hover {
    background: linear-gradient(135deg, #0b5ed7, #198754);
    color: #fff !important;
}
.jmswidth {
    width: 100% !important
}
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

.blink {
    color: red;
    animation: blink 1s infinite;
}
.post-thumb{
    width:80px;
    height:60px;
    object-fit:cover;
    border-radius:4px;
    display:block;
}
.post-image-cell{
    width:100px;
}
.mobile-publish-wrapper{
    padding: 10px 15px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.mobile-publish-top{
    width: 100%;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
}
.blink-twice {
    animation: blink 0.8s ease-in-out 3;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}
.google-div {
    background-color: red;
}
.google-a:hover{
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
     font-size: 1.15rem !important;
     background-color: #007bff;
}
.operation{
    color: blue;
}