/* Main Single Layout */
.sem-single-wrapper {
    max-width: 900px;
    /* Reduced specific width for better reading experience in linear */
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sem-entry-title {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    color: #23282d;
    line-height: 1.2;
    text-align: center;
    /* Centered Title looks good in linear */
}

/* Linear Image */
.sem-main-image-wrapper {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: auto;
    /* Constraint height */
}

.sem-main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Linear Date */
.sem-meta-date {
    display: block;
    background: #f0f0f1;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 1rem;
    color: #555;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
    border-left: 4px solid #007cba;
}

/* Linear Content */
.sem-entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

/* Gallery Section */
.sem-gallery-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.sem-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.sem-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    /* Larger thumbs */
    gap: 15px;
}

.sem-thumb-item {
    aspect-ratio: 1/1;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.sem-thumb-item:hover {
    transform: scale(1.03);
    border-color: #007cba;
}

.sem-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Archive Layout */
.sem-archive-events,
.sem-archive-container {
    max-width: 1200px;
    margin: 30px auto;
}

/* Pagination: Centered Buttons */
.sem-pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sem-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    color: #444;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sem-pagination .page-numbers:hover {
    background: #f0f0f1;
    border-color: #ccc;
    color: #007cba;
}

.sem-pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.sem-pagination .next,
.sem-pagination .prev {
    font-weight: 700;
}

.sem-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sem-archive-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Light shadow */
    height: 100%;
}

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

.sem-archive-image-wrapper {
    position: relative;
    /* For Date Tag */
    height: 200px;
    background: #f1f1f1;
    overflow: hidden;
}

.sem-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sem-archive-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* Date Tag Styles - High Specificity */
.sem-date-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    min-width: 60px;
    z-index: 10;
}

.sem-date-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #007cba;
    line-height: 1;
}

.sem-date-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #555;
    margin-top: 3px;
}

.sem-archive-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sem-archive-title {
    font-size: 1.25rem;
	
    /* Larger Title */
/*     margin: 0 0 10px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
/*     line-height: 1.4; */
    max-width: 100%;
	padding-bottom:1px;
}

.sem-archive-title a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    /* Some themes use box-shadow for underline */
    color: #23282d;
    transition: color 0.2s;
}

.sem-archive-title a:hover {
    color: #007cba;
    text-decoration: none !important;
}

.sem-archive-content p,
.sem-archive-content {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Home Shortcode */
.sem-home-events-container,
.sem-home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.sem-home-column {
    flex: 1 1 400px;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.sem-column-title {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    color: #23282d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sem-home-list {
    flex-grow: 1;
}

.sem-home-footer {
    margin-top: 20px;
    text-align: right;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
}

.sem-home-event-card {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sem-home-event-card:last-child {
    border-bottom: none;
}

.sem-home-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    flex-shrink: 0;
}

.sem-home-day {
    font-size: 1.5rem;
    font-weight: 800;
    color: #007cba;
    line-height: 1;
}

.sem-home-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #555;
    margin-top: 2px;
}

/* Past events: greyed out style */
.sem-past-date {
    background: #f0f0f0;
    border-color: #ddd;
    opacity: 0.7;
}

.sem-past-date .sem-home-day {
    color: #777;
}

.sem-home-content {
    flex-grow: 1;
}

.sem-home-title {
    font-size: 1.3rem;
    margin: 0 0 5px;
    line-height: 1.3;
}

.sem-home-title a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #23282d;
    transition: color 0.2s;
}

.sem-home-title a:hover {
    color: #007cba;
    text-decoration: none !important;
}

.sem-btn-read-more {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #007cba;
    text-decoration: none !important;
    border: none !important;
    letter-spacing: 0.5px;
}

.sem-btn-read-more:hover {
    text-decoration: none !important;
    color: #005a8c;
    /* Darker blue on hover instead of underline */
}

/* Footer Buttons */
.sem-btn-main {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
    border: none;
}

.sem-btn-main:hover {
    background: #006ba1;
    color: #fff;
    text-decoration: none !important;
}

.sem-btn-outline {
    display: inline-block;
    background: transparent;
    border: 1px solid #007cba;
    color: #007cba;
    padding: 7px 15px;
    text-decoration: none !important;
    /* Force no underline */
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.sem-btn-outline:hover {
    background: #007cba;
    color: #fff;
    text-decoration: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    /* No special column overrides needed for linear layout */
}

/* Calendar Styles */
.sem-calendar-wrapper {
    max-width: 100%;
    margin: 20px 0;
    overflow-x: auto;
}

.sem-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 5px;
}

.sem-cal-title {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
	color:white;
}

.sem-cal-nav {
    text-decoration: none;
    color: #007cba;
    font-weight: 600;
}

.sem-calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

.sem-calendar-table th {
    background: #007cba;
    color: #fff;
    padding: 10px;
    text-align: center;
}

.sem-calendar-table td {
    height: 100px;
    /* cell height */
    vertical-align: top;
    border: 1px solid #ddd;
    padding: 5px;
    position: relative;
    width: 14.28%;
    /* 7 columns */
}

.sem-cal-day.sem-has-events {
    background-color: #fcfcfc;
}

.sem-day-number {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
    text-align: right;
}

.sem-day-events {
    font-size: 0.8rem;
}

.sem-cal-event-link {
    display: block;
    background: #e6f6ff;
    color: #007cba;
    margin-bottom: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sem-cal-event-link:hover {
    background: #007cba;
    color: #fff;
}

.sem-cal-empty {
    background: #f9f9f9;
}

/* Upcoming Section */
.sem-upcoming-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.sem-upcoming-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #23282d;
}

.sem-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.sem-upcoming-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s;
}

.sem-upcoming-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sem-upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f1;
    border-radius: 6px;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    flex-shrink: 0;
}

.sem-u-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007cba;
    line-height: 1;
}

.sem-u-month {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #666;
}

.sem-upcoming-info a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.sem-upcoming-info a:hover {
    color: #007cba;
}