/* HIPAA Training Ghost Theme Styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #10b981;
    --danger: #ef4444;
    --light: #f9fafb;
    --dark: #1f2937;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --background: #f5f7fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-sm: 4px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: var(--background);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    line-height: 1.3;
    margin-top: 0;
}

/* Layout */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    padding: 30px 0;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    flex: 3;
    min-width: 0;
}

/* Header */
.header-container {
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-container img {
    max-height: 50px;
    display: block;
}

.site-title-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Navigation */
.main-navigation {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul,
.main-navigation .nav {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li,
.main-navigation .nav li {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.main-navigation a,
.main-navigation li a,
.main-navigation .nav li a,
.nav-item {
    padding: 10px 15px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation li a:hover,
.main-navigation .nav li a:hover,
.nav-item:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.main-navigation .nav-current a {
    color: var(--primary);
    background-color: transparent;
}

.main-navigation .nav-current a:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

.nav-item.nav-cta {
    background-color: var(--primary);
    color: var(--white) !important;
}

.nav-item.nav-cta:hover {
    background-color: var(--primary-dark);
}

/* Live Training Navigation Item */
.nav-item.live-training {
    background: linear-gradient(135deg, #e6f4ff 0%, #f0f9ff 100%);
    border: 1px solid #bfdbfe;
    padding-left: 30px !important;
    font-weight: 600;
    color: #1e40af !important;
    position: relative;
}

.nav-item.live-training::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0);
    }
}

.nav-item.live-training:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #e6f4ff 100%);
    color: #1e3a8a !important;
}

.nav-item.active {
    background-color: var(--primary);
    color: var(--white) !important;
}

.nav-item.active:hover {
    background-color: var(--primary-dark);
}

.nav-member-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--gray-200);
}

/* Mobile Menu */
.mobile-menu-checkbox {
    position: absolute;
    opacity: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-checkbox:checked + .mobile-menu-btn .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-checkbox:checked + .mobile-menu-btn .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-checkbox:checked + .mobile-menu-btn .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Intro Banner */
.intro-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    text-align: center;
}

.intro-banner h1 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 2rem;
}

.intro-banner p {
    opacity: 0.9;
    font-size: 1.1rem;
    margin: 0;
}

