/* TVET Portfolio and Subpages Shared Styles */

/* Fallback Variables */
:root {
    --tvet-brand-orange: var(--brand-orange, #f97316);
    --tvet-orange: var(--orange, #ea580c);
    --tvet-orange-bg: var(--orange-bg, #fff7ed);
    --tvet-dark: var(--dark, #1f2937);
    --tvet-gray: var(--gray, #6b7280);
    --tvet-border: var(--border, #e5e7eb);
    --tvet-radius: var(--radius, 8px);
    --tvet-radius-lg: var(--radius-lg, 12px);
    --tvet-shadow: var(--shadow, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    --tvet-shadow-sm: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
    --tvet-text-color: var(--text-color, #4b5563);
}

.tvet-section {
    padding: 2rem 0;
}

/* Shared Classes */
.tvet-muted-text {
    color: var(--tvet-gray);
    line-height: 1.6;
    margin: 0;
}

/* Pricing Section */
.tvet-pricing-box {
    background: linear-gradient(135deg, var(--tvet-orange-bg) 0%, #ffffff 100%);
    border: 2px solid var(--tvet-brand-orange);
    border-radius: var(--tvet-radius-lg);
    padding: 2.5rem;
    max-width: 1052px;
    margin: 0 auto 4rem;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
    position: relative;
    overflow: hidden;
}

.tvet-pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px dashed var(--tvet-border);
    padding-bottom: 1.5rem;
}

.tvet-pricing-header h2 {
    font-size: 1.8rem;
    color: var(--tvet-orange);
    margin-bottom: 1rem;
}

.tvet-price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
}

.tvet-pricing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tvet-pricing-list-title {
    font-size: 1.1rem;
    color: var(--tvet-dark);
    margin-bottom: 0.75rem;
}

.tvet-pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tvet-pricing-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 1.05rem;
}

.tvet-pricing-list li::before {
    content: "✓";
    color: var(--tvet-brand-orange);
    font-weight: bold;
}

.tvet-target-box {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--tvet-orange);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tvet-target-box h3 {
    font-size: 1.1rem;
    color: var(--tvet-dark);
    margin-bottom: 0.5rem;
}

/* Intro Section */
.tvet-intro-text {
    max-width: 1052px;
    margin: 0 auto 4rem;
    text-align: center;
}

.tvet-intro-text h2 {
    font-size: 1.6rem;
    color: var(--tvet-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.tvet-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tvet-text-color);
    margin-bottom: 1rem;
}

.tvet-intro-text .tvet-highlight {
    color: var(--tvet-brand-orange);
    font-weight: bold;
    font-size: 1.3rem;
    margin-top: 2rem;
    display: block;
}

/* Guide Cards Section */
.tvet-guide-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tvet-guide-header h2 {
    font-size: 1.8rem;
    color: var(--tvet-dark);
    margin-bottom: 0.5rem;
}

.tvet-guide-header p {
    color: var(--tvet-text-color);
    font-size: 1.1rem;
}

.tvet-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tvet-guide-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--tvet-border);
    border-radius: var(--tvet-radius-lg);
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--tvet-brand-orange);
}

.tvet-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tvet-shadow);
}

.tvet-guide-card h3 {
    font-size: 1.25rem;
    color: var(--tvet-orange);
    margin-bottom: 0.75rem;
}

.tvet-guide-card p {
    color: var(--tvet-text-color);
    line-height: 1.6;
    margin: 0;
}

/* Steps Section */
.tvet-steps-container {
    margin-bottom: 4rem;
}

.tvet-step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0rem;
    background: #fff;
    padding: 2rem;
    border-radius: var(--tvet-radius);
    border: 1px solid var(--tvet-border);
    box-shadow: var(--tvet-shadow-sm);
}

.tvet-step-num {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--tvet-orange-bg);
    color: var(--tvet-brand-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid var(--tvet-brand-orange);
}

.tvet-step-content h3 {
    font-size: 1.3rem;
    color: var(--tvet-dark);
    margin-bottom: 0.75rem;
}

.tvet-step-content p {
    color: var(--tvet-text-color);
    line-height: 1.6;
    margin: 0;
}

/* Highlights Section */
.tvet-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tvet-highlight-card {
    background: #fff;
    border: 1px solid var(--tvet-border);
    border-radius: var(--tvet-radius-lg);
    padding: 1.75rem;
    transition: transform 0.2s;
    border-top: 4px solid var(--tvet-brand-orange);
}

