/*============================================
    NayaOTT Custom Styles - Responsive + SEO + UI
    Author: NayaOTT IPTV Pakistan
    Version: 2.0
============================================*/

/*===========================
    GLOBAL OVERRIDES
===========================*/
body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #f14836;
    transition: color 0.2s ease;
}

a:hover {
    color: #d13322;
}

/* Better text readability */
p {
    font-size: 15px;
    line-height: 1.7;
    color: #5c6e80;
}

h1, h2, h3, h4, h5, h6 {
    color: #2d3748;
    line-height: 1.3;
}

/* Selection color */
::selection {
    background: #f14836;
    color: #fff;
}

.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;
}

.sr-only-focusable:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #f14836;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    outline: 3px solid #fff;
}

/*===========================
    BLOG / ARTICLE FIXES
===========================*/
/* Breadcrumb */
.breadcrumb-custom {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
}
.breadcrumb-custom li {
    display: inline;
}
.breadcrumb-custom li:not(:last-child):after {
    content: "\203A";
    margin: 0 8px;
    color: #999;
}
.breadcrumb-custom a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.breadcrumb-custom a:hover {
    color: #fff;
    text-decoration: underline;
}
.breadcrumb-custom li[aria-current] {
    color: #fff;
    font-weight: 600;
}

/* Table of Contents */
.toc-box ol {
    counter-reset: item;
    padding-left: 0;
}
.toc-box ol li {
    display: block;
    margin-bottom: 6px;
    counter-increment: item;
}
.toc-box ol li:before {
    content: counter(item) ".";
    color: #f14836;
    font-weight: 700;
    margin-right: 6px;
}
.toc-box ol li a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.toc-box ol li a:hover {
    color: #f14836;
    border-bottom-color: #f14836;
}

/* Blockquote */
.blockquote-custom {
    border-left: 4px solid #f14836 !important;
}

/* Step items */
.step-number {
    flex-shrink: 0;
}

/* Sidebar sticky */
@media (min-width: 992px) {
    .sidebar-sticky {
        position: sticky;
        top: 100px;
    }
}

/* Sidebar widget spacing */
.sidebar-widget ul li a {
    color: #333;
    font-size: 14px;
}
.sidebar-widget ul li a:hover {
    color: #f14836;
}

/* Pricing mini cards */
.pricing-mini-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Device cards */
.device-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.device-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Share section */
.share-section .btn {
    font-size: 13px;
}

/* Blog content spacing */
.blog-details-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}
.blog-details-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

/*===========================
    PRICING CARDS FIXES
===========================*/
@media (max-width: 575px) {
    .single-pricing {
        padding: 25px 15px !important;
    }
    .single-pricing .pricing-price .price {
        font-size: 32px !important;
    }
}

