/* SEO and Performance Optimization CSS */

/* Preload critical resources */
@font-face {
    font-family: 'IRANSansWeb';
    font-display: swap;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Critical above-the-fold content */
.page-hero {
    font-display: swap;
}

/* Reduce layout shift */
.news-list {
    min-height: 400px;
}

/* Optimize for mobile-first */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Improve readability for SEO */
.news-content {
    line-height: 1.6;
    font-size: 16px;
}

/* Schema.org microdata styling */
[itemscope] {
    display: block;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles for better SEO */
@media print {
    .no-print {
        display: none !important;
    }
    
    .news-content {
        font-size: 12pt;
        line-height: 1.4;
    }
}
