/* ==========================================================================
   JAIN KNOWLEDGE — PREMIUM DIRECTORY STYLES (LISTING & DETAILS)
   Applies to: jain-directory (tirthstaans, sangeetkars, pandits, acharya)
   ========================================================================== */

:root {
    --jd-gold: #c59222;
    --jd-gold-hover: #b07f15;
    --jd-gold-dark: #8c6307;
    --jd-gold-pale: #fff8e8;
    --jd-gold-border: #f0deb0;
    --jd-ink: #1c1f26;
    --jd-ink-soft: #2d313c;
    --jd-text: #505663;
    --jd-muted: #79808f;
    --jd-border: #eae5d8;
    --jd-bg: #f9f8f4;
    --jd-card-bg: #ffffff;
    --jd-radius-lg: 20px;
    --jd-radius-md: 14px;
    --jd-radius-sm: 8px;
    --jd-shadow-sm: 0 4px 14px rgba(28, 31, 38, 0.04);
    --jd-shadow-md: 0 10px 28px rgba(28, 31, 38, 0.06);
    --jd-shadow-hover: 0 18px 42px rgba(28, 31, 38, 0.12);
}

body {
    background: radial-gradient(circle at 8% 12%, rgba(248, 195, 0, 0.05), transparent 25%), var(--jd-bg);
    color: var(--jd-ink);
}

.content-wrapper {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 0 65px !important;
    overflow: visible !important;
}

.content-wrapper > .row.col-lg-3 {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.content-wrapper > .container-fluid {
    float: none !important;
    width: 100% !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

.events-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 28px;
    width: 100%;
}

.events-content > .row,
.events-content > .row.pt-3 {
    grid-column: 1 / -1;
    width: 100% !important;
    margin: 0 !important;
}

.events-content > .row::before,
.events-content > .row::after,
.events-content > .row.pt-3::before,
.events-content > .row.pt-3::after {
    content: none !important;
    display: none !important;
}

.events-content > .col-lg-9,
.events-content > .col-md-9,
.events-content > .col-lg-3,
.events-content > .col-md-3 {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.events-content > .col-lg-3 {
    position: sticky;
    top: 100px;
}

/* Breadcrumb */
.events-content .breadcrumb,
.content-wrapper .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px 0 !important;
    padding: 12px 18px !important;
    border: 1px solid var(--jd-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--jd-muted);
    font-size: 12.5px;
    box-shadow: 0 4px 14px rgba(34, 37, 45, 0.03);
}

.events-content .breadcrumb li,
.content-wrapper .breadcrumb li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.events-content .breadcrumb li + li::before,
.content-wrapper .breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #c6b677;
}

.events-content .breadcrumb a,
.content-wrapper .breadcrumb a {
    color: var(--jd-gold-dark);
    font-weight: 700;
    text-decoration: none !important;
}

/* ==========================================================================
   1. TOP CATEGORY PILLS NAVIGATION
   ========================================================================== */
.jd-nav-pills-wrap {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

.jd-nav-pills-wrap::-webkit-scrollbar {
    height: 5px;
}
.jd-nav-pills-wrap::-webkit-scrollbar-thumb {
    background: #e2dbca;
    border-radius: 10px;
}

.jd-nav-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    padding: 4px 2px;
}

.jd-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    background: #ffffff;
    color: var(--jd-ink);
    border: 1px solid var(--jd-border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: var(--jd-shadow-sm);
    transition: all 0.22s ease-in-out;
}

.jd-pill:hover {
    color: var(--jd-gold-dark);
    border-color: var(--jd-gold);
    background: var(--jd-gold-pale);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(197, 146, 34, 0.15);
}

.jd-pill.active {
    background: linear-gradient(135deg, #f8c300, #c59222);
    color: #1a1a1a;
    border-color: #c59222;
    box-shadow: 0 6px 20px rgba(197, 146, 34, 0.28);
    font-weight: 700;
}

.jd-pill-icon {
    font-size: 16px;
    line-height: 1;
}

.jd-pill-title {
    white-space: nowrap;
}

.jd-pill-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    color: inherit;
    line-height: 1.4;
}

