/*
Theme Name: IPTVUK
Theme URI: https://iptvuk.cloud/gb/
Author: IPTVUK
Author URI: https://iptvuk.cloud/gb/
Description: A pixel-faithful WordPress clone of the IPTVUK.CLOUD landing page. Ships the original hero, features, pricing, devices, worldwide coverage, reviews, long-form content and FAQ sections as editable, filterable template parts. Includes customizer options (WhatsApp number, e-mail, address, footer copy), three menu locations, optional page content mode and section shortcodes so the same blocks can be reused on any page.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iptvuk
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, blog, full-width-template
*/

/* ==========================================================================
   0. Self-hosted font
   The original page loads Roboto from Google Fonts and the Elementor global
   kit uses it for widget headings and text. Bundling the latin subset keeps
   the theme self-contained and avoids a third-party request.
   ========================================================================== */

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 100%;
	font-display: swap;
	src: url("assets/fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
		U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
		U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. Theme additions
   The cloned layout lives in assets/css/theme-framework.css (Astra + Elementor
   frontend styles) and assets/css/site.css (the section styles). Everything
   below only adds what a normal WordPress site needs on top of the clone.
   ========================================================================== */

/* The original site runs WooCommerce, whose `.woocommerce-js h2` rule lowers
   the bottom margin of section headings to 0.7em. The theme does not load
   WooCommerce, so mirror that one declaration to keep the original spacing. */
.iptv-section-heading {
	margin-bottom: 0.7em;
}

/* Base page wrappers used by index.php / page.php / single.php */
.iptvuk-page-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 60px 20px 80px;
}

.iptvuk-page-header {
	margin-bottom: 35px;
	text-align: center;
}

.iptvuk-page-header .entry-title {
	font-size: 38px;
	line-height: 1.2;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 10px;
}

.iptvuk-page-header .iptvuk-subtitle {
	color: #475569;
	font-size: 17px;
	margin: 0;
}

.iptvuk-breadcrumbs {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 18px;
}

.iptvuk-breadcrumbs a {
	color: #2563eb;
	text-decoration: none;
}

/* Content typography for regular posts and pages */
.iptvuk-content {
	background: #ffffff;
	border-radius: 15px;
	padding: 45px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
	font-size: 17px;
	line-height: 1.75;
	color: #334155;
}

.iptvuk-content > *:first-child {
	margin-top: 0;
}

.iptvuk-content h1,
.iptvuk-content h2,
.iptvuk-content h3,
.iptvuk-content h4 {
	color: #0f172a;
	line-height: 1.25;
	margin: 1.6em 0 0.6em;
}

.iptvuk-content h2 {
	font-size: 30px;
}

.iptvuk-content h3 {
	font-size: 23px;
}

.iptvuk-content a {
	color: #2563eb;
}

.iptvuk-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.iptvuk-content blockquote {
	border-left: 4px solid #2563eb;
	background: #f8fbff;
	margin: 1.8em 0;
	padding: 18px 24px;
	border-radius: 0 12px 12px 0;
	color: #334155;
}

.iptvuk-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
}

.iptvuk-content th,
.iptvuk-content td {
	border: 1px solid #e2e8f0;
	padding: 10px 14px;
	text-align: left;
}

.iptvuk-content th {
	background: #f1f5f9;
	color: #0f172a;
}

/* Blog / archive cards */
.iptvuk-post-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.iptvuk-post-card {
	background: #ffffff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iptvuk-post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.iptvuk-post-card__thumb img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.iptvuk-post-card__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.iptvuk-post-card__meta {
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 10px;
}

.iptvuk-post-card__title {
	font-size: 21px;
	line-height: 1.35;
	font-weight: 700;
	margin: 0 0 12px;
}

.iptvuk-post-card__title a {
	color: #0f172a;
	text-decoration: none;
}

.iptvuk-post-card__title a:hover {
	color: #2563eb;
}

.iptvuk-post-card__excerpt {
	font-size: 15px;
	color: #475569;
	line-height: 1.65;
	margin: 0 0 20px;
}

.iptvuk-post-card__more {
	margin-top: auto;
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

.iptvuk-post-card__more:hover {
	text-decoration: underline;
}

/* Pagination */
.iptvuk-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 45px 0 0;
	flex-wrap: wrap;
}

.iptvuk-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 10px;
	background: #ffffff;
	color: #0f172a;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.iptvuk-pagination .page-numbers.current,
.iptvuk-pagination .page-numbers:hover {
	background: #2563eb;
	color: #ffffff;
}

/* Single post header / footer */
.iptvuk-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	color: #64748b;
	font-size: 14px;
	margin-top: 12px;
}

.iptvuk-single-meta a {
	color: #2563eb;
	text-decoration: none;
}

.iptvuk-post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-top: 35px;
}

.iptvuk-post-nav a {
	display: block;
	background: #ffffff;
	border-radius: 12px;
	padding: 18px 22px;
	text-decoration: none;
	color: #0f172a;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
	font-weight: 600;
}

