/* ==========================================================================
   PVM West - Module Styles
   Style dla poszczególnych modułów i komponentów strony
   ========================================================================== */

/* ==========================================================================
    PAGINATION (blog category pages)
    ========================================================================== */

.pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-arrow,
.pagination-arrow a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #4a5568;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-arrow a {
    width: 100%;
    height: 100%;
}

.pagination-arrow:hover {
    color: #1a202c;
    background: #edf2f7;
    border-color: #cbd5e0;
}

.pagination-arrow.disabled,
.pagination-arrow.disabled a {
    color: #cbd5e0;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-current,
.pagination-link,
.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.pagination-current {
    color: #ffffff;
    background: #d4a95c;
    font-weight: 600;
}

.pagination-link,
.pagination-ellipsis {
    color: #4a5568;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    color: #1a202c;
    background: #edf2f7;
    border-color: #cbd5e0;
}

.pagination-ellipsis {
    padding: 0.25rem 0.4rem;
    color: #a0aec0;
    pointer-events: none;
    cursor: default;
}

/* ==========================================================================
       EVENT ITEM LOCATION COLORS (St. Konrad, Markus, Lukas)
       ========================================================================== */

.event-item--konrad .event-item__link {
    border-left: 4px solid #3b82f6;
}

.event-item--konrad .event-item__media {
    background: linear-gradient(130deg, #3b82f6, #60a5fa);
}

.event-item--konrad .event-item__title {
    color: #3b82f6;
}

.event-item--markus .event-item__link {
    border-left: 4px solid #ef4444;
}

.event-item--markus .event-item__media {
    background: linear-gradient(130deg, #ef4444, #f87171);
}

.event-item--markus .event-item__title {
    color: #ef4444;
}

.event-item--lukas .event-item__link {
    border-left: 4px solid #eab308;
}

.event-item--lukas .event-item__media {
    background: linear-gradient(130deg, #eab308, #facc15);
}

.event-item--lukas .event-item__title {
    color: #eab308;
}

/* Post page location colors (for pages module - separate from events) */
.page-card--konrad {
    border-top: 4px solid #3b82f6;
}

.page-card--markus {
    border-top: 4px solid #ef4444;
}

.page-card--lukas {
    border-top: 4px solid #eab308;
}


/* ==========================================================================
   MASSES LIST (home.blade.php)
   ========================================================================== */

.masses-list {
    display: grid;
    gap: 0;
}

.mass-item {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.mass-item--highlighted {
    background: #fef9ec;
    border-left: 3px solid #e6a817;
}

.mass-item--konrad {
    border-left: 4px solid #3b82f6;
}

.mass-item--lukas {
    border-left: 4px solid #eab308;
}

.mass-item--markus {
    border-left: 4px solid #ef4444;
}

.mass-item:first-child {
    border-radius: 12px 12px 0 0;
}

.mass-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.mass-time {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.82rem;
}

.mass-date {
    font-weight: 700;
    color: var(--ink);
}

.mass-hour {
    color: var(--muted);
}

.mass-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mass-title {
    font-size: 0.95rem;
}

.mass-church,
.mass-presider {
    font-size: 0.82rem;
    color: var(--muted);
}

.mass-description {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #536476;
    line-height: 1.45;
}

.mass-all-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #74859a;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mass-download-pdf-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #74859a;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mass-download-pdf-link-top {
    margin: 0 0 1rem 0;
}

.mass-all-link:hover {
    background: rgba(22, 19, 19, 0.14);
}

.mass-pdf-download {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #10b981;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #10b981;
    background: #ffffff;
    text-decoration: none;
}

.mass-pdf-download:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   GALLERY MODULE
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

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

/* ==========================================================================
   BLOG LIST MODULE
   ========================================================================== */

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-list-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.blog-list-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-list-item__link {
    display: grid;
    grid-template-columns: minmax(0, 280px) 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
    color: inherit;
    text-decoration: none;
}

.blog-list-item__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(130deg, #d9eaf6, #c0daee);
}

.blog-list-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-list-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.blog-list-item__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-list-item__meta {
    font-size: 0.82rem;
    color: var(--muted);
}

.blog-list-item__excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #46566a;
}

/* ==========================================================================
   CARD GRID (shared)
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.small-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.small-card a {
    display: block;
}

.small-card-media {
    width: 100%;
    aspect-ratio: 5 / 3;
    background: linear-gradient(130deg, #d9eaf6, #c0daee);
}

.small-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.small-card:nth-child(2n) .small-card-media {
    background: linear-gradient(130deg, #e8ecf5, #d3dcf0);
}

.small-card:nth-child(3n) .small-card-media {
    background: linear-gradient(130deg, #dce9dd, #c5ddc7);
}

.small-card-body {
    padding: 0.75rem;
}

.small-card h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.page-subpages {
    margin-top: 2.5rem;
}

/* ==========================================================================
   POST & CONTENT STYLES
   ========================================================================== */

.post-title {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.05;
    font-family: "Merriweather", Georgia, serif;
    font-weight: 400;
}

.post-meta {
    margin-top: 0.8rem;
    margin-bottom: 0;
}

.post-excerpt {
    margin: 1.2rem 0 0;
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.55;
    color: #2b3b4c;
    max-width: 30ch;
}

.post-content {
    max-width: 48rem;
    margin: 0 auto;
}

.post-content > :first-child {
    margin-top: 0;
}

.content,
.legacy-content {
    overflow-wrap: anywhere;
    line-height: 1.65;
}

/* ==========================================================================
   ADMIN EDIT ICON
   ========================================================================== */

.admin-edit-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-edit-icon:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.admin-edit-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   LIGHTBOX (gallery)
   ========================================================================== */

[x-cloak] {
    display: none !important;
}

.lightbox-overlay,
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox[x-show] {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-nav svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 15px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.45);
    padding: 8px 20px;
    border-radius: 24px;
    z-index: 10001;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   MODULE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .lightbox-nav {
        width: 48px;
        height: 48px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}


/* ==========================================================================
   PDF file attachments from RichEditor (fix for <img src="*.pdf"> nodes)
   ========================================================================== */

.post-content img.pdf-attachment {
    display: none;
}

.pdf-attachment-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 8px;
    text-decoration: none;
    color: #991b1b;
    transition: all 0.2s ease;
    max-width: fit-content;
}

.pdf-attachment-wrapper:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.pdf-attachment-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    border-radius: 4px;
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.pdf-attachment-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pdf-attachment-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #991b1b;
}

.pdf-attachment-meta {
    font-size: 0.8rem;
    color: #b91c1c;
    opacity: 0.8;
}

.pdf-attachment-download {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #dc2626;
    flex-shrink: 0;
}

.pdf-attachment-wrapper svg {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
    CATEGORY CHIPS (post view - category buttons at top)
     ========================================================================== */

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.category-chip:hover {
    background: #4338ca;
    color: #ffffff;
}

/* ==========================================================================
    POST NAVIGATION (previous/next post buttons)
    ========================================================================== */

.post-navigation {
    margin-top: 2.5rem;
    padding: 1.5rem 0;
}

.post-navigation__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.post-navigation__link {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.25rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    max-width: 34rem;
}

.post-navigation__link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d4a95c;
}

.post-navigation__link--prev {
    text-align: left;
    justify-content: flex-start;
}

.post-navigation__link--next {
    text-align: right;
    justify-content: flex-end;
    margin-left: auto;
}

.post-navigation__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.post-navigation__link--prev:hover .post-navigation__label,
.post-navigation__link--next:hover .post-navigation__label {
    color: #d4a95c;
}

.post-navigation__title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #1a202c;
}

