/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {


    .hero-s-p {
        padding: var(--space-8);
    }

    .hero-s-p-title {
        font-size: 2.5rem;
    }

    .hero-s-p-subtitle {
        font-size: 1.1rem;
    }

    .hero-s-p-icon {
        width: 100px;
        height: 100px;
        font-size: 4rem;
    }

    .features-s-p {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .feature-s-p {
        padding: var(--space-6);
    }

    .feature-s-p-icon {
        font-size: 2.5rem;
    }

    .feature-s-p-title {
        font-size: 1rem;
    }

    .feature-s-p-text {
        font-size: 0.9rem;
    }



    .faq-s-p {
        padding: var(--space-8);
    }

    .faq-s-p-question {
        font-size: 1rem;
    }

    .faq-s-p-answer {
        font-size: 0.9rem;
    }

    .trust {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }

    .stat {
        padding: var(--space-6);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .final-cta {
        padding: var(--space-8);
    }

    .final-cta h3 {
        font-size: 1.8rem;
    }

    .final-cta p {
        font-size: 1.1rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {


    .hero-s-p {
        padding: var(--space-8) var(--space-8);
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: right;
        gap: var(--space-8);
        align-items: center;
    }

    .hero-s-p-content {
        order: 1;
    }

    .hero-s-p-visual {
        order: 2;
        text-align: center;
    }

    .hero-s-p-title {
        font-size: 3rem;
        margin-bottom: var(--space-4);
    }

    .hero-s-p-subtitle {
        font-size: 1.2rem;
        margin-bottom: var(--space-8);
    }

    .hero-s-p-icon {
        width: 120px;
        height: 120px;
        font-size: 5rem;
    }

    .rating {
        justify-content: flex-start;
        margin-bottom: var(--space-8);
    }

    .features-s-p {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }

    .feature-s-p {
        padding: var(--space-6);
    }

    .feature-s-p-icon {
        font-size: 3rem;
        margin-bottom: var(--space-4);
    }

    .feature-s-p-title {
        font-size: 1.1rem;
        margin-bottom: var(--space-3);
    }

    .feature-s-p-text {
        font-size: 0.9rem;
    }



    .faq-s-p {
        padding: var(--space-8);
    }

    .faq-s-p-question {
        font-size: 1.1rem;
    }

    .faq-s-p-answer {
        font-size: 1rem;
    }

    .trust {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }

    .stat {
        padding: var(--space-6);
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .final-cta {
        padding: var(--space-8);
    }

    .final-cta h3 {
        font-size: 2.2rem;
    }

    .final-cta p {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .sidebar {
        position: static;
        order: -1;
    }

    .filters-section {
        padding: var(--space-6);
    }

    .calculators-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-6);
    }

    .page-title {
        font-size: 2.2rem;
    }

    .page-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    #header .menu {
        display: none;
    }

    .progress-qu-section {
        top: 170px;
        padding-block: 14px;
    }

    .page-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: var(--space-3);
    }

    .page-icon {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .calculators-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-3);
    }

    .filter-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .card-header {
        padding: var(--space-6);
    }

    .card-content {
        padding: var(--space-6);
    }

    .calculator-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .calculator-title {
        font-size: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stat-number {
        font-size: 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-s-p-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .hero-s-p-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .archive-header {
        padding: var(--space-12) 0 var(--space-8);
    }

    .archive-title {
        font-size: var(--text-3xl);
    }

    .archive-stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .filters-header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
    }

    .filter-options {
        justify-content: center;
    }

    .quiz-container {
        margin: 0;
        border-radius: 0;
    }

    .quiz-header {
        padding: var(--space-6);
    }

    .quiz-title {
        font-size: 1.5rem;
    }

    .quiz-content {
        padding: var(--space-6);
    }

    .date-grid {
        grid-template-columns: 1fr;
    }

    .scale-options {
        gap: var(--space-2);
    }

    .scale-options .opt-item label {
        padding: var(--space-2);
        font-size: 12px;
        white-space: nowrap;
        gap: 6px;
    }

    .scale-options .opt-item label span {
        font-size: 20px;
    }

    .question-title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.6;
    }

    .scale-options .opt-item {
        aspect-ratio: auto;
        min-height: 60px;
        flex-direction: row;
        gap: var(--space-3);
    }

    .quiz-navigation {
        padding: var(--space-4);
    }

    .progress-section {
        top: 200;
    }

    .support-header h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-s-p h1 {
        font-size: 2.5rem;
    }

    .about-hero-s-p-subtitle {
        font-size: 1.25rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .story-image img {
        height: 300px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-item {
        width: 100%;
    }

    .stat-item {
        flex-direction: column;
    }

    .story-content {
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .nav-tabs {
        margin-bottom: var(--space-4);
    }

    .nav-tab {
        padding: var(--space-2) var(--space-3);
        font-size: 0.8rem;
    }

    .card {
        padding: var(--space-3);
    }

    .list-item {
        padding: var(--space-3);
    }

    .list-meta {
        flex-direction: column;
        gap: var(--space-2);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* Hide table headers on mobile */
    .compact-table thead {
        display: none;
    }

    .compact-table,
    .compact-table tbody,
    .compact-table tr,
    .compact-table td {
        display: block;
    }

    .compact-table tr {
        border: 1px solid var(--violet-mist);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-3);
        padding: var(--space-3);
    }

    .compact-table td {
        border: none;
        padding: var(--space-2) 0;
        display: flex;
        justify-content: space-between;
    }

    .compact-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--deep-violet);
    }

    .post-title {
        font-size: var(--text-3xl);
    }

    .post-excerpt {
        font-size: var(--text-lg);
    }

    .post-meta {
        flex-direction: column;
        gap: var(--space-3);
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .sharing-buttons {
        justify-content: center;
    }

    .table-of-contents {
        position: static;
    }

    .success-title {
        font-size: 2rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .success-icon {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .download-section {
        padding: var(--space-6);
    }

    .download-title {
        font-size: 1.5rem;
    }

    .download-subtitle {
        font-size: 1rem;
    }

    .download-link {
        flex-direction: column;
        gap: var(--space-3);
    }

    .download-text {
        text-align: center;
    }

    .order-card {
        padding: var(--space-6);
    }

    .action-buttons {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .item-icon {
        margin-left: 0;
    }

    .item-price {
        text-align: center;
    }

    .payment-row {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

    .hero-s-p {
        padding: var(--space-6) var(--space-4);
    }

    .hero-s-p-title {
        font-size: 1.7rem;
    }

    .hero-s-p-subtitle {
        font-size: 0.95rem;
    }

    .hero-s-p-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .rating {
        flex-direction: column;
        gap: var(--space-2);
    }

    .features-s-p {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .feature-s-p {
        padding: var(--space-3);
    }

    .feature-s-p-icon {
        font-size: 1.8rem;
        margin-bottom: var(--space-2);
    }

    .feature-s-p-title {
        font-size: 0.85rem;
    }

    .feature-s-p-text {
        font-size: 0.75rem;
    }

    .faq {
        padding: var(--space-4);
    }

    .faq-item {
        padding: var(--space-3) 0;
    }

    .faq-question {
        font-size: 0.85rem;
    }

    .faq-answer {
        font-size: 0.8rem;
    }

    .trust {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .stat {
        padding: var(--space-3);
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .final-cta {
        padding: var(--space-4);
    }

    .final-cta h3 {
        font-size: 1.2rem;
    }

    .final-cta p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: var(--space-3) var(--space-6);
        font-size: 1rem;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-s-p-title {
        font-size: 2rem;
    }

    .feature-card,
    .service-card {
        padding: 1.5rem;
    }

    .post-card {
        border-radius: var(--radius-lg);
    }

    .post-content {
        padding: var(--space-4);
    }

    .sidebar-widget {
        padding: var(--space-4);
    }

    .pagination {
        flex-wrap: wrap;
    }

    .login-card {
        padding: var(--space-6);
    }

    .title {
        font-size: 1.75rem;
    }

    .otp-inputs {
        gap: var(--space-4);
    }

    .otp-input {
        width: 45px;
        height: 45px;
    }

    .login-form-holder {
        width: 90%;
    }

    .my-account-header {
        padding: var(--space-2) var(--space-3);
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .post-header {
        padding: var(--space-8) 0 var(--space-6);
    }

    .post-content {
        font-size: var(--text-base);
    }

    .post-content h2 {
        font-size: var(--text-2xl);
    }

    .post-featured-image img {
        height: 250px;
    }

    .highlight-box,
    .related-posts,
    .comments-section {
        padding: var(--space-4);
    }

    .success-title {
        font-size: 1.7rem;
    }

    .download-section {
        padding: var(--space-4);
    }

    .order-card {
        padding: var(--space-4);
    }

    .next-steps {
        padding: var(--space-6);
    }

    .hero-s-p {
        padding: var(--space-4) var(--space-3);
    }

    .hero-s-p-title {
        font-size: 1.5rem;
    }

    .hero-s-p-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .free-badge {
        padding: var(--space-2) var(--space-4);
        font-size: 0.8rem;
    }

    .how-it-works,
    .faq,
    .final-cta {
        padding: var(--space-3);
    }

    .section-title {
        font-size: 1rem;
    }

    .cta-button {
        padding: var(--space-3) var(--space-4);
        font-size: 0.9rem;
    }

    .card-header {
        padding: var(--space-4);
    }

    .card-content {
        padding: var(--space-4);
    }

    .calculator-title {
        font-size: 1.1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        padding: var(--space-4);
    }

    .filter-tab {
        padding: var(--space-2) var(--space-4);
        font-size: 0.8rem;
    }

    .product-card {
        flex-wrap: wrap;
    }

    .product-price-section {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .woocommerce-billing-fields__field-wrapper p {
        width: 100% !important;
    }

    .form-grid {
        gap: var(--space-4);
    }

    .input-label {
        font-weight: 500;
        font-size: 0.8rem;
        margin-bottom: var(--space-1);
    }

    .step-info {
        font-size: 0.9rem;
    }
}