/* ========================================
   GLOBAL FORM INPUT RESET
   Prevents inputs/selects/textareas from overflowing their containers,
   particularly on narrow mobile screens.
   ======================================== */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="tel"],
input[type="password"],
input[type="search"],
select,
textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* ========================================
   FRONT PAGE LAYOUT STYLES
   ======================================== */

/* Hero Section */
/* Hero Section */
.hero-grid {
    display: flex;
    gap: 0.9375rem;
    margin-bottom: 1.875rem;
    align-items: stretch;
}

.hero-main-feature {
    flex: 1;
}

.hero-stacked-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.hero-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    /* Prevent content overflow */
    max-height: 100%;
}

.hero-card.large {
    height: 100%;
    max-height: 550px;
    min-height: 400px;
    /* Ensure height */
}

.hero-card.small {
    flex: 1;
    max-height: 175px;
    min-height: 120px;
    /* Ensure height for small items */
}

.hero-card img,
.hero-card>a>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-grow: 1;
    /* Allow image to fill space */
}

.hero-card>a {
    display: block;
    height: 100%;
    flex-grow: 1;
}

.card-title-bar {
    background: #fff;
    padding: 0.625rem 0.9375rem;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    border-top: 1px solid #e8e8e8;
}

.hero-card .card-title-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--sage-green);
    border-top: none;
}

.card-title-bar h2,
.card-title-bar h3,
.card-title-bar h4 {
    margin: 0;
    color: var(--baltic-blue);
    font-size: 1.125rem;
    line-height: 1.3;
}

/* White text for card-title-bar h3 on coloured backgrounds */
.hero-card .card-title-bar h3,
.info-card .card-title-bar h3,
.article-card .card-title-bar h3,
.hero-card .card-title-bar h3 a,
.info-card .card-title-bar h3 a,
.article-card .card-title-bar h3 a {
    color: #fff;
}

.hero-card .card-title-bar h2,
.hero-card .card-title-bar h3,
.hero-card .card-title-bar h4 {
    color: #fff;
}

.hero-card.large h2 {
    font-size: 2rem;
}

.card-title-bar a {
    color: var(--baltic-blue);
    text-decoration: none;
}

.hero-card .card-title-bar a {
    color: #fff;
}

.card-title-bar a:hover {
    text-decoration: underline;
}

/* Affiliate Section */

.affiliate-split {
    display: flex;
    gap: 1.25rem;
    margin: 1.875rem 0;
}

.affiliate-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Articles Grid - 1x2 Layout */
.articles-grid-1x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.article-image-wrapper {
    height: 12.5rem;
    overflow: hidden;
}

.article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stacked-cards-col {
    height: 100%;
}

.article-card:hover .article-image-wrapper img {
    transform: scale(1.05);
}

.article-card .card-title-bar {
    background: var(--sage-green);
    padding: 0.625rem 0.9375rem;
}

.article-card .card-excerpt {
    padding: 0.9375rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Stream Row */
.stream-row-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.9375rem;
    margin-top: 1.875rem;
}

.stream-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stream-image-wrapper {
    height: 6.25rem;
    background: #f0f0f0;
}

