/* HF Skjoldhøj - Modern Website Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5a3d 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.donate-btn {
    background: #ff6b35 !important;
    color: white !important;
}

.donate-btn:hover {
    background: #e55a2b !important;
}

.login-btn {
    background: #4CAF50 !important;
    color: white !important;
}

.login-btn:hover {
    background: #45a049 !important;
}

/* PWA Styles */
.pwa-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 80px; /* Space for bottom nav */
}

.pwa-header {
    background: linear-gradient(135deg, #2c5530, #4CAF50);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pwa-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.pwa-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pwa-logo-image {
    width: 56px;
    height: 56px;
    padding: 4px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.95) 35%,
        rgba(255, 255, 255, 0.75) 60%,
        rgba(255, 255, 255, 0.30) 85%,
        rgba(255, 255, 255, 0) 100%
    );
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
    box-sizing: border-box;
    object-fit: contain;
}

.pwa-logo-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.pwa-logo-subtitle {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

.pwa-user-menu {
    display: flex;
    gap: 10px;
}

.pwa-login-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pwa-member-btn {
    background: rgba(255, 107, 53, 0.9);
    color: white;
}

.pwa-member-btn:hover {
    background: rgba(255, 107, 53, 1);
    transform: translateY(-1px);
}

.pwa-admin-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pwa-admin-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.pwa-main {
    flex: 1;
    padding-bottom: 20px;
}

.pwa-section {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pwa-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pwa-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.pwa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pwa-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    margin-bottom: 20px;
}

/* PWA Bottom Navigation */
.pwa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
    flex: 1;
}

.bottom-nav-item.active {
    color: #2c5530;
    background: rgba(44, 85, 48, 0.1);
}

.bottom-nav-item:hover {
    color: #2c5530;
    background: rgba(44, 85, 48, 0.05);
}

.bottom-nav-icon {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.bottom-nav-icon svg {
    transition: all 0.3s ease;
}

.bottom-nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: 90px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    border: 1px solid #e9ecef;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.pwa-install-icon {
    font-size: 24px;
}

.pwa-install-text {
    flex: 1;
}

.pwa-install-text strong {
    display: block;
    color: #2c5530;
    font-size: 14px;
    margin-bottom: 2px;
}

.pwa-install-text p {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
}

.pwa-install-btn {
    background: #2c5530;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.pwa-install-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

/* PWA Hero Section */
.pwa-hero-section {
    background: linear-gradient(135deg, #2c5530 0%, #4CAF50 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pwa-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.pwa-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.pwa-hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.pwa-hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.5;
}

/* PWA Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.benefit-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 8px;
}

.benefit-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* PWA Facilities List */
.facilities-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.facilities-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: center;
}

.facilities-list li:last-child {
    border-bottom: none;
}

/* PWA CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.modern-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #2c5530);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.modern-btn.secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.modern-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* News link button - rendered by includes/news-formatter.php for any
   http(s) URL inside news_posts.content. Adds breathing room so the
   button does not collide with surrounding text lines. */
.news-link-btn {
    margin: 10px 0;
}

/* PWA Gallery Styles */
.pwa-gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pwa-tab-button {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid #2c5530;
    color: #2c5530;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.pwa-tab-button:hover,
.pwa-tab-button.active {
    background-color: #2c5530;
    color: white;
    transform: translateY(-1px);
}

.pwa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.pwa-gallery-item {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.pwa-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pwa-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #a8d5aa 0%, #2c5530 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.pwa-placeholder-content h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.pwa-placeholder-content p {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
    margin: 0;
}

.pwa-gallery-caption {
    padding: 20px;
}

.pwa-gallery-caption h4 {
    color: #2c5530;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.pwa-gallery-caption p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.pwa-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.pwa-upload-instructions {
    text-align: left;
    margin-top: 20px;
}

.pwa-upload-instructions h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 18px;
}

.pwa-upload-instructions ul {
    margin: 15px 0;
    padding-left: 20px;
}

.pwa-upload-instructions li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.5;
}

.pwa-upload-instructions p {
    margin: 15px 0;
    color: #555;
}

/* PWA Contact Styles */
.pwa-contact-info {
    background-color: #f0f8f0;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.pwa-contact-info h3 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 16px;
}

.pwa-board-members {
    margin-top: 20px;
}

.pwa-member {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2c5530;
}

.pwa-member h4 {
    color: #2c5530;
    margin-bottom: 8px;
    font-size: 16px;
}

.pwa-member p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.pwa-address-info {
    background-color: #f0f8f0;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.pwa-address-info h3 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 16px;
}

.pwa-transport-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.pwa-transport-list li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.pwa-transport-list li:last-child {
    border-bottom: none;
}