.jd-pill.active .jd-pill-badge {
    background: rgba(0, 0, 0, 0.18);
    color: #1a1a1a;
}

/* ==========================================================================
   2. HERO HEADER & SEARCH TOOLBAR
   ========================================================================== */
.jd-hero-card {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 24px;
    padding: 26px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius-lg);
    box-shadow: var(--jd-shadow-md);
    position: relative;
    overflow: hidden;
}

.jd-hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--jd-gold), var(--jd-gold-dark));
}

.jd-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.jd-hero-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.jd-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 24px;
    background: var(--jd-gold-pale);
    border: 1px solid var(--jd-gold-border);
    border-radius: 14px;
}

.jd-hero-title {
    margin: 0 !important;
    color: var(--jd-ink) !important;
    font-size: clamp(22px, 2.5vw, 28px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.jd-hero-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--jd-gold-dark);
    background: var(--jd-gold-pale);
    border: 1px solid var(--jd-gold-border);
    border-radius: 999px;
    vertical-align: middle;
}

.jd-hero-tagline {
    margin: 0 0 20px 0;
    color: var(--jd-text);
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 820px;
}

/* Toolbar: Search, Sort, Add */
.jd-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid #f2ede1;
}

.jd-search-form {
    position: relative;
    flex: 1 1 300px;
    min-width: 240px;
    margin: 0 !important;
}

.jd-search-input {
    width: 100% !important;
    height: 46px !important;
    padding: 0 46px 0 16px !important;
    background: #ffffff !important;
    border: 1px solid #dcd6c5 !important;
    border-radius: 12px !important;
    color: var(--jd-ink) !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

.jd-search-input:focus {
    border-color: var(--jd-gold) !important;
    box-shadow: 0 0 0 3px rgba(197, 146, 34, 0.15) !important;
}

.jd-search-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--jd-gold-pale);
    color: var(--jd-gold-dark);
    border: 1px solid var(--jd-gold-border);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jd-search-btn:hover {
    background: var(--jd-gold);
    color: #ffffff;
}

.jd-sort-select {
    height: 46px;
    padding: 0 14px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 32px;
    border: 1px solid #dcd6c5;
    border-radius: 12px;
    color: var(--jd-ink-soft);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.jd-sort-select:focus {
    border-color: var(--jd-gold);
    box-shadow: 0 0 0 3px rgba(197, 146, 34, 0.15);
}

.jd-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 46px;
    padding: 0 20px;
    background: var(--jd-ink);
    color: #ffffff !important;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(28, 31, 38, 0.18);
    transition: all 0.22s ease;
}

.jd-add-btn:hover {
    background: var(--jd-gold-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(140, 99, 7, 0.3);
}

.jd-add-btn i {
    color: var(--jd-gold);
    font-size: 14px;
}

/* ==========================================================================
   3. MODERN RESPONSIVE CARD GRID
   ========================================================================== */
.jd-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    width: 100% !important;
    margin: 0 0 24px 0 !important;
}

.jd-card {
    display: flex;
    flex-direction: column;
    background: var(--jd-card-bg);
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius-md);
    overflow: hidden;
    box-shadow: var(--jd-shadow-sm);
    transition: transform 0.28s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    height: 100%;
}

.jd-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 146, 34, 0.42);
    box-shadow: var(--jd-shadow-hover);
}

/* Thumbnail wrapper */
.jd-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f1ede3;
    overflow: hidden;
}

.jd-card-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.jd-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jd-card:hover .jd-card-img {
    transform: scale(1.045);
}

/* Placeholder for missing images */
.jd-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f8f6ed 0%, #eee8d5 100%);
    text-align: center;
}

.jd-placeholder-icon {
    font-size: 40px;
    margin-bottom: 8px;
    line-height: 1;
}

