/*
Theme Name: PTSA Web – IPTV South Africa
Theme URI: https://primeiptvsa.com/
Description: A responsive multi-page WordPress theme for IPTV South Africa with independent plans, setup, device, troubleshooting, FAQ, contact, legal and blog pages.
Version: 2.0.0
Author: PTSA Web
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iptv-south-africa
Tags: custom-logo, custom-menu, featured-images, full-width-template, responsive-layout, translation-ready
Requires at least: 6.0
Requires PHP: 7.4
*/

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: #020617;
	color: #f1f5f9;
}

img {
	max-width: 100%;
	height: auto;
}

.custom-logo {
	width: auto;
	max-height: 48px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #ffffff;
	color: #020617;
	font-weight: 700;
}


.iptv-sa-primary-menu,
.iptv-sa-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.iptv-sa-primary-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.iptv-sa-primary-menu a {
	display: block;
	padding: 0.65rem 1rem;
	border-radius: 0.75rem;
	background: transparent;
	color: #94a3b8;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: 160ms ease;
}

.iptv-sa-primary-menu a:hover,
.iptv-sa-primary-menu .current-menu-item > a,
.iptv-sa-primary-menu .current_page_item > a,
.iptv-sa-primary-menu .current_page_parent > a {
	background: transparent;
	color: #f59e0b;
}

.iptv-sa-mobile-menu {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.iptv-sa-mobile-menu a {
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	color: #94a3b8;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.iptv-sa-mobile-menu a:hover,
.iptv-sa-mobile-menu .current-menu-item > a {
	background: #0f172a;
	color: #f59e0b;
}


/* Editable Gutenberg content shown on the front page. */
.ptsa-editor-content {
    color: #cbd5e1;
}

.ptsa-editor-content .ptsa-content-section {
    margin: 0 0 3rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid #1e293b;
    border-radius: 1.5rem;
}

.ptsa-editor-content .ptsa-content-section:last-child {
    margin-bottom: 0;
}

.ptsa-editor-content .ptsa-eyebrow {
    margin: 0 0 0.65rem;
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ptsa-editor-content h2 {
    margin: 0 0 1rem;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.ptsa-editor-content h3 {
    margin: 0 0 0.75rem;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
}

.ptsa-editor-content p {
    margin: 0 0 1rem;
    color: #94a3b8;
    font-size: 0.98rem;
    line-height: 1.8;
}

.ptsa-editor-content strong {
    color: #f8fafc;
}

.ptsa-editor-content .ptsa-content-grid,
.ptsa-editor-content .ptsa-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.ptsa-editor-content .ptsa-content-card,
.ptsa-editor-content .ptsa-step-card {
    margin: 0;
    padding: 1.4rem;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 1.15rem;
}

.ptsa-editor-content .ptsa-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #020617;
    font-weight: 800;
}

@media (max-width: 800px) {
    .ptsa-editor-content .ptsa-content-section {
        padding: 1.35rem;
    }

    .ptsa-editor-content .ptsa-content-grid,
    .ptsa-editor-content .ptsa-steps-grid {
        grid-template-columns: 1fr;
    }
}



.ptsa-carousel-seo-copy {
    max-width: 72rem;
    margin: 0.85rem auto 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.65;
    text-align: center;
}

.ptsa-carousel-seo-copy p {
    margin: 0.1rem 0;
}

.ptsa-carousel-seo-copy p:first-child {
    color: #cbd5e1;
    font-weight: 600;
}

/* Auto-scrolling entertainment carousel. */
.ptsa-carousel-section {
    overflow: hidden;
}

.ptsa-carousel-viewport {
    position: relative;
    overflow: hidden;
    padding: 0.35rem 0 0.75rem;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.ptsa-carousel-track {
    display: flex;
    width: max-content;
    gap: 1rem;
    animation: ptsa-carousel-scroll 34s linear infinite;
    will-change: transform;
}

.ptsa-carousel-viewport:hover .ptsa-carousel-track,
.ptsa-carousel-viewport:focus-within .ptsa-carousel-track {
    animation-play-state: paused;
}

.ptsa-carousel-group {
    display: flex;
    gap: 1rem;
}

.ptsa-carousel-card {
    position: relative;
    flex: 0 0 clamp(235px, 26vw, 330px);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #1e293b;
    border-radius: 1.35rem;
    background: #0f172a;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.35);
    transform: translateZ(0);
}

.ptsa-carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease, filter 350ms ease;
}

.ptsa-carousel-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.08);
}

.ptsa-carousel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.05) 62%);
    pointer-events: none;
}