/*===========================
    HEADER / NAVIGATION FIXES
===========================*/
.navbar-area {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

@media (max-width: 400px) {
    .navbar-brand img {
        max-height: 35px;
    }
    .navbar-brand {
        max-width: 60%;
    }
}

.navbar-nav .nav-item a {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Mobile menu improvements */
@media (max-width: 991px) {
    .navbar-nav .nav-item {
        margin: 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }
    .navbar-nav .nav-item a {
        padding: 12px 15px !important;
        font-size: 14px;
    }
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Hero image responsive */
.header-hero-image .image img {
    max-width: 100%;
    height: auto;
}

/* Mobile hero text sizing */
@media (max-width: 767px) {
    .header-hero-content .hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    .header-hero-content .text {
        font-size: 14px !important;
    }
}

/*===========================
    HERO SECTION FIXES
===========================*/
.header-hero {
    min-height: 600px;
    height: auto;
    padding: 200px 0 100px;
    background-position: right center;
}

@media (max-width: 991px) {
    .header-hero {
        padding: 180px 0 60px;
        min-height: auto;
        background-position: center;
    }
    .header-hero-content {
        text-align: center;
        padding-top: 0 !important;
    }
    .header-hero-content .text {
        max-width: 100%;
        margin: 0 auto;
    }
    .header-hero-content .hero-title {
        font-size: 32px !important;
    }
    .header-hero-image {
        position: relative !important;
        width: 100% !important;
        padding-top: 40px !important;
    }
    .header-hero-image .image img {
        max-width: 90%;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 576px) {
    .header-hero {
        padding: 160px 0 40px;
    }
    .header-hero-content .hero-title {
        font-size: 26px !important;
    }
    .header-hero-content .header-singup input {
        height: 50px !important;
        font-size: 14px !important;
    }
    .header-hero-content .header-singup .main-btn {
        height: 46px !important;
        line-height: 42px !important;
        font-size: 13px !important;
    }
}

/*===========================
    SECTION TITLE FIXES
===========================*/
.section-title .title {
    font-size: 30px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .section-title .title {
        font-size: 22px !important;
    }
}

/*===========================
    ABOUT SECTION
===========================*/
.about-area {
    padding: 100px 0;
}

@media (max-width: 767px) {
    .about-area {
        padding: 60px 0;
    }
    .about-title .title {
        font-size: 20px !important;
    }
}

/* Counter responsive */
.single-counter {
    text-align: center;
}

@media (max-width: 576px) {
    .single-counter {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }
    .single-counter .counter-content {
        padding-left: 0 !important;
        padding-top: 10px;
    }
    .single-counter .counter-content .counter-count {
        font-size: 36px !important;
    }
}

/*===========================
    SERVICES SECTION
===========================*/
.our-services-tab .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .our-services-tab .nav .nav-item {
        width: auto;
        flex: 0 0 auto;
    }
    .our-services-tab .nav .nav-item a {
        padding: 12px 12px !important;
        white-space: nowrap;
    }
    .our-services-tab .nav .nav-item a i {
        font-size: 24px !important;
    }
    .our-services-tab .nav .nav-item a span {
        font-size: 12px !important;
        padding-left: 6px !important;
    }
    .our-services-tab .our-services-content .services-title {
        font-size: 20px !important;
    }
    .our-services-image img {
        width: 100%;
        height: auto;
    }
}

/*===========================
    SERVICE CARDS FIXES
===========================*/
.single-service {
    padding: 40px 20px 30px;
}

@media (max-width: 767px) {
    .single-service {
        padding: 30px 15px 25px;
    }
    .single-service .service-content {
        padding-left: 15px !important;
    }
    .single-service .service-content .service-title {
        font-size: 16px !important;
    }
    .single-service .shape {
        display: none;
    }
}

/*===========================
    PRICING SECTION
===========================*/
.single-pricing {
    padding: 40px 20px 35px;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid #eef0f3;
}

.single-pricing:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #f14836;
}

.single-pricing.pricing-active {
    border: 2px solid #f14836;
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .single-pricing {
        padding: 35px 20px 30px;
        margin: 15px auto;
        max-width: 380px;
    }
    .single-pricing.pricing-active {
        transform: none;
    }
    .single-pricing .pricing-price .price {
        font-size: 28px !important;
    }
    .pricing-btn .main-btn {
        font-size: 14px;
        height: 48px;
        line-height: 44px;
        padding: 0 25px;
    }
}

/*===========================
    CHANNEL CARDS
===========================*/
.channel-card {
    padding: 18px 12px;
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .channel-card {
        padding: 12px 8px;
    }
    .channel-name {
        font-size: 13px !important;
    }
    .channel-cat {
        font-size: 10px !important;
    }
}

/*===========================
    BLOG CARDS
===========================*/
.blog-card {
    margin-bottom: 30px;
}

.blog-card-image img {
    height: 200px;
}

@media (max-width: 576px) {
    .blog-card-image img {
        height: 180px;
    }
    .blog-card-content {
        padding: 20px 15px !important;
    }
    .blog-card-content .blog-title {
        font-size: 18px !important;
    }
}

/*===========================
    TESTIMONIAL FIXES
===========================*/
@media (max-width: 991px) {
    .testimonial-left-content {
        text-align: center;
        margin-bottom: 30px;
    }
    .testimonial-right-content {
        max-width: 100%;
        margin: 0 auto;
    }
    .testimonial-content-wrapper {
        left: 0 !important;
    }
    .single-testimonial {
        padding: 30px 20px 40px !important;
    }
    .single-testimonial .testimonial-text .text {
        font-size: 18px !important;
        line-height: 30px !important;
    }
    .testimonial-active .slick-arrow {
        display: none !important;
    }
}

/*===========================
    CONTACT SECTION
===========================*/
.single-contact-info {
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.single-contact-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

@media (max-width: 576px) {
    .single-contact-info {
        padding: 20px 15px;
        flex-direction: column !important;
        text-align: center;
    }
    .single-contact-info .contact-info-content {
        padding-left: 0 !important;
        padding-top: 15px;
    }
}

/*===========================
    PAGE BANNER
===========================*/
.page-banner {
    padding: 200px 0 100px;
    min-height: 350px;
}

.page-banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #222;
}

.page-banner-content h1 span {
    color: #f14836;
}

@media (max-width: 767px) {
    .page-banner {
        padding: 160px 0 60px;
        min-height: 250px;
    }
    .page-banner-content h1 {
        font-size: 28px !important;
    }
    .page-banner-content p {
        font-size: 14px;
    }
}

/*===========================
    BLOG DETAILS
===========================*/
.blog-details-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #2d3748;
}

.blog-details-content h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #2d3748;
}

.blog-details-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #4a5568;
}

.blog-details-content ul,
.blog-details-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.blog-details-content ul li,
.blog-details-content ol li {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #4a5568;
}

.blog-details-content ul li {
    list-style-type: disc;
}

@media (max-width: 767px) {
    .blog-details-content h2 {
        font-size: 22px;
    }
    .blog-details-content h3 {
        font-size: 18px;
    }
    .blog-details-content p,
    .blog-details-content li {
        font-size: 14px !important;
    }
}

