/*
Theme Name: Hampton CT - Frost Child
Description: Custom child theme of Frost for Hampton Connecticut
Template: frost
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../frost/style.css");

.wp-block-navigation-submenu {
 z-index: 99999 !important;   
}
/* Group Listing Table Styles */
.group-listing-table {
    width: 100%;
    max-width: 1200px;
    border-collapse: collapse;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    table-layout: fixed;
}

.group-listing-table thead {
    background: #f8f9fa;
}

.group-listing-table th,
.group-listing-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.group-listing-table th:first-child,
.group-listing-table td:first-child {
    width: 40%;
}

.group-listing-table th:last-child,
.group-listing-table td:last-child {
    width: 60%;
}

.group-listing-table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 16px;
}

.group-listing-table tbody tr:hover {
    background: #f8f9fa;
}

.group-listing-table td a {
    color: #4a5bb5;
    text-decoration: none;
    display: inline-block;
}

.group-listing-table td a:hover {
    text-decoration: underline;
}

.group-listing-table .view-group-link {
    color: #4a5bb5;
    text-decoration: none;
    margin-left: 0;
}

.group-listing-table .view-group-link:hover {
    text-decoration: underline;
}

.group-listing-page {
    padding: 40px 20px;
}

.group-listing-page .container {
    max-width: 1200px;
    margin: 0 auto;
}
.wp-block-navigation .wp-block-navigation__submenu-container {
    min-width: max-content !important;
}
.hampton-news-links-container {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Card-Row Container */
.hampton-news-link-row {
    position: relative; /* Acts as the absolute anchoring boundary */
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.25rem 8.5rem 1.25rem 1.25rem; /* Generous right-padding keeps title clear of badge */
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hampton-news-link-row:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hampton-news-row-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.hampton-news-title-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.hampton-news-title-link:hover {
    text-decoration: underline;
}

/* Full content block style map */
.hampton-news-full-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2.25rem 2rem 2rem 2rem;
    margin: 1.5rem 0;
}

.hampton-news-full-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-right: 8.5rem; /* Prevents overflow collisions on long title headlines */
    font-size: 1.75rem;
    color: #2d3748;
}

/* The Absolute Position Top-Right Badge */
.news-absolute-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-block;
    background: #34495e; /* Navy/Slate block accent configuration */
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
}

.hampton-news-full-body {
    color: #4a5568;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .hampton-news-link-row {
        padding-right: 1.25rem;
        padding-top: 2.75rem; /* Forces mobile fallback stacking cleanly */
    }
    
    .hampton-news-full-title {
        padding-right: 0;
        margin-top: 1.5rem;
    }
}
 .mc-popup-card {
        background: #fff;
  }

  .mc-popup-top {
        display: flex;
        justify-content: flex-end;
        padding: 0 0 1rem;
  }

  .mc-popup-category {
        display: inline-block;
        padding: 0.3rem 0.75rem;
        background: #1da1b9;
        color: #fff;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1;
  }

  .mc-popup-meta {
        margin: 0;
  }

  .mc-meta-row {
        display: grid;
        grid-template-columns: 140px 1fr;
        border-bottom: 1px solid #e3e3e3;
  }

  .mc-meta-label {
        margin: 0;
        padding: 0.9rem 1.25rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #2f3742;
  }

  .mc-meta-value {
        margin: 0;
        padding: 0.9rem 1.25rem;
        color: #2f3742;
  }

  .mc-popup-description {
        padding: 1.25rem;
  }

  .mc-popup-section-title {
        margin: 0 0 0.75rem;
        font-size: 1.1rem;
        font-weight: 700;
        color: #2f3742;
  }

  .mc-popup-excerpt p:first-child {
        margin-top: 0;
  }

  .mc-popup-link {
        padding: 1rem 1.25rem 0;
        text-align: center;
  }

  .mc-popup-button {
        display: inline-block;
        padding: 0.8rem 1.5rem;
        background: #0d6efd;
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 600;
  }

  .mc-popup-button:hover,
  .mc-popup-button:focus {
        color: #fff;
        text-decoration: none;
        background: #0b5ed7;
  }

  @media (max-width: 700px) {
        .mc-meta-row {
                grid-template-columns: 1fr;
        }

        .mc-meta-label {
                padding-bottom: 0.25rem;
        }

        .mc-meta-value {
                padding-top: 0;
        }
  }