/* ==========================================================================
   SYLLABUS & PREPARATION SPECIFIC STYLES
   ========================================================================== */

/* Page Titles */
.page-title {
    color: white;
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}
.page-subtitle {
    margin: 0 auto;
    max-width: 650px;
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Dropdown Container (from merit.css) */
#dropdowns-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(16px, 3vw, 24px) !important;
}

.selection-card {
    border-radius: 32px !important;
    overflow: visible !important;
}

.selection-card:hover {
    transform: none !important;
}

.dropdown-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-500);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-label svg {
    color: var(--blue-500);
}

.custom-select {
    width: 100%;
    appearance: none;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 14px 44px 14px 16px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: var(--slate-800);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select:hover {
    border-color: var(--blue-300);
    background-color: white;
}

.custom-select:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px var(--blue-50);
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--blue-100);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 146px;
    overflow-y: auto;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-option {
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid var(--slate-50);
}

.custom-dropdown-option:last-child {
    border-bottom: none;
}

.custom-dropdown-option:hover, .custom-dropdown-option.selected {
    background: var(--blue-50);
    color: var(--blue-700);
}

.custom-dropdown-option.disabled {
    color: var(--slate-400);
    cursor: not-allowed;
    background: var(--slate-50);
}

.custom-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}
.custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 4px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--slate-300);
}

.select-container {
    position: relative;
    width: 100%;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' id='dropdown' x='0' y='0' version='1.1' viewBox='0 0 24 24'%3E%3Cpath fill='%23039BE5' d='M21.856 1L12 1.001 2.144 1A2.153 2.153 0 0 0 .22 4.096c1.597 3.279 9.044 16.203 9.887 17.742.4.727 1.107 1.162 1.894 1.162.786 0 1.493-.435 1.893-1.162.842-1.538 8.288-14.462 9.886-17.74A2.153 2.153 0 0 0 21.856 1z'/%3E%3ClinearGradient id='g1' x1='-.547' x2='19.531' y1='3.849' y2='13.211' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23FFF' stop-opacity='.2'/%3E%3Cstop offset='1' stop-color='%23FFF' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cpath fill='url(%23g1)' d='M21.856 1L12 1.001 2.144 1A2.153 2.153 0 0 0 .22 4.096c1.597 3.279 9.044 16.203 9.887 17.742.4.727 1.107 1.162 1.894 1.162.786 0 1.493-.435 1.893-1.162.842-1.538 8.288-14.462 9.886-17.74A2.153 2.153 0 0 0 21.856 1z'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .select-arrow {
    transform: rotate(180deg);
}


/* Data Container Styles */
#data-container {
    display: none;
    margin-top: 32px;
}

/* Header Card */
.university-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--slate-100);
}

.university-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: white;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid var(--slate-100);
}

.university-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--slate-900);
}
.university-header p {
    margin: 4px 0 0;
    color: var(--slate-500);
    font-size: 1rem;
}

/* Tabs Segmented Control */
.tabs {
    display: flex;
    width: max-content;
    max-width: calc(100% - 48px);
    margin: 32px auto 0 auto;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 6px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
    white-space: nowrap;
    min-height: 44px; /* Maintain comfortable touch target */
}

.tab-btn:hover {
    background: var(--blue-50);
    color: var(--slate-800);
}

