/* Swiss Design Theme - Custom Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #7f8c8d;
    --light-color: #ecf0f1;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --text-muted: #7f8c8d;
    --bg-primary: #ecf0f1;
    --grid-unit: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--primary-color);
    z-index: 1000;
    padding: calc(var(--grid-unit) * 4);
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-toggle {
    position: fixed;
    top: calc(var(--grid-unit) * 3);
    left: calc(var(--grid-unit) * 3);
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    width: calc(var(--grid-unit) * 6);
    height: calc(var(--grid-unit) * 6);
    border-radius: 0;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--secondary-color);
}

.sidebar-nav {
    list-style: none;
    margin-top: calc(var(--grid-unit) * 8);
}

.sidebar-nav li {
    margin-bottom: calc(var(--grid-unit) * 2);
}

.sidebar-nav a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: calc(var(--grid-unit) * 2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-nav a:hover {
    color: white;
    background: var(--secondary-color);
    transform: translateX(calc(var(--grid-unit) * 2));
}

.sidebar-logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main Content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.4s ease-out;
}

/* Hero Section - 2/3 viewport */
.hero {
    height: 67vh;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: calc(var(--grid-unit) * 4);
    transform: translateY(calc(var(--grid-unit) * 4));
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.5s forwards;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: calc(var(--grid-unit) * 4);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: calc(var(--grid-unit) * 6);
}

.hero-cta {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: calc(var(--grid-unit) * 2) calc(var(--grid-unit) * 4);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.hero-cta:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Newspaper Grid Layout */
.newspaper-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: calc(var(--grid-unit) * 4);
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--grid-unit) * 8) calc(var(--grid-unit) * 4);
}

.newspaper-section {
    background: white;
    padding: calc(var(--grid-unit) * 4);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
    transform: translateY(calc(var(--grid-unit) * 2));
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}

.newspaper-section:nth-child(2n) {
    animation-delay: 0.2s;
}

.newspaper-section:nth-child(3n) {
    animation-delay: 0.4s;
}

.section-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: calc(var(--grid-unit) * 2);
    margin-bottom: calc(var(--grid-unit) * 4);
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.section-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: calc(var(--grid-unit) * 3);
}

.section-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--grid-unit) * 2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature Articles */
.featured-article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--grid-unit) * 6);
    align-items: center;
    padding: calc(var(--grid-unit) * 6);
    background: var(--secondary-color);
    color: white;
    margin-bottom: calc(var(--grid-unit) * 4);
}

.featured-article h2 {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.featured-article p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--grid-unit) * 4);
    margin: calc(var(--grid-unit) * 8) 0;
}

.service-card {
    background: white;
    padding: calc(var(--grid-unit) * 4);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15);
}

.service-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: calc(var(--grid-unit) * 3);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: calc(var(--grid-unit) * 2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-section {
    background: var(--primary-color);
    color: white;
    padding: calc(var(--grid-unit) * 10) calc(var(--grid-unit) * 4);
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--grid-unit) * 6);
    max-width: 1000px;
    margin: calc(var(--grid-unit) * 6) auto 0;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 32px;
    margin-bottom: calc(var(--grid-unit) * 3);
    opacity: 0.8;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: calc(var(--grid-unit) * 2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: calc(var(--grid-unit) * 4);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Parallax Effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* WordPress Specific Styles */
/* Post List */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--grid-unit) * 4);
    max-width: 1400px;
    margin: calc(var(--grid-unit) * 8) auto;
    padding: 0 calc(var(--grid-unit) * 4);
}

.post-item {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin: calc(var(--grid-unit) * 3);
    line-height: 1.4;
}

.post-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item h3 a:hover {
    color: var(--accent-color);
}

.post-item p {
    margin: 0 calc(var(--grid-unit) * 3) calc(var(--grid-unit) * 3);
    color: var(--text-secondary);
    flex: 1 0 auto;
}

