
/* Enhanced dmore.co.uk Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,0 1000,100 0,100"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn.primary {
    background: white;
    color: #2a5298;
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: white;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: #f8f9fa;
}

.categories h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

/* Timeline Section */
.timeline {
    padding: 4rem 0;
    background: white;
}

.timeline h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.timeline-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: #6c757d;
}

.search-box {
    max-width: 500px;
    margin: 0 auto 3rem auto;
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #2a5298;
}

.search-box button {
    padding: 1rem 1.5rem;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Enhanced Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.post-card.expanded {
    grid-column: 1 / -1;
    max-width: none;
}

.post-header {
    padding: 2rem 2rem 1rem 2rem;
}

.post-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-meta time {
    color: #6c757d;
    font-size: 0.9rem;
}

.year-badge {
    background: #2a5298;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Preview Images */
.post-preview-images {
    padding: 0 2rem;
    margin-bottom: 1rem;
}

.preview-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #f1f3f4;
}

.preview-image:hover {
    transform: scale(1.02);
    border-color: #2a5298;
}

.post-content {
    padding: 0 2rem 1rem 2rem;
}

.post-summary {
    margin-bottom: 1rem;
    color: #5d6d7e;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid #f1f3f4;
    padding: 1rem 2rem;
}

/* Post Actions */
.post-actions {
    padding: 0 2rem 2rem 2rem;
}

.read-more-btn {
    width: 100%;
    padding: 1rem;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn:hover {
    background: #1e3c72;
    transform: translateY(-2px);
}

.expand-icon {
    transition: transform 0.3s ease;
}

.post-card.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Full Content */
.post-full-content {
    padding: 0 2rem 2rem 2rem;
    border-top: 2px solid #f1f3f4;
    background: #fafbfc;
}

.full-content-inner {
    margin-top: 2rem;
}

.full-content-text {
    line-height: 1.8;
    color: #2c3e50;
}

.full-content-text img.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.full-content-text img.responsive-image:hover {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: -3rem;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: white;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5d6d7e;
}

.highlights {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #2a5298;
}

.highlights h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.highlights ul {
    list-style: none;
    padding-left: 0;
}

.highlights li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 1.5rem;
}

.highlights li:before {
    content: "▶";
    color: #2a5298;
    position: absolute;
    left: 0;
}

.highlights li:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

footer p:last-child {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-preview-images {
        text-align: center;
    }
    
    .preview-image {
        max-width: 100%;
    }
    
    .post-card.expanded {
        grid-column: 1;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.highlight {
    background: yellow;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
}

.results-count {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
    font-style: italic;
}