.jd-placeholder-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--jd-muted);
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Floating overlay badges */
.jd-badges-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.jd-badge-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(28, 31, 38, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.jd-badge-photos {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--jd-ink);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Card Body */
.jd-card-body {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    flex: 1 1 auto;
}

.jd-card-title {
    margin: 0 0 8px 0;
    font-size: 17.5px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.jd-card-title a {
    color: var(--jd-ink) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.jd-card-title a:hover {
    color: var(--jd-gold-dark) !important;
}

.jd-card-location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 10px 0;
    color: #727885;
    font-size: 12.5px;
    line-height: 1.45;
}

.jd-card-location i {
    color: var(--jd-gold-dark);
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.jd-card-excerpt {
    margin: 0 0 14px 0;
    color: var(--jd-text);
    font-size: 13px;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

/* Quick Action Bar */
.jd-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-top: 10px;
    border-top: 1px dashed #f0ebd9;
}

.jd-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 14px;
    text-decoration: none !important;
    border: 1px solid #e5dfd0;
    background: #ffffff;
    color: var(--jd-ink);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.jd-action-icon:hover {
    transform: translateY(-2px);
}

.jd-action-icon.phone:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff !important;
}

.jd-action-icon.whatsapp:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff !important;
}

.jd-action-icon.email:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff !important;
}

.jd-action-icon.map:hover {
    background: var(--jd-gold-dark);
    border-color: var(--jd-gold-dark);
    color: #ffffff !important;
}

/* Card Footer */
.jd-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f2ede1;
}

.jd-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--jd-gold-dark) !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: gap 0.2s ease;
}

.jd-detail-btn:hover {
    color: #1a1a1a !important;
    gap: 9px;
}

.jd-btn-arrow {
    transition: transform 0.2s ease;
}

.jd-detail-btn:hover .jd-btn-arrow {
    transform: translateX(3px);
}

.jd-card-manage {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jd-manage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.jd-manage-btn.edit {
    background: #ecfdf5;
    color: #059669 !important;
}
.jd-manage-btn.edit:hover {
    background: #059669;
    color: #ffffff !important;
}

.jd-manage-btn.delete {
    background: #fef2f2;
    color: #dc2626 !important;
}
.jd-manage-btn.delete:hover {
    background: #dc2626;
    color: #ffffff !important;
}

/* ==========================================================================
   4. LOADER & END-OF-LIST NOTICES
   ========================================================================== */
#load_data_message {
    width: 100%;
    margin: 20px 0 40px 0;
    text-align: center;
}

.jd-loader {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: 999px;
    box-shadow: var(--jd-shadow-sm);
    color: var(--jd-muted);
    font-size: 13.5px;
    font-weight: 600;
}

.jd-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #f0deb0;
    border-top-color: var(--jd-gold);
    border-radius: 50%;
    animation: jd-spin 0.8s linear infinite;
}

@keyframes jd-spin {
    to { transform: rotate(360deg); }
}

.jd-end-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: #fbf9f4;
    border: 1px solid var(--jd-border);
    border-radius: 999px;
    color: var(--jd-muted);
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   5. EMPTY STATE (SEARCH NOT FOUND)
   ========================================================================== */
.jd-empty-state {
    padding: 60px 30px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius-lg);
    box-shadow: var(--jd-shadow-sm);
    margin: 20px 0;
}

.jd-empty-icon {
    font-size: 54px;
    margin-bottom: 16px;
    display: block;
}

.jd-empty-title {
    color: var(--jd-ink);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.jd-empty-copy {
    color: var(--jd-muted);
    font-size: 14.5px;
    margin: 0 0 22px 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.jd-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--jd-gold);
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.jd-reset-btn:hover {
    background: var(--jd-gold-dark);
}

/* ==========================================================================
   6. DIRECTORY READMORE / DETAILS PAGE STYLES
   ========================================================================== */
.jd-detail-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.jd-detail-card {
    background: #ffffff;
    border: 1px solid var(--jd-border);
    border-radius: var(--jd-radius-lg);
    box-shadow: var(--jd-shadow-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.jd-detail-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--jd-gold), var(--jd-gold-dark));
}

