@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

/* Header */
.header {
    background: rgb(43, 145, 191)!important;
    color: white;
    padding: 0.1rem 0 !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: -5px;
}

.logo span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    cursor: pointer;
}

.dropdown-toggle:hover {
    opacity: 0.8;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1001;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #374151;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* Hero Section */
.hero {
    background: rgb(43, 145, 191);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Filter Controls */
.filter-controls {
    margin-bottom: 2rem;
}

.filter-pills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.pill-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
}

.pills-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
}

.scroll-arrow {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s;
    flex-shrink: 0;
    z-index: 2;
}

.scroll-arrow:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.scroll-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scroll-arrow.left {
    margin-right: 0.5rem;
}

.scroll-arrow.right {
    margin-left: 0.5rem;
}

.pill-label {
    font-weight: 600;
    color: #2d3748;
    min-width: 80px;
}

.pills-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 2px;
    max-width: calc(100vw - 600px);
    scrollbar-width: auto;
    scrollbar-color: #cbd5e1 #f1f5f9;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
}

.pills-container::-webkit-scrollbar {
    height: 6px;
}

.pills-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.pills-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.pills-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pill:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.pill.active {
    background: rgb(43, 145, 191);
    color: white;
    border-color: rgb(43, 145, 191);
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .pill-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pill-label {
        min-width: auto;
    }

    .pills-container {
        max-width: 100%;
    }

    .search-box {
        min-width: auto;
        width: 100%;
    }
}

