/* Stile Titoli Categorie */
.section-header-premium {
    background: #f8fcf8;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 5px solid #009246;
    /* Verde Italia */
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-premium h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

/* Wrapper Griglia 2 Colonne */
.split-sections-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Card interne */
.automated-section .premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2x2 nelle colonne */
    gap: 1.5rem;
    margin-top: 0;
    /* Reset */
}

.automated-section .card-image-wrapper {
    height: 160px;
    /* Un po' più piccoli nelle griglie split */
}

.automated-section .card-body {
    padding: 1rem;
}

.automated-section .card-body h3 {
    font-size: 1rem;
}

/* Gestione Ultimo Elemento Dispari (Full Width) */
.automated-section:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    margin-top: 2rem;
}

.automated-section:last-child:nth-child(odd) .premium-grid {
    grid-template-columns: repeat(4, 1fr);
    /* Torna a 4 colonne se full width */
}

.automated-section:last-child:nth-child(odd) .card-image-wrapper {
    height: 220px;
}

@media(max-width: 900px) {
    .split-sections-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .automated-section .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .automated-section:last-child:nth-child(odd) .premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 480px) {
    .automated-section .premium-grid {
        grid-template-columns: 1fr;
    }
}

/* --- REGIONS DIRECTORY STYLES (Moved from page-regioni.php) --- */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 900px) {
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.region-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.region-card:hover img {
    transform: scale(1.05);
}

.region-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.region-img {
    height: 180px;
    overflow: hidden;
}

.region-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.region-body {
    padding: 15px;
    text-align: center;
}

.region-body h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.region-body span {
    color: #009246;
    font-weight: bold;
    font-size: 0.85rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    justify-content: center;
}

.category-card {
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.category-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.cat-img {
    height: 100px;
    overflow: hidden;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-body {
    padding: 10px;
    text-align: center;
}

.cat-body h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* --- DRILLDOWN TEMPLATE STYLES (Moved from template-drilldown.php) --- */
/* Note: some duplicates with above might exist, cascading handles it or we can refine later */
.province-grid .drill-card {
    border: 1px solid #eee;
    box-shadow: none;
}

.province-grid .drill-card:hover {
    border-color: #009246;
}

.premium-card:hover .card-overlay {
    opacity: 1 !important;
}

@media(max-width: 768px) {
    .premium-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- INTERACTIVE MAP STYLES (Moved from map-include.php) --- */
#mappa-container {
    position: relative;
    height: 500px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.region-info-card {
    display: none;
    position: absolute;
    z-index: 10;
    left: 380px;
    top: 20px;
    width: 350px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.region-info-card h3 {
    margin-top: 0;
    color: var(--color-green, #009246);
    border-bottom: 2px solid var(--color-red, #ce2b37);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.region-info-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.btn-region {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: var(--color-ocean, #0077be);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-region:hover {
    background: var(--color-green, #009246);
    color: #fff;
}

@media (max-width: 768px) {
    .region-info-card {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- COMUNI DENSE GRID (Moved from page-comuni.php) --- */
/* Usage: <div class='regions-grid dense'> */
.regions-grid.dense {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.regions-grid.dense .region-card {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.regions-grid.dense .region-card:hover {
    transform: translateY(-3px);
}

.regions-grid.dense .region-img {
    height: 120px;
}

.regions-grid.dense .region-body {
    padding: 10px;
}

.regions-grid.dense .region-body h2 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.regions-grid.dense .region-body span {
    font-size: 0.8rem;
    display: block;
}

/* --- HUB CATEGORY STYLES (Moved from category.php) --- */
.hub-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

@media(max-width: 900px) {
    .hub-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media(max-width: 600px) {
    .hub-cards {
        grid-template-columns: 1fr !important;
    }
}

/* --- COMMENTS STYLES (Moved from comments.php) --- */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--color-border);
}

.comments-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
}

.comment-list .children {
    list-style: none;
    margin-left: 2rem;
    margin-top: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 1rem;
}

.comment-author .fn {
    font-weight: 700;
    font-style: normal;
    color: var(--color-secondary);
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-metadata a {
    color: #666;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--color-primary);
}

.comment-content {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.comment-content p {
    margin-bottom: 1rem;
}

.reply {
    margin-top: 1rem;
}

.reply a {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
}

.reply a:hover {
    background: #0052a3;
    transform: translateY(-2px);
}

.comment-awaiting-moderation {
    background: #fff9e6;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border-left: 4px solid #ffcc00;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 1rem;
}

.comment-navigation a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.no-comments {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    color: #666;
}

/* Form */
.comment-respond {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.comment-reply-title small {
    font-size: 0.875rem;
    margin-left: 1rem;
}

.comment-reply-title small a {
    color: #666;
    text-decoration: none;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.required {
    color: #dc2626;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    margin-top: 1.5rem;
}

.comment-form .submit {
    background: var(--color-primary);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.comment-form .submit:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.comment-notes,
.comment-form-cookies-consent {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-form-cookies-consent label {
    display: inline;
    font-weight: normal;
}

.comment-form-cookies-consent input[type='checkbox'] {
    width: auto;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 1rem;
    }

    .comment-respond {
        padding: 1.5rem;
    }
}

/* --- FOOTER STYLES (Moved from footer.php) --- */
.site-footer-dark {
    background: #111;
    color: #fff;
    padding: 5rem 0 3rem;
    margin-top: 4rem;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-brand-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.footer-decoration {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.footer-deco-line {
    width: 40px;
    height: 4px;
}

.site-info-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Fixed Actions */
.fixed-actions-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.action-btn-circle {
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-share-trigger {
    background: #009246;
    color: #fff;
}

.btn-scroll-top {
    background: #333;
    color: #fff;
    display: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background 0.3s;
}

/* Share Popup */
.share-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.share-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: pageFadeIn 0.3s ease;
}

.close-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.share-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.social-share-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.social-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* --- MASTER STYLES 2026 (Extracted from cloudeplugin) --- */
:root {
    --r: #d63638;
    --b: #111;
    --s: #fdfbf7;
}

.m26-layout {
    font-family: 'Outfit', sans-serif;
    background: #fff;
    color: #333;
}

.m26-hero {
    height: 40vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    color: #fff;
}

.m26-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 75%);
}

.m26-hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.m26-hero-body h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    margin: 10px 0;
}

.m26-badge {
    background: var(--r);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.m26-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.m26-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

.m26-tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 35px;
}

.m26-tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    font-size: 1.05rem;
}

.m26-tab-btn.active {
    color: var(--r);
    border-bottom-color: var(--r);
}

.m26-pane {
    display: none;
    animation: m26Fade 0.4s ease-out;
}

.m26-pane.active {
    display: block;
}

@keyframes m26Fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.m26-article {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    font-family: 'Outfit', sans-serif;
}

.m26-pane-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--b);
}

/* PREMIUM GALLERY 3x3 (9 IMAGES) */
.m26-gallery-frame {
    background: #fdfbf7;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #e0ddd5;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
    width: 100% !important;
    box-sizing: border-box;
}

.m26-gallery-grid-9 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

.m26-gal-item-v4 {
    display: block !important;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1 / 1 !important;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: #fff;
    position: relative;
}

.m26-gal-item-v4 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s ease;
}

.m26-gal-item-v4:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 5;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #d63638;
}

.m26-gal-item-v4:hover img {
    transform: scale(1.1);
}

.m26-map-canvas {
    height: 450px;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.m26-widget {
    background: var(--s);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #e5e0d8;
}

.m26-weather {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.m26-w-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.m26-btn-black {
    width: 100%;
    padding: 15px;
    background: var(--b);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.m26-btn-black:hover {
    background: #333;
    transform: translateY(-2px);
}

.m26-btn-red {
    background: var(--r);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-block;
}

.m26-btn-red:hover {
    background: #aa2325;
    transform: scale(1.05);
}

.m26-rel-card {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #efeae2;
    transition: 0.3s;
}

.m26-rel-card:hover {
    transform: translateY(-2px);
    color: var(--r);
}

.m26-rel-card img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
}

.m26-rel-card span {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
}

.m26-discovery {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 2px solid #f0f0f0;
}

.m26-discovery h2 {
    font-family: 'Playfair Display', serif;
}

.m26-discovery-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
    width: 100%;
    display: block;
    clear: both;
}

.m26-disc-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    width: 100% !important;
    margin-top: 30px !important;
}

.m26-disc-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
}

.m26-disc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.m26-disc-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.m26-disc-cat {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--r);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
}

.m26-disc-info {
    padding: 20px;
}

.m26-disc-info h4 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .m26-grid {
        grid-template-columns: 1fr;
    }

    .m26-disc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .m26-discovery {
        margin-top: 40px;
    }

    .m26-gallery-grid-9 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   PAGINATION (Added for Custom Pages)
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.turismoitalia-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.turismoitalia-pagination .pagination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
    text-decoration: none;
    background: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
}

.page-numbers:hover,
.page-numbers.current {
    background: #009246;
    color: white;
    border-color: #009246;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 146, 70, 0.2);
}

.page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    transform: none;
    box-shadow: none;
    color: #888;
}

.nav-icon {
    font-size: 1.1em;
    vertical-align: middle;
    margin: 0 2px;
}

/* --- SEARCH RESULTS GRID --- */
.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.search-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.search-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-card-image {
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.search-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.search-card:hover .search-card-image img {
    transform: scale(1.1);
}

.search-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-card-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.search-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
    font-family: 'Outfit', sans-serif;
}

.read-more-btn {
    font-size: 0.85rem;
    color: #009246;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: auto;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .search-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PREMIUM EVENTS GRID (Used in Custom Page Templates) --- */
.premium-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.event-card-premium {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eee;
}

.event-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.event-card-premium img {
    transition: transform 0.5s ease;
}

.event-card-premium:hover img {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .premium-events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .premium-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .premium-events-grid {
        grid-template-columns: 1fr;
    }
}