.tab-btn.active {
    background: var(--blue-600);
    color: white;
    box-shadow: 0 2px 6px rgba(37,99,235,0.25);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
    animation: smoothFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Overview Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(12px, 2vw, 16px);
    margin-bottom: clamp(24px, 4vw, 40px);
}
.stat-card {
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.stat-icon-wrapper svg {
    color: var(--slate-600);
}
.stat-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-600);
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--slate-900);
}
.stat-green { background-color: #dcfce7; }
.stat-green .stat-icon-wrapper svg { color: #166534; }
.stat-pink { background-color: #fce7f3; }
.stat-pink .stat-icon-wrapper svg { color: #9d174d; }
.stat-blue { background-color: #e0f2fe; }
.stat-blue .stat-icon-wrapper svg { color: #075985; }
.stat-yellow { background-color: #fef9c3; }
.stat-yellow .stat-icon-wrapper svg { color: #854d0e; }

/* Accordion (Syllabus) */
.accordion-item {
    border-radius: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid var(--slate-100);
}

.subject-card-header {
    position: relative;
    padding: 24px 24px 16px 24px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subject-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.subject-name {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.subject-stat {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subject-pill {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.subject-watermark {
    position: absolute;
    right: -10px;
    bottom: -10px;
    z-index: 1;
    opacity: 0.4;
    transform: rotate(-10deg);
}

.subject-watermark svg {
    width: 140px;
    height: 140px;
}

.subject-toggle {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

/* Theme Colors */
.theme-green .subject-card-header { background-color: #ecfdf5; }
.theme-green .subject-name { color: #059669; }
.theme-green .subject-stat { color: #064e3b; }
.theme-green .subject-pill { background-color: #d1fae5; color: #059669; }
.theme-green .subject-watermark { color: #d1fae5; }
.theme-green .accordion-icon { color: #064e3b; }

.theme-blue .subject-card-header { background-color: #eff6ff; }
.theme-blue .subject-name { color: #2563eb; }
.theme-blue .subject-stat { color: #1e3a8a; }
.theme-blue .subject-pill { background-color: #dbeafe; color: #2563eb; }
.theme-blue .subject-watermark { color: #dbeafe; }
.theme-blue .accordion-icon { color: #1e3a8a; }

.theme-purple .subject-card-header { background-color: #faf5ff; }
.theme-purple .subject-name { color: #9333ea; }
.theme-purple .subject-stat { color: #581c87; }
.theme-purple .subject-pill { background-color: #f3e8ff; color: #9333ea; }
.theme-purple .subject-watermark { color: #f3e8ff; }
.theme-purple .accordion-icon { color: #581c87; }

.theme-yellow .subject-card-header { background-color: #fffbeb; }
.theme-yellow .subject-name { color: #d97706; }
.theme-yellow .subject-stat { color: #78350f; }
.theme-yellow .subject-pill { background-color: #fef3c7; color: #d97706; }
.theme-yellow .subject-watermark { color: #fef3c7; }
.theme-yellow .accordion-icon { color: #78350f; }

.theme-pink .subject-card-header { background-color: #fdf2f8; }
.theme-pink .subject-name { color: #db2777; }
.theme-pink .subject-stat { color: #831843; }
.theme-pink .subject-pill { background-color: #fce7f3; color: #db2777; }
.theme-pink .subject-watermark { color: #fce7f3; }
.theme-pink .accordion-icon { color: #831843; }

.accordion-icon {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 24px 32px;
    background: white;
}

.accordion-item.active .accordion-content {
    display: block;
    animation: smoothFade 0.4s ease;
}

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

.topic-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--slate-200);
    color: var(--slate-700);
}
.topic-list li:last-child {
    border-bottom: none;
}
.topic-title {
    font-weight: 700;
    color: var(--blue-700);
    display: block;
    margin-bottom: 4px;
}
.subtopics {
    padding-left: 20px;
    margin: 8px 0;
    color: var(--slate-600);
    font-size: 0.95rem;
}

/* Paper Pattern Tables */
.pattern-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
}

.pattern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pattern-table th {
    background: var(--slate-100);
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--slate-600);
    text-transform: uppercase;
}

.pattern-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--slate-200);
    font-size: 0.95rem;
    color: var(--slate-800);
}

@media (max-width: 600px) {
    .pattern-table th {
        padding: 10px 8px;
        font-size: 0.75rem;
    }
    .pattern-table td, .pattern-table tfoot td {
        padding: 10px 8px !important;
        font-size: 0.85rem !important;
    }
}

/* Distribution Pie Chart */
.distribution-visual {
    margin-top: 40px;
    margin-bottom: 40px;
}

.pie-chart-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 24px;
}

.pie-chart-container {
    flex-shrink: 0;
}

.donut-chart {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    margin: 0 auto;
}
.donut-hole {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 55%;
    height: 55%;
    background: white;
    border-radius: 50%;
    z-index: 1;
}
.donut-label {
    position: absolute;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    font-size: 0.75rem;
    color: var(--slate-600);
    text-align: center;
    line-height: 1.2;
    z-index: 2;
    white-space: nowrap;
}
.donut-label strong {
    color: var(--blue-700);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 2px;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-700);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

/* (Removed Width Constraints for full width) */

/* Rules Section */
.rules-container {
    margin-top: 40px;
}

.rules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.rule-card {
    padding: 20px 24px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.rule-card::before {
    content: "•";
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--slate-900);
    opacity: 0.5;
}

/* Preparation Guide Redesign */
.prep-guide-container {
    max-width: 840px;
    margin: 0 auto;
    color: var(--slate-800);
}

.prep-steps-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}
.prep-step-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--slate-900);
}
.prep-step-item p {
    color: var(--slate-600);
    line-height: 1.6;
}

.prep-divider {
    height: 1px;
    background: var(--slate-200);
    margin: 48px 0;
}
.prep-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

/* JSON-Driven Preparation Journey */
.preparation-guide {
    padding: 20px 0;
}

.preparation-guide-header {
    text-align: center;
    margin-bottom: 64px;
}
.preparation-guide-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--slate-900);
    letter-spacing: -0.04em;
    font-weight: 800;
    margin-bottom: 16px;
}
.preparation-intro {
    font-size: 1.15rem;
    color: var(--slate-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.preparation-journey {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}
/* Central Timeline Line (Desktop) */
.preparation-journey::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--slate-200);
    transform: translateX(-50%);
    z-index: 1;
}

.preparation-step {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 32px;
    margin-bottom: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.preparation-step-node {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--slate-200);
    color: var(--slate-400);
    position: relative;
    grid-column: 2;
    z-index: 3;
    transition: all 0.5s ease;
}

.preparation-step-node.active {
    border-color: var(--blue-600);
    color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1), 0 8px 16px rgba(0,0,0,0.1);
}

.preparation-step-visual {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preparation-step-visual svg {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.preparation-step-number {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--slate-400);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background 0.5s ease;
}

.preparation-step-node.active .preparation-step-number {
    background: var(--blue-600);
}

.preparation-step-content {
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(15,23,42,0.02);
    border: 1px solid var(--slate-100);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.preparation-step-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15,23,42,0.06);
}
.preparation-step-content:hover .preparation-step-visual svg {
    transform: scale(1.1);
}

/* Alternating layout for desktop */
.preparation-step:nth-child(odd) .preparation-step-content {
    grid-column: 1;
    text-align: right;
}
.preparation-step:nth-child(even) .preparation-step-content {
    grid-column: 3;
    text-align: left;
}

/* Fix actions list alignment for odd */
.preparation-step:nth-child(odd) .preparation-step-actions {
    align-items: flex-end;
}
.preparation-step-actions {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.preparation-step-actions li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.5;
}
.preparation-step:nth-child(odd) .preparation-step-actions li {
    flex-direction: row-reverse;
}
.action-check-icon {
    width: 18px;
    height: 18px;
    color: var(--blue-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.preparation-step-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--blue-700);
    background: var(--blue-50);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.preparation-step-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.preparation-step-content p {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin: 0;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading & Empty States */
.state-container {
    padding: 60px 20px;
    text-align: center;
    color: var(--slate-500);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.state-container svg {
    margin-bottom: 16px;
    color: var(--slate-300);
}

.state-container h4 {
    font-size: 1.2rem;
    color: var(--slate-800);
    margin: 0 0 8px 0;
}

.skeleton {
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes smoothFade {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.premium-loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--slate-200);
    border-bottom-color: var(--blue-600);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .university-header {
        flex-direction: column;
        text-align: center;
    }
    .tabs {
        padding: 0 16px;
    }
    .tab-content {
        padding: 24px 16px;
    }
    .fixed-actions-grid {
        grid-template-columns: 1fr;
    }
    .subject-stat {
        font-size: 2.8rem;
    }
    .subject-card-header {
        padding: 20px 20px 12px 20px;
    }
    .subject-watermark svg {
        width: 120px;
        height: 120px;
    }
    
    /* Preparation Journey Mobile Overrides */
    .preparation-journey::before {
        left: 30px;
    }
    .preparation-step {
        grid-template-columns: 60px 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
    .preparation-step-node {
        grid-column: 1;
    }
    .preparation-step:nth-child(odd) .preparation-step-content,
    .preparation-step:nth-child(even) .preparation-step-content {
        grid-column: 2;
        text-align: left;
    }
    .preparation-step:nth-child(odd) .preparation-step-actions li {
        flex-direction: row;
    }
    .preparation-step:nth-child(odd) .preparation-step-actions {
        align-items: flex-start;
    }
    .preparation-step-content {
        padding: 24px 20px;
    }
    .preparation-step-content h3 {
        font-size: 1.2rem;
    }
    .preparation-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }
}

/* Recommended Prep & Practice Section */
.recommended-materials {
    margin-top: 60px;
    padding: 60px 0;
    border-top: 1px solid var(--slate-100);
}
.recommended-materials__transition {
    width: 6px;
    height: 40px;
    background: var(--blue-100);
    margin: 0 auto 60px auto;
    border-radius: 999px;
}
.recommended-materials__header {
    text-align: center;
    margin-bottom: 60px;
}
.recommended-materials__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--slate-900);
    letter-spacing: -0.02em;
    font-weight: 800;
    margin-bottom: 12px;
}
.recommended-materials__subtitle {
    font-size: 1.15rem;
    color: var(--slate-600);
    margin: 0;
}
.recommended-materials__container {
    max-width: 1000px;
    margin: 0 auto;
}
.recommended-materials__category {
    margin-bottom: 80px;
}
.recommended-materials__cat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--slate-100);
}
.recommended-materials__cat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--blue-600);
}
.recommended-materials__cat-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: 0.05em;
    margin: 0;
}
.recommended-materials__cat-subtitle {
    font-size: 1.05rem;
    color: var(--slate-600);
    margin-bottom: 32px;
}

.recommended-materials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.recommended-materials__card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(15,23,42,0.02);
}
.recommended-materials__card.disabled-link {
    cursor: default;
}
.recommended-materials__card:not(.disabled-link):hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15,23,42,0.06);
    border-color: var(--blue-200, #bfdbfe);
}

.recommended-materials__card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.recommended-materials__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.recommended-materials__card-icon .res-svg {
    width: 100%;
    height: 100%;
}
.res-gray-main { fill: var(--slate-300); }
.res-blue-accent { fill: var(--blue-600); }
.res-blue-light { fill: var(--blue-100); }
.res-svg-practice { color: var(--slate-400); stroke-width: 1.5; }

.recommended-materials__card-type {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--slate-500);
    background: var(--slate-50);
    padding: 4px 10px;
    border-radius: 6px;
}
.recommended-materials__card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 12px;
    line-height: 1.4;
}
.recommended-materials__card-desc {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 24px;
}
.recommended-materials__card-action {
    border-top: 1px solid var(--slate-100);
    padding-top: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-600);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}
.recommended-materials__card:not(.disabled-link):hover .recommended-materials__card-action {
    gap: 12px;
}

.recommended-materials__empty {
    background: var(--slate-50);
    border: 2px dashed var(--slate-200);
    border-radius: 20px;
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.recommended-materials__empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
    filter: grayscale(100%);
}
.recommended-materials__empty-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--slate-700);
    margin-bottom: 12px;
}
.recommended-materials__empty-text {
    font-size: 1rem;
    color: var(--slate-500);
    max-width: 400px;
    margin: 0 auto 20px auto;
    line-height: 1.5;
}
.recommended-materials__empty-badge {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--blue-600);
    background: var(--blue-50);
    padding: 6px 14px;
    border-radius: 999px;
}

@media (max-width: 1024px) {
    .recommended-materials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .recommended-materials__grid {
        grid-template-columns: 1fr;
    }
}