.ptsa-carousel-label {
    position: absolute;
    z-index: 2;
    left: 1rem;
    right: 1rem;
    bottom: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 750;
}

.ptsa-carousel-label::after {
    content: "→";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
}

@keyframes ptsa-carousel-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 0.5rem)); }
}

@media (prefers-reduced-motion: reduce) {
    .ptsa-carousel-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .ptsa-carousel-track { animation: none; }
    .ptsa-carousel-group[aria-hidden="true"] { display: none; }
}

/* PTSA v2 multi-page templates and internal-link components. */
.ptsa-page-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0 1rem;
}

.ptsa-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.78rem;
}

.ptsa-breadcrumbs a { color: #94a3b8; text-decoration: none; }
.ptsa-breadcrumbs a:hover { color: #f59e0b; }

.ptsa-page-article {
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid #1e293b;
    border-radius: 1.75rem;
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.28);
}

.ptsa-page-header,
.ptsa-blog-header {
    padding: clamp(2rem, 5vw, 4rem);
    background: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12), transparent 32%), #020617;
    border-bottom: 1px solid #1e293b;
}

.ptsa-blog-header {
    margin-bottom: 2rem;
    border: 1px solid #1e293b;
    border-radius: 1.75rem;
    text-align: center;
}

.ptsa-page-kicker {
    display: block;
    margin-bottom: 0.75rem;
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ptsa-page-header h1,
.ptsa-blog-header h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.15rem, 6vw, 4.6rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.ptsa-blog-header h1 { margin-inline: auto; }
.ptsa-page-header > p,
.ptsa-blog-header > p {
    max-width: 800px;
    margin: 1rem 0 0;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.75;
}
.ptsa-blog-header > p { margin-inline: auto; }

.ptsa-page-content { padding: clamp(1.25rem, 4vw, 3rem); }
.ptsa-page-content > .ptsa-content-section { margin-bottom: 1.5rem; }
.ptsa-page-content > .wp-block-shortcode { margin: 2rem 0; }

.ptsa-editor-content a:not(.ptsa-primary-button):not(.ptsa-secondary-button) { color: #f59e0b; }
.ptsa-editor-content a:hover { text-decoration: underline; }
.ptsa-editor-content ul,
.ptsa-editor-content ol { margin: 1rem 0 1.25rem 1.4rem; color: #94a3b8; line-height: 1.8; }
.ptsa-editor-content li { margin-bottom: 0.45rem; }
.ptsa-editor-content blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid #f59e0b; background: #020617; color: #cbd5e1; }

.ptsa-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.ptsa-link-card {
    padding: 1.35rem;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 1.1rem;
}
.ptsa-link-card h3 { margin-top: 0; }
.ptsa-link-card p:last-child { margin-bottom: 0; }
.ptsa-text-link { color: #f59e0b !important; font-weight: 700; text-decoration: none; }
.ptsa-text-link:hover { text-decoration: underline; }

.ptsa-page-cta,
.ptsa-related-guides {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(15, 23, 42, 0.88));
}
.ptsa-page-cta h2,
.ptsa-related-guides h2 { margin: 0.35rem 0 0.7rem; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.ptsa-page-cta p { max-width: 700px; margin: 0; color: #94a3b8; line-height: 1.7; }
.ptsa-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; flex-shrink: 0; }
.ptsa-primary-button,
.ptsa-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.2rem;
    border-radius: 0.85rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}
.ptsa-primary-button { background: linear-gradient(90deg, #f59e0b, #f97316); color: #020617; }
.ptsa-secondary-button { border: 1px solid #334155; background: #0f172a; color: #fff; }
.ptsa-primary-button:hover,
.ptsa-secondary-button:hover { opacity: 0.9; }

.ptsa-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.ptsa-contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 180px;
    padding: 1.5rem;
    border: 1px solid #1e293b;
    border-radius: 1.2rem;
    background: #020617;
    color: #94a3b8 !important;
    text-decoration: none !important;
}
.ptsa-contact-card:hover { border-color: rgba(245, 158, 11, 0.5); transform: translateY(-2px); }
.ptsa-contact-card strong { color: #fff; font-size: 1.05rem; }
.ptsa-contact-icon { display: inline-flex; width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; border-radius: 0.8rem; background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.ptsa-contact-icon svg { width: 1.2rem; height: 1.2rem; }

.ptsa-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ptsa-blog-card { overflow: hidden; border: 1px solid #1e293b; border-radius: 1.4rem; background: rgba(15, 23, 42, 0.78); }
.ptsa-blog-card:hover { border-color: #334155; }
.ptsa-blog-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #020617; }
.ptsa-blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.ptsa-blog-card:hover .ptsa-blog-image img { transform: scale(1.03); }
.ptsa-blog-card-body { padding: 1.5rem; }
.ptsa-blog-card h2 { margin: 0.45rem 0 0.8rem; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; line-height: 1.25; }
.ptsa-blog-card h2 a { color: inherit; text-decoration: none; }
.ptsa-blog-card h2 a:hover { color: #f59e0b; }
.ptsa-blog-excerpt { color: #94a3b8; font-size: 0.9rem; line-height: 1.7; }
.ptsa-post-meta { color: #64748b; font-size: 0.75rem; font-family: "JetBrains Mono", monospace; }
.ptsa-pagination { grid-column: 1 / -1; padding-top: 1rem; }
.ptsa-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.ptsa-pagination a,
.ptsa-pagination span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 0.75rem; border: 1px solid #1e293b; border-radius: 0.7rem; color: #cbd5e1; text-decoration: none; }
.ptsa-pagination .current,
.ptsa-pagination a:hover { background: #f59e0b; color: #020617; border-color: #f59e0b; }
.ptsa-empty-state { grid-column: 1 / -1; padding: 3rem; text-align: center; border: 1px solid #1e293b; border-radius: 1.5rem; background: #0f172a; }
.ptsa-empty-state h2 { color: #fff; }
.ptsa-empty-state p { color: #94a3b8; }

.ptsa-single-image { margin: 0; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid #1e293b; background: #020617; }
.ptsa-single-image img { width: 100%; height: 100%; object-fit: cover; }
.ptsa-post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem; border-top: 1px solid #1e293b; }
.ptsa-post-navigation > div:last-child { text-align: right; }
.ptsa-post-navigation a { color: #f59e0b; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.ptsa-related-guides { display: block; }

@media (max-width: 900px) {
    .ptsa-link-grid,
    .ptsa-contact-grid { grid-template-columns: 1fr; }
    .ptsa-blog-grid { grid-template-columns: 1fr; }
    .ptsa-page-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .ptsa-page-shell { width: min(100% - 1rem, 1180px); padding-top: 1.25rem; }
    .ptsa-page-header,
    .ptsa-blog-header { padding: 1.5rem; }
    .ptsa-page-content { padding: 0.75rem; }
    .ptsa-page-content .ptsa-content-section { padding: 1.15rem; }
    .ptsa-post-navigation { grid-template-columns: 1fr; }
    .ptsa-post-navigation > div:last-child { text-align: left; }
}
/* Clean design for the Plans page */
.ptsa-plans-page {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Keep the page title in a clean separate box */
.ptsa-plans-page .ptsa-page-header {
    margin-bottom: 1.5rem;
    border: 1px solid #1e293b;
    border-radius: 1.5rem;
}

/* Remove the large grey spacing around pricing */
.ptsa-plans-page .ptsa-page-content {
    padding: 0;
}

/* Remove unnecessary space around the shortcode */
.ptsa-plans-page .ptsa-page-content > .wp-block-shortcode {
    margin: 0;
}

/* Remove the black rectangle behind the pricing cards */
.ptsa-plans-page .iptv-sa-shortcode-wrapper {
    background: transparent !important;
}

/* Reduce vertical empty space */
.ptsa-plans-page .iptv-sa-shortcode-wrapper > section {
    padding: 1rem 0 2rem !important;
}

/* Keep space before the content below pricing */
.ptsa-plans-page .ptsa-page-content > .ptsa-content-section {
    margin-top: 1.5rem;
}
