/* Manage Street Teams - Modern Login Form Styles */

/* Login Container */
.mst-login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.mst-login-form {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.mst-login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
}

.mst-login-title {
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.5px;
}

/* Form Groups */
.mst-form-group {
    position: relative;
    margin-bottom: 24px;
}

.mst-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.mst-form-group input[type="text"],
.mst-form-group input[type="email"],
.mst-form-group input[type="password"] {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mst-form-group input[type="text"]:focus,
.mst-form-group input[type="email"]:focus,
.mst-form-group input[type="password"]:focus {
    outline: none;
    border-color: #04194e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
    transform: translateY(-1px);
}

/* Input icon and password toggle styles removed - using browser's built-in functionality */

/* Checkbox styling removed - remember me functionality removed */

/* Login Button */
.mst-login-btn {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    margin-top: 12px;
}

.mst-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 25, 78, 0.3);
}

.mst-login-btn:active {
    transform: translateY(-1px);
}

.mst-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.mst-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login footer and forgot password styles removed */

/* Messages */
#mst-login-messages {
    margin-bottom: 20px;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

#mst-login-messages.success {
    background-color: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
    display: block;
}

#mst-login-messages.error {
    background-color: #fff5f5;
    color: #742a2a;
    border: 1px solid #fc8181;
    display: block;
}

/* Logged In Content */
.mst-logged-in-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.mst-welcome-card {
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
    color: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(4, 25, 78, 0.3);
}

.mst-welcome-card h2 {
    margin: 0 0 16px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mst-welcome-card p {
    margin: 0 0 24px 0;
    font-size: 18px;
    opacity: 0.9;
}

.mst-user-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    backdrop-filter: blur(10px);
}

.mst-user-info p {
    margin: 0;
    font-size: 16px;
}

.mst-logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mst-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mst-login-container,
    .mst-logged-in-container {
        margin: 20px auto;
        padding: 15px;
    }
    
    .mst-login-form {
        padding: 30px 20px;
    }
    
    .mst-login-title {
        font-size: 24px;
    }
    
    .mst-welcome-card {
        padding: 30px 20px;
    }
    
    .mst-welcome-card h2 {
        font-size: 28px;
    }
    
    .mst-form-group input[type="text"],
    .mst-form-group input[type="email"],
    .mst-form-group input[type="password"] {
        padding: 14px 45px 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .mst-login-container,
    .mst-logged-in-container {
        margin: 10px;
        padding: 10px;
    }
    
    .mst-login-form {
        padding: 25px 15px;
    }
    
    .mst-welcome-card {
        padding: 25px 15px;
    }
    
    .mst-login-title {
        font-size: 22px;
    }
    
    .mst-welcome-card h2 {
        font-size: 24px;
    }
}

/* Animation for form appearance */
.mst-login-form {
    animation: slideInUp 0.6s ease-out;
}

.mst-welcome-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.mst-login-btn:focus,
.mst-logout-btn:focus {
    outline: 2px solid #04194e;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mst-login-form {
        border: 2px solid #000;
    }
    
    .mst-form-group input[type="text"],
    .mst-form-group input[type="email"],
    .mst-form-group input[type="password"] {
        border-color: #000;
    }
    
    .mst-login-btn {
        background: #000;
    }
}

/* Blog Functionality Styles */

/* Dashboard Actions */
.mst-dashboard-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.mst-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.mst-btn-primary {
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
    color: white;
}

.mst-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 25, 78, 0.3);
}

.mst-btn-secondary {
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.mst-btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.mst-btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.mst-btn-danger {
    background: #e53e3e;
    color: white;
}

.mst-btn-danger:hover {
    background: #c53030;
    transform: translateY(-1px);
}

/* Blog Form */
.mst-blog-form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    animation: slideInUp 0.6s ease-out;
}

.mst-blog-form-card h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #2d3748;
    font-weight: 700;
}

.mst-form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.mst-form-group textarea:focus {
    outline: none;
    border-color: #04194e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
}

.mst-form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mst-form-group select:focus {
    outline: none;
    border-color: #04194e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
}

.mst-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* Image Upload Styles */
.mst-image-upload-container {
    position: relative;
}

.mst-image-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mst-image-upload-area:hover {
    border-color: #04194e;
    background: #f0f4ff;
}

.mst-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mst-upload-icon {
    font-size: 48px;
    opacity: 0.6;
}

.mst-upload-placeholder p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #4a5568;
}

.mst-upload-placeholder small {
    color: #718096;
    font-size: 14px;
}

.mst-image-preview {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.mst-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.mst-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.mst-remove-image:hover {
    background: rgba(220, 38, 38, 0.8);
}

/* My Blogs */
.mst-my-blogs-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    animation: slideInUp 0.6s ease-out;
}

.mst-my-blogs-card h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #2d3748;
    font-weight: 700;
}

/* Blog filter header */
.mst-blog-header-filter {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.mst-blog-header-filter h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #2d3748;
    font-weight: 700;
}

.mst-blog-header-filter p {
    margin: 0;
    font-size: 14px;
}

.mst-blog-header-filter a {
    color: #04194e;
    text-decoration: none;
    font-weight: 600;
}

.mst-blog-header-filter a:hover {
    text-decoration: underline;
}

.mst-no-blogs {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    margin: 40px 0;
}

.mst-no-blogs-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.mst-no-blogs h3 {
    font-size: 28px;
    color: #2d3748;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.mst-no-blogs > p {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 32px 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mst-no-blogs-suggestions {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 32px auto;
    max-width: 500px;
    border: 1px solid #e2e8f0;
}