.jd-detail-header {
    padding: 32px 36px 24px;
    border-bottom: 1px solid #f2ede1;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
}

.jd-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--jd-gold-dark);
    background: var(--jd-gold-pale);
    border: 1px solid var(--jd-gold-border);
    border-radius: 999px;
    margin-bottom: 14px;
}

.jd-detail-title {
    margin: 0 0 12px 0 !important;
    color: var(--jd-ink) !important;
    font-size: clamp(24px, 3.2vw, 34px) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.jd-detail-location-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--jd-text);
    font-size: 14.5px;
}

.jd-detail-location-bar i {
    color: var(--jd-gold-dark);
    font-size: 16px;
}

/* Quick Action Banner (Call, WhatsApp, Email, Maps) */
.jd-contact-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 36px;
    background: #faf8f2;
    border-bottom: 1px solid #f2ede1;
}

.jd-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.22s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.jd-contact-btn.phone {
    background: #0284c7;
    color: #ffffff !important;
}
.jd-contact-btn.phone:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.jd-contact-btn.whatsapp {
    background: #16a34a;
    color: #ffffff !important;
}
.jd-contact-btn.whatsapp:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.jd-contact-btn.email {
    background: #ea580c;
    color: #ffffff !important;
}
.jd-contact-btn.email:hover {
    background: #c2410c;
    transform: translateY(-2px);
}

.jd-contact-btn.map {
    background: var(--jd-ink);
    color: #ffffff !important;
}
.jd-contact-btn.map:hover {
    background: var(--jd-gold-dark);
    transform: translateY(-2px);
}

/* Photo Gallery */
.jd-gallery-section {
    padding: 28px 36px;
    border-bottom: 1px solid #f2ede1;
}

.jd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.jd-gallery-item {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1ede3;
    position: relative;
    box-shadow: var(--jd-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jd-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--jd-shadow-hover);
}

.jd-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jd-gallery-item:hover img {
    transform: scale(1.05);
}

/* Detail Description Body */
.jd-detail-body {
    padding: 32px 36px;
}

.jd-detail-content {
    color: var(--jd-text);
    font-size: 16px;
    line-height: 1.85;
    max-width: 960px;
}

.jd-detail-content p {
    margin-bottom: 18px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.jd-detail-content h2,
.jd-detail-content h3,
.jd-detail-content h4 {
    margin: 28px 0 14px 0 !important;
    padding: 10px 16px;
    border-left: 4px solid var(--jd-gold);
    background: var(--jd-gold-pale);
    border-radius: 0 12px 12px 0;
    color: var(--jd-ink) !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

/* Tags section */
.jd-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f2ede1;
}

.jd-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--jd-gold-border);
    border-radius: 999px;
    background: var(--jd-gold-pale);
    color: var(--jd-gold-dark) !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.jd-tag-pill:hover {
    background: var(--jd-gold);
    color: #ffffff !important;
    border-color: var(--jd-gold);
    transform: translateY(-2px);
}

/* Explore More / Related Section */
.jd-related-section {
    margin-top: 40px;
    padding-top: 30px;
}

.jd-related-title {
    margin: 0 0 20px 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--jd-ink) !important;
}

/* Responsive adjustments */
@media (max-width: 1050px) {
    .content-wrapper > .container-fluid {
        padding: 0 18px !important;
    }
    .events-content {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 20px;
    }
    .jd-detail-header,
    .jd-contact-banner,
    .jd-gallery-section,
    .jd-detail-body {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 991px) {
    .events-content {
        grid-template-columns: minmax(0, 1fr);
    }
    .events-content > .col-lg-3 {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .jd-card-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }
    .jd-detail-header,
    .jd-contact-banner,
    .jd-gallery-section,
    .jd-detail-body {
        padding: 20px 18px;
    }
    .jd-detail-title {
        font-size: 23px !important;
    }
    .jd-contact-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .jd-contact-btn {
        justify-content: center;
    }
    .jd-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
