/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    padding: 2rem;
}

/* Country Pricing Section - Structure */
.country-pricing-section {
    max-width: 900px;
    margin: 0 auto;
}

.country-header {
    text-align: center;
    margin-bottom: 2rem;
}

.country-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.country-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.country-subtitle .line {
    flex: 1;
    max-width: 200px;
    height: 1px;
}

.country-subtitle .text {
    font-size: 1.125rem;
    white-space: nowrap;
}

/* Offers Container */
.offers-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Offer Card */
.offer-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
}

.offer-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.flag {
    width: 48px;
    height: 32px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-icon {
    width: 100%;
    height: 100%;
}

.offer-body {
    padding: 1rem 1.25rem 1.25rem;
}

/* Product Row */
.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.product-row:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.product-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-name {
    font-weight: 600;
}

.product-arrow {
    opacity: 0.5;
}

.product-price {
    font-weight: 700;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Simple Offer Content */
.offer-simple-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.offer-description {
    font-size: 0.9375rem;
}

.offer-pricing {
    font-size: 0.9375rem;
}

.offer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    color: white;
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
}

.icon-chevron {
    transition: transform var(--transition-fast);
}

.btn-expand:hover .icon-chevron {
    transform: translateY(2px);
}

/* Info Cards */
.info-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
}

.info-card-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
}

.action-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Expandable Sections */
.product-row-wrapper {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.product-row-wrapper:last-child {
    border-bottom: none;
}

.product-row-wrapper .product-row {
    border-bottom: none;
}

.collapsed {
    display: none;
}

.expanded {
    display: block;
}

.btn-expand[aria-expanded="true"] .icon-chevron {
    transform: rotate(180deg);
}

.expandable-content {
    padding: 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 1rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.icon-check {
    color: #22C55E;
}

.icon-plus {
    color: #3B82F6;
}

/* Section Subtitles */
.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

/* Success Rate Badge */
.success-rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: #16A34A;
    margin-bottom: 1rem;
}

.success-rate-badge svg {
    color: #22C55E;
}

/* Target Audience */
.target-audience {
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    border-left: 3px solid currentColor;
    margin-bottom: 1rem;
}

/* Skill Test Info */
.skill-test-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius-md);
}

.skill-test-info p {
    font-size: 0.9375rem;
}

/* Skill Test Packages Grid */
.skill-test-packages {
    margin-top: 1.5rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.package-card {
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.06);
}

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

.package-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.package-price {
    font-weight: 700;
    color: inherit;
}

.package-details {
    font-size: 0.8125rem;
    opacity: 0.8;
    line-height: 1.5;
}

.skill-test-note {
    font-size: 0.8125rem;
    opacity: 0.7;
    font-style: italic;
}

/* Contact Rep Link */
.contact-rep {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    opacity: 0.8;
}

/* Pricing Breakdown */
.pricing-breakdown {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius-md);
}

.pricing-breakdown p {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.pricing-breakdown p:last-child {
    margin-bottom: 0;
}

/* Included & Optional Sections */
.included-section,
.optional-section {
    margin-bottom: 1rem;
}

.feature-list--optional .feature-item {
    opacity: 0.85;
}

/* Info Card Expanded Layout */
.info-card--exam-dates,
.info-card--success-stories {
    flex-direction: column;
    align-items: stretch;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.info-card-expandable {
    width: 100%;
}

.info-card-expandable .expandable-content {
    padding-top: 1.5rem;
    border-top: none;
}

/* Location Section */
.location-section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.location-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.location-address {
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Exam Dates Section */
.exam-dates-section {
    margin-bottom: 1.5rem;
}

.dates-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius-sm);
}

.date-value {
    font-weight: 600;
    font-size: 0.9375rem;
}

.date-status {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.date-status--available {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
}

.date-status--closed {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

.next-year-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.7;
    font-style: italic;
}

/* Pass Rates Section */
.pass-rates-section {
    margin-bottom: 1.5rem;
}

.pass-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pass-rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.rate-period {
    opacity: 0.7;
}

.rate-value {
    font-weight: 600;
    color: #16A34A;
}

/* Exam Note */
.exam-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.exam-note svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #3B82F6;
}

.exam-note p {
    margin: 0;
}

/* Success Stories */
.stories-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-card {
    padding: 1.25rem;
    background: rgba(0,0,0,0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.06);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.story-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar svg {
    opacity: 0.5;
}

.story-meta {
    display: flex;
    flex-direction: column;
}

.story-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.story-time {
    font-size: 0.8125rem;
    opacity: 0.6;
}

.story-body {
    margin-bottom: 0.75rem;
}

.story-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.story-content {
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.6;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #16A34A;
}

.story-badge svg {
    width: 14px;
    height: 14px;
}

/* Authority Note */
.authority-note {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.8125rem;
    opacity: 0.6;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 1rem;
    }

    .product-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .offer-simple-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .country-subtitle {
        flex-wrap: wrap;
    }

    .country-subtitle .line {
        display: none;
    }
}