.stream-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-item .card-title-bar {
    padding: 0.5rem;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

.stream-item h4 {
    font-size: 0.85rem;
    margin: 0;
    color: var(--baltic-blue);
}

/* ========================================
   ARCHIVE PAGE STYLES
   ======================================== */

/* Archive Header and Title Bar */
.archive-header-bar {
    background: #fff;
    border-bottom: 2px solid var(--baltic-blue);
    padding: 1.25rem 0;
    margin-bottom: 1.875rem;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.archive-header-bar .container-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.archive-header-bar .header-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

@media (max-width: 768px) {
    .archive-header-bar .container-title-bar {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .archive-header-bar .header-content-left {
        align-items: center;
        text-align: center;
    }

    .archive-header-bar .title-bar-ad {
        margin: 0 auto;
    }
}


/* Header Text Area */
.header-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Force Left Align */
}

.page-title {
    margin: 0 0 0.3125rem 0;
    color: var(--baltic-blue);
    font-size: 3rem;
    line-height: 1.1;
    text-align: left;
}

.archive-description {
    text-align: left;
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
    max-width: 600px;
}

/* Header Right Content (Ad) */
.title-bar-ad {
    margin-left: auto;
    padding-left: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.banner-ad-small {
    width: 468px;
    max-width: 100%;
    height: 60px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #999;
    font-size: 0.9rem;
    color: #666;
    box-sizing: border-box;
}

.banner-ad-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* News List Layout */
.news-list-layout {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    background: transparent;
    padding: 0;
}

.news-list-item {
    display: flex;
    gap: 20px;
    padding-bottom: 1.875rem;
    border-bottom: 1px solid #eee;
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-image {
    flex: 0 0 15.625rem;
}

.news-list-image img {
    width: 100%;
    height: 11.25rem;
    object-fit: cover;
    border-radius: 0.3125rem;
}

.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stack-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.stack-layout .entry-title {
    order: 1;
    margin-bottom: 0.9375rem;
}

.stack-layout .news-list-image {
    order: 2;
    margin-bottom: 0.9375rem;
}

.stack-layout .entry-excerpt {
    order: 3;
    margin-bottom: 15px;
}

.stack-layout .news-date {
    order: 4;
    margin-bottom: 10px;
}

.stack-layout .btn-read-more-wrapper {
    order: 5;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.news-list-content .entry-title {
    margin-top: 0;
    margin-bottom: 0.625rem;
    font-size: 1.6rem;
}

.news-list-content .entry-title a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.news-list-content .entry-title a:hover {
    color: var(--sage-green);
}

.news-list-content .entry-excerpt {
    flex-grow: 1;
    color: #555;
    margin-bottom: 0.9375rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.875rem;
}

/* Expert Star Rating (Find an Expert — premium members, logged-in users only) */
.tgc-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.tgc-star {
    font-size: 1.1em;
    color: #ccc;
    transition: color 0.15s;
    line-height: 1;
}

.tgc-star.filled,
.tgc-star.hover {
    color: #f5a623;
}

/* Tools Grid (Tools & Equipment archive page) */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.875rem;
}

.tools-grid .review-card {
    background: #fff;
}

.tools-grid .review-content {
    background: #fff;
}


.review-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.review-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.review-content {
    padding: 20px;
}

.review-topic {
    font-size: 0.8rem;
    color: var(--sage-green);
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.review-content .entry-title {
    font-size: 1.3rem;
    margin: 0.625rem 0;
}

.review-content .entry-title a {
    text-decoration: none;
    color: var(--baltic-blue);
    transition: color 0.2s ease;
}

.review-content .entry-title a:hover {
    color: var(--sage-green);
}

.review-content .entry-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.9375rem;
}

.review-content .btn {
    display: block;
    text-align: center;
    margin-top: 0.9375rem;
}

/* Archive Grid (legacy support) */
.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

/* ========================================
   SINGLE POST/NEWS STYLES
   ======================================== */

.news-article {
    background: #fff;
    padding: 1.875rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.news-feature-image {
    width: 100%;
    margin-bottom: 1.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.news-feature-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.news-meta-header {
    margin-top: 0.625rem;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9375rem;
}

.news-article .entry-title {
    margin-top: 0.625rem;
    font-size: 3rem;
    margin-bottom: 1.5625rem;
}

.news-article .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.875rem;
}

.entry-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
}

.tags-links {
    color: #666;
    font-size: 0.95em;
}

.tags-links a {
    color: var(--sage-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tags-links a:hover {
    color: var(--lime-moss);
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.85em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    color: var(--baltic-blue);
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-navigation a:hover .nav-title {
    color: var(--sage-green);
}

.post-navigation a {
    text-decoration: none;
}

/* ========================================
   SIDEBAR & WIDGET STYLES
   ======================================== */

.widget-area {
    background: transparent;
    padding: 0;
}

.widget-area .widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.widget-area .widget-title {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--sage-green);
    color: var(--baltic-blue);
}

.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.recent-posts-list a:hover {
    color: var(--sage-green);
}

.recent-posts-list .post-date {
    font-size: 0.85em;
    color: #888;
    display: block;
}

/* Popular Topics sidebar widget — styled like forum-activity-list */
.tgc-popular-topics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tgc-popular-topics-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.88rem;
}

.tgc-popular-topics-list li:last-child {
    border-bottom: none;
}

.tgc-popular-topics-list a {
    flex: 1;
    color: var(--baltic-blue);
    text-decoration: none;
    font-weight: 600;
}

.tgc-popular-topics-list a:hover {
    text-decoration: underline;
}

.tgc-popular-topics-list .topic-meta {
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Blue border accent — Popular Topics, Newsletter, Latest Articles */
.widget_tgc_forum_popular_topics,
.widget_tgc_newsletter_widget,
.widget_tgc_recent_posts {
    border-color: var(--baltic-blue);
}

.widget_tgc_forum_popular_topics .widget-title,
.widget_tgc_newsletter_widget .widget-title,
.widget_tgc_recent_posts .widget-title {
    border-bottom-color: var(--baltic-blue);
}

.btn-read-more {
    background: var(--sage-green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    letter-spacing: normal;
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn-read-more:hover {
    background: var(--lime-moss);
    color: #fff;
}




/* ========================================
   EVENTS SECTION STYLES
   ======================================== */

/* Event Archive Cards */
.tgc-events-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-event {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-thumb,
.event-thumb-placeholder {
    flex: 0 0 250px;
    height: 180px;
    border-radius: 5px;
    overflow: hidden;
}

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

.event-thumb-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-thumb-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.event-title a {
    text-decoration: none;
    color: var(--baltic-blue);
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: var(--sage-green);
}

.event-meta {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--sage-green);
}

.card-excerpt {
    flex-grow: 1;
    margin: 15px 0;
    color: #555;
}

/* No Events State */
.tgc-no-events {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.tgc-no-events .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 20px auto;
    color: #ccc;
}

.tgc-no-events h2 {
    color: #555;
    margin-bottom: 10px;
}

.tgc-no-events p {
    color: #777;
}

/* Single Event Styles */
.event-hero {
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.event-hero-bg {
    width: 100%;
    height: 400px;
    position: relative;
}

.event-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-hero-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #fff;
}

.event-main-title {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 3rem;
}

.event-subtitle {
    color: #fff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 400;
}

.event-description .lead {
    font-size: 1.2em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.tgc-section-separator {
    height: 1px;
    background: #e0e0e0;
    margin: 30px 0;
}

.event-location-section {
    margin-bottom: 30px;
}

.event-location-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.location-address {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.event-map {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Event CTA Cards */
.tgc-cta-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tgc-cta-card {
    background: var(--alice-blue);
    border: 2px solid var(--sage-green);
    border-radius: 8px;
    padding: 25px;
}

.tgc-cta-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--baltic-blue);
}

.event-notify-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tgc-cta-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
}

.tgc-btn-notify,
.tgc-btn-buy {
    background: var(--sage-green);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tgc-btn-notify:hover,
.tgc-btn-buy:hover {
    background: var(--lime-moss);
}

.ticket-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--baltic-blue);
    margin: 15px 0;
}

#notify-message {
    margin-top: 10px;
    min-height: 20px;
}

#notify-message .processing-msg {
    color: #666;
    margin: 0;
}

#notify-message .success-msg {
    color: green;
    font-weight: bold;
    margin: 0;
}

#notify-message .error-msg {
    color: red;
    margin: 0;
}

.event-full-description {
    margin-bottom: 30px;
}

.event-full-description h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--baltic-blue);
}


/* ========================================
   SINGLE REVIEW STYLES
   ======================================== */

/* Single Review — hero score badge */
.review-hero-image {
    position: relative;
}

.hero-score-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--baltic-blue);
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-score-badge .score-val {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.hero-score-badge .score-max {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Single Review Styles */
.review-title-bar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    margin-bottom: 30px;
}

.review-meta-box {
    background: var(--alice-blue);
    border-left: 5px solid var(--sage-green);
    padding: 20px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.meta-label {
    display: block;
    font-size: 0.85em;
    text-transform: uppercase;
    color: #666;
}

.review-verdict {
    background: #fff;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.verdict-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-stars .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #fce303;
}

.badge-good {
    background: var(--sage-green);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.gc-affiliate-button--primary {
    background: var(--baltic-blue);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    text-transform: uppercase;
}

.gc-affiliate-button--primary:hover {
    background: var(--lime-moss);
}


/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Responsive Styles */
@media (max-width: 900px) {
    .site-content-split {
        flex-direction: column;
    }

    .review-meta-box {
        grid-template-columns: 1fr;
    }

    /* Front page responsive */
    .hero-grid {
        flex-direction: column;
    }

    .hero-main-feature {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .articles-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .stream-row-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Archive responsive */
    @media (max-width: 985px) {
        .container-title-bar {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }

        .title-bar-ad {
            width: 100%;
            justify-content: center;
            padding-left: 0;
        }

        .banner-ad-small {
            width: 100%;
            max-width: 475px;
            height: auto;
            margin: 0 auto;
        }
    }

    .news-list-item {
        flex-direction: column;
    }

    .news-list-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .news-list-image img {
        height: 220px;
    }


    /* Events responsive handled outside for 600px */

    .event-thumb,
    .event-thumb-placeholder {
        flex: 0 0 auto;
        width: 100%;
        height: 220px;
    }

    .event-hero-bg {
        height: 300px;
    }

    .event-main-title {
        font-size: 2rem;
    }

    .tgc-cta-container {
        grid-template-columns: 1fr;
    }


}

@media (max-width: 600px) {
    .archive-card {
        flex-direction: column;
        height: auto;
    }

    .card-image {
        height: 200px;
    }

    /* Front page mobile */
    .stream-row-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-event-inner {
        flex-direction: column;
    }
}

.card-event-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Articles archive: pagination below search at 520px */
@media (max-width: 520px) {
    .archive-top-controls {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    .archive-top-controls .archive-search {
        width: 100%;
    }

    .archive-top-controls .archive-pagination-top {
        text-align: center !important;
        width: 100%;
    }
}

/* Front Page Articles with Stacked Cards */
.articles-with-cards {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.articles-main-col {
    flex: 1;
}

.stacked-cards-col {
    width: 336px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: #fff;
    border: 1px solid var(--baltic-blue);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 5px;
}

.info-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-grow: 1;
}

/* Ensure info-card content has padding so it doesn't go to edges */
.info-card .forum-activity-list,
.info-card .job-placeholder,
.info-card .job-fallback,
.info-card>p {
    padding: 5px 10px;
}

.info-card .card-title-bar {
    position: static;
    background: var(--baltic-blue);
    order: -1;
    /* For forum, it stays at top */
    border-top: none;
}

.info-card-events .card-title-bar {
    order: -1;
}

/* Forum card: title on top, activity list below */
.info-card-forum .card-title-bar {
    order: -1;
}

.info-card-forum .forum-activity-list {
    list-style: none;
    padding: 5px 10px;
    margin: 5px 0 0 0;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 220px;
}

.info-card-forum .forum-activity-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.info-card-forum .forum-activity-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-card-forum .forum-activity-list a {
    color: var(--baltic-blue);
    text-decoration: none;
    font-size: 0.9em;
}

.info-card-forum .forum-activity-list a:hover {
    text-decoration: underline;
}

.info-card-forum .forum-activity-list .forum-topic-date {
    display: block;
    font-size: 0.75em;
    color: #888;
    margin-top: 3px;
}

.info-card .card-title-bar h3 {
    margin: 0;
    padding: 0.625rem 0.75rem;
}

.info-card .card-title-bar h3 a {
    color: #fff;
    text-decoration: none;
}

/* Mobile fix: prevent info-card title from hiding content */
@media screen and (max-width: 1206px) {
    .info-card {
        min-height: auto;
    }

    .info-card img {
        height: 12.5rem;
        flex-grow: 0;
    }
}

/* Homepage Jobs List (3 latest jobs in stacked card) */
.hp-jobs-list {
    list-style: none;
    margin: 0;
    padding: 5px 10px;
    flex-grow: 1;
}

.hp-jobs-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.hp-jobs-item:last-child {
    border-bottom: none;
}

.hp-jobs-title {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--baltic-blue);
    text-decoration: none;
    line-height: 1.3;
}

.hp-jobs-title:hover {
    text-decoration: underline;
    color: var(--sage-green);
}

.hp-jobs-desc {
    margin: 3px 0 0 0;
    font-size: 0.78em;
    color: #666;
    line-height: 1.4;
}

.hp-jobs-footer {
    padding: 8px 10px;
    text-align: right;
    border-top: 1px solid #e0e0e0;
}

/* Stacked Card Hero Overlay Layout */
.info-card-hero {
    position: relative;
    min-height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    flex-grow: 1;
    border-radius: 4px;
    overflow: hidden;
}

.info-card-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.info-card-hero-overlay h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--baltic-blue);
    line-height: 1.3;
}

.info-card-hero-overlay h4 a {
    color: var(--baltic-blue);
    text-decoration: none;
}

.info-card-hero-overlay h4 a:hover {
    text-decoration: underline;
}

/* Jobs card blue variant */
.info-card-hero-blue {
    background-color: var(--baltic-blue);
}

.info-card-hero-blue .info-card-hero-overlay {
    background: rgba(32, 78, 128, 0.8);
}

.info-card-hero-blue .info-card-hero-overlay h4,
.info-card-hero-blue .info-card-hero-overlay h4 a,
.info-card-hero-blue .info-card-hero-overlay p {
    color: #fff;
}

/* Compact title bar for stacked cards — reduced padding */
.card-title-bar-compact {
    padding: 0.25rem 0.5rem;
}

.card-title-bar-compact h3 {
    padding: 0.25rem 0 !important;
}

/* Ensure full width for articles section */
.main-articles-section {
    width: 100%;
    margin: 0 auto;
}

/* Phase 1 Updates - Hero Excerpts, 50/50 Layout, 2x3 Grid */
.hero-excerpt {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 8px;
    font-weight: 400;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-card-split {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.hero-card-split .hero-card-image {
    flex: 0 0 50%;
    overflow: hidden;
}

.hero-card-split .hero-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-split .hero-card-content {
    flex: 1;
    background: var(--sage-green);
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-card-split .hero-card-content h3 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
}

.hero-card-split .hero-card-content h3 a {
    color: #fff;
    text-decoration: none;
}

.hero-card-split .hero-card-content h3 a:hover {
    text-decoration: underline;
}

.hero-excerpt-small {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.stream-grid-2x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stream-item-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stream-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.stream-item-card:hover .stream-image-wrapper img {
    transform: scale(1.05);
}

.stream-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stream-card-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.stream-card-content h4 a {
    color: var(--baltic-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.stream-card-content h4 a:hover {
    color: var(--sage-green);
}

.stream-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .stream-grid-2x3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-card-split {
        flex-direction: column;
    }

    .hero-card-split .hero-card-image {
        flex: 0 0 auto;
        height: 150px;
    }

    .hero-card.small {
        max-height: none;
        height: auto;
        min-height: 250px;
        /* Allow enough room for split layout */
    }

    .hero-stacked-items,
    .hero-card.large {
        max-height: none;
    }
}

/* Phase 2 Updates - Archive Card Design */
.archive-card-new {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.9375rem;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.archive-card-image {
    width: 100%;
    overflow: hidden;
}

.archive-card-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0.5rem 0.5rem 0 0;
}

.archive-card-new:hover .archive-card-image img {
    transform: scale(1.05);
}

.archive-card-title-bar {
    background: var(--sage-green);
    padding: 0.9375rem 1.25rem;
}

.archive-card-title-bar .entry-title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.archive-card-title-bar .entry-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-card-title-bar .entry-title a:hover {
    color: white;
}

.archive-card-content {
    padding: 20px;
}

.archive-card-content .entry-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.archive-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    gap: 15px;
}

.archive-date {
    color: #888;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
}

.tgc-search-form {
    display: flex;
    gap: 5px;
    max-width: 300px;
}

.tgc-search-form .search-field {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--sage-green);
    border-radius: 4px;
    font-size: 0.9em;
}

.tgc-search-form .search-field:focus {
    outline: none;
    border-color: var(--baltic-blue);
}

.tgc-search-form .search-submit {
    background: var(--sage-green);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s ease;
}

.tgc-search-form .search-submit:hover {
    background: var(--lime-moss);
}

.tgc-search-form .search-submit svg {
    display: block;
}


/* Archive card layout — content area and meta row */
.archive-card-content {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.archive-card-meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    gap: 15px;
    overflow: visible;
}

.archive-card-meta .archive-date {
    flex: 0 0 auto;
    margin-right: auto;
}

/* Read More button — archive cards */
.archive-card-meta .btn-read-more,
a.btn-read-more {
    background: var(--sage-green);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-body);
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    position: static;
    transition: background 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
    float: none;
}

.archive-card-meta .btn-read-more:hover,
a.btn-read-more:hover {
    background: var(--lime-moss);
    color: #fff;
}

.archive-date {
    flex-shrink: 0;
}

.archive-card-new {
    overflow: visible;
    position: relative;
}

/* No Results Page Styling */
.no-results-container {
    min-height: 600px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
}

.no-results-container>div:first-child {
    margin-top: 0 !important;
}

/* Ensure main content area aligns with sidebar */
.site-main.col-70 {
    align-self: flex-start !important;
}

/* Center search form in no-results page */
.no-results-container .tgc-search-form {
    max-width: 400px !important;
    margin: 0 auto !important;
}

/* Front Page Right Column (Viewport <= 769px) */
@media screen and (max-width: 769px) {
    .articles-with-cards {
        flex-direction: column;
    }

    .stacked-cards-col {
        width: 100%;
        order: 2;
        /* Drop below content */
    }

    .articles-main-col {
        order: 1;
    }
}

/* Single Post Navigation Fix */
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    width: 48%;
    flex: 0 0 48%;
    box-sizing: border-box;
}

.post-navigation .nav-next {
    text-align: right;
}

@media screen and (max-width: 480px) {
    .post-navigation .nav-links {
        flex-wrap: wrap !important;
        flex-direction: column !important;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        width: 100%;
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .post-navigation .nav-next {
        text-align: center;
    }
}

/* ========================================
   ARCHIVE 2x2 GRID STYLES
   ======================================== */
.archive-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    background: transparent;
    padding: 0;
}

.archive-grid-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.archive-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.archive-grid-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.archive-grid-card:hover .archive-grid-card-image img {
    transform: scale(1.05);
}

.archive-grid-card .archive-card-title-bar {
    padding: 0.625rem 0.9375rem;
}

.archive-grid-card .archive-card-title-bar .entry-title {
    font-size: 1.1rem;
    line-height: 1.3;
}

.archive-grid-card .archive-card-content {
    padding: 0.75rem 0.9375rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.archive-grid-card .archive-card-content .entry-excerpt {
    font-size: 0.9rem;
    flex-grow: 1;
}

.archive-grid-card .archive-card-meta {
    padding-top: 0.625rem;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.archive-grid-card .archive-card-meta .archive-date {
    font-size: 0.8rem;
}

/* Responsive: stack 2x2 grid to 1 column */
@media (max-width: 600px) {
    .archive-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   EVENT META ROW — View Event button fix
   ======================================== */
.event-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.event-meta-row .btn-read-more {
    margin-left: auto;
    flex-shrink: 0;
}

/* Consistent font sizes across Article, Review, Lifestyle archives */
.archive-card-new .entry-title,
.archive-grid-card .entry-title {
    font-size: 1.3rem;
    line-height: 1.3;
}

.archive-card-new .entry-excerpt,
.archive-grid-card .entry-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.archive-card-new .archive-date,
.archive-grid-card .archive-date {
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}

@media screen and (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Event & Mobile Header Fixes — mobile: stack and centre archive header */
@media screen and (max-width: 768px) {
    .container-title-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-content-left {
        align-items: center;
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .page-title,
    .archive-description {
        text-align: center;
    }

    .title-bar-ad {
        margin-left: 0;
        padding-left: 0;
        justify-content: center;
        width: 100%;
    }

    .banner-ad-small {
        width: 100%;
        max-width: 320px;
        text-align: center;
        margin: 0 auto;
    }

    /* Event Title size and padding on mobile */
    .event-content-wrapper {
        padding: 0;
    }

    .event-hero-overlay h2.entry-title,
    .event-content-wrapper .entry-header h2.entry-title {
        font-size: 2.5rem !important;
    }
}

/* Singular page backgrounds */
.singular .site-main {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-sizing: border-box;
}

.singular .site-content,
.singular .site-content-split,
.singular .content-area {
    background: transparent;
}

/* Remove extra white background on pages that have their own layout */
.page-template-page-register .site-main,
.singular:has(.tgc-calculator) .site-main,
.singular:has(.tgc-cost-calculator) .site-main,
.singular:has(.tgc-planning-checker) .site-main {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* ===== Single Article Template ===== */
.news-meta-header .dashicons {
    font-size: 1em;
    vertical-align: middle;
    margin-right: 3px;
}

.posted-on .dashicons {
    color: var(--baltic-blue);
}

.news-meta-header .post-author {
    font-weight: 400;
}

.news-article .article-updated-date {
    font-size: 0.85rem;
    color: #888;
    margin-top: 30px;
    font-style: italic;
}

/* ===== Single Review Template ===== */
.review-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.review-meta-top .dashicons {
    font-size: 16px;
    margin-top: 2px;
    vertical-align: middle;
}

.review-date .dashicons {
    color: var(--baltic-blue);
}

.review-author {
    font-weight: 400;
    color: #555;
}

.review-verdict-box {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid var(--sage-green);
    margin-bottom: 30px;
    border-radius: 4px;
}

.review-verdict-box h3 {
    margin-top: 0;
    color: var(--baltic-blue);
}

.review-verdict-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.pros-cons-section {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.pros-box,
.cons-box {
    flex: 1;
}

.pros-box h4 {
    color: var(--sage-green);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cons-box h4 {
    color: #e74c3c;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.pros-box ul,
.cons-box ul {
    list-style: none;
    padding: 0;
}

.pros-box li,
.cons-box li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.pros-marker {
    position: absolute;
    left: 0;
    color: var(--sage-green);
}

.cons-marker {
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.specs-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
}

.specs-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.specs-table {
    width: 100%;
    font-size: 0.9rem;
}

.specs-table td {
    padding: 8px 0;
}

.specs-table td:first-child {
    color: #666;
}

.specs-table td:last-child {
    text-align: right;
}

.specs-value-bold {
    font-weight: bold;
}

.ratings-breakdown {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.bar-container {
    width: 60%;
    background: #eee;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    background: var(--baltic-blue);
    height: 100%;
}

.btn-check-price {
    display: block;
    text-align: center;
    background: var(--sage-green);
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.btn-check-price:hover {
    background: var(--lime-moss);
    color: #fff;
}

/* ===== Archive Controls & Pagination ===== */
.archive-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.archive-pagination-top,
.archive-pagination-bottom {
    text-align: right;
    font-weight: 600;
}

.archive-pagination-bottom {
    margin-top: 1.875rem;
}

.page-count {
    color: #666;
    margin-right: 0.9375rem;
}

.archive-ads-row {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.archive-ads-pair {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.ad-box-archive {
    background: #f0f0f0;
    width: 100%;
    max-width: 336px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
}

.ad-box-dummy {
    background: #f0f0f0;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
}

.archive-author {
    margin-left: 10px;
    opacity: 0.8;
    font-style: italic;
}

/* ===== Stack Layout Cards (Showcase, Category) ===== */
.stack-layout .entry-title {
    margin-top: 0;
    font-size: 1.4rem;
}

.stack-layout .news-list-image {
    margin: 15px 0;
}

.archive-card-action {
    text-align: right;
}

.no-image-placeholder {
    background: #f0f0f0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* ===== Front Page Join CTA ===== */
.hp-join-cta {
    border: 2px solid var(--baltic-blue);
    background: #fff;
    border-radius: 8px;
    padding: 24px 28px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.hp-join-cta h3 {
    color: var(--baltic-blue);
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.hp-join-cta p {
    margin: 0;
    color: var(--baltic-blue);
    font-size: 0.95rem;
}

.hp-join-cta .btn {
    background: var(--baltic-blue);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.hp-jobs-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--baltic-blue);
    text-decoration: none;
}

.btn-read-more.btn-sm {
    font-size: 0.8rem;
    padding: 6px 14px;
}

.info-card-placeholder-msg {
    font-size: 0.9em;
    color: #666;
    margin: 10px;
    padding: 5px;
}

/* ===== Jobs Archive ===== */
.jobs-role-intro {
    display: flex;
    gap: 24px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.jobs-role-card {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
}

.jobs-role-card h4 {
    margin: 0 0 6px;
    color: var(--baltic-blue);
    font-size: 0.95rem;
}

.jobs-role-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

.jobs-role-card--cerulean {
    background: #eef5fc;
    border-left: 3px solid var(--rich-cerulean);
}

.jobs-role-card--green {
    background: #fff;
    border-left: 3px solid var(--sage-green);
}

.job-filters {
    margin-top: 15px;
}

.job-filters > span {
    font-weight: bold;
    margin-right: 10px;
}

.jobs-section,
.experts-section {
    margin-bottom: 50px;
}

.section-title {
    border-bottom: 2px solid var(--sage-green);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.job-grid,
.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.job-card-grid {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.job-card-grid h3 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.job-card-grid h3 a {
    text-decoration: none;
    color: var(--baltic-blue);
}

.job-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
}

.job-excerpt {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1;
    margin-bottom: 15px;
}

.job-grid .btn {
    text-align: center;
    padding: 8px 0;
    font-size: 0.9em;
}

.expert-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.expert-avatar {
    margin-bottom: 10px;
}

.expert-card h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.expert-title {
    display: block;
    font-size: 0.85em;
    color: var(--sage-green);
    margin-bottom: 10px;
}

.experts-grid .btn {
    display: block;
    font-size: 0.9em;
    background-color: var(--baltic-blue);
}

.jobs-pagination {
    margin-top: 20px;
    text-align: right;
}

/* ===== Single Tool Template ===== */
.single-tool-layout .entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-tool-layout .entry-title {
    font-size: 2.5rem;
    color: var(--baltic-blue);
}

.tool-intro {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.tool-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--sage-green);
}

.tool-interactive-area {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed #ddd;
}

.tool-not-configured {
    padding: 20px;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin-top: 20px;
}

.tool-not-configured p {
    margin: 0;
    color: #856404;
}

.tool-not-configured .edit-hint {
    margin: 8px 0 0;
    font-size: 0.9em;
}

.tool-not-configured .edit-hint a {
    color: var(--baltic-blue);
}

/* ===== Search No-Results ===== */
.no-results-emoji { font-size: 4em; color: var(--sage-green); margin-bottom: 20px; }
.no-results-container h2 { color: var(--baltic-blue); font-size: 2em; margin-bottom: 15px; }
.no-results-container > p { font-size: 1.1em; color: #666; margin-bottom: 30px; }

.no-results-suggestions {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.no-results-suggestions h3 { color: var(--sage-green); margin: 0 0 15px; }
.no-results-suggestions ul { list-style: none; padding: 0; margin: 0; }
.no-results-suggestions li { padding: 10px 0; border-bottom: 1px solid #eee; }
.no-results-suggestions li:last-child { border-bottom: none; }

.no-results-browse { margin-top: 40px; }
.no-results-browse h3 { color: var(--baltic-blue); margin-bottom: 20px; }
.no-results-browse-links { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-read-more.btn-home { background: var(--baltic-blue); color: #fff; }

.no-results-again { margin-top: 40px; }
.no-results-again p { color: #888; margin-bottom: 15px; }

/* ===== Contact Form ===== */
.contact-form-wrap {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 36px 40px;
    margin-bottom: 30px;
}

.contact-form-wrap > p { color: #666; margin-bottom: 24px; }

.notice-success {
    background: #fff;
    border-left: 4px solid var(--sage-green);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.notice-success strong { color: var(--sage-green); }

.notice-error {
    background: #fee;
    border-left: 4px solid #c00;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.notice-error strong { color: #c00; }

.tgc-contact-form .form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.tgc-contact-form .form-row .form-group { flex: 1; margin-bottom: 0; }

.tgc-contact-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.tgc-contact-form .required { color: #c00; }
#role-required { color: #c00; display: none; }

.tgc-contact-form input[type="text"],
.tgc-contact-form input[type="email"],
.tgc-contact-form select,
.tgc-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.tgc-contact-form select { background: #fff; }
.tgc-contact-form small { color: #888; margin-top: 4px; display: block; }

.tgc-contact-form input:focus,
.tgc-contact-form textarea:focus,
.tgc-contact-form select:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 2px rgba(103,148,54,0.2);
}

.btn-submit {
    background: var(--baltic-blue);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s ease;
}

.btn-submit:hover { background: var(--rich-cerulean); }

#contact-success-msg {
    display: none;
    margin-top: 16px;
    background: #fff;
    border-left: 4px solid var(--sage-green);
    padding: 14px 18px;
    border-radius: 4px;
    color: var(--sage-green);
    font-weight: 600;
}

.form-honeypot { display: none; }
.recaptcha-notice { font-size: 0.5em; }

@media (max-width: 768px) {
    .contact-form-wrap { padding: 24px 20px; }
    .tgc-contact-form .form-row { flex-direction: column; gap: 10px; }
}

/* ===== Registration / Signup Styles ===== */
.container-title-bar.centered { text-align: center; justify-content: center; }
.header-content-centered { text-align: center; }

.signup-account-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--sage-green);
}

.account-card-header h2 { color: var(--baltic-blue); font-size: 1.8em; margin: 0; }
.popular-badge { background: var(--sage-green); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 0.85em; font-weight: bold; }
.free-badge { background: var(--lime-moss); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 0.85em; font-weight: bold; }

.account-card-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 25px; }
.account-card-features.centered { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto 25px auto; }

.feature-column h4 { color: var(--sage-green); font-size: 1.1em; margin: 0 0 12px 0; }
.feature-column ul { list-style: none; padding: 0; margin: 0; }
.feature-column ul li { padding: 6px 0; color: #555; font-size: 0.85em; line-height: 1.3; border-bottom: 1px solid #f5f5f5; }
.feature-column ul li:before { content: "✓ "; color: var(--sage-green); font-weight: bold; margin-right: 5px; }

.account-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 12px;
}

.account-card-footer.centered { justify-content: center; gap: 30px; }
.card-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.price-tag { font-size: 1.8em; font-weight: bold; color: var(--sage-green); }

.btn-signup {
    padding: 10px 22px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.2s;
    display: inline-block;
    font-family: var(--font-body);
}

.btn-signup.btn-blue { background: var(--baltic-blue); }
.btn-signup.btn-blue:hover { background: var(--rich-cerulean); }
.btn-signup.btn-outline { background: transparent; border: 2px solid var(--sage-green); color: var(--sage-green); }
.btn-signup.btn-outline:hover { background: var(--sage-green); color: #fff; }

.account-card-note { margin-top: 15px; padding-top: 15px; border-top: 1px solid #f0f0f0; text-align: center; }
.free-account { max-width: 700px; margin: 40px auto; }
.signup-footer-text { text-align: center; padding: 30px 0; border-top: 2px solid #f0f0f0; margin-top: 20px; }

.registration-page-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: -40px;
}

.registration-page-container--compact { min-height: 50vh; }

.registration-page-content {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.registration-page-content--single { grid-template-columns: 1fr; max-width: 600px; }

.registration-box { padding: 50px 40px; }
.registration-box--centered { text-align: center; }

.registration-header { margin-bottom: 30px; text-align: center; }
.registration-header h1 { color: var(--baltic-blue); font-size: 2em; margin: 0 0 10px 0; }
.registration-header p { color: #666; margin: 5px 0; }

.price-info { color: var(--sage-green); font-weight: bold; font-size: 1.2em; }

.prereg-term-badge {
    display: inline-block;
    background: #e8f5e0;
    color: #2a6e2a;
    border: 1px solid #b5d9a0;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.88em;
    font-weight: 600;
    margin-top: 4px;
}

.registration-error { background: #fee; border-left: 4px solid #c00; padding: 15px; margin-bottom: 20px; border-radius: 4px; }

.form-group { margin-bottom: 20px; width: 100%; box-sizing: border-box; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }
.required { color: #c00; }

.form-group input.input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s;
}

.form-group input.input:focus { outline: none; border-color: var(--sage-green); }
.form-group small { display: block; margin-top: 5px; color: #888; font-size: 0.85em; }

.step-label { font-size: 0.82em; color: #888; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }

.terms-group { background: #f9fdfa; border: 1px solid #d4ebc8; border-radius: 6px; padding: 14px 16px; }
.terms-checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88em; line-height: 1.6; color: #444; cursor: pointer; font-weight: normal; }
.terms-checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--sage-green); }
.terms-checkbox-label a { color: var(--sage-green); }

.prereg-offer-reminder {
    background: #e8f5e0;
    border-left: 3px solid var(--sage-green);
    padding: 10px 14px;
    border-radius: 0 4px 4px 0;
    font-size: 0.88em;
    color: #2a6e2a;
    margin-bottom: 16px;
}

.btn-register {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    background: var(--baltic-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s, opacity 0.2s;
    display: inline-block;
    text-align: center;
}

.btn-register:hover:not(:disabled) { background: var(--rich-cerulean); }
.btn-register:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-register.btn-blue { background: var(--baltic-blue); }
.btn-register.btn-block { display: block; text-decoration: none; }

.registration-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; text-align: center; }
.registration-footer p { margin: 10px 0; color: #666; }
.registration-footer a,
.signup-footer-text a { color: var(--sage-green); text-decoration: none; font-weight: 600; }
.registration-footer a:hover,
.signup-footer-text a:hover { text-decoration: underline; }

.registration-info {
    background: #e8f5e0;
    color: #000;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #d5e8cc;
}

.registration-info h2 { font-size: 2em; margin: 0 0 20px 0; color: #000; }
.registration-info p { font-size: 1.1em; margin: 0 0 20px 0; line-height: 1.5; color: #000; }
.registration-info ul { list-style: none; padding: 0; margin: 0; color: #000; }
.registration-info ul li { padding: 10px 0; padding-left: 25px; position: relative; color: #000; }
.registration-info ul li:before { content: "✓"; position: absolute; left: 0; font-weight: bold; font-size: 1.2em; color: var(--sage-green); }

#reg-step-2 { display: none; }

.reg-confirm-box {
    margin: 30px 0;
    padding: 20px;
    border: 2px solid var(--sage-green);
    border-radius: 8px;
    background: #f9fdfa;
}

.reg-confirm-box h2 { color: var(--sage-green); margin-top: 0; }
.reg-action-desc { margin-bottom: 25px; }
.form-group--divider { margin-top: 20px; border-bottom: 2px solid #eee; padding-bottom: 5px; }
.form-login-label { font-weight: bold; color: var(--sage-green); }
.reg-back-row { margin-top: 12px; text-align: center; }
#reg-back-btn { color: var(--sage-green); font-size: 0.9em; }
.reg-info-launch { margin-top: 15px; }
.reg-info-details-link { display: inline-block; margin-top: 12px; color: var(--sage-green); font-weight: 600; text-decoration: none; }

@media (max-width: 770px) {
    .registration-page-content { grid-template-columns: 1fr; }
    .registration-info { order: -1; padding: 30px 20px; }
    .registration-box { padding: 30px 20px; }
    .account-card-features { grid-template-columns: 1fr; gap: 20px; }
    .account-card-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
    .account-card-footer.centered { align-items: center; }
    .card-footer-actions { flex-direction: column; width: 100%; }
    .btn-signup { width: 100%; text-align: center; box-sizing: border-box; }
}