/* Theme Variables and Global Resets */
:root {
    --pn-color-primary: #A069C3;
    --pn-color-secondary: #094074;
    --pn-color-background: #f6f9fc;
    --pn-color-card-bg: #ffffff;
    --pn-color-text: #333333;
    --pn-color-muted: #666666;
    --pn-border-radius: 8px;
    --pn-transition-speed: 0.3s;
}

.public-notices-container {
    font-family: 'Inter', sans-serif;
    color: var(--pn-color-text);
    padding: 2rem;
}

/* Public Styles for Public Notices Plugin */

/* Container */
.public-notices-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters */
.public-notices-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-box,
.filter-box {
    flex: 1;
    min-width: 200px;
}

.search-box input,
.filter-box select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Notices List */
.notices-list {
    display: grid;
    gap: 30px;
}

.notice-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notice-header {
    margin-bottom: 15px;
}

.notice-title {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.notice-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.notice-content {
    margin-bottom: 20px;
    line-height: 1.6;
}

.notice-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.notice-dates,
.notice-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Form Styles */
.public-notices-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.public-notices-form {
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group .required {
    color: #dc3232;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3232;
}

.price-details {
    margin-top: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.price-details p {
    margin: 5px 0;
}

.form-submit {
    margin-top: 30px;
}

.form-submit .button {
    padding: 12px 24px;
    font-size: 16px;
}

/* Notices */
.notice {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
}

.notice-success {
    background: #f0f8f0;
    border-left: 4px solid #46b450;
}

.notice-error {
    background: #fef7f7;
    border-left: 4px solid #dc3232;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .public-notices-filters {
        flex-direction: column;
    }
    
    .notice-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .public-notices-form {
        padding: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on mobile */
    }
}

.notice-preview {
    position: fixed;
    width: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 1000;
    display: none;
}

.notice-preview.visible {
    display: block;
}

.preview-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.preview-header h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
    color: #333;
}

.preview-header .category {
    display: inline-block;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #666;
}

.preview-content {
    font-size: 0.95em;
    line-height: 1.5;
    color: #444;
}

.toggle-preview {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    text-decoration: none;
    color: #666;
    font-size: 0.9em;
}

.toggle-preview:hover {
    background: #e0e0e0;
    color: #333;
}

.price-option {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-option:hover {
    border-color: #007cba;
    background-color: #f8f9fa;
}

.price-option.selected {
    border-color: #007cba;
    background-color: #f0f7ff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-option input[type="radio"] {
    margin: 0;
}

.price-option-details {
    flex-grow: 1;
}

.price-option-description {
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 4px;
}

.price-option-meta {
    color: #666;
    font-size: 0.9em;
}

.loading-message,
.no-category-message {
    padding: 15px;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

.loading-message {
    color: #007cba;
}

/**
 * Public-facing CSS for Public Notices V2 Plugin.
 * Version: 1.1.0
 */

/* --- Modern UI Styles (v2.0) --- */
.public-notices-container.modern-ui {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1100px;
    margin: 2em auto;
    padding: 0;
}

/* --- Headers & Titles --- */
.pn-main-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 1.5em;
    color: #094074;
    border-bottom: 3px solid #094074;
    padding-bottom: 0.3em;
    position: relative;
}

/* --- Navigation Elements --- */
.pn-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.5em;
    color: #094074;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pn-back-link:before {
    content: "←";
    margin-right: 5px;
    font-size: 1.2em;
}

.pn-back-link:hover {
    color: #1a75d2;
    text-decoration: none;
}

/* --- Category List View --- */
.pn-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pn-category-item {
    margin: 0;
}

.pn-category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.7rem;
    background-color: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pn-category-item a:hover {
    background-color: #f0f0f0;
    border-color: #ddd;
    text-decoration: none;
}

.pn-category-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.pn-category-count {
    background-color: #eee;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
}

/* --- Notices List (Category Archive) --- */
.pn-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2em;
    flex-wrap: wrap;
}

.pn-archive-header .pn-main-title {
    margin-bottom: 0;
    flex: 1;
}

.pn-archive-header .pn-back-link {
    margin-bottom: 0;
}

.pn-notices-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pn-notice-item {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s ease;
}

.pn-notice-item:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.pn-notice-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.pn-notice-title {
    margin: 0 0 10px 0;
    font-size: 1.6em;
    font-weight: 600;
    line-height: 1.3;
}

.pn-notice-title a {
    text-decoration: none;
    color: #094074;
    transition: color 0.2s ease;
}

.pn-notice-title a:hover {
    color: #1a75d2;
}