.post-item > a:last-of-type {
    align-self: flex-start;
    margin: 0 calc(var(--grid-unit) * 3) calc(var(--grid-unit) * 3);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: calc(var(--grid-unit) * 1.5) calc(var(--grid-unit) * 3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.post-item > a:last-of-type:hover {
    background: var(--secondary-color);
}

/* Pagination */
nav.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: calc(var(--grid-unit) * 6) 0 calc(var(--grid-unit) * 10);
    gap: calc(var(--grid-unit) * 1.5);
}

.page-numbers {
    display: inline-block;
    padding: calc(var(--grid-unit) * 1.5) calc(var(--grid-unit) * 2.5);
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: var(--primary-color);
    color: white;
}

.page-numbers:hover:not(.current) {
    background: var(--light-color);
}

/* Single Post and Page */
.page-content {
    max-width: 900px;
    margin: calc(var(--grid-unit) * 6) auto calc(var(--grid-unit) * 10);
    background: white;
    padding: calc(var(--grid-unit) * 6);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
}

.page-content h1 {
    font-size: 36px;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: calc(var(--grid-unit) * 4);
    color: var(--primary-color);
}

.page-content .content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.page-content .content p {
    margin-bottom: calc(var(--grid-unit) * 3);
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 900px;
    margin: calc(var(--grid-unit) * 4) auto 0;
    padding: 0 calc(var(--grid-unit) * 3);
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: calc(var(--grid-unit) * 6) calc(var(--grid-unit) * 4);
    text-align: center;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: calc(var(--grid-unit) * 3);
    list-style: none;
    margin-bottom: calc(var(--grid-unit) * 4);
}

.footer-menu a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: white;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: calc(var(--grid-unit) * 10) calc(var(--grid-unit) * 4);
}

.error-page h1 {
    font-size: 72px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: calc(var(--grid-unit) * 3);
}

.error-page p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--grid-unit) * 6);
}

.error-page a {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: calc(var(--grid-unit) * 2) calc(var(--grid-unit) * 4);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.error-page a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
    
    .newspaper-grid {
        grid-template-columns: 1fr;
        padding: calc(var(--grid-unit) * 4) calc(var(--grid-unit) * 2);
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 48px;
        letter-spacing: 2px;
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
    
    /* Homepage responsive */
    .hero-section {
        height: 60vh;
    }
    
    .hero-content {
        padding: calc(var(--grid-unit) * 4);
    }
    
    .hero-content h1 {
        font-size: clamp(28px, 8vw, 48px);
        letter-spacing: 1px;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: calc(var(--grid-unit) * 3);
    }
    
    .random-posts {
        margin: calc(var(--grid-unit) * 6) auto;
        padding: 0 calc(var(--grid-unit) * 3);
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: calc(var(--grid-unit) * 2);
    }
    
    .newspaper-section {
        padding: calc(var(--grid-unit) * 3);
    }
    
    .page-content {
        padding: calc(var(--grid-unit) * 3);
    }
    
    .page-content h1 {
        font-size: 28px;
    }
    
    /* Homepage mobile */
    .hero-section {
        height: 50vh;
    }
    
    .hero-content {
        padding: calc(var(--grid-unit) * 3);
    }
    
    .hero-content h1 {
        font-size: clamp(24px, 7vw, 36px);
    }
    
    .hero-excerpt {
        font-size: 16px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--grid-unit) * 2);
    }
    
    .random-posts {
        margin: calc(var(--grid-unit) * 4) auto;
        padding: 0 calc(var(--grid-unit) * 2);
    }
    
    .post-content {
        padding: calc(var(--grid-unit) * 3);
    }
}

/* Homepage Specific Styles */
.homepage {
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
    background: var(--primary-color);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--grid-unit) * 6);
    text-align: center;
    background: rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0;
}

.hero-content h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: calc(var(--grid-unit) * 4);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

.hero-excerpt {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: calc(var(--grid-unit) * 6);
    opacity: 0.95;
    color: var(--light-color);
}

.hero-cta {
    display: inline-block;
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: calc(var(--grid-unit) * 2) calc(var(--grid-unit) * 4);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.hero-cta:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Random Posts Section */
.random-posts {
    max-width: 1400px;
    margin: calc(var(--grid-unit) * 10) auto;
    padding: 0 calc(var(--grid-unit) * 4);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--grid-unit) * 4);
    margin-bottom: calc(var(--grid-unit) * 8);
}

.post-card {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.15);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: calc(var(--grid-unit) * 4);
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.post-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--accent-color);
}

/* Blog Link */
.blog-link {
    text-align: center;
    margin-top: calc(var(--grid-unit) * 6);
}

.view-blog-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: calc(var(--grid-unit) * 2) calc(var(--grid-unit) * 4);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0;
}

.view-blog-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Typography Scale */
h1 { font-size: clamp(32px, 5vw, 64px); font-weight: 300; }
h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 600; }
h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 600; }
h4 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 500; }
h5 { font-size: clamp(16px, 2vw, 20px); font-weight: 500; }
h6 { font-size: clamp(14px, 1.5vw, 18px); font-weight: 500; }