/* Tests Section */
.tests-section {
    padding: 80px 0;
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2d3748;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.test-card {
    padding: 10px 10px 35px 10px !important;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.test-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.test-category {
    background: #e6fffa;
    color: #319795;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.difficulty.easy {
    background: #f0fff4;
    color: #38a169;
}

.difficulty.medium {
    background: #fffbf0;
    color: #d69e2e;
}

.difficulty.hard {
    background: #fff5f5;
    color: #e53e3e;
}

.difficulty.expert {
    background: #f7fafc;
    color: #553c9a;
}

.difficulty.advanced {
    background: #fdf2f8;
    color: #be185d;
}

.test-preview {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.test-info {
    margin: 1rem 0;
}

.test-characters {
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.test-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: rgb(43, 145, 191);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(43, 145, 191, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
}

.btn-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    text-decoration: none;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.feature p {
    color: #718096;
    line-height: 1.6;
}

/* How It Works Section - Stylish Timeline */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.process-timeline {
    position: relative;
    padding-left: 100px;
    padding-right: 100px;
}


.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 200px;
    z-index: 1;
}

.progress-path {
    width: 100%;
    height: 100%;
}

.animated-path {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: drawPath 3s ease-in-out forwards;
}


@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

.timeline-step {
    position: relative;
    z-index: 2;
    margin: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-step:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-step:nth-child(3) {
    animation-delay: 0.4s;
}

.timeline-step:nth-child(4) {
    animation-delay: 0.6s;
}

.timeline-step:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.step-left .step-content {
    margin-right: auto;
    max-width: 80%;
}

.step-right .step-content {
    margin-left: auto;
    max-width: 80%;
    flex-direction: row-reverse;
}

.step-image {
    position: relative;
    flex-shrink: 0;
}

.step-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    z-index: 3;
}

.step-text {
    flex: 1;
}

.step-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-text p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .step-content {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
        padding: 20px;
        margin: 0 10px;
    }

    .step-left .step-content,
    .step-right .step-content {
        margin: 0 10px;
        max-width: calc(100% - 20px);
    }

    .step-image img {
        width: 80px;
        height: 80px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .step-text h3 {
        font-size: 1.4rem;
    }

    .step-text p {
        font-size: 1rem;
    }

    .timeline-line {
        display: none;
    }
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

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

.load-more-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Visitor Stats Box */
.visitor-stats-box {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.8rem;
}

.visitor-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.visitor-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-info p {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.9;
    color: #e2e8f0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .visitor-stats-box {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem;
    }

    .visitor-stat {
        padding: 0.6rem 1rem;
    }

    .stat-info h4 {
        font-size: 1.2rem;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #e2e8f0;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.testimonial.featured {
    border-left: 4px solid rgb(43, 145, 191);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    font-weight: 600;
    color: #333;
}

.testimonial-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.testimonial-author strong {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.rating-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .nav {
        display: none;
    }

    .tests-grid {
        grid-template-columns: 1fr;
    }

    .test-actions {
        flex-direction: column;
    }

    .hero-toggle-container {
        max-width: 320px;
        padding: 0.6rem 1.2rem;
        gap: 0.6rem;
    }

    .toggle-label {
        font-size: 0.8rem;
    }

    .toggle-switch {
        width: 45px;
        height: 24px;
    }

    .toggle-slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }

    .toggle-input:checked+.toggle-slider:before {
        transform: translateX(21px);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .rating-summary > div {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero Toggle Switch */
.hero-toggle-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem;
    margin: 2rem auto !important;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 380px;
    width: fit-content !important;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.premium-label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.premium-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-input:checked+.toggle-slider {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #f59e0b;
}

.toggle-input:checked+.toggle-slider:before {
    transform: translateX(24px);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-button {
    display: none;
}

/* Premium Pills */
.premium-pill {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.3rem;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.premium-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    }

    50% {
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.6);
    }

    100% {
        box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    }
}

/* Exam Cards Premium Styling */
.test-card.exam-card {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #fbbf24, #f59e0b) border-box;
    position: relative;
    overflow: hidden;
}

.test-card.exam-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.test-card.exam-card .test-title {
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-card.exam-card .test-title::before {
    content: '🏆';
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.test-card.exam-card .test-category {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Updated Test Card Layout */
.test-card {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.test-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.test-header {
    position: relative;
    padding: 8px 12px 3px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px !important;
    z-index: 2;
}

.free-badge {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid #16a34a;
}

.difficulty-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.difficulty-badge.easy {
    background-color: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.difficulty-badge.medium {
    background-color: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.difficulty-badge.hard {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.difficulty-badge.expert {
    background-color: #faf5ff;
    color: #7c3aed;
    border-color: #e9d5ff;
}

.difficulty-badge.master {
    background-color: #1a202c;
    color: #ffffff;
    border-color: #2d3748;
}

.test-content {
    padding: 10px 20px 20px 20px;
}

/* Exam cards specific padding */
.test-card.exam-card .test-content {
    padding: 10px 20px 40px 20px !important;
}

.test-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.test-category {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0;
    margin-right: 10px;
    width: fit-content;
    height: 24px;
    line-height: 16px;
}

.test-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    width: 100%;
}

.test-characters {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    height: 24px;
    line-height: 16px;
}

.test-category.exam-type {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
    width: fit-content;
}

.test-preview {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0;
}

.test-info {
    margin: 8px 0 0 0;
    display: none;
}

.test-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.test-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.test-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.test-actions .btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.test-actions .btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.exam-requirements {
    margin: 10px 0;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.exam-requirements small {
    color: #1e40af;
    font-weight: 500;
    font-size: 12px;
}

@media (max-width: 768px) {
    .test-actions {
        flex-direction: column;
    }

    .free-badge {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .difficulty-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* PRO Badge for Exam Tests */
.pro-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid #f59e0b;
}

/* Uniform Card Heights */
.test-card {
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    padding-bottom: 5px !important;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 40%, rgba(255, 255, 255, 0.8) 80%, white 100%);
    border-radius: 15px 15px 0 0;
}

.test-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 15px 15px 15px;
    position: relative;
    z-index: 2;
}

/* Exam cards specific padding */
.test-card.exam-card .test-content {
    padding: 10px 15px 40px 15px;
}

.test-actions {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 5px 0 0 0;
}

.test-actions .btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.test-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.test-actions .btn-secondary {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.1);
}

.test-actions .btn-secondary:hover {
    transform: translateY(-1px);
    background: #e0f2fe;
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.2);
}

.attempted-info {
    margin: 10px 0;
    padding: 8px 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid #22c55e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attempted-badge {
    background: #22c55e;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.result-summary-mini {
    display: flex;
    gap: 15px;
    font-size: 12px;
    align-items: center;
}

.result-summary-mini .qualified {
    color: #22c55e;
    font-weight: 600;
}

.result-summary-mini .not-qualified {
    color: #ef4444;
    font-weight: 600;
}

.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.result-modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    z-index: 2001;
}

.result-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.result-modal-body {
    padding: 20px;
}

.result-status {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-status.qualified {
    background: #dcfce7;
    color: #166534;
}

.result-status.not-qualified {
    background: #fef2f2;
    color: #991b1b;
}

.result-details {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Exam Links Styling */
.exam-links {
    margin: 30px 0;
    text-align: center;
}

.exam-links h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.exam-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.exam-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.exam-card h4 {
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.exam-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .exam-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .exam-card {
        padding: 15px;
    }

    .exam-icon {
        font-size: 2rem;
    }
}