/* Post Cards */
.post-feed {
    display: grid;
    gap: 25px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.post-card-image-link {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.post-card:hover .post-card-image {
    transform: scale(1.03);
}

.post-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.post-card-tag {
    background: var(--gray-100);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.post-card-tag:hover {
    background: var(--primary);
    color: var(--white);
}

.post-card-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--dark);
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0 0 15px;
    flex: 1;
}

.post-card-footer {
    margin-top: auto;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Single Post */
.post-full,
.page-full {
    flex: 3;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}

.post-header,
.page-header {
    margin-bottom: 30px;
}

.page-excerpt {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.page-meta a {
    color: var(--gray-600);
}

.page-meta a:hover {
    color: var(--primary);
}

.page-updated::before {
    content: "•";
    margin-right: 15px;
}

.page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-title,
.page-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.post-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.reading-time::before {
    content: "•";
    margin-right: 15px;
}

.post-feature-image,
.page-feature-image {
    margin: 0 0 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-feature-image img,
.page-feature-image img {
    width: 100%;
    display: block;
}

.post-feature-image figcaption {
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Post Content */
.post-content,
.page-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content h2,
.page-content h2 {
    font-size: 1.6rem;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

.post-content h3,
.page-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.post-content p,
.page-content p {
    margin-bottom: 1.5em;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-content li,
.page-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 30px 0;
    padding: 20px 25px;
    background: var(--gray-100);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.post-content code,
.page-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre,
.page-content pre {
    background: var(--dark);
    color: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 25px 0;
}

.post-content pre code,
.page-content pre code {
    background: none;
    padding: 0;
}

.post-content img,
.page-content img {
    border-radius: var(--radius);
}

/* Post Footer & Tags */
.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

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

.tag-link {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 25px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-name {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.author-box-name a {
    color: var(--dark);
}

.author-box-bio {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.related-posts h3 {
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
}

.related-post-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.related-post-card h4 {
    padding: 15px;
    margin: 0;
    font-size: 0.95rem;
}

.related-post-card h4 a {
    color: var(--dark);
}

/* Archive Headers */
.archive-header,
.author-header {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.archive-title {
    margin-bottom: 10px;
}

.archive-description {
    color: var(--gray-600);
    margin-bottom: 10px;
}

.archive-count {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.author-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-header-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-header-name {
    margin: 0 0 10px;
}

.author-header-bio {
    color: var(--gray-600);
    margin-bottom: 10px;
}

.author-header-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar {
    flex: 1;
    min-width: 280px;
}

.sidebar-widget {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

.sidebar-widget p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-link {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag-cloud-link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item a {
    display: flex;
    gap: 12px;
    align-items: center;
}

.recent-post-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.recent-post-title {
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.recent-post-item a:hover .recent-post-title {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.pagination a {
    padding: 10px 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Footer */
.new-footer {
    background-color: #f8fafc;
    border-top: 1px solid var(--gray-200);
    padding: 3rem 0 2rem;
    color: var(--gray-600);
    margin-top: 50px;
}

.new-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.new-footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.new-footer-section {
    flex: 1;
    min-width: 200px;
}

.new-footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.new-footer-section h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.new-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-footer-links li {
    margin-bottom: 0.7rem;
    list-style: none;
}

.new-footer-links li a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.new-footer-links li a:hover {
    color: var(--primary);
}

/* Ghost navigation helper output in footer */
.new-footer-links .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-footer-links .nav li {
    margin-bottom: 0.7rem;
    list-style: none;
}

.new-footer-links .nav li a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.new-footer-links .nav li a:hover {
    color: var(--primary);
}

.new-footer-link,
.new-footer-links a {
    color: var(--gray-600);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.new-footer-link:hover,
.new-footer-links a:hover {
    color: var(--primary);
}

.new-footer-logo {
    max-width: 180px;
    margin-bottom: 1rem;
}

.new-footer-about p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.new-footer-two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
}

.new-footer-two-column li {
    width: calc(50% - 10px);
}

.new-footer-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.new-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-200);
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.new-footer-social-link:hover {
    background-color: var(--primary);
    color: var(--white);
}

.new-footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
}

/* Members / Portal Styles */
.kg-bookmark-card,
.kg-callout-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    margin: 25px 0;
}

.kg-callout-card {
    padding: 20px;
    border-left: 4px solid var(--primary);
}

/* Ghost Card Width Classes */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin: 25px calc(50% - 42.5vw);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-width-full img {
    width: 100%;
}

/* Ghost Gallery Card */
.kg-gallery-card {
    margin: 25px 0;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.kg-gallery-row {
    display: flex;
    gap: 0.75em;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ghost Image Card */
.kg-image-card {
    margin: 25px 0;
}

.kg-image-card img {
    border-radius: var(--radius);
}

.kg-image-card figcaption {
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Ghost Bookmark Card */
.kg-bookmark-card {
    width: 100%;
    margin: 25px 0;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    color: inherit;
}

.kg-bookmark-container:hover {
    border-color: var(--primary);
}

.kg-bookmark-content {
    flex-grow: 1;
    padding: 20px;
}

.kg-bookmark-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.kg-bookmark-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 8px;
    max-height: 48px;
    overflow: hidden;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.kg-bookmark-author::after {
    content: "•";
    margin: 0 6px;
}

.kg-bookmark-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ghost Toggle Card */
.kg-toggle-card {
    background: var(--gray-100);
    border-radius: var(--radius);
    margin: 25px 0;
}

.kg-toggle-heading {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
}

.kg-toggle-heading svg {
    margin-right: 12px;
}

.kg-toggle-content {
    padding: 0 20px 20px;
}

/* Ghost Button Card */
.kg-button-card {
    margin: 25px 0;
    text-align: center;
}

.kg-button-card a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s ease;
}

.kg-button-card a:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Ghost Callout Card */
.kg-callout-card {
    display: flex;
    padding: 20px;
    border-radius: var(--radius);
    margin: 25px 0;
}

.kg-callout-card-grey {
    background: var(--gray-100);
}

.kg-callout-card-white {
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.kg-callout-card-blue {
    background: #e0f2fe;
}

.kg-callout-card-green {
    background: #dcfce7;
}

.kg-callout-card-yellow {
    background: #fef9c3;
}

.kg-callout-card-red {
    background: #fee2e2;
}

.kg-callout-card-pink {
    background: #fce7f3;
}

.kg-callout-card-purple {
    background: #f3e8ff;
}

.kg-callout-emoji {
    font-size: 1.4rem;
    margin-right: 12px;
}

/* Ghost NFT Card */
.kg-nft-card {
    margin: 25px 0;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

/* Ghost Audio Card */
.kg-audio-card {
    margin: 25px 0;
    border-radius: var(--radius);
    padding: 20px;
    background: var(--gray-100);
}

/* Ghost Video Card */
.kg-video-card {
    margin: 25px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.kg-video-card video {
    width: 100%;
}

/* Ghost File Card */
.kg-file-card {
    margin: 25px 0;
}

.kg-file-card-container {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.kg-file-card-contents {
    flex-grow: 1;
}

.kg-file-card-title {
    font-weight: 600;
    color: var(--dark);
}

.kg-file-card-metadata {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Ghost Product Card */
.kg-product-card {
    margin: 25px 0;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

/* Ghost Header Card */
.kg-header-card {
    margin: 25px 0;
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--radius);
}

.kg-header-card h2 {
    margin: 0 0 12px;
    font-size: 2rem;
}

.kg-header-card h3 {
    margin: 0;
    font-weight: 400;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        gap: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0;
        box-shadow: var(--shadow);
        z-index: 100;
    }
    
    .mobile-menu-checkbox:checked ~ .main-navigation {
        display: flex;
    }
    
    .main-navigation ul,
    .main-navigation .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation li,
    .main-navigation .nav li {
        width: 100%;
        display: block;
    }
    
    .main-navigation a,
    .main-navigation li a,
    .main-navigation .nav li a,
    .nav-item {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
        box-sizing: border-box;
    }
    
    .nav-member-actions {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        border-left: none;
    }
    
    .container {
        flex-direction: column;
    }
    
    .content-area,
    .post-full,
    .page-full,
    .sidebar {
        width: 100%;
        min-width: 0;
    }
    
    .sidebar {
        order: 2;
    }
    
    .post-full,
    .page-full {
        padding: 25px;
    }
    
    .post-title,
    .page-title {
        font-size: 1.75rem;
    }
    
    .intro-banner h1 {
        font-size: 1.6rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-header {
        flex-direction: column;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .new-footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .intro-banner {
        padding: 25px 15px;
    }
    
    .intro-banner h1 {
        font-size: 1.4rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .reading-time::before {
        display: none;
    }
}

/* ===== Responsive YouTube / Video Embed Fix ===== */
.kg-embed-card {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
}

.kg-embed-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Cover Image Hero */
.cover-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
    min-height: 280px;
    display: flex;
    align-items: center;
}

.cover-overlay {
    width: 100%;
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%);
    text-align: center;
}

.cover-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cover-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .cover-banner { min-height: 200px; }
    .cover-overlay { padding: 32px 20px; }
    .cover-title { font-size: 1.6rem; }
    .cover-description { font-size: 0.95rem; }
}
