/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-bg: #dbeafe;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --dark-bg: #0a1733;
    --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);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Page Wrapper */
.page-wrapper {
    min-height: 100vh;
    padding: 20px;
    background: #f1f5f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-line-1, .logo-line-2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-list {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link.active {
    color: var(--text-dark);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -26px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: white;
    color: var(--text-dark);
    border-color: var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-btn {
    padding: 10px 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Programs Section */
.programs-section {
    padding: 60px 48px 48px;
}

.section-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.5;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.program-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px 24px 28px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card.active {
    border-color: var(--primary);
    background: linear-gradient(180deg, #eff6ff 0%, white 30%);
}

.program-card.active::before {
    transform: scaleX(1);
}

.program-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.program-card:hover .program-icon {
    transform: scale(1.1) rotate(-3deg);
}

.program-icon svg {
    width: 100%;
    height: 100%;
}

.program-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.program-description {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
    min-height: 42px;
}

/* Counselor Section */
.counselor-section {
    background: var(--dark-bg);
    margin: 0;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: white;
    position: relative;
    overflow: hidden;
}

.counselor-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, #cbd5e1 50%);
}

.counselor-content {
    flex: 1;
}

.counselor-title {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.counselor-subtitle {
    font-size: 16px;
    color: #cbd5e1;
    opacity: 0.9;
}

.btn-counselor {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: white;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 1;
}

.btn-counselor:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

.btn-counselor svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-counselor:hover svg {
    transform: translateX(4px);
}

/* Program Detail Section */
.program-detail-section {
    padding: 48px 48px 60px;
    background: white;
    border-top: 1px solid var(--border-light);
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-medium);
}

.breadcrumb-link {
    color: var(--text-medium);
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-light);
    font-size: 18px;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Detail Content */
.detail-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.detail-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    animation: fadeInLeft 0.6s ease 0.1s backwards;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.detail-description {
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 460px;
    animation: fadeInLeft 0.6s ease 0.2s backwards;
}

.learn-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    animation: fadeInLeft 0.6s ease 0.3s backwards;
}

.learn-list {
    list-style: none;
}

.learn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: transform 0.2s ease;
    animation: fadeInLeft 0.5s ease backwards;
}

.learn-item:nth-child(1) { animation-delay: 0.4s; }
.learn-item:nth-child(2) { animation-delay: 0.45s; }
.learn-item:nth-child(3) { animation-delay: 0.5s; }
.learn-item:nth-child(4) { animation-delay: 0.55s; }
.learn-item:nth-child(5) { animation-delay: 0.6s; }
.learn-item:nth-child(6) { animation-delay: 0.65s; }

.learn-item:hover {
    transform: translateX(6px);
}

.learn-check {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.learn-item:hover .learn-check {
    transform: scale(1.2) rotate(8deg);
    color: var(--primary-dark);
}

.learn-check svg {
    width: 100%;
    height: 100%;
    stroke-width: 3;
}

/* Tech Illustration */
.detail-image {
    position: relative;
    animation: fadeInRight 0.7s ease 0.2s backwards;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.tech-illustration {
    position: relative;
    width: 100%;
    height: 360px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Decorative dots */
.tech-illustration::before,
.tech-illustration::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, var(--primary-light) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.4;
}

.tech-illustration::before {
    top: 15px;
    right: 20px;
}

.tech-illustration::after {
    bottom: 80px;
    left: 20px;
    width: 50px;
    height: 50px;
}

/* Code Window */
.code-window {
    position: absolute;
    left: 30px;
    top: 50px;
    width: 200px;
    background: #1e293b;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: floatCode 5s ease-in-out infinite;
}

@keyframes floatCode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.code-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 12px;
}

.code-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
}

.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #10b981; }

.code-content {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
}

.code-line {
    color: #cbd5e1;
    white-space: nowrap;
}

.code-num {
    color: #64748b;
    margin-right: 8px;
    display: inline-block;
    width: 12px;
}

