/*
Theme Name:        Speedy Magazine
Theme URI:         https://educenters.in
Author:            Educenters
Author URI:        https://educenters.in
Description:       An ultra-fast, fully responsive magazine and education WordPress theme built for blazing speed and 100/100 Core Web Vitals. Features dark/light mode, Elementor compatibility, custom widgets, and premium Pro features built-in — all without heavy third-party plugin dependencies.
Version:           1.0.0
Tested up to:      6.7
Requires PHP:      8.0
Requires at least: 6.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       speedy-magazine
Domain Path:       /languages
Tags:              blog, news, education, magazine, grid-layout, one-column, two-columns, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, wide-blocks
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
  - Box Sizing
  - Normalize
# Base
  - Typography
  - Elements
  - Links
# Layout
# Components
  - Header
  - Navigation
  - Footer
  - Widgets
# Utilities
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic - Box Sizing
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Generic - Normalize
--------------------------------------------------------------*/
html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	line-height: 1.15;
}

body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
# Base - Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a2e;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
	margin: 0 0 1.5em;
}

/*--------------------------------------------------------------
# Base - Elements
--------------------------------------------------------------*/
img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol {
	margin: 0 0 1.5em;
	padding: 0 0 0 1.5em;
}

figure {
	margin: 0;
}

/*--------------------------------------------------------------
# Base - Links
--------------------------------------------------------------*/
a {
	color: var(--educenters-primary-color, #e74c3c);
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
	color: var(--educenters-primary-hover, #c0392b);
}

a:focus-visible {
	outline: 2px solid var(--educenters-primary-color, #e74c3c);
	outline-offset: 2px;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.educenters-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* Site content wrapper */
.educenters-site-content {
	padding-top: 0;
	position: relative;
	z-index: 1;
	overflow-x: hidden;
}

/* Inner pages (archive, single, search) get vertical spacing */
.educenters-site-main {
	padding-top: 30px;
	padding-bottom: 30px;
}

/* Front page wrapper — no extra padding, sections have own containers */
.educenters-frontpage-wrap {
	width: 100%;
	position: relative;
	z-index: 0;
	overflow-x: hidden;
}

.educenters-row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.educenters-content-area {
	flex: 1;
	min-width: 0;
}

.educenters-sidebar {
	width: 300px;
	flex-shrink: 0;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Skip Link */
.skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 999999;
}

.skip-link:focus {
	top: 0;
}