.mst-no-blogs-suggestions h4 {
    color: #2d3748;
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.mst-no-blogs-suggestions ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.mst-no-blogs-suggestions li {
    padding: 8px 0;
    color: #4a5568;
    font-size: 16px;
    border-bottom: 1px solid #f7fafc;
}

.mst-no-blogs-suggestions li:last-child {
    border-bottom: none;
}

.mst-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.mst-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(4, 25, 78, 0.3);
    color: white;
    text-decoration: none;
}

.mst-filter-note {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: 8px;
    margin-top: 24px;
    font-size: 14px;
}

.mst-filter-note a {
    color: #04194e;
    text-decoration: none;
    font-weight: 600;
}

.mst-filter-note a:hover {
    text-decoration: underline;
}

/* Mobile adjustments for no-blogs content */
@media (max-width: 768px) {
    .mst-no-blogs {
        padding: 32px 20px;
        margin: 20px 0;
    }
    
    .mst-no-blogs-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .mst-no-blogs h3 {
        font-size: 24px;
    }
    
    .mst-no-blogs > p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .mst-no-blogs-suggestions {
        padding: 20px;
        margin: 24px auto;
    }
}

@media (max-width: 480px) {
    .mst-no-blogs {
        padding: 24px 16px;
    }
    
    .mst-no-blogs-icon {
        font-size: 40px;
    }
    
    .mst-no-blogs h3 {
        font-size: 20px;
    }
    
    .mst-no-blogs > p {
        font-size: 14px;
    }
    
    .mst-cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

.mst-blogs-list {
    display: grid;
    gap: 20px;
}

.mst-blog-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.mst-blog-thumbnail {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8fafc;
}

.mst-blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mst-blog-item:hover {
    border-color: #04194e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 25, 78, 0.1);
}

.mst-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.mst-blog-header h4 {
    margin: 0;
    font-size: 18px;
    color: #2d3748;
    flex: 1;
}

.mst-blog-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mst-status-draft {
    background: #fed7d7;
    color: #742a2a;
}

.mst-status-published {
    background: #c6f6d5;
    color: #22543d;
}

.mst-blog-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mst-blog-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mst-blog-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Public Blog List */
.mst-blog-list {
    display: grid;
    gap: 30px;
}

.mst-blog-preview {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 30px;
}

.mst-blog-preview:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mst-blog-preview h2 {
    margin: 0 0 12px 0;
    font-size: 28px;
    line-height: 1.3;
}

.mst-blog-preview h2 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mst-blog-preview h2 a:hover {
    color: #04194e;
}

.mst-read-more {
    display: inline-block;
    color: #04194e;
    text-decoration: none;
    font-weight: 600;
    margin-top: 12px;
    transition: color 0.3s ease;
}

.mst-read-more:hover {
    color: #5a67d8;
}

/* Single Blog */
.mst-single-blog {
    max-width: 800px;
    margin: 0 auto;
}

.mst-blog-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.mst-single-blog h1 {
    font-size: 48px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #2d3748;
    font-weight: 800;
}

.mst-blog-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.mst-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mst-blog-featured-image {
    width: 100%;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mst-blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.mst-blog-content {
    line-height: 1.8;
    font-size: 18px;
    color: #2d3748;
}

.mst-blog-content h2,
.mst-blog-content h3,
.mst-blog-content h4 {
    margin: 32px 0 16px 0;
    color: #1a202c;
}

.mst-blog-content h2 {
    font-size: 32px;
}

.mst-blog-content h3 {
    font-size: 24px;
}

.mst-blog-content h4 {
    font-size: 20px;
}

.mst-blog-content p {
    margin: 0 0 20px 0;
}

.mst-blog-content ul,
.mst-blog-content ol {
    margin: 0 0 20px 20px;
}

.mst-blog-content blockquote {
    border-left: 4px solid #04194e;
    padding: 16px 24px;
    margin: 24px 0;
    background: #f8fafc;
    font-style: italic;
    color: #4a5568;
}

/* Responsive Design for Blogs */
@media (max-width: 768px) {
    .mst-dashboard-actions {
        flex-direction: column;
    }
    
    .mst-blog-form-card,
    .mst-my-blogs-card {
        padding: 20px;
    }
    
    .mst-blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .mst-blog-actions {
        justify-content: flex-start;
    }
    
    .mst-single-blog h1 {
        font-size: 36px;
    }
    
    .mst-blog-content {
        font-size: 16px;
    }
    
    .mst-blog-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .mst-single-blog h1 {
        font-size: 28px;
    }
    
    .mst-blog-preview h2 {
        font-size: 24px;
    }
    
    .mst-blog-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Dashboard Styles */
.mst-dashboard-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mst-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(4, 25, 78, 0.3);
}

.mst-dashboard-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.mst-admin-context {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mst-admin-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mst-managed-team {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.mst-team-context-header {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mst-team-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mst-team-selector label {
    color: white;
    font-weight: 500;
    margin: 0;
}

.mst-team-selector select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: #333;
    font-size: 14px;
    min-width: 200px;
}

.mst-current-team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mst-team-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.mst-current-team strong {
    color: white;
    font-size: 16px;
}

/* Admin Team Selection */
.mst-admin-team-selection {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.mst-admin-team-selection .mst-form-group {
    margin-bottom: 20px;
}

.mst-admin-team-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.mst-admin-team-selection select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
}

.mst-admin-team-selection select:focus {
    outline: none;
    border-color: #04194e;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
}

.mst-admin-team-selection optgroup {
    font-weight: bold;
    color: #666;
}

.mst-admin-team-selection option {
    padding: 8px;
    font-weight: normal;
}

.mst-no-teams {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Stats Header */
.mst-stats-header {
    text-align: center;
    margin-bottom: 20px;
}

.mst-stats-header h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.mst-stats-subtitle {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.mst-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mst-stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mst-stat-card:hover {
    transform: translateY(-4px);
}

.mst-stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.mst-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.mst-stat-label {
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.mst-dashboard-messages {
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: none;
}

.mst-dashboard-messages.success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.mst-dashboard-messages.error {
    background: #fff5f5;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.mst-dashboard-messages.loading {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mst-dashboard-messages .mst-spinner {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Team Management Styles */
.mst-team-selection {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.mst-team-selection h3 {
    color: #2d3748;
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
}

.mst-team-selection p {
    color: #4a5568;
    margin: 0 0 24px 0;
    font-size: 16px;
}

.mst-team-selection-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mst-team-selection-form select {
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.mst-team-context {
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.mst-current-team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mst-team-label {
    opacity: 0.9;
    font-size: 16px;
}

.mst-current-team strong {
    font-size: 18px;
    font-weight: 700;
}

.mst-current-team .mst-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    font-size: 12px;
}

.mst-current-team .mst-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Team Header Styles */
.mst-team-header {
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
    color: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mst-team-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.mst-team-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mst-team-info {
    padding: 2rem;
}

.mst-team-name {
    font-size: 2.5em;
    margin: 0 0 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mst-team-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.mst-team-location,
.mst-team-parish,
.mst-team-leader {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.mst-team-icon {
    font-size: 1.2em;
}

.mst-team-diocese {
    opacity: 0.8;
    font-style: italic;
    margin-left: 0.5rem;
}

.mst-team-description {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    line-height: 1.6;
}

.mst-team-description p {
    margin-bottom: 1rem;
}

.mst-team-description p:last-child {
    margin-bottom: 0;
}

.mst-filter-subheader {
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
    font-size: 1.3em;
}

/* Responsive Team Header */
/* Responsive Dashboard */
@media (max-width: 768px) {
    .mst-dashboard-container {
        margin: 10px;
        padding: 10px;
    }
    
    .mst-dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }
    
    .mst-dashboard-header h1 {
        font-size: 24px;
    }
    
    .mst-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mst-stat-card {
        padding: 20px;
    }
    
    .mst-stat-number {
        font-size: 28px;
    }
    
    .mst-dashboard-actions {
        flex-direction: column;
    }
    
    .mst-team-name {
        font-size: 2em;
    }
    
    .mst-team-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mst-team-info {
        padding: 1.5rem;
    }
    
    .mst-team-banner {
        height: 150px;
    }
    
    .mst-image-upload-area {
        min-height: 150px;
        padding: 16px;
    }
    
    .mst-upload-icon {
        font-size: 36px;
    }
    
    .mst-upload-placeholder p {
        font-size: 14px;
    }
    
    .mst-image-preview {
        height: 150px;
    }
    
    .mst-team-selection {
        padding: 24px 16px;
    }
    
    .mst-team-selection h3 {
        font-size: 20px;
    }
    
    .mst-team-selection-form {
        flex-direction: column;
        gap: 16px;
    }
    
    .mst-team-selection-form select {
        min-width: 100%;
    }
    
    .mst-current-team {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .mst-team-context {
        padding: 16px;
    }
    
    .mst-blog-featured-image {
        margin: 16px 0;
        border-radius: 8px;
    }
    
    .mst-blog-featured-image img {
        max-height: 250px;
    }
}

/* Event Styles */

/* Dashboard Tabs */
.mst-dashboard-tabs {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mst-tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.mst-tab-btn.active {
    background: linear-gradient(135deg, #04194e 0%, #0a2f63 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(4, 25, 78, 0.3);
    transform: translateY(-1px);
}

.mst-tab-btn:hover:not(.active) {
    background: #e2e8f0;
    color: #4a5568;
}

.mst-tab-content {
    animation: slideInUp 0.6s ease-out;
}

/* Event Form */
.mst-event-form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    animation: slideInUp 0.6s ease-out;
}

.mst-event-form-card h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #2d3748;
    font-weight: 700;
}

.mst-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.mst-form-group input[type="datetime-local"],
.mst-form-group input[type="number"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mst-form-group input[type="datetime-local"]:focus,
.mst-form-group input[type="number"]:focus {
    outline: none;
    border-color: #04194e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
}

/* My Events */
.mst-my-events-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 20px;
    animation: slideInUp 0.6s ease-out;
}

.mst-my-events-card h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #2d3748;
    font-weight: 700;
}

.mst-no-events {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    margin: 20px 0;
}

.mst-events-list {
    display: grid;
    gap: 20px;
}

.mst-event-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.mst-event-item:hover {
    border-color: #04194e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 25, 78, 0.1);
}

.mst-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.mst-event-header h4 {
    margin: 0;
    font-size: 20px;
    color: #2d3748;
    flex: 1;
    font-weight: 700;
}

.mst-event-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mst-status-scheduled {
    background: #bee3f8;
    color: #2a69ac;
}

.mst-status-cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.mst-status-completed {
    background: #c6f6d5;
    color: #22543d;
}

.mst-event-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mst-event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mst-event-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 15px;
}

.mst-event-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Event Type Colors */
.mst-event-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mst-event-type[data-type="outreach"] {
    background: #e6fffa;
    color: #234e52;
}

.mst-event-type[data-type="training"] {
    background: #fef5e7;
    color: #744210;
}

.mst-event-type[data-type="prayer"] {
    background: #f0fff4;
    color: #22543d;
}

.mst-event-type[data-type="social"] {
    background: #fed7fd;
    color: #553c9a;
}

.mst-event-type[data-type="other"] {
    background: #edf2f7;
    color: #4a5568;
}

/* Public Events List */
.mst-events-list-public {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}

.mst-no-events-public {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    margin: 40px 0;
}

.mst-no-events-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.mst-no-events-public h3 {
    font-size: 28px;
    color: #2d3748;
    margin: 0 0 16px 0;
    font-weight: 700;
}

.mst-no-events-public p {
    font-size: 18px;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.mst-event-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.mst-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
    border-color: #04194e;
}

.mst-event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

.mst-event-card h3 {
    margin: 0;
    font-size: 22px;
    color: #2d3748;
    font-weight: 700;
    flex: 1;
    line-height: 1.3;
}

.mst-event-card-meta {
    margin-bottom: 16px;
}

.mst-event-date {
    color: #04194e;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mst-event-location {
    color: #718096;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mst-event-card-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
}

.mst-event-card-description p {
    margin: 0 0 12px 0;
}

.mst-event-card-description p:last-child {
    margin-bottom: 0;
}

.mst-event-card-actions {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Google Calendar Button Special Styling */
.mst-btn-calendar {
    background: linear-gradient(45deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mst-btn-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    color: white;
    text-decoration: none;
}

.mst-btn-calendar::before {
    content: '📅';
    font-size: 16px;
}

/* Responsive Events */
@media (max-width: 768px) {
    .mst-dashboard-tabs {
        margin-bottom: 20px;
    }
    
    .mst-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .mst-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mst-event-form-card,
    .mst-my-events-card {
        padding: 20px;
    }
    
    .mst-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .mst-event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .mst-event-actions {
        justify-content: flex-start;
    }
    
    .mst-event-card {
        padding: 20px;
    }
    
    .mst-event-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .mst-event-card h3 {
        font-size: 20px;
    }
    
    .mst-event-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .mst-btn-calendar {
        padding: 12px 20px;
        font-size: 14px;
        justify-content: center;
    }
    
    .mst-no-events-public {
        padding: 32px 20px;
        margin: 20px 0;
    }
    
    .mst-no-events-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .mst-no-events-public h3 {
        font-size: 24px;
    }
    
    .mst-no-events-public p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .mst-dashboard-tabs {
        padding: 6px;
    }
    
    .mst-tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mst-event-form-card,
    .mst-my-events-card {
        padding: 16px;
    }
    
    .mst-event-card {
        padding: 16px;
    }
    
    .mst-event-card h3 {
        font-size: 18px;
    }
    
    .mst-event-date {
        font-size: 14px;
    }
    
    .mst-event-location {
        font-size: 13px;
    }
    
    .mst-no-events-public {
        padding: 24px 16px;
    }
    
    .mst-no-events-icon {
        font-size: 40px;
    }
    
    .mst-no-events-public h3 {
        font-size: 20px;
    }
    
    .mst-no-events-public p {
        font-size: 14px;
    }
}

/* Google Places Autocomplete Styling */
.pac-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pac-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.pac-item:hover {
    background-color: #f8fafc;
}

.pac-item-selected {
    background-color: #04194e !important;
    color: white;
}

.pac-item-query {
    font-weight: 600;
    color: #2d3748;
}

.pac-item-selected .pac-item-query {
    color: white;
}

.pac-matched {
    font-weight: 700;
    color: #04194e;
}

.pac-item-selected .pac-matched {
    color: white;
}

.pac-icon {
    margin-right: 8px;
    color: #718096;
}

.pac-item-selected .pac-icon {
    color: white;
}

/* Location input with autocomplete styling */
#mst-event-location {
    position: relative;
}

#mst-event-location.pac-target-input {
    border-color: #04194e;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
}

/* Loading indicator for autocomplete */
.mst-location-loading {
    position: relative;
}

.mst-location-loading::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #04194e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Fix autocomplete z-index issues */
.pac-container {
    z-index: 10000 !important;
}

/* Mobile responsiveness for autocomplete */
@media (max-width: 768px) {
    .pac-container {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .pac-item {
        padding: 14px 16px;
    }
}

/* Team Members Management Styles */
.mst-team-members-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mst-team-selector {
    margin-bottom: 30px;
}

.mst-team-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.mst-team-selector select {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.2s ease;
}

.mst-team-selector select:focus {
    outline: none;
    border-color: #04194e;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
}

#mst-team-members-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.mst-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.mst-members-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 24px;
}

.mst-members-list {
    min-height: 200px;
}

.mst-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mst-member-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.mst-member-item:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mst-member-info h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 18px;
}

.mst-member-email {
    color: #718096;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.mst-member-joined {
    color: #a0aec0;
    font-size: 13px;
    margin: 0;
}

.mst-member-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Add Member Form */
#mst-add-member-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

#mst-add-member-form h4 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 20px;
}

#mst-new-member-form .mst-form-group {
    margin-bottom: 20px;
}

#mst-new-member-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

#mst-new-member-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

#mst-new-member-form input:focus {
    outline: none;
    border-color: #04194e;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
}

.mst-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Messages */
#mst-members-messages {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    display: none;
}

#mst-members-messages.success {
    background-color: #c6f6d5;
    color: #2a4e3c;
    border: 1px solid #9ae6b4;
}

#mst-members-messages.error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Loading States */
.mst-loading {
    text-align: center;
    color: #718096;
    font-size: 16px;
    padding: 40px;
}

.mst-loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #04194e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* No Members State */
.mst-no-members {
    text-align: center;
    color: #718096;
    font-size: 16px;
    padding: 40px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

/* Error States */
.mst-error {
    color: #e53e3e;
    text-align: center;
    padding: 20px;
}

/* Small Button Variant */
.mst-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mst-members-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .mst-members-grid {
        grid-template-columns: 1fr;
    }
    
    #mst-team-members-content {
        padding: 20px;
    }
    
    .mst-form-actions {
        flex-direction: column;
    }
    
    .mst-form-actions button {
        width: 100%;
    }
}

/* Modal Styles */
.mst-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.mst-modal {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.mst-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mst-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.mst-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mst-modal-close:hover {
    color: #333;
}

.mst-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Teams Management Styles */
.mst-teams-management {
    padding: 10px 0;
}

.mst-teams-search {
    margin-bottom: 20px;
}

.mst-teams-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mst-teams-stats {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.mst-teams-stats p {
    margin: 0;
    color: #666;
}

.mst-admin-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.mst-state-group {
    margin-bottom: 30px;
}

.mst-state-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
    color: #333;
    font-size: 1.2rem;
}

.mst-count {
    color: #666;
    font-weight: normal;
    font-size: 0.9em;
}

.mst-teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mst-team-item {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.2s ease;
}

.mst-team-item:hover {
    border-color: var(--mst-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mst-team-name {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #333;
}

.mst-team-location,
.mst-team-parish,
.mst-team-leader {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.mst-team-status {
    margin: 10px 0;
}

.mst-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mst-badge-warning {
    background: #ffc107;
    color: #856404;
}

.mst-team-actions {
    margin-top: 15px;
}

.mst-btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.mst-btn-danger {
    background: #dc3545;
    color: white;
}

.mst-btn-danger:hover {
    background: #c82333;
}

.mst-btn-success {
    background: #28a745;
    color: white;
}

/* Loading Overlay */
.mst-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.mst-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--mst-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .mst-modal {
        max-width: 100%;
        margin: 10px;
    }
    
    .mst-teams-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog List Pagination Styles */
.mst-pagination {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.mst-pagination-info {
    margin-bottom: 1rem;
    color: #718096;
    font-size: 0.9rem;
}

.mst-pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mst-page-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    min-width: 2.5rem;
    text-align: center;
    text-decoration: none;
    color: #4a5568;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mst-page-link:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
    text-decoration: none;
}

.mst-page-link.mst-page-current {
    background: var(--mst-primary, #04194e);
    color: white;
    border-color: var(--mst-primary, #04194e);
    cursor: default;
}

.mst-page-link.mst-page-first,
.mst-page-link.mst-page-last,
.mst-page-link.mst-page-prev,
.mst-page-link.mst-page-next {
    font-weight: 600;
}

.mst-page-ellipsis {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    color: #a0aec0;
    font-weight: bold;
}

/* Responsive pagination */
@media (max-width: 640px) {
    .mst-pagination-links {
        gap: 0.25rem;
    }
    
    .mst-page-link {
        padding: 0.4rem 0.6rem;
        min-width: 2rem;
        font-size: 0.8rem;
    }
    
    .mst-page-link.mst-page-first,
    .mst-page-link.mst-page-last {
        display: none; /* Hide first/last on mobile */
    }
}

@media (max-width: 480px) {
    .mst-pagination-info {
        font-size: 0.8rem;
    }
    
    .mst-pagination-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .mst-pagination-links > * {
        margin: 0;
    }
}

/* Events Modal Styles */
.mst-events-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.mst-events-modal .mst-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.mst-events-modal .mst-modal-header {
    background: linear-gradient(135deg, var(--mst-primary, #04194e) 0%, #0a2f63 100%);
    color: white;
    padding: 1.5rem 2rem;
    position: relative;
}

.mst-events-modal .mst-modal-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mst-modal-icon {
    font-size: 1.75rem;
}

.mst-modal-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    font-weight: 400;
}

.mst-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mst-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mst-events-modal .mst-modal-body {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    padding: 0;
}

.mst-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #718096;
}

.mst-modal-loading p {
    margin: 1rem 0 0;
    font-size: 1rem;
}

.mst-modal-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #718096;
}

.mst-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.mst-modal-empty h3 {
    margin: 0 0 1rem;
    color: #4a5568;
    font-size: 1.25rem;
}

.mst-modal-empty p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.mst-modal-error {
    text-align: center;
    padding: 2rem;
    color: #e53e3e;
    background: #fed7d7;
    margin: 1rem;
    border-radius: 8px;
}

.mst-events-modal-list {
    padding: 1rem 0;
}

.mst-event-modal-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 1.5rem;
    transition: background-color 0.2s ease;
}

.mst-event-modal-card:hover {
    background: #f7fafc;
}

.mst-event-modal-card:last-child {
    border-bottom: none;
}

.mst-event-modal-date {
    background: var(--mst-primary, #04194e);
    color: white;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mst-event-modal-day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.mst-event-modal-month {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.mst-event-modal-year {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.mst-event-modal-details {
    flex: 1;
    min-width: 0;
}

.mst-event-modal-title {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.mst-event-modal-meta {
    margin-bottom: 1rem;
}

.mst-event-modal-meta > div {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.mst-event-modal-meta > div:last-child {
    margin-bottom: 0;
}

.mst-modal-meta-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.mst-event-modal-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.mst-event-modal-description p {
    margin: 0 0 1rem;
}

.mst-event-modal-description p:last-child {
    margin-bottom: 0;
}

/* Button styles for modal trigger */
.mst-events-modal-btn {
    background: none !important;
    border: none !important;
    color: inherit !important;
    cursor: pointer;
    font-size: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mst-events-modal-btn:hover {
    color: var(--mst-primary, #04194e) !important;
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .mst-events-modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .mst-events-modal .mst-modal-content {
        max-height: 95vh;
    }
    
    .mst-events-modal .mst-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .mst-events-modal .mst-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .mst-modal-close {
        top: 0.75rem;
        right: 1rem;
    }
    
    .mst-event-modal-card {
        padding: 1rem 1.5rem;
        gap: 1rem;
    }
    
    .mst-event-modal-date {
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .mst-event-modal-day {
        font-size: 1.5rem;
    }
    
    .mst-event-modal-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .mst-event-modal-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .mst-event-modal-date {
        min-width: auto;
        width: 100px;
    }
    
    .mst-event-modal-details {
        width: 100%;
    }
} 
/* ============================================================
   SPSE Brand Polish — 2026-06 redesign (navy #04194e / gold #c6a24f)
   Appended last so these rules win ties with the base styles above.
   ============================================================ */

/* Inline SVG icons (replace old emoji) */
.mst-svgi{width:1em;height:1em;display:inline-block;vertical-align:-0.125em;margin-right:.4em;flex-shrink:0;}
.mst-stat-icon .mst-svgi,.mst-empty-icon .mst-svgi,.mst-no-events-icon .mst-svgi,.mst-no-blogs-icon .mst-svgi,.mst-upload-icon .mst-svgi{width:1em;height:1em;margin-right:0;}
.mst-stat-icon{color:#c6a24f;font-size:34px;line-height:1;}
.mst-empty-icon,.mst-no-events-icon,.mst-no-blogs-icon{color:#c8cede;font-size:44px;line-height:1;}
.mst-upload-icon{color:#9aa3b8;font-size:34px;}
.mst-team-icon .mst-svgi,.mst-icon .mst-svgi,.mst-social-icon .mst-svgi,.mst-modal-meta-icon .mst-svgi{margin-right:0;}
.mst-leader-avatar .mst-svgi{margin-right:0;width:1em;height:1em;}

/* Typography */
.mst-login-container,.mst-dashboard-container,.mst-logged-in-container,.mst-team-members-container,.mst-teams-management{font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;}
.mst-login-title,.mst-welcome-card h2{color:#04194e;letter-spacing:-0.3px;}

/* Login card */
.mst-login-form{border-radius:18px;box-shadow:0 8px 32px rgba(4,25,78,0.12);border:1px solid #e8ebf2;}
.mst-login-form::before{background:#c6a24f;height:4px;}
.mst-form-group input[type="text"],.mst-form-group input[type="email"],.mst-form-group input[type="password"]{border-radius:10px;border:2px solid #e2e8f0;background:#fbfcfe;}
.mst-form-group input:focus{border-color:#c6a24f !important;box-shadow:0 0 0 3px rgba(198,162,79,0.18) !important;background:#fff;}
.mst-login-btn{background:#04194e;border-radius:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;font-size:14px;box-shadow:0 4px 14px rgba(4,25,78,0.25);}
.mst-login-btn:hover{background:#c6a24f;color:#04194e;box-shadow:0 6px 18px rgba(198,162,79,0.35);}

/* Welcome banner */
.mst-welcome-card{background:linear-gradient(120deg,#04194e 0%,#0a2f63 100%);border-radius:16px;box-shadow:0 8px 28px rgba(4,25,78,0.25);border-left:4px solid #c6a24f;}
.mst-welcome-card h2{color:#ffffff;}
.mst-welcome-card p{color:rgba(255,255,255,0.75);}
.mst-admin-badge{background:#c6a24f;color:#04194e;font-weight:700;letter-spacing:1px;border-radius:6px;}
.mst-current-team{background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.25);border-radius:8px;color:#fff;}

/* Stats */
.mst-stats-header h4,.mst-stats-header{color:#04194e;}
.mst-stat-card{border-radius:14px;border:1px solid #e8ebf2;box-shadow:0 4px 16px rgba(4,25,78,0.06);}
.mst-stat-card:hover{box-shadow:0 8px 24px rgba(4,25,78,0.12);transform:translateY(-2px);}
.mst-stat-number{color:#04194e;font-weight:800;}
.mst-stat-label{color:#7a829a;letter-spacing:1.2px;}

/* Tabs */
.mst-dashboard-tabs{background:#eef1f7;border-radius:12px;padding:5px;gap:4px;}
.mst-tab-btn{border-radius:9px;color:#4a5568;font-weight:600;display:inline-flex;align-items:center;justify-content:center;}
.mst-tab-btn:hover{color:#04194e;background:rgba(255,255,255,0.7);}
.mst-tab-btn.active{background:#04194e;color:#fff;box-shadow:0 3px 10px rgba(4,25,78,0.25);}

/* Buttons */
.mst-btn{border-radius:9px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;}
.mst-btn-primary{background:#04194e;box-shadow:0 3px 10px rgba(4,25,78,0.2);}
.mst-btn-primary:hover{background:#c6a24f;color:#04194e;box-shadow:0 5px 14px rgba(198,162,79,0.35);}
.mst-btn-secondary{background:#fff;color:#04194e;border:2px solid #d6dbe8;}
.mst-btn-secondary:hover{border-color:#04194e;background:#f6f8fc;color:#04194e;}
.mst-btn-success{background:#1d7a4f;}
.mst-btn-success:hover{background:#16613e;}

/* Cards & lists */
.mst-blog-form-card,.mst-event-form-card,.mst-blog-item,.mst-event-item,.mst-event-card,.mst-team-item,.mst-welcome-card,.mst-admin-team-selection{border-radius:14px;}
.mst-blog-item,.mst-event-item,.mst-event-card,.mst-team-item{border:1px solid #e8ebf2;box-shadow:0 3px 12px rgba(4,25,78,0.05);transition:box-shadow .2s ease,transform .2s ease;}
.mst-blog-item:hover,.mst-event-item:hover,.mst-event-card:hover,.mst-team-item:hover{box-shadow:0 8px 22px rgba(4,25,78,0.10);transform:translateY(-2px);}
.mst-admin-team-selection{background:#f6f8fc;border:1px solid #e2e7f0;}
.mst-admin-team-selection h3{color:#04194e;display:flex;align-items:center;justify-content:center;}

/* Status badges */
.mst-status-published{background:#e7f6ee;color:#1d7a4f;border-radius:20px;font-weight:700;}
.mst-status-draft{background:#fdf3df;color:#9a7423;border-radius:20px;font-weight:700;}
.mst-status-scheduled{background:#e8eefb;color:#2a4a9b;border-radius:20px;font-weight:700;}
.mst-status-cancelled{background:#fdeaea;color:#b3403a;border-radius:20px;font-weight:700;}
.mst-status-completed{background:#eef1f7;color:#5a6378;border-radius:20px;font-weight:700;}
.mst-tag{background:#f3eede;color:#79602a;border-radius:14px;}

/* Tables / member lists accent */
.mst-team-banner{background:linear-gradient(120deg,#04194e,#0a2f63);border-radius:14px;}

/* Modal */
.mst-events-modal{border-radius:16px;}
.mst-event-modal-date{background:#04194e;border-radius:10px;}
.mst-event-modal-day{color:#c6a24f;}
.mst-events-modal-btn{background:#04194e;border-radius:9px;}
.mst-events-modal-btn:hover{background:#c6a24f;color:#04194e;}

/* Loading */
.mst-spinner,.mst-loading-spinner{border-top-color:#c6a24f !important;}

/* Focus visibility */
.mst-btn:focus-visible,.mst-tab-btn:focus-visible,.mst-login-btn:focus-visible{outline:3px solid rgba(198,162,79,0.5);outline-offset:2px;}

/* Polish fixes v2 */
.mst-dashboard-header h1{color:#ffffff !important;letter-spacing:-0.3px;}
.mst-dashboard-header p{color:rgba(255,255,255,0.78);}
.mst-dashboard-header{border-radius:16px;border-left:4px solid #c6a24f;box-shadow:0 8px 28px rgba(4,25,78,0.25);}
.mst-logout-btn{background:transparent;border:2px solid rgba(255,255,255,0.45);color:#ffffff;border-radius:9px;font-weight:700;}
.mst-logout-btn:hover{background:#c6a24f;border-color:#c6a24f;color:#04194e;}
.mst-admin-context{color:rgba(255,255,255,0.85);}

/* ============================================================
   SPSE Editorial layer — public blog pages (Substack-style)
   /team-blogs/ list + /team-blog/?id= single. Appended last.
   ============================================================ */

/* Team header on blog list pages */
.mst-blogs-list .mst-team-header{background:linear-gradient(120deg,#04194e 0%,#0a2f63 100%);border-radius:18px;border-bottom:4px solid #c6a24f;box-shadow:0 10px 32px rgba(4,25,78,0.20);}
.mst-blogs-list .mst-team-header .mst-team-name{font-family:Georgia,'Times New Roman',serif;color:#ffffff !important;font-size:2.2em;text-shadow:none;}
.mst-blogs-list .mst-team-header .mst-team-details{color:rgba(255,255,255,0.85);}
.mst-blogs-list .mst-team-header .mst-team-icon{color:#c6a24f;}
.mst-blogs-list .mst-team-header .mst-team-description{color:rgba(255,255,255,0.85);line-height:1.7;}
.mst-blogs-list .mst-team-header .mst-team-diocese{color:rgba(255,255,255,0.6);}
.mst-blogs-list > h2{font-family:Georgia,'Times New Roman',serif;color:#04194e !important;font-size:1.6em;margin:2rem 0 1rem;}

/* Post list — Substack style */
.mst-blog-preview{padding:1.7rem 0 !important;margin:0 !important;border:none !important;border-bottom:1px solid #e9e6dc !important;background:transparent !important;box-shadow:none !important;border-radius:0 !important;}
.mst-blog-preview h2{margin:0 0 .4rem !important;}
.mst-blog-preview h2 a{font-family:Georgia,'Times New Roman',serif;font-size:1.45rem;line-height:1.3;font-weight:700;color:#1c2436 !important;text-decoration:none;}
.mst-blog-preview h2 a:hover{color:#04194e !important;text-decoration:underline;text-decoration-color:#c6a24f;text-decoration-thickness:2px;text-underline-offset:4px;}
.mst-blog-preview .mst-blog-meta{color:#9aa0ad !important;font-size:.85em;display:flex;gap:1rem;margin-bottom:.55rem;}
.mst-blog-preview .mst-blog-excerpt{color:#5a6070 !important;line-height:1.65;font-size:1em;margin:0 0 .6rem;}
.mst-read-more{color:#04194e !important;font-weight:700;font-size:.9em;text-decoration:none !important;border-bottom:2px solid #c6a24f;padding-bottom:1px;}
.mst-read-more:hover{color:#c6a24f !important;}

/* Pagination */
.mst-pagination{margin-top:2.2rem;text-align:center;}
.mst-pagination-info{color:#9aa0ad;font-size:.85em;margin-bottom:.8rem;}
.mst-pagination-links{display:flex;gap:.4rem;justify-content:center;flex-wrap:wrap;}
.mst-page-link{display:inline-block;padding:.5rem .85rem;border:1px solid #e0dccd;border-radius:8px;color:#04194e !important;font-weight:600;font-size:.9em;text-decoration:none !important;}
a.mst-page-link:hover{border-color:#04194e;}
.mst-page-current{background:#04194e;color:#fff !important;border-color:#04194e;}

/* Single post — centered article column */
.mst-single-blog{max-width:740px;margin:0 auto;font-family:'Open Sans',-apple-system,sans-serif;}
.mst-back-to-team{display:inline-block;color:#04194e !important;font-weight:700;font-size:.9em;text-decoration:none !important;border-bottom:2px solid #c6a24f;margin-bottom:1.6rem;}
.mst-back-to-team:hover{color:#c6a24f !important;}
.mst-single-blog .mst-blog-header{background:transparent !important;border:none !important;padding:0 !important;margin-bottom:1.6rem;box-shadow:none !important;}
.mst-single-blog .mst-blog-header h1{font-family:Georgia,'Times New Roman',serif;font-size:2.5em;line-height:1.18;color:#1c2436 !important;font-weight:700;margin:0 0 .8rem;text-align:left;}
.mst-single-blog .mst-blog-meta{display:flex;gap:1.1rem;color:#9aa0ad !important;font-size:.92em;border-bottom:1px solid #e9e6dc;padding-bottom:1.3rem;}
.mst-single-blog .mst-blog-featured-image{margin:0 0 1.8rem;border-radius:16px;overflow:hidden;}
.mst-single-blog .mst-blog-featured-image img{width:100%;height:auto;display:block;}
.mst-single-blog .mst-blog-content{font-size:1.16em;line-height:1.85;color:#2f3440;}
.mst-single-blog .mst-blog-content p{margin:0 0 1.35em;}
.mst-single-blog .mst-blog-content h2,.mst-single-blog .mst-blog-content h3{font-family:Georgia,'Times New Roman',serif;color:#04194e !important;margin:1.6em 0 .6em;}
.mst-single-blog .mst-blog-content a{color:#04194e;border-bottom:2px solid #c6a24f;text-decoration:none;}
.mst-single-blog .mst-blog-content blockquote{border-left:4px solid #c6a24f;background:#f8f6f0;margin:1.5em 0;padding:1em 1.4em;border-radius:0 12px 12px 0;color:#4a4f5d;font-style:italic;}
.mst-single-blog .mst-blog-content img{max-width:100%;height:auto;border-radius:12px;}

/* Empty state + CTA */
.mst-no-blogs{text-align:center;background:#f8f6f0;border:1px solid #ece8da;border-radius:18px;padding:3rem 2rem;}
.mst-no-blogs h3{font-family:Georgia,serif;color:#04194e !important;}
.mst-no-blogs-suggestions{max-width:430px;margin:1.2rem auto;text-align:left;}
.mst-no-blogs-suggestions ul{list-style:none;padding:0;}
.mst-no-blogs-suggestions li{padding:.35rem 0;color:#4a4f5d;}
.mst-no-blogs-suggestions .mst-svgi{color:#c6a24f;}
.mst-cta-button{display:inline-block;background:#04194e;color:#fff !important;border-radius:10px;padding:.85rem 1.7rem;font-weight:700;text-decoration:none !important;margin-top:1rem;}
.mst-cta-button:hover{background:#c6a24f;color:#04194e !important;}

/* Editorial layer fixes v3 (correct container is .mst-blog-list) */
.mst-blog-list .mst-team-header{background:linear-gradient(120deg,#04194e 0%,#0a2f63 100%);border-radius:18px;border-bottom:4px solid #c6a24f;box-shadow:0 10px 32px rgba(4,25,78,0.20);}
.mst-team-header .mst-team-name{font-family:Georgia,'Times New Roman',serif !important;color:#ffffff !important;text-shadow:none !important;}
.mst-team-header .mst-team-details,.mst-team-header .mst-team-location,.mst-team-header .mst-team-parish,.mst-team-header .mst-team-leader{color:rgba(255,255,255,0.88) !important;}
.mst-team-header .mst-team-icon{color:#c6a24f !important;}
.mst-team-header .mst-team-description{color:rgba(255,255,255,0.85) !important;line-height:1.7;}
.mst-team-header .mst-team-diocese{color:rgba(255,255,255,0.6) !important;}
.mst-blog-header-filter{background:transparent !important;border:none !important;box-shadow:none !important;padding:0 !important;margin:2.2rem 0 .6rem !important;text-align:left !important;}
.mst-blog-header-filter h3{font-family:Georgia,'Times New Roman',serif !important;color:#04194e !important;font-size:1.6em !important;font-weight:700 !important;display:flex !important;align-items:center;gap:.9rem;margin:0 !important;}
.mst-blog-header-filter h3:after{content:"";flex:1;height:1px;background:#e6e3d8;}
.mst-single-blog .mst-blog-header{display:block !important;}
.mst-single-blog .mst-blog-header h1{margin-bottom:.9rem !important;}

/* Wider dashboard (page-id-28): relax Divi's 1080px container + plugin container */
.page-id-28 #main-content .container,.page-id-28 .entry-content .container{width:94% !important;max-width:1440px !important;}
.page-id-28 .mst-dashboard-container{max-width:1400px !important;margin:20px auto !important;}
.page-id-28 .mst-logged-in-container{max-width:1400px !important;}

/* View Website button in dashboard banner */
.mst-view-site-btn{background:#c6a24f !important;color:#04194e !important;border:none !important;text-decoration:none !important;display:inline-flex;align-items:center;gap:.3rem;}
.mst-view-site-btn:hover{background:#ffffff !important;color:#04194e !important;}

/* v1.10.2: edit-member form inputs match add form; breathing room around member forms */
#mst-edit-member-form-inner input:not([type="hidden"]),
#mst-edit-member-form-inner select,
#mst-new-member-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #fff;
}

#mst-edit-member-form-inner input:focus,
#mst-edit-member-form-inner select:focus,
#mst-new-member-form select:focus {
    outline: none;
    border-color: #04194e;
    box-shadow: 0 0 0 3px rgba(4, 25, 78, 0.1);
}

#mst-add-member-form,
#mst-edit-member-form {
    margin: 32px 0;
}