.code-key { color: #93c5fd; }
.code-str { color: #86efac; }
.code-punc { color: #cbd5e1; }
.code-indent { display: inline-block; width: 12px; }

/* Browser Window */
.browser-window {
    position: absolute;
    right: 30px;
    top: 40px;
    width: 200px;
    height: 160px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1;
    overflow: hidden;
    animation: floatBrowser 6s ease-in-out infinite 0.5s;
}

@keyframes floatBrowser {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.browser-dots {
    display: flex;
    gap: 4px;
    padding: 8px 10px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-light);
}

.browser-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.browser-line {
    height: 8px;
    background: var(--primary-bg);
    border-radius: 4px;
}

.browser-line.long { width: 100%; background: var(--primary-light); opacity: 0.6; }
.browser-line.short { width: 50%; }
.browser-line.medium { width: 75%; }

/* Mobile Window */
.mobile-window {
    position: absolute;
    right: 60px;
    bottom: 50px;
    width: 90px;
    height: 130px;
    background: #1e3a8a;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
    z-index: 3;
    animation: floatMobile 5.5s ease-in-out infinite 1s;
}

@keyframes floatMobile {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

.mobile-content {
    background: white;
    height: 100%;
    border-radius: 6px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-line {
    height: 5px;
    background: var(--primary-bg);
    border-radius: 3px;
}

.mobile-line.short { width: 60%; }

/* Tech Icons Row */
.tech-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.tech-icon {
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tech-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tech-icon:hover {
    transform: translateY(-6px) scale(1.1);
}

.tech-icon::after {
    content: attr(data-tech);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--text-dark);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.tech-icon:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Info Bar */
.info-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 20px 28px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 20px;
    position: relative;
    transition: transform 0.2s ease;
}

.info-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--border-light);
}

.info-item:hover {
    transform: translateY(-2px);
}

.info-icon-wrapper {
    width: 38px;
    height: 38px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.info-item:hover .info-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: rotate(-8deg) scale(1.05);
}

.info-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 2px;
}

.info-value {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

/* Action Bar */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 0;
}

.fee-display {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

.fee-amount {
    color: var(--primary);
    font-weight: 800;
    font-size: 26px;
    margin-left: 4px;
}

.action-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 14px 28px;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .header {
        padding: 20px 32px;
    }
    
    .nav-list {
        gap: 24px;
    }
    
    .programs-section {
        padding: 48px 32px 40px;
    }
    
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .counselor-section {
        padding: 32px;
    }
    
    .program-detail-section {
        padding: 40px 32px 48px;
    }
    
    .detail-content {
        gap: 40px;
    }
    
    .detail-title {
        font-size: 38px;
    }
    
    .info-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 16px;
    }
    
    .info-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 10px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .header {
        padding: 16px 20px;
    }
    
    .nav, .nav-btn {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .programs-section {
        padding: 40px 24px 32px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .program-card {
        padding: 24px 16px 20px;
    }
    
    .program-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }
    
    .program-title {
        font-size: 16px;
    }
    
    .program-description {
        font-size: 13px;
    }
    
    .counselor-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        text-align: left;
    }
    
    .counselor-title {
        font-size: 20px;
    }
    
    .btn-counselor {
        width: 100%;
        justify-content: center;
    }
    
    .program-detail-section {
        padding: 32px 24px 40px;
    }
    
    .breadcrumb {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .detail-title {
        font-size: 32px;
    }
    
    .detail-description {
        font-size: 16px;
    }
    
    .tech-illustration {
        height: 280px;
        padding: 20px;
    }
    
    .code-window {
        width: 160px;
        left: 20px;
        top: 40px;
    }
    
    .browser-window {
        width: 160px;
        right: 20px;
        top: 30px;
        height: 130px;
    }
    
    .mobile-window {
        width: 70px;
        height: 100px;
        right: 40px;
        bottom: 40px;
    }
    
    .info-bar {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .info-item::after {
        display: none !important;
    }
    
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .fee-display {
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .program-description {
        min-height: auto;
    }
    
    .detail-title {
        font-size: 28px;
    }
    
    .tech-illustration {
        height: 240px;
    }
    
    .code-window, .browser-window {
        transform: scale(0.85);
    }
    
    .tech-icons {
        gap: 12px;
    }
    
    .tech-icon {
        width: 38px;
        height: 38px;
    }
}