/*===========================
    TABLES (ALL PAGES)
===========================*/
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.table {
    margin-bottom: 0;
    background: #fff;
}

.table th {
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    font-size: 14px;
    vertical-align: middle;
}

@media (max-width: 576px) {
    .table th,
    .table td {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/*===========================
    FOOTER FIXES
===========================*/
@media (max-width: 767px) {
    .footer-widget .col-sm-6 {
        margin-bottom: 20px;
    }
    .footer-about .text {
        font-size: 14px !important;
    }
    .footer-link ul li a {
        font-size: 14px !important;
    }
    .footer-contact .text {
        font-size: 14px !important;
    }
    .footer-contact .social li {
        margin-right: 18px !important;
    }
    .footer-contact .social li a {
        font-size: 22px !important;
    }
}

/*===========================
    MODAL FIXES
===========================*/
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 25px;
}

.modal-header .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px 25px;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }
    .modal-header {
        padding: 15px 18px;
    }
    .modal-header .modal-title {
        font-size: 17px;
    }
    .modal-body {
        padding: 18px;
    }
    #orderModal .form-group .row .col-md-6 {
        margin-bottom: 10px;
    }
    .maxl label.btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/*===========================
    BUTTON IMPROVEMENTS
===========================*/
.main-btn {
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
    color: #fff;
}

.main-btn:active {
    transform: translateY(0);
}

/*===========================
    CATEGORY CARDS (Channels, Reseller pages)
===========================*/
.category-card {
    transition: all 0.3s ease;
    border: 1px solid #eef0f3;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    border-color: #f14836;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #f14836;
    padding-bottom: 10px;
}

.category-card ul li {
    font-size: 14px;
    padding: 6px 0;
    color: #4a5568;
    position: relative;
    padding-left: 18px;
}

.category-card ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #f14836;
    font-weight: 700;
}

@media (max-width: 576px) {
    .category-card {
        padding: 20px 15px !important;
    }
    .category-card h3 {
        font-size: 16px;
    }
    .category-card ul li {
        font-size: 13px;
        padding: 4px 0 4px 15px;
    }
}

/*===========================
    FAQ CONTENT
===========================*/
.faq-content .faq-item {
    background: #fff;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #eef0f3;
    transition: all 0.3s ease;
}

.faq-content .faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-color: #f14836;
}

.faq-content .faq-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.faq-content .faq-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #5c6e80;
}

@media (max-width: 576px) {
    .faq-content .faq-item {
        padding: 18px 18px;
    }
    .faq-content .faq-item h4 {
        font-size: 16px;
    }
    .faq-content .faq-item p {
        font-size: 14px;
    }
}

/*===========================
    COUNTER BOX (channels.php)
===========================*/
.counter-box {
    transition: all 0.3s ease;
    border: 1px solid #eef0f3;
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.counter-box h3 {
    font-size: 36px;
    font-weight: 800;
    color: #f14836;
    margin-bottom: 5px;
}

.counter-box p {
    font-size: 14px;
    font-weight: 600;
    color: #5c6e80;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 576px) {
    .counter-box h3 {
        font-size: 28px;
    }
    .counter-box p {
        font-size: 12px;
    }
}

/*===========================
    GRAY BG SECTIONS
===========================*/
.gray-bg {
    background-color: #f8f9fc;
}

/*===========================
    PADDING SPACING FIXES
===========================*/
@media (max-width: 767px) {
    .pt-115 { padding-top: 60px !important; }
    .pb-120 { padding-bottom: 60px !important; }
    .pt-70 { padding-top: 40px !important; }
    .pt-105 { padding-top: 60px !important; }
    .pt-30 { padding-top: 20px !important; }
    .mt-60 { margin-top: 30px !important; }
    .mt-30 { margin-top: 20px !important; }
    .mb-4 { margin-bottom: 15px !important; }
}

/*===========================
    IMAGE RESPONSIVENESS
===========================*/
img {
    max-width: 100%;
    height: auto;
}

/*===========================
    FORM ELEMENTS
===========================*/
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #f14836;
    box-shadow: 0 0 0 3px rgba(241, 72, 54, 0.1);
}

/*===========================
    SOCIAL ICONS IN FOOTER
===========================*/
.footer-contact .social li a {
    transition: all 0.3s ease;
}

.footer-contact .social li a:hover {
    transform: translateY(-3px);
    color: #f14836 !important;
}

/*===========================
    PRELOADER FIX
===========================*/
@media (prefers-reduced-motion: reduce) {
    .preloader {
        display: none;
    }
}

/*===========================
    ANCHOR OFFSET FOR FIXED HEADER
===========================*/
#main-content {
    scroll-margin-top: 80px;
}

/*===========================
    PRINT STYLES
===========================*/
@media print {
    .header-area,
    .footer-area,
    .preloader,
    .back-to-top,
    .modal {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
}

/*===========================
    DARK OVERLAY FOR BANNERS
===========================*/
.page-banner {
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.85);
    z-index: 0;
}

.page-banner-content {
    position: relative;
    z-index: 1;
}