.pwa-google-map {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pwa-google-map iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.pwa-contact-form {
    margin-top: 20px;
}

.pwa-form-group {
    margin-bottom: 20px;
}

.pwa-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c5530;
    font-size: 14px;
}

.pwa-form-group input,
.pwa-form-group select,
.pwa-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.pwa-form-group input:focus,
.pwa-form-group select:focus,
.pwa-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.pwa-hours-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.pwa-hours-list li {
    padding: 10px 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.pwa-hours-list li:last-child {
    border-bottom: none;
}

/* PWA Rules Styles */
.pwa-rules-section {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.pwa-rules-section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.pwa-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pwa-rules-list li {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 25px;
}

.pwa-rules-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.pwa-rules-list li:last-child {
    border-bottom: none;
}

.pwa-rules-highlight {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.pwa-rules-highlight h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 16px;
}

.pwa-rules-highlight p {
    color: #856404;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* PWA Archive Styles */
.pwa-archive-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pwa-archive-list li {
    margin-bottom: 10px;
}

.pwa-archive-list a {
    display: block;
    padding: 12px 16px;
    background-color: #f8f9fa;
    color: #2c5530;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid #4CAF50;
}

.pwa-archive-list a:hover {
    background-color: #e8f5e8;
    transform: translateX(5px);
}

.pwa-archive-years {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pwa-year-btn {
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #2c5530;
    text-decoration: none;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pwa-year-btn:hover {
    background-color: #2c5530;
    color: white;
    border-color: #2c5530;
    transform: translateY(-2px);
}

/* PWA Blog Styles */
.pwa-newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pwa-newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #f0f0f0;
    border-radius: 25px;
    font-size: 14px;
    background: #fafafa;
}

.pwa-newsletter-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: white;
}

.pwa-events-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pwa-events-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pwa-events-list li:last-child {
    border-bottom: none;
}

.pwa-event-date {
    color: #4CAF50;
    font-weight: 600;
    font-size: 12px;
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
}

.pwa-blog-post {
    margin-bottom: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pwa-blog-post:last-child {
    border-bottom: none;
}

.pwa-blog-post h3 {
    color: #2c5530;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.pwa-blog-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    font-weight: 500;
}

.pwa-blog-post p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.pwa-read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.pwa-read-more:hover {
    text-decoration: underline;
}

/* PWA Waiting List Styles */
.pwa-process-steps {
    margin: 25px 0;
}

.pwa-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.pwa-step-number {
    background: linear-gradient(135deg, #4CAF50, #2c5530);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.pwa-step-content h4 {
    color: #2c5530;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.pwa-step-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.pwa-info-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f8f0;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.pwa-info-section h3 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.pwa-info-section p {
    color: #555;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.pwa-price-list,
.pwa-benefits-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.pwa-price-list li,
.pwa-benefits-list li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 20px;
}

.pwa-price-list li:before {
    content: "💰";
    position: absolute;
    left: 0;
    font-size: 12px;
}

.pwa-benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.pwa-price-list li:last-child,
.pwa-benefits-list li:last-child {
    border-bottom: none;
}

/* PWA Building Rules Styles */
.pwa-building-rules {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.pwa-building-rules li {
    padding: 12px 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 25px;
}

.pwa-building-rules li:before {
    content: "📐";
    position: absolute;
    left: 0;
    font-size: 14px;
}

.pwa-building-rules li:last-child {
    border-bottom: none;
}

.pwa-building-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pwa-category {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.pwa-category-required {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.pwa-category-free {
    background-color: #d4edda;
    border-color: #28a745;
}

.pwa-category h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.pwa-category-required h3 {
    color: #856404;
}

.pwa-category-free h3 {
    color: #155724;
}

.pwa-building-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pwa-building-list li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    padding-left: 20px;
}

.pwa-category-required .pwa-building-list li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
    font-size: 12px;
}

.pwa-category-free .pwa-building-list li:before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 12px;
}

.pwa-building-list li:last-child {
    border-bottom: none;
}

.pwa-pricing-table {
    margin: 20px 0;
}

.pwa-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
}

.pwa-price-item h4 {
    color: #2c5530;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.pwa-price {
    background: linear-gradient(135deg, #4CAF50, #2c5530);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin: 0 15px;
}

.pwa-price-item p {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 12px;
    flex: 1;
}

.pwa-contact-item {
    padding: 10px 0;
    color: #555;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.pwa-contact-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .pwa-building-categories {
        grid-template-columns: 1fr;
    }
    
    .pwa-price-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .pwa-price {
        margin: 10px 0;
        align-self: flex-start;
    }
}

/* PWA Calendar Styles */
.pwa-calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pwa-filter-btn {
    padding: 8px 16px;
    background-color: white;
    border: 2px solid #e9ecef;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.pwa-filter-btn:hover,
.pwa-filter-btn.active {
    background-color: #2c5530;
    color: white;
    border-color: #2c5530;
    transform: translateY(-1px);
}

.pwa-calendar-months {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pwa-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.pwa-calendar-event {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.pwa-calendar-event:hover {
    background: #f0f8f0;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pwa-event-date {
    background: linear-gradient(135deg, #2c5530, #4CAF50);
    color: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin-right: 15px;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pwa-event-day {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.pwa-event-month {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    margin-top: 2px;
}

.pwa-event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pwa-event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pwa-event-title {
    color: #2c5530;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.pwa-event-type {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.pwa-event-type-meeting {
    background: #e3f2fd;
    color: #1565c0;
}

.pwa-event-type-workday {
    background: #fff3e0;
    color: #ef6c00;
}

.pwa-event-type-social {
    background: #f3e5f5;
    color: #7b1fa2;
}

.pwa-event-type-maintenance {
    background: #ffebee;
    color: #c62828;
}

.pwa-event-type-other {
    background: #f5f5f5;
    color: #616161;
}

.pwa-event-details {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pwa-event-time,
.pwa-event-location {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.pwa-event-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
    font-style: italic;
}

/* Calendar List Styles (for member dashboard) */
.pwa-calendar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pwa-calendar-item {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.pwa-calendar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pwa-calendar-date {
    background: linear-gradient(135deg, #2c5530, #4CAF50);
    color: white;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    margin-right: 15px;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pwa-calendar-day {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.pwa-calendar-month {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    margin-top: 2px;
}

.pwa-calendar-content {
    flex: 1;
}

.pwa-calendar-title {
    color: #2c5530;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.pwa-calendar-details {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.pwa-calendar-time,
.pwa-calendar-location {
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.pwa-calendar-description {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    font-style: italic;
}

@media (max-width: 768px) {
    .pwa-calendar-event {
        flex-direction: column;
        text-align: center;
    }
    
    .pwa-event-date {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .pwa-event-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .pwa-event-details {
        justify-content: center;
    }
}

/* PWA Vedtægter Styles */
.pwa-paragraph-header {
    background: linear-gradient(135deg, #2c5530, #4CAF50);
    color: white;
    padding: 20px;
    margin: -25px -25px 20px -25px;
    border-radius: 16px 16px 0 0;
}

.pwa-paragraph-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.pwa-paragraph-content {
    line-height: 1.6;
}

.pwa-paragraph-content p {
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
}

.pwa-paragraph-content strong {
    color: #2c5530;
    font-weight: 600;
}

.pwa-sub-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.pwa-sub-list li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 20px;
}

.pwa-sub-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.pwa-sub-list li:last-child {
    border-bottom: none;
}

.pwa-work-requirement {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.pwa-work-requirement h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 16px;
}

.pwa-work-requirement p {
    color: #856404;
    margin: 8px 0;
    font-size: 14px;
}

.pwa-agenda-list {
    background: #f0f8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.pwa-agenda-item {
    padding: 10px 0;
    color: #2c5530;
    font-weight: 500;
    border-bottom: 1px solid #e8f5e8;
    position: relative;
    padding-left: 30px;
}

.pwa-agenda-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

.pwa-agenda-item:last-child {
    border-bottom: none;
}

.pwa-voting-rules {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.pwa-voting-rules h4 {
    color: #1565c0;
    margin-bottom: 10px;
    font-size: 16px;
}

.pwa-board-structure {
    background: #f0f8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.pwa-board-structure h4 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 16px;
}

.pwa-section-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.pwa-section-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.pwa-section-group h4 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.pwa-revision-history {
    margin-top: 20px;
}

.pwa-revision-item {
    display: flex;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.pwa-revision-date {
    background: #2c5530;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
    min-width: 100px;
    text-align: center;
    align-self: flex-start;
}

.pwa-revision-content {
    flex: 1;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.pwa-document-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .pwa-revision-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .pwa-revision-date {
        margin-right: 0;
        align-self: flex-start;
    }
    
    .pwa-document-actions {
        flex-direction: column;
    }
}

/* PWA Document Display Styles */
.pwa-documents-list {
    margin-top: 25px;
}

.pwa-documents-list h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.pwa-document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.pwa-document-item:hover {
    background: #f0f8f0;
    transform: translateX(5px);
}

.pwa-doc-info {
    flex: 1;
}

.pwa-doc-info h4 {
    color: #2c5530;
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.pwa-doc-info p {
    color: #666;
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
}

.pwa-doc-info small {
    color: #999;
    font-size: 12px;
}

.pwa-doc-actions {
    margin-left: 20px;
}

.pwa-doc-actions .modern-btn {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pwa-document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .pwa-doc-actions {
        margin-left: 0;
        align-self: stretch;
    }
    
    .pwa-doc-actions .modern-btn {
        width: 100%;
        justify-content: center;
    }
}

/* PWA No Documents Message */
.pwa-no-documents {
    background: #f8f9fa;
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.pwa-no-documents p {
    color: #6c757d;
    margin: 10px 0;
    font-size: 14px;
}

.pwa-no-documents p:first-child {
    font-weight: 600;
    color: #495057;
}

/* PWA Responsive Download Button */
.pwa-download-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 140px;
    max-width: 200px;
    overflow: hidden;
}

.pwa-btn-text {
    margin-right: 8px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .pwa-download-btn {
        min-width: 120px;
        max-width: 150px;
    }
    
    .pwa-btn-text {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .pwa-download-btn {
        min-width: 100px;
        max-width: 120px;
    }
    
    .pwa-btn-text {
        font-size: 12px;
    }
}

/* PWA Buy/Sell Styles */
.pwa-pricing-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.pwa-price-category {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
}

.pwa-price-category:hover {
    background: #f0f8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pwa-price-category h4 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.pwa-price-category p {
    color: #555;
    margin: 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.pwa-price-category small {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
    display: block;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .pwa-pricing-overview {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pwa-price-category {
        padding: 15px;
    }
}

/* Success Message Style */
.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
    font-size: 14px;
    font-weight: 500;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
    font-size: 14px;
    font-weight: 500;
}

/* PWA Position Check Form */
.pwa-position-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.pwa-position-form .pwa-form-group {
    margin-bottom: 15px;
}

.pwa-position-form input {
    background: white;
}

.pwa-position-form .modern-btn {
    width: 100%;
    justify-content: center;
}

/* Dynamic Form Validation Styles */
.field-valid {
    border-color: #28a745 !important;
    background-color: #f8fff9 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.field-invalid {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.btn-disabled {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Validation feedback animation */
.field-valid,
.field-invalid {
    transition: all 0.3s ease;
}

/* Success checkmark for valid fields */
.field-valid::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
    pointer-events: none;
}

.pwa-form-group {
    position: relative;
}

/* Phone number specific styling */
#telefon.field-valid {
    background-image: linear-gradient(45deg, transparent 40%, rgba(40, 167, 69, 0.1) 50%, transparent 60%);
}

/* Email validation feedback */
#email.field-valid {
    background-image: linear-gradient(45deg, transparent 40%, rgba(40, 167, 69, 0.1) 50%, transparent 60%);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .pwa-header-content {
        padding: 0 15px;
    }
    
    .pwa-logo-title {
        font-size: 18px;
    }
    
    .pwa-section {
        padding: 15px;
    }
    
    .pwa-hero {
        height: 50vh;
        min-height: 300px;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    max-width: 600px;
}

.slide-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.slide-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.highlight {
    color: #4CAF50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-cta {
    display: inline-block;
    background: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-cta:hover {
    background: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: #4CAF50;
    transform: scale(1.2);
}

/* Modern Card Grid */
.modern-card-grid {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.modern-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #2d5a3d);
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.wide-card {
    grid-column: span 2;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #2d5a3d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.modern-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d5a3d;
    margin-bottom: 15px;
}

.modern-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modern-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #2d5a3d);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer */
.footer {
    background: #1a4d2e;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4CAF50;
}

.footer-bottom {
    border-top: 1px solid #2d5a3d;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Test Buttons */
.test-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.test-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.test-btn:hover {
    background: #555;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu ul {
        justify-content: center;
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .slide-content {
        left: 20px;
        right: 20px;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .modern-card-grid {
        padding: 40px 20px;
    }
    
    .card-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wide-card {
        grid-column: span 1;
    }
    
    .modern-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 20px;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .modern-card h2 {
        font-size: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Facebook-style News Feed for Homepage */
.news-feed-homepage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.homepage-news-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.homepage-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #4CAF50;
}

.news-card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-link:hover {
    color: #4CAF50;
}

.news-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.homepage-news-card .news-link-btn,
.homepage-news-card a[href]:not(.news-card-link),
.homepage-news-card form,
.homepage-news-card button {
    position: relative;
    z-index: 2;
}

.news-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-small {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.author-details {
    flex: 1;
}

.author-name-small {
    font-weight: 600;
    color: #2c5530;
    font-size: 14px;
    margin-bottom: 2px;
}

.post-time-small {
    font-size: 12px;
    color: #666;
}

.news-card-content {
    padding: 20px;
}

.homepage-news-title {
    margin: 0 0 12px 0;
    color: #2c5530;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.homepage-news-text {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.homepage-news-image {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.homepage-news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.homepage-news-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.homepage-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.stat-emoji {
    font-size: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .news-feed-homepage {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .homepage-news-card {
        margin: 0 10px;
    }
    
    .news-card-content {
        padding: 15px;
    }
    
    .homepage-news-title {
        font-size: 16px;
    }
}