.iptvuk-post-nav span {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
	margin-bottom: 6px;
}

/* Search form */
.iptvuk-search-form {
	display: flex;
	gap: 10px;
	margin-bottom: 35px;
}

.iptvuk-search-form input[type="search"] {
	flex: 1;
	padding: 14px 18px;
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	font-size: 16px;
	background: #ffffff;
}

.iptvuk-search-form button,
.iptvuk-search-form input[type="submit"] {
	background: #2563eb;
	color: #ffffff;
	border: 0;
	border-radius: 10px;
	padding: 14px 26px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

/* Comments */
.iptvuk-comments {
	margin-top: 45px;
	background: #ffffff;
	border-radius: 15px;
	padding: 35px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.iptvuk-comments .comment-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.iptvuk-comments .comment-list ol {
	list-style: none;
	margin-left: 30px;
	padding: 0;
}

.iptvuk-comments .comment-body {
	border-bottom: 1px solid #eef2f8;
	padding: 18px 0;
}

.iptvuk-comments .comment-form input[type="text"],
.iptvuk-comments .comment-form input[type="email"],
.iptvuk-comments .comment-form input[type="url"],
.iptvuk-comments .comment-form textarea {
	width: 100%;
	border: 1px solid #dbe3ef;
	border-radius: 10px;
	padding: 12px 15px;
	font-size: 16px;
	background: #ffffff;
}

.iptvuk-comments .submit {
	background: #2563eb;
	color: #ffffff;
	border: 0;
	border-radius: 50px;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

/* 404 */
.iptvuk-404 {
	text-align: center;
	padding: 90px 20px;
}

.iptvuk-404 h1 {
	font-size: 96px;
	line-height: 1;
	font-weight: 800;
	color: #2563eb;
	margin: 0 0 10px;
}

.iptvuk-404 p {
	font-size: 18px;
	color: #475569;
	margin-bottom: 30px;
}

.iptvuk-404 .iptv-cta-btn,
.iptvuk-404 .iptv-hero-btn {
	display: inline-block;
}

/* WordPress alignment helpers used inside .iptvuk-content */
.iptvuk-content .alignwide {
	width: min(1100px, 100vw - 40px);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.iptvuk-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.iptvuk-content .wp-caption,
.iptvuk-content figure {
	max-width: 100%;
}

.iptvuk-content .wp-caption-text,
.iptvuk-content figcaption {
	font-size: 14px;
	color: #64748b;
	text-align: center;
	margin-top: 8px;
}

/* Screen reader helper for themes without Astra's utility class */
.iptvuk-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;
}

/* Make sure the WhatsApp / CTA buttons never inherit link underlines */
.iptv-hero-btn,
.iptv-plan-btn,
.iptv-cta-btn {
	text-decoration: none !important;
}

/* --------------------------------------------------------------------------
   Mobile submenus
   Astra hides nested menus below the breakpoint and reveals them with inline
   styles from its own script. theme.js uses this class instead.
   -------------------------------------------------------------------------- */
.ast-header-break-point .main-header-menu .menu-item-has-children.ast-submenu-open > .sub-menu {
	display: block;
}

.ast-header-break-point .main-header-menu .menu-item-has-children > a {
	position: relative;
}

.ast-header-break-point .main-header-menu .menu-item-has-children > a[aria-expanded="true"]::after {
	transform: translateY(-50%) rotate(180deg);
}

/* Entire FAQ card is clickable, as on the original site */
.iptv-faq-item {
	cursor: pointer;
}

/* Landing page template: no wrapper, no padding */
.iptvuk-landing-content {
	width: 100%;
	max-width: 100%;
	padding: 0;
	margin: 0;
}

.iptvuk-landing-content > .site-main {
	margin: 0;
	max-width: 100%;
}

.iptvuk-landing-content .elementor {
	width: 100%;
}

/* Single post extras */
.iptvuk-single-thumb {
	max-width: 900px;
	margin: 0 auto 30px;
}

.iptvuk-single-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 15px;
}

.iptvuk-tags {
	max-width: 900px;
	margin: 30px auto 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.iptvuk-tags a {
	display: inline-block;
	background: #eef4ff;
	color: #1d4ed8;
	border-radius: 50px;
	padding: 6px 14px;
	font-size: 13px;
	text-decoration: none;
}

.iptvuk-404-search {
	max-width: 460px;
	margin: 30px auto 0;
}

.iptvuk-404-search .iptvuk-search-form {
	margin-bottom: 0;
}

/* Slightly tighter hero on very small screens (matches the original breakpoints) */
@media (max-width: 600px) {
	.iptvuk-content {
		padding: 26px 20px;
	}

	.iptvuk-page-wrap {
		padding: 40px 16px 60px;
	}

	.iptvuk-page-header .entry-title {
		font-size: 30px;
	}
}