.pn-notice-meta {
    font-size: 0.9em;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.pn-notice-meta span {
    display: flex;
    align-items: center;
}

.pn-notice-meta span:before {
    content: "•";
    margin-right: 5px;
    color: #999;
}

.pn-notice-meta span:first-child:before {
    display: none;
}

.pn-notice-summary {
    margin-bottom: 20px;
    color: #444;
    line-height: 1.7;
}

.pn-notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pn-notice-dates {
    font-weight: 500;
}

.pn-read-more {
    background-color: #094074;
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.pn-read-more:after {
    content: "→";
    margin-left: 5px;
    font-size: 1.2em;
}

.pn-read-more:hover {
    background-color: #1a75d2;
    color: #fff;
}

/* --- Single Notice View --- */
.pn-single-notice {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.pn-single-header {
    position: relative;
    margin-bottom: 2em;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 1.5em;
}

.pn-single-header .pn-back-link {
    margin-bottom: 1em;
    display: inline-block;
}

.pn-single-header .pn-notice-title {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    color: #094074;
    line-height: 1.2;
}

.pn-single-header .pn-notice-meta {
    margin-top: 1em;
    justify-content: flex-start;
}

.pn-notice-content {
    margin-bottom: 2em;
    font-size: 1.1em;
    line-height: 1.7;
    color: #333;
}

.pn-notice-content p {
    margin-bottom: 1.5em;
}

.pn-notice-details {
    background-color: #f8fafc;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pn-notice-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #094074;
    font-weight: 600;
    border-bottom: 2px solid rgba(9, 64, 116, 0.1);
    padding-bottom: 8px;
}

.pn-notice-details p {
    margin: 0 0 8px 0;
    font-size: 1em;
    line-height: 1.5;
}

.pn-notice-details strong {
    color: #333;
    font-weight: 600;
}

/* --- No Notices --- */
.no-notices {
    background-color: #f8fafc;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #666;
}

.no-notices p {
    font-size: 1.1em;
    margin: 0;
}

/* --- Pagination --- */
.pagination {
    margin-top: 2.5em;
    text-align: center;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 5px;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    color: #094074;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination a:hover {
    background-color: #f0f4f8;
    border-color: #ccc;
}

.pagination .current {
    background-color: #094074;
    border-color: #094074;
    color: #fff;
    font-weight: 600;
}

.pagination .dots {
    border: none;
    background: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .public-notices-container.modern-ui {
        padding: 0.75rem !important;
        margin-bottom: 1rem;
    }

    .pn-main-title {
        font-size: 1.8em;
    }
    
    .pn-archive-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pn-archive-header .pn-back-link {
        margin-bottom: 15px;
    }

    .pn-category-list {
        grid-template-columns: 1fr;
    }

    .pn-notice-item {
        padding: 20px;
    }

    .pn-notice-title {
        font-size: 1.4em;
    }

    .pn-single-header .pn-notice-title {
        font-size: 1.8em;
    }

    .pn-notice-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pn-read-more {
        width: 100%;
        justify-content: center;
    }

    .pn-notice-details {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .pn-notice-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .pn-notice-meta span:before {
        display: none;
    }
    
    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 0.9em;
    }
}

/* Modern Card Layout & Responsive Grid */
.pn-notices-list, .notices-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pn-notice-item, .notice-item {
    background: var(--pn-color-card-bg);
    border-radius: var(--pn-border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform var(--pn-transition-speed) ease, box-shadow var(--pn-transition-speed) ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    padding: 0; /* Remove padding here - we'll add it to content wrapper */
}

.pn-notice-item:hover, .notice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Card Content Spacing */
.pn-notice-content-wrapper {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border: none;
}

/* Thumbnail */
.pn-notice-thumbnail {
    width: 100%;
    height: auto;
    max-height: 200px;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    position: relative;
    background-color: var(--pn-color-background);
}

.pn-notice-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

/* Title and Meta */
.pn-notice-header {
    margin-bottom: 0.75rem;
    border: none !important;
    padding: 0;
}

.pn-notice-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 600;
}

.pn-notice-title a {
    color: var(--pn-color-secondary);
    text-decoration: none;
}

.pn-notice-meta {
    font-size: 0.85rem;
    color: var(--pn-color-muted);
}

.pn-notice-meta span {
    display: inline-block;
    margin-right: 0.75rem;
}

/* List View Overrides */
.pn-notices-list.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pn-notices-list.list-view .pn-notice-item {
    flex-direction: row;
    padding: 0;
    overflow: hidden;
}

.pn-notices-list.list-view .pn-notice-thumbnail {
    width: 120px;
    height: 100%;
    max-height: none;
    flex-shrink: 0;
    border-radius: 0;
}

.pn-notices-list.list-view .pn-notice-content-wrapper {
    padding: 1rem;
}

.pn-notices-list.list-view .pn-notice-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* View Toggle Controls */
.view-toggle {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.view-toggle .toggle-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--pn-border-radius);
    cursor: pointer;
    transition: all var(--pn-transition-speed) ease;
    color: var(--pn-color-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.view-toggle .toggle-btn svg {
    display: block;
}

.view-toggle .toggle-btn.active {
    background: var(--pn-color-primary);
    color: #fff;
}

.view-toggle .toggle-btn:not(.active):hover {
    background: #eee;
    color: var(--pn-color-secondary);
}

/* Sidebar Category Panel */
.pn-categories-column {
    background: var(--pn-color-card-bg);
    padding: 1rem;
    border-radius: var(--pn-border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}
.pn-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pn-category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--pn-border-radius);
    transition: background var(--pn-transition-speed), color var(--pn-transition-speed);
}
.pn-category-item a:hover {
    background: var(--pn-color-primary);
    color: #fff;
}
.pn-category-count {
    background: var(--pn-color-secondary);
    color: #fff;
    font-weight: 600;
}

/* Container Override for Modern UI */
.public-notices-container.modern-ui {

    padding: 2rem;
    border-radius: var(--pn-border-radius);
    margin-bottom: 2rem;
}

/* Section Title */
.pn-section-header {
    margin-bottom: 1rem;
}
.pn-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pn-color-secondary);
}

/* Ensure page container alignment */
.public-notices-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Login Prompt Styles */
.pn-login-prompt {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pn-login-prompt h3 {
    color: #2c5282;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.pn-login-prompt p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.pn-login-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.pn-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #3182ce;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 200px;
    cursor: pointer;
}

.pn-login-button:hover {
    background-color: #2b6cb0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: white;
    text-decoration: none;
}

.pn-icon-user::before {
    content: "👤";
    margin-right: 0.5rem;
}

/* Modern Header Styles - Based on Maui Jobs design */
.pn-header-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
}

.pn-header {
    width: 100%;
    background-color: transparent;
    background-size: 100% auto;
    background-position: top right;
    background-repeat: no-repeat;
    border-bottom: none;
    z-index: 999999;
}

.pn-header .container {
    padding: 10px;
    padding-bottom: 0px;
    position: relative;
}

.pn-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.pn-logo-link {
    display: block;
    text-decoration: none;
}

.pn-logo {
    max-width: 300px;
    display: block;
    transition: transform .3s ease-in-out;
    font-family: 'BenchNine', sans-serif;
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
}

.pn-logo:hover {
    transform: scale(1.05);
}

.pn-logo img {
    width:300px;
    max-width: 100%;
    height: auto;
}

.pn-logo-text-main {
    color: #333;
}

.pn-logo-text-accent {
    color: #A069C3;
    margin-left: 0.2rem;
}

/* Header actions (buttons) */
.pn-header-actions {
    position: relative;
}

.pn-post-button-old {
    /* background-color: #A069C3; */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-family: 'BenchNine', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pn-post-button{
    font-family: 'BenchNine', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color:#000;
    font-weight:bold;
    position:relative;
    box-shadow:none;
    background-color:transparent;
    padding:4px;
    text-decoration:none;
    margin:0px 6px 0px 6px;
}

.pn-post-button:hover::after{
    content:'';
    position:absolute;
    bottom:0px;
    left:0px;
    height:4px;
    background-color:#000;
    width:100%;
    animation:button-highlight 0.3s ease-in-out;
    
}

@keyframes button-highlight{
    0%{
        width:0%;
    }
    100%{
        width:100%;
    }
}   
.pn-post-button:hover {
    background-color:transparent;
    box-shadow:none;
    color:#000;
    
}

.pn-back-button {
    color: #A069C3;
    padding: 0.5rem 1rem;
    border: 1px solid #A069C3;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    background-color: white;
}

.pn-back-button:hover {
    background-color: #F5F0FA;
    text-decoration: none;
}

/* Search container styling */
.pn-search-container {
    margin-bottom: 20px;
}

/* Job Search styling to match Maui Jobs */
.jobSearch {
    background-color: white;
    padding: 10px;
    width: 100%;
    box-shadow: 0px 3px 10px rgba(0,0,0,.1);
    border-radius: 10px;
}

.pn-search-form {
    display: flex;
    gap: 10px;
}

.pn-search-input {
    flex: 1;
    width:100%;
    height: 60px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
    font-family: "Khula", sans-serif;
    font-weight: 300;
    background-color: #f8f8f8;
}

.pn-search-input:focus {
    outline: none;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 0 2px rgba(160,105,195,.2);
}

.pn-search-input-wrapper{
    flex-grow:1;
}

.pn-search-button {
    width: 180px;
    background-color: #E73846;
    background: linear-gradient(to bottom right, #ff4b56, #d83b11, #d83b11);
    background-size: 130% auto;
    box-shadow: 0px 2px 4px rgba(0,0,0,.2);
    color: #fff;
    border: 0px;
    border-radius: 10px;
    font-family: "BenchNine", sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pn-search-button:hover {
    transform: scale(1.03);
}

.pn-search-button svg {
    width: 20px;
    height: 20px;
    color:#fff;
}

/* Subtitle area styling */
.pn-subtitle-area {
    padding: 20px;

}

.pn-subtitle {
    font-family: "Khula", sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    color: #666;
    text-align: center;
}

.pn-page-title {
    margin-top: 15px;
}

.pn-page-title h2 {
    font-family: "BenchNine", sans-serif;
    font-size: 36px;
    line-height: 1.2;
    color: #333;
    margin: 0;
    padding: 0;
    text-align: center;
}


/* Responsive styles */
@media screen and (max-width: 768px) {
    .pn-header-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .pn-header-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .pn-search-form {
        flex-direction: column;
    }
    
    .pn-search-input {
        width: 100%;
        margin-bottom: 10px;
        height: 50px;
    }
    
    .pn-search-button {
        width: 100%;
        height: 50px;
    }
}

@media screen and (max-width: 650px) {
    .pn-logo {
        max-width: 280px;
        font-size: 42px;
    }
}

/* Mobile categories toggle */
.pn-categories-toggle {
    display: none;
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    text-align: left;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
}

.pn-categories-toggle:after {
    content: "▼";
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
}

.pn-categories-toggle.active:after {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .pn-categories-toggle {
        display: block;
    }

    .pn-categories-column {
        margin-bottom: 1.5rem;
    }

    .pn-category-list {
        display: none;
        margin-top: 1rem;
    }
    
    .pn-category-list.visible {
        display: block;
    }
    
    /* Simplified notices for mobile */
    .pn-notice-item {
        padding: 1rem;
    }
}

/* Simplified notice items */
.pn-notice-item.simplified {
    padding: 0.8rem 1.2rem;
}

.pn-notice-item.simplified .pn-notice-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}

.pn-notice-item.simplified .pn-notice-summary,
.pn-notice-item.simplified .pn-notice-footer {
    display: none;
}

.pn-notice-item.simplified .pn-notice-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.pn-notice-item.simplified .pn-notice-meta {
    font-size: 0.85rem;
}

/* Categories styling */
.pn-categories-column .pn-section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Notice list styling */
.pn-notices-column .pn-section-title {
    margin-top: 0;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Container spacing */
    .public-notices-container.modern-ui {
        padding: 0.75rem !important;
        margin-bottom: 1rem;
    }
    
    /* Search container */
    .pn-search-container {
        margin-bottom: 1rem;
    }
    
    .pn-search-form {
        padding: 0.25rem;
    }
    
    .pn-search-input {
        padding: 0.5rem 0.75rem;
        height: 40px; /* Fixed height for better touch targets */
    }
    
    /* Grid layouts */
    .pn-notices-list, .notices-list {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    /* Card items */
    .pn-notice-item, .notice-item {
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    /* Card content */
    .pn-notice-content-wrapper {
        padding: 0.75rem;
    }
    
    /* Thumbnails */
    .pn-notice-thumbnail {
        max-height: 150px; /* Smaller thumbnail height */
    }
    
    .pn-notice-thumbnail img {
        max-height: 150px;
    }
    
    /* Typography */
    .pn-notice-title {
        font-size: 1.1rem;
        margin: 0 0 0.25rem 0;
    }
    
    .pn-notice-meta {
        font-size: 0.8rem;
    }
    
    /* Categories dropdown for mobile */
    .pn-categories-toggle {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* Recent Notices header */
    .pn-section-header {
        margin-bottom: 0.75rem;
    }
    
    .pn-section-title {
        font-size: 1.25rem;
    }
    
    /* View toggles */
    .view-toggle {
        margin-bottom: 0.75rem;
    }
    
    .view-toggle .toggle-btn {
        width: 36px;
        height: 36px;
        padding: 0.4rem;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    /* Further reduce container padding */
    .public-notices-container.modern-ui {
        padding: 0.5rem !important;
        border-radius: 0; /* Remove border radius on very small screens */
    }
    
    /* Remove card animations on mobile for better performance */
    .pn-notice-item:hover, .notice-item:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    /* Make input take full width on mobile */
    .pn-search-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pn-search-button {
        width: 100%;
        margin-left: 0;
    }
    
    /* Adjust lists */
    .pn-notices-list.list-view .pn-notice-thumbnail {
        width: 80px; /* Smaller thumbnails on phones */
    }
}