/*
Theme Name: Berni
Theme URI: https://oxiwiz.fr
Author: Oxiwiz
Author URI: https://oxiwiz.fr
Description: A modern WordPress theme optimized for Elementor with ready-to-use page templates for telescope benchmarks, blog, and news articles.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: berni
Tags: elementor, blog, news, telescope, benchmark, custom-templates, flexible-header, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready

Berni is a modern WordPress theme designed to work seamlessly with Elementor page builder, featuring pre-built templates for telescope comparisons, blog listings, and article displays.
*/

/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

ol, ul { 
    margin-left: 20px;
    padding-left: 20px;
}

h3 {
    margin-top: 20px;
}

/* Typography */
h3, h4, h5, h6,
.page-title,
.widget-title {
    color: #1a237e; /* Bleu nuit */
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

/* H1 and H2 with Milky Way Background */
h1,
h2,
.entry-title,
.entry-content h1,
.entry-content h2,
.single-post h1,
.single-post .entry-content h1,
.single-post .entry-content h2,
.benchmark-conclusion h1,
.benchmark-conclusion h2,
.homepage-section-title {
    position: relative;
    background: linear-gradient(135deg, #0d1440 0%, #1a237e 50%, #0d1440 100%) !important; /* Darker Milky Way blue gradient */
    color: #fff !important; /* Force white text, override Elementor variables */
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    padding: 10px 2rem !important; /* 10px top/bottom, 2rem left/right */
    margin: 2rem 0 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
}

/* Milky Way Background Effect */
h1::before,
h2::before,
.entry-title::before,
.entry-content h1::before,
.entry-content h2::before,
.single-post h1::before,
.single-post .entry-content h1::before,
.single-post .entry-content h2::before,
.benchmark-conclusion h1::before,
.benchmark-conclusion h2::before,
.homepage-section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 40% 90%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 15% 50%, rgba(255, 255, 255, 0.5), transparent),
        /* Nebula effects */
        radial-gradient(ellipse 100px 30px at 25% 40%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(ellipse 80px 25px at 75% 60%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(ellipse 120px 35px at 50% 80%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(ellipse 90px 28px at 10% 20%, rgba(255, 255, 255, 0.09), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.6;
    animation: milkyWayMove 20s ease-in-out infinite;
    z-index: -1;
}

/* Milky Way Animation */
@keyframes milkyWayMove {
    0%, 100% {
        background-position: 0% 0%;
        opacity: 0.6;
    }
    25% {
        background-position: 25% 15%;
        opacity: 0.7;
    }
    50% {
        background-position: 50% 30%;
        opacity: 0.5;
    }
    75% {
        background-position: 75% 15%;
        opacity: 0.65;
    }
}

/* H1 and H2 Text Positioning */
h1,
h2,
.entry-title,
.entry-content h1,
.entry-content h2,
.single-post h1,
.single-post .entry-content h1,
.single-post .entry-content h2,
.benchmark-conclusion h1,
.benchmark-conclusion h2,
.homepage-section-title {
    position: relative;
    z-index: 2;
}

/* H1 and H2 in specific contexts */
.entry-content h1:first-child,
.entry-content h2:first-child,
.single-post h1:first-child,
.single-post .entry-content h1:first-child,
.single-post .entry-content h2:first-child {
    margin-top: 20px;
}

/* H1 and H2 alignment variations */
h1[style*="text-align: center"],
h2[style*="text-align: center"],
.homepage-section-title {
    text-align: center;
}

h1[style*="text-align: left"],
h2[style*="text-align: left"] {
    text-align: left;
}

h1[style*="text-align: right"],
h2[style*="text-align: right"] {
    text-align: right;
}

strong, b {
    color: #1a237e; /* Bleu nuit */
    font-weight: 700;
}

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

/* Header */
.site-header {
    background: linear-gradient(135deg, #0d1440 0%, #1a237e 50%, #0d1440 100%); /* Darker Milky Way blue gradient */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

/* Milky Way Effect for Header */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 40% 90%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 15% 50%, rgba(255, 255, 255, 0.5), transparent),
        /* Nebula effects */
        radial-gradient(ellipse 100px 30px at 25% 40%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(ellipse 80px 25px at 75% 60%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(ellipse 120px 35px at 50% 80%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(ellipse 90px 28px at 10% 20%, rgba(255, 255, 255, 0.09), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.6;
    animation: milkyWayMove 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 20px; /* Increased height */
    position: relative;
    z-index: 1;
}

.site-branding {
    flex: 0 0 auto;
}

.main-navigation {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 40px;
}

/* Site Logo */
.site-logo-link {
    display: inline-block;
    text-decoration: none;
}

.site-logo {
    height: 150px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.site-logo-link:hover .site-logo {
    opacity: 0.8;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.site-title a {
    text-decoration: none;
    color: #fff; /* Texte blanc */
}

.site-description {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #fff; /* Texte blanc */
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s;
    font-size: 1rem;
}

.main-navigation a:hover {
    color: #e0e0e0; /* Gris clair au survol */
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: #fff;
    font-weight: 500;
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Homepage Sections */
.homepage-hero {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
}

.homepage-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a237e;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

.homepage-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.homepage-section {
    padding: 3rem 0;
}

.homepage-section-title {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

/* Image Zones */
.image-zone {
    margin: 2rem 0;
    text-align: center;
}

.image-zone img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-zone a img:hover,
.image-zone img.clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Benchmarks Section */
.benchmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benchmark-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.benchmark-card:hover {
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.15);
    transform: translateY(-5px);
}

.benchmark-card-image {
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.benchmark-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.benchmark-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-family: 'Roboto', sans-serif;
}

.benchmark-card p {
    color: #666;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.15);
    transform: translateY(-5px);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-family: 'Roboto', sans-serif;
}

.news-card-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif;
}

.news-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Button */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #1a237e;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 2rem;
    font-family: 'Roboto', sans-serif;
}

.btn-primary:hover {
    background-color: #283593;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 35, 126, 0.3);
}

.btn-center {
    text-align: center;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #0d1440 0%, #1a237e 50%, #0d1440 100%); /* Darker Milky Way blue gradient */
    color: #fff;
    padding: 0rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Milky Way Effect for Footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 40% 90%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 15% 50%, rgba(255, 255, 255, 0.5), transparent),
        /* Nebula effects */
        radial-gradient(ellipse 100px 30px at 25% 40%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(ellipse 80px 25px at 75% 60%, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(ellipse 120px 35px at 50% 80%, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(ellipse 90px 28px at 10% 20%, rgba(255, 255, 255, 0.09), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    opacity: 0.6;
    animation: milkyWayMove 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Footer Logo */
.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: 1.5rem;
}

.footer-logo {
    height: 100px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
    opacity: 0.8;
}

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

.footer-widget-area {
    margin-bottom: 2rem;
}

.footer-widget-area .widget-title {
    color: #fff;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-widget-area .widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget-area .widget a:hover {
    color: #fff;
}

.footer-menu-wrapper {
    border-top: 1px solid #333;
    padding-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

#footer-menu {
    display: inline-flex;
    align-items: center;
    width: auto;
}

#footer-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    width: auto;
}

#footer-menu li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Add pipe separator after logo */
.footer-logo-link::after {
    content: '|';
    color: #666;
    margin-left: 1.5rem;
    font-weight: 300;
}

#footer-menu li:not(:last-child)::after {
    content: '|';
    color: #666;
    margin: 0 1.5rem;
    font-weight: 300;
}

#footer-menu a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: inline-block;
}

#footer-menu a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9rem;
}

/* Elementor Compatibility */
.elementor-page .site-main {
    padding: 0;
}

.elementor-default .container, .elementor-page .container {
    max-width: 100%;
    padding: 0;
}

/* Apply same container style to single posts */
body.single .container,
.single .site-main .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Posts */
.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-thumbnail {
    width: 100%;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-header {
    padding: 1.5rem;
}

.entry-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.entry-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-content {
    padding: 0 1.5rem 1.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #005a87;
}

/* Single Post */
.single-post h1 {
    /*max-width: 800px;*/
    margin-top: 40px;
    /* Style is now inherited from H1 and H2 with Milky Way Background */
}
.single-post {
    /*max-width: 800px;*/
    margin: 0 auto;
    padding-top: 0;
}

/* Remove all padding from site-main for single posts to match homepage */
.single .site-main {
    padding: 0;
}

/* Ensure container matches homepage (Elementor) style for single posts */
.single .container {
    max-width: 80% !important;
    padding: 0 !important;
    margin-top: 0;
}

/* Container width for desktop only */
@media (min-width: 769px) {
    body.single .site-main .container, body.page .site-main .container {
        max-width: 80% !important;
    }
}

/* Archive page - same container style as single */
.archive .site-main,
.blog .site-main {
    padding: 0;
}

.archive .container,
.blog .container {
    max-width: 100% !important;
    padding: 0 20px !important;
    margin-top: 0;
}

.single-post {
    margin-top: 0;
    padding-top: 0;
}

.single-post .entry-header {
    margin-bottom: 2rem;
    margin-top: 0;
    padding-top: 0;
}

.single-post .entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .post-thumbnail {
    margin-bottom: 2rem;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a237e;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

/* Archive Page Styles */
.archive-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 20px;
}

.archive-post-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.archive-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.15);
    border-color: #1a237e;
}

.archive-post-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.archive-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-post-item:hover .archive-post-thumbnail img {
    transform: scale(1.05);
}

.archive-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.archive-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.archive-entry-header {
    margin-bottom: 1rem;
}

.archive-entry-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.archive-entry-title a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-entry-title a:hover {
    color: #283593;
}

.archive-entry-meta {
    font-size: 0.875rem;
    color: #999;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1rem;
}

.archive-entry-meta span {
    margin-right: 1rem;
}

.archive-entry-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.archive-entry-content p {
    margin: 0;
    font-size: 0.95rem;
}

.archive-entry-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.archive-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #1a237e;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.archive-read-more:hover {
    background-color: #283593;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.archive-read-more-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.archive-read-more:hover .archive-read-more-arrow {
    transform: translateX(3px);
}

.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-tags a {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
}

.post-tags a:hover {
    background-color: #0073aa;
    color: #fff;
}

/* Benchmark Pages */
.benchmark-page {
    padding: 2rem 0;
}

.benchmark-intro {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.benchmark-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.benchmark-table thead {
    background-color: #0073aa;
    color: #fff;
}

.benchmark-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.benchmark-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.benchmark-table tbody tr:hover {
    background-color: #f9f9f9;
}

.benchmark-table .telescope-1 {
    background-color: #f0f8ff;
}

.benchmark-table .telescope-2 {
    background-color: #fff8f0;
}

.benchmark-table .telescope-3 {
    background-color: #f8fff0;
}

.benchmark-table .telescope-4 {
    background-color: #fff0f8;
}

.benchmark-conclusion {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.benchmark-conclusion h2 {
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
}

.pagination a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

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

/* Sidebar */
.sidebar {
    margin-top: 2rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widgets .widget {
    background: transparent;
    padding: 0;
}

.footer-widgets .widget-title {
    color: #fff;
    border-bottom-color: #555;
}

.footer-widgets .widget a {
    color: #ccc;
}

.footer-widgets .widget a:hover {
    color: #fff;
}

.site-info {
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.site-info p {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 20px; /* Slightly reduced on mobile */
    }
    
    .site-logo {
        height: 80px;
    }
    
    .footer-logo {
        height: 80px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .posts-container {
        grid-template-columns: 1fr;
    }
    
    .archive-posts-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .archive-post-thumbnail {
        height: 200px;
    }
    
    .archive-post-content {
        padding: 1.25rem;
    }
    
    .archive-entry-title {
        font-size: 1.1rem;
    }
    
    .page-header {
        padding: 1.5rem 10px 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .benchmark-table-wrapper.mobile-scroll {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .benchmark-table {
        min-width: 600px;
    }
    
    .single-post .entry-title {
        font-size: 1.8rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .homepage-hero h1 {
        font-size: 2rem;
    }
    
    .homepage-hero p {
        font-size: 1rem;
    }
    
    .homepage-section-title {
        font-size: 1.5rem;
        padding: 10px 1.5rem !important;
    }
    
    h1,
    h2,
    .entry-title,
    .entry-content h1,
    .entry-content h2,
    .single-post h1,
    .single-post .entry-content h1,
    .single-post .entry-content h2,
    .benchmark-conclusion h1,
    .benchmark-conclusion h2 {
        padding: 10px 1.5rem !important;
        font-size: 1.4rem;
        margin: 1.5rem 0 1rem;
    }
    
    .benchmarks-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Footer menu responsive */
    .footer-menu-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-logo-link {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer-logo-link::after {
        display: none;
    }
    
    #footer-menu li:not(:last-child)::after {
        margin: 0 0.75rem;
    }
    
    #footer-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Berni News Shortcode Styles */
.berni-news-container {
    margin: 2rem 0;
    padding: 0;
}

.berni-news-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Columns - Desktop */
.berni-news-columns-1 {
    grid-template-columns: 1fr;
}

.berni-news-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.berni-news-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.berni-news-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.berni-news-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.berni-news-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* News Card */
.berni-news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.berni-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.15);
    border-color: #1a237e;
}

/* Card Image */
.berni-news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.berni-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.berni-news-card:hover .berni-news-card-image img {
    transform: scale(1.05);
}

.berni-news-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Card Content */
.berni-news-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.berni-news-card-header {
    margin-bottom: 1rem;
}

.berni-news-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.berni-news-card-title a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.berni-news-card-title a:hover {
    color: #283593;
}

.berni-news-card-meta {
    font-size: 0.875rem;
    color: #999;
    font-family: 'Roboto', sans-serif;
}

.berni-news-card-date {
    color: #999;
    text-decoration: none;
}

/* Card Excerpt */
.berni-news-card-excerpt {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.berni-news-card-excerpt p {
    margin: 0;
    font-size: 0.95rem;
}

/* Card Footer */
.berni-news-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.berni-news-card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #1a237e;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.berni-news-card-button:hover {
    background-color: #283593;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.berni-news-card-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.berni-news-card-button:hover .berni-news-card-arrow {
    transform: translateX(3px);
}

/* Pagination */
.berni-news-pagination {
    margin-top: 3rem;
    text-align: center;
}

.berni-news-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.berni-news-pagination .page-numbers li {
    margin: 0;
    padding: 0;
}

.berni-news-pagination .page-numbers a,
.berni-news-pagination .page-numbers span {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
}

.berni-news-pagination .page-numbers a:hover {
    background-color: #1a237e;
    color: #fff;
    border-color: #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 35, 126, 0.2);
}

.berni-news-pagination .page-numbers .current {
    background-color: #1a237e;
    color: #fff;
    border-color: #1a237e;
    font-weight: 600;
}

.berni-news-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
}

/* Empty State */
.berni-news-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-family: 'Roboto', sans-serif;
}

.berni-news-empty p {
    margin: 0;
    font-size: 1.1rem;
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    .berni-news-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .berni-news-card-image {
        height: 200px;
    }
    
    .berni-news-card-content {
        padding: 1.25rem;
    }
    
    .berni-news-card-title {
        font-size: 1.1rem;
    }
    
    .berni-news-pagination .page-numbers {
        gap: 0.25rem;
    }
    
    .berni-news-pagination .page-numbers a,
    .berni-news-pagination .page-numbers span {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .berni-news-columns-4,
    .berni-news-columns-5,
    .berni-news-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .berni-news-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

