/*!
Theme Name: PortGuard IT
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: portguard-it
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Tech-To-Us is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */


/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

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

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

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

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

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

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */


/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
/* === Mobile nav override for PortGuard IT === */
@media (max-width: 991px) {
    .main-navigation {
        display: none;
    }

    .main-navigation.is-open {
        display: block;
    }
}

/* ===== Blog archive grid ===== */

.blog-archive {
    padding: 60px 0 80px;
}

.blog-archive__header {
    max-width: 760px;
    margin: 0 auto 10px 0;
}

.blog-archive__title {
    font-size: 40px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.blog-archive__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #5f6b7a;
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(18, 42, 75, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: #f1f5fb;
    color: #4f6784;
    font-weight: 600;
}

.blog-card__content {
    padding: 24px 24px 20px;
}

.blog-card__title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.blog-card__title a {
    color: #14233b;
    text-decoration: none;
}

.blog-card__title a:hover {
    color: #0076d6;
}

.blog-card__meta {
    font-size: 14px;
    color: #7a8796;
    margin-bottom: 12px;
    display: none;
}

.blog-card__excerpt {
    margin: 0 0 16px;
    color: #4b5563;
}

.blog-card__read-more {
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #0076d6;
}

.blog-card__read-more:hover {
    text-decoration: underline;
}

.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
}

.blog-pagination .page-numbers.current {
    background: #0076d6;
    color: #ffffff;
}

/* Цвет текста в одиночных постах блога */
.single-post .entry-content p,
.single-post .entry-content li {
    color: #575757 !important;
}

/* Чуть равномернее списки в статье */
.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
}

.single-post .entry-content li {
    margin-bottom: 0.75rem;
}