/* ============================================================
   PAGE.CSS — Styles for dynamic page (page.php)
   ============================================================ */

/* --- kp-app widget styles --- */
#kp-app li {
    padding: 2px 7px;
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
#kp-app li a {
    word-break: break-word;
    color: #3b3737;
    font-size: 14px;
}
#kp-app .volume {
    margin-left: 5px;
    word-break: normal;
    color: #3b3737;
    font-size: 14px;
}

/* --- Dynamic Page Content --- */
.dynamic-page-content {
    padding: 80px 0 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 70vh;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-breadcrumb {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-header {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.page-body {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4 {
    color: #1a237e;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-body h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #1a237e;
    padding-bottom: 15px;
}

.page-body h2 {
    font-size: 2rem;
    border-bottom: 2px solid #283593;
    padding-bottom: 10px;
}

.page-body h3 {
    font-size: 1.5rem;
    color: #283593;
}

.page-body p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.page-body ul,
.page-body ol {
    margin-left: 30px;
    margin-bottom: 25px;
}

.page-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-body .alert {
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

/* --- Tables --- */
.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.page-body table th,
.page-body table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: normal;
}

/* --- Contact Buttons --- */
.page-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.page-whatsapp-btn {
    background: #25D366;
    color: white;
}

.page-contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
}

.back-to-home {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background: #1a237e;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.back-to-home:hover {
    background: #283593;
    transform: translateY(-3px);
    color: white;
}

/* --- Blog Section --- */
.blog-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.blog-title {
    color: #1a237e;
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-post-content {
    padding: 25px;
}

.blog-post-title {
    color: #1a237e;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-post-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.blog-post-date {
    color: #666;
    font-size: 0.9rem;
}

.blog-post-link {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.blog-post-link:hover {
    color: #1a237e;
}

.no-posts-message {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-posts-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-posts-text {
    color: #666;
    font-size: 1.1rem;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    padding: 60px 0;
    text-align: center;
    border-radius: 15px;
    margin-top: 40px;
}

.cta-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #25D366;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: white;
}

/* --- Live dot animation --- */
.live-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background-color: #25D366;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Hero Section --- */
.hero-iptv {
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.hero-card {
    width: 100%;
    max-width: 950px;
    height: 340px;
    border-radius: 28px;
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 45%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    transition: all 0.4s ease;
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 60%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 30px;
}

.hero-icon {
    font-size: 60px;
    margin-bottom: 18px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: capitalize;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 750px;
    margin: 0 auto;
}

.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* --- Analytics hidden --- */
.analytics-script {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .dynamic-page-content {
        padding: 60px 0 30px;
    }

    .page-header {
        padding: 25px;
    }

    .page-body {
        padding: 25px;
    }

    .page-body h1 {
        font-size: 2rem;
    }

    .page-body h2 {
        font-size: 1.5rem;
    }

    .page-contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-contact-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }

    .whatsapp-float img {
        width: 60px;
        height: 60px;
    }

    .live-dot {
        width: 16px;
        height: 16px;
        border: 2px solid white;
    }

    .hero-card {
        height: auto;
        padding: 40px 20px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-description {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .page-body table {
        display: block;
        width: 100%;
    }

    .page-body table thead {
        display: none;
    }

    .page-body table tbody tr {
        display: block;
        margin-bottom: 1.5em;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }

    .page-body table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #eee;
        text-align: right;
    }

    .page-body table tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 15px;
        text-align: left;
        flex: 1;
    }

    .page-body table tbody td:last-child {
        border-bottom: none;
    }
}
