/* appsc.css */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #222;
}

.appsc-container {
    position: relative;
    top: 70px;
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
    margin: 0 auto;
    max-width: 1400px;
    margin-bottom: 120px;
}

.main-section-left {
    width: 70%;
    padding-right: 40px;
}

.appsc-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.appsc-intro {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 400;
}

/* Syllabus & Exam Pattern Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    background-color: #ffffff;
    border: 1px solid #b3d4fc;
    table-layout: fixed;
}

table th,
table td {
    border: 1px solid #b3d4fc;
    padding: 10px 12px;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

table td a {
    text-decoration: none;
    color: #003366;
}

table th {
    background-color: #e6f2ff;
    color: #003366;
    font-weight: 600;
}

/* Section Titles */
.slider-title,
.exam-pattern-title {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* Test Series Slider */
.ts-slider-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #333;
}

.ts-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 10px;
}

.ts-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 1rem;
}

.ts-slider::-webkit-scrollbar {
    height: 4px;
}
.ts-slider::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.ts-card {
    position: relative;
    flex: 0 0 auto;
    width: 300px;
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(135deg, #ffffff, #f9f9f9),
        linear-gradient(to right, #ff6ec4, #7873f5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ts-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ts-live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: red;
    background: rgba(255, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 12px;
    z-index: 1;
}

.ts-live-dot {
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.ts-card-image {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    margin-top: 35px;
    margin-bottom: 15px;
    image-rendering: auto;
}

.ts-card-title {
    font-size: 1.2rem;
    color: #0f52ba;
    font-weight: 600;
    margin-bottom: 6px;
}

.ts-card-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.ts-card-price {
    font-size: 1rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 12px;
    text-align: right;
}

.ts-card-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.ts-explore-btn, .ts-buy-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    flex: 1;
    white-space: nowrap;
}

.ts-explore-btn {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.ts-buy-btn {
    background-color: #10b981;
    color: white;
    border: none;
}

.ts-explore-btn:hover,
.ts-buy-btn:hover {
    opacity: 0.9;
}

.ts-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 50%;
    color: #333;
    transition: background 0.3s;
}
.ts-slider-btn:hover {
    background: #f0f0f0;
}
.ts-slider-btn.left {
    left: 5px;
}
.ts-slider-btn.right {
    right: 5px;
}

.sidebar-right {
    width: 30%;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-right h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    padding-left: 10px;
    border-left: 4px solid;
    border-image: linear-gradient(to bottom, #ff4d4d, #b30000) 1;
}

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}

.download-pdf-box,
.free-test-box,
.calendar-box {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.download-pdf-box ul {
    list-style: none;
    padding-left: 0;
}
.download-pdf-box li {
    margin: 5px 0;
}
.download-pdf-box li a {
    text-decoration: none;
}
.pyq-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    border: 0px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.free-test-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}
.pyq-btn:hover,
.free-test-btn:hover,
.ts-explore-btn:hover,
.ts-buy-btn:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2),
                0 4px 6px rgba(0, 0, 0, 0.15);
}

.calendar-wrapper iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .main-section-left,
    .sidebar-right {
        width: 100%;
        padding: 0;
    }

    .appsc-container {
        flex-direction: column;
        padding: 25px 20px;
    }

    .sidebar-right {
        margin-top: 35px;
    }
}

@media screen and (max-width: 768px) {
    .ts-card {
        width: 280px;
    }

    .ts-card-image {
        height: 160px;
    }

    .appsc-title {
        font-size: 1.6rem;
    }

    .appsc-intro {
        font-size: 0.95rem;
    }

    .calendar-box {
        display: none;
    }

    .free-test-btn {
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .ts-card {
        width: 240px;
    }

    .ts-card-image {
        height: 150px;
    }

    .appsc-title {
        font-size: 1.4rem;
    }

    .slider-title,
    .exam-pattern-title {
        font-size: 1.2rem;
    }

    table {
        font-size: 0.85rem;
    }
}