.tvet-highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tvet-shadow);
}

.tvet-highlight-card h3 {
    font-size: 1.25rem;
    color: var(--tvet-dark);
    margin-bottom: 0.75rem;
}

/* CTA Section */
.tvet-cta-box {
    background: var(--tvet-orange-bg);
    padding: 4rem 2rem;
    border-radius: var(--tvet-radius-lg);
    border: 1px dashed var(--tvet-orange);
    text-align: center;
    box-shadow: var(--tvet-shadow);
    margin: 4rem 0;
}

.tvet-cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--tvet-brand-orange);
}

.tvet-cta-box p {
    color: var(--tvet-text-color);
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

/* Footer Back Action */
.tvet-footer-action {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--tvet-border);
}

/* FAQ Styles */
.tvet-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 4rem;
}

.tvet-faq-item {
    background: #fff;
    border: 1px solid var(--tvet-border);
    border-radius: var(--tvet-radius);
    padding: 0;
    overflow: hidden;
}

.tvet-faq-item summary {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--tvet-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
}

.tvet-faq-item summary::-webkit-details-marker {
    display: none;
}

.tvet-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--tvet-orange);
    transition: transform 0.2s;
}

.tvet-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.tvet-faq-item p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--tvet-text-color);
    line-height: 1.6;
}

/* Subpage Article */
.tvet-article-block {
    margin-bottom: 3rem;
}

.tvet-article-block h2 {
    font-size: 1.5rem;
    color: var(--tvet-dark);
    margin-bottom: 1rem;
}

.tvet-article-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tvet-text-color);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .tvet-pricing-content {
        grid-template-columns: 1fr;
    }

    .tvet-step-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .tvet-highlights-grid,
    .tvet-guide-grid {
        grid-template-columns: 1fr;
    }
}

/* New Comparison Table */
.tvet-plans-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.tvet-plan-col {
    background: #fff;
    border: 1px solid var(--tvet-border);
    border-radius: var(--tvet-radius-lg);
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tvet-plan-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.tvet-plan-featured {
    border: 2px solid var(--tvet-brand-orange);
    background: linear-gradient(180deg, #fffcf9 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.12);
    transform: scale(1.02);
    z-index: 1;
}
.tvet-plan-featured:hover {
    transform: scale(1.02) translateY(-5px);
}
.tvet-plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tvet-brand-orange);
    color: #fff;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2);
}
.tvet-plan-name {
    font-size: 1.1rem;
    color: var(--tvet-gray);
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.tvet-plan-featured .tvet-plan-name {
    color: var(--tvet-brand-orange);
}
.tvet-plan-title {
    font-size: 1.5rem;
    color: var(--tvet-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.tvet-plan-featured .tvet-plan-title {
    font-size: 1.6rem;
    color: var(--tvet-brand-orange);
    margin-bottom: 1rem;
}
.tvet-plan-price-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--tvet-border);
    text-align: left;
}
.tvet-category-title {
    font-size: 0.95rem;
    color: var(--tvet-gray);
    margin: 0 0 1rem;
    font-weight: 600;
    border-bottom: 1px dashed var(--tvet-border);
    padding-bottom: 0.4rem;
}
.tvet-plan-disabled {
    color: #9ca3af;
}
.tvet-plan-disabled::before {
    content: "?" !important;
    color: #d1d5db !important;
}
.tvet-plan-note {
    font-size: 0.85rem;
    color: var(--tvet-gray);
    margin-top: auto;
    padding-top: 1.5rem;
    text-align: center;
}
@media (max-width: 768px) {
    .tvet-plan-featured {
        transform: scale(1);
    }
    .tvet-plan-featured:hover {
        transform: translateY(-5px);
    }
}

/* === User Requested Layout Overrides === */
.tvet-guide-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.tvet-highlights-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}
.tvet-highlights-grid > .tvet-highlight-card {
    flex: 0 1 calc(33.333% - 1rem) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

@media (max-width: 820px) {
    .tvet-guide-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .tvet-highlights-grid > .tvet-highlight-card {
        flex: 0 1 calc(50% - 1rem) !important;
    }
}

@media (max-width: 640px) {
    .tvet-guide-grid {
        grid-template-columns: 1fr !important;
    }
    .tvet-highlights-grid > .tvet-highlight-card {
        flex: 0 1 100% !important;
    }
}