.post-navigation__link--prev:hover .post-navigation__title,
.post-navigation__link--next:hover .post-navigation__title {
    color: #d4a95c;
}

@media (max-width: 600px) {
    .post-navigation__wrapper {
        grid-template-columns: 1fr;
    }

    .post-navigation__link--next {
        text-align: left;
        margin-left: 0;
        justify-content: flex-start;
    }
}

/* ==========================================================================
    EVENTS MODULE
    ========================================================================== */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.event-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.event-item__link {
    display: grid;
    grid-template-columns: minmax(0, 280px) 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
    color: inherit;
    text-decoration: none;
}

.event-item__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(130deg, #d9eaf6, #c0daee);
}

.event-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.event-item__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
}

.event-item__meta {
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-item__date,
.event-item__time {
    white-space: nowrap;
}

.event-item__location {
    font-size: 0.85rem;
    color: #46566a;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.event-item__excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #46566a;
}

.no-events {
    color: var(--muted);
    font-style: italic;
}

/* ==========================================================================
       EVENT ITEM LOCATION COLORS (St. Konrad, Markus, Lukas)
       ========================================================================== */

.event-item--konrad .event-item__link {
    border-left: 4px solid #3b82f6;
}

.event-item--konrad .event-item__media {
    background: linear-gradient(130deg, #3b82f6, #60a5fa);
}

.event-item--konrad .event-item__title {
    color: #3b82f6;
}

.event-item--markus .event-item__link {
    border-left: 4px solid #ef4444;
}

.event-item--markus .event-item__media {
    background: linear-gradient(130deg, #ef4444, #f87171);
}

.event-item--markus .event-item__title {
    color: #ef4444;
}

.event-item--lukas .event-item__link {
    border-left: 4px solid #eab308;
}

.event-item--lukas .event-item__media {
    background: linear-gradient(130deg, #eab308, #facc15);
}

.event-item--lukas .event-item__title {
    color: #eab308;
}

/* Widget cards (home page) location colors */
.event-card--konrad .small-card-media {
    background: linear-gradient(130deg, #3b82f6, #60a5fa) !important;
}

.event-card--konrad .small-card-body h3 {
    color: #3b82f6;
}

.event-card--markus .small-card-media {
    background: linear-gradient(130deg, #ef4444, #f87171) !important;
}

.event-card--markus .small-card-body h3 {
    color: #ef4444;
}

.event-card--lukas .small-card-media {
    background: linear-gradient(130deg, #eab308, #facc15) !important;
}

.event-card--lukas .small-card-body h3 {
    color: #eab308;
}

/* Post page location colors (for pages module - separate from events) */
.page-card--konrad {
    border-top: 4px solid #3b82f6;
}

.page-card--markus {
    border-top: 4px solid #ef4444;
}

.page-card--lukas {
    border-top: 4px solid #eab308;
}

.category-post-item__title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 700;
}

.category-post-item__meta {
    font-size: 0.82rem;
    color: var(--muted);
}

.category-post-item__excerpt {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #46566a;
}

.category-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-header {
    margin-bottom: 2rem;
}

.category-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.category-header p {
    margin: 0;
    color: var(--muted);
}

.back-to-home {
    display: inline-block;
    margin-top: 1.5rem;
    color: #4338ca;
    text-decoration: none;
    font-weight: 500;
}

.back-to-home:hover {
    text-decoration: underline;
}


/* ==========================================================================
     RESPONSIVE FOR CATEGORY POSTS
     ========================================================================== */

@media (max-width: 768px) {
    .category-post-item__link {
        grid-template-columns: 1fr;
    }

    .category-chips {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   CARD VISIBILITY - Ensure cards have solid white background and distinct borders
   even when placed inside dark sections or after other components
   ========================================================================== */

/* Force white background on all card types to prevent transparency issues */
.small-card,
.blog-list-item,
.event-item,
.category-post-item,
.news-card,
.news-card--lead {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.125) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* Ensure card bodies don't inherit dark backgrounds */
.small-card-body,
.blog-list-item__body,
.category-post-item__body,
.news-card-body {
    background-color: transparent !important;
}

/* Fix cards inside dark sections (.bg-dark, .bg-secondary, etc.) */
section.bg-dark .small-card,
section.bg-dark .blog-list-item,
section.bg-dark .event-item,
section.bg-dark .category-post-item,
section.bg-secondary .small-card,
section.bg-secondary .blog-list-item,
section.bg-secondary .event-item {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Ensure text remains readable inside white cards on dark backgrounds */
section.bg-dark .small-card h3,
section.bg-dark .small-card a,
section.bg-dark .blog-list-item h3,
section.bg-dark .blog-list-item a,
section.bg-dark .event-item h3,
section.bg-dark .event-item a,
section.bg-dark .category-post-item h3,
section.bg-dark .category-post-item a {
    color: inherit !important;
}

/* Add subtle hover effect for better interactivity */
.small-card:hover,
.blog-list-item:hover,
.event-item:hover,
.category-post-item:hover,
.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* ==========================================================================
   TESTIMONIALS SLIDER (home.blade.php)
   ========================================================================== */

.feature-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
    background: #f6ecdf;
    border-radius: 14px;
}

.feature-copy h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.feature-copy p {
    margin: 0.9rem 0 0;
    color: #46566a;
    line-height: 1.6;
    max-width: 58ch;
}

.feature-media {
    border-radius: 10px;
    overflow: hidden;
    min-height: 15rem;
    background: linear-gradient(140deg, #c8def5, #89c5ec);
}

.feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #74859a;
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   NEWS SECTION (home.blade.php)
   ========================================================================== */

.news-section {
    background: var(--blue-block);
    margin: 0;
}

.news-board {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.15rem;
}

.news-card {
    display: block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(17, 43, 70, 0.14);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.news-card-media img {
    max-height: 15rem;
}

@media (max-width: 768px) {
    .news-card-media img {
        width: 100%;
    }
}

.news-card--lead {
    padding: 1.2rem;
    display: grid;
    gap: 0.75rem;
}

.news-card h3 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.news-grid article {
    padding: 1rem;
    min-height: 11.5rem;
}

/* ==========================================================================
       CATEGORY POSTS LIST
       ========================================================================== */

.category-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.category-post-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.category-post-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-post-item__link {
    display: grid;
    grid-template-columns: minmax(0, 280px) 1fr;
    gap: 1.2rem;
    padding: 1.2rem;
    color: inherit;
    text-decoration: none;
}

.category-post-item__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(130deg, #d9eaf6, #c0daee);
}

.category-post-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-post-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}