* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Atom Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.atom-animation {
    position: relative;
    width: 300px;
    height: 300px;
    animation: float 6s ease-in-out infinite;
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffeb3b, #ff9800);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.8);
}

.electron-orbit {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 100px;
    height: 100px;
    animation: rotate 2s linear infinite;
}

.orbit-2 {
    width: 160px;
    height: 160px;
    animation: rotate 3s linear infinite reverse;
}

.orbit-3 {
    width: 220px;
    height: 220px;
    animation: rotate 4s linear infinite;
}

.electron {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4fc3f7;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.8);
}

/* Sections */
.section {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 2;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Concept Grid */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.concept-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.concept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.concept-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.concept-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.concept-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Wave-Particle Demo */
.wave-particle-demo {
    margin: 25px 0;
    text-align: center;
}

#waveParticleCanvas {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.wave-particle-demo button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.wave-particle-demo button:hover {
    background: #5a6fd8;
}

/* Uncertainty Demo */
.uncertainty-demo {
    margin: 25px 0;
}

.slider-container {
    margin-bottom: 20px;
}

.slider-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.uncertainty-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

.position-bar, .momentum-bar {
    height: 20px;
    border-radius: 10px;
    flex: 1;
    position: relative;
    background: #e0e0e0;
}

.position-bar::before {
    content: 'Position Δx';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.9rem;
    color: #666;
}

.momentum-bar::before {
    content: 'Momentum Δp';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Formula */
.formula {
    background: #f0f2ff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Times New Roman', serif;
    font-size: 1.2rem;
    color: #333;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

/* Superposition Demo */
.superposition-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

#blochSphere {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
}

.state-controls {
    display: flex;
    gap: 10px;
}

.state-controls button {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    font-family: 'Times New Roman', serif;
}

.state-controls button:hover {
    background: #5a6fd8;
}

/* Entanglement Demo */
.entanglement-demo {
    margin: 25px 0;
    text-align: center;
}

.particle-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
}

.particle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    position: relative;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.spin-arrow {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.spin-arrow::before {
    content: '↕️';
}

.entanglement-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.entanglement-line::before,
.entanglement-line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: move 2s ease-in-out infinite;
}

.entanglement-line::before {
    left: 0;
}

.entanglement-line::after {
    right: 0;
    animation-delay: 1s;
}

.measurement-result {
    margin-top: 20px;
    padding: 15px;
    background: #f0f2ff;
    border-radius: 10px;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Experiments Section */
.experiment-showcase {
    display: grid;
    gap: 60px;
}

.experiment-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.experiment-card h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.experiment-visual {
    text-align: center;
    margin: 30px 0;
}

#doubleSlitCanvas {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #000;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.controls button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.controls button:hover {
    background: #5a6fd8;
}

.controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

/* Schrödinger's Cat Demo */
.schrodinger-demo {
    text-align: center;
    margin: 30px 0;
}

.cat-box {
    width: 300px;
    height: 200px;
    border: 3px solid #8bc34a;
    border-radius: 15px;
    margin: 20px auto;
    position: relative;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cat {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.cat.alive {
    display: block;
}

.cat.dead {
    display: none;
}

.superposition-indicator {
    font-size: 0.9rem;
    background: rgba(102, 126, 234, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    color: #667eea;
    font-weight: 500;
}

.geiger-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.geiger-counter .atom {
    width: 20px;
    height: 20px;
    background: #ff5722;
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

.poison-bottle {
    width: 15px;
    height: 20px;
    background: #9c27b0;
    border-radius: 0 0 8px 8px;
    position: relative;
}

.poison-bottle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 5px;
    background: #9c27b0;
    border-radius: 3px 3px 0 0;
}

/* Applications Grid */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.app-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

#quantumCircuit {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin: 20px 0;
    background: #f8f9fa;
}

.companies {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #555;
}

.crypto-demo {
    margin: 20px 0;
}

.key-distribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.alice, .bob {
    padding: 10px 15px;
    background: #667eea;
    color: white;
    border-radius: 10px;
    font-weight: 500;
}

.quantum-channel {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.mri-demo {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.magnetic-field {
    width: 150px;
    height: 100px;
    border: 2px dashed #666;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nucleus {
    width: 20px;
    height: 20px;
    background: #ff5722;
    border-radius: 50%;
}

.spin-states {
    position: absolute;
    right: -40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spin-up, .spin-down {
    font-size: 1.5rem;
    animation: spin 2s linear infinite;
}

.spin-down {
    animation-direction: reverse;
}

.applications-list ul {
    list-style: none;
    padding: 0;
}

.applications-list li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.sensor-demo {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.nv-center {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-lattice {
    width: 60px;
    height: 60px;
    border: 2px solid #2196f3;
    transform: rotate(45deg);
}

.defect-center {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #f44336;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.resource-category {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.resource-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
}

.book-list, .lecture-list, .paper-list, .website-list {
    list-style: none;
}

.book-item, .lecture-item, .paper-item, .website-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Simplified Applications Styles */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.application-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.application-card:hover {
    transform: translateY(-5px);
}

.application-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.demo-section {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.demo-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 5px;
}

.demo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.demo-btn.warning {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.real-world {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Speed Demo Styles */
.speed-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.classical, .quantum {
    text-align: center;
}

.label {
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.1s ease;
    border-radius: 10px;
}

.quantum .progress-fill {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
}

.time {
    font-weight: bold;
    color: #555;
}

/* Crypto Demo Styles */
.crypto-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.participant {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.channel {
    flex: 1;
    height: 40px;
    background: linear-gradient(90deg, #4fc3f7, #81c784);
    margin: 0 20px;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photon {
    position: absolute;
    font-size: 1.5rem;
    animation: movePhoton 2s ease-in-out;
}

@keyframes movePhoton {
    from { left: 10px; }
    to { left: calc(100% - 40px); }
}

.eavesdropper {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
}

.result.secure {
    background: #c8e6c9;
    color: #2e7d32;
}

.result.compromised {
    background: #ffcdd2;
    color: #c62828;
}

/* MRI Demo Styles */
.mri-demo {
    text-align: center;
}

.body-outline {
    width: 150px;
    height: 200px;
    background: linear-gradient(180deg, #ffeaa7, #fab1a0);
    border-radius: 75px 75px 30px 30px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    top: 0;
    animation: scanMove 3s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 3px); }
}

.organs-simple {
    position: relative;
    height: 100%;
}

.organ-simple {
    position: absolute;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.organ-simple:hover {
    transform: scale(1.3);
}

.organ-simple.brain { top: 20px; left: 50%; transform: translateX(-50%); }
.organ-simple.heart { top: 60px; left: 50%; transform: translateX(-50%); }
.organ-simple.lungs { top: 50px; left: 30%; }

.scan-display {
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LIGO Demo Styles */
.ligo-demo {
    text-align: center;
}

.detector-arms {
    width: 150px;
    height: 150px;
    margin: 20px auto;
    position: relative;
}

.arm-h, .arm-v {
    position: absolute;
    background: #3498db;
}

.arm-h {
    width: 120px;
    height: 4px;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.arm-v {
    width: 4px;
    height: 120px;
    left: 50%;
    top: 15px;
    transform: translateX(-50%);
}

.laser-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #e74c3c;
}

.wave-display {
    background: #34495e;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-detected {
    background: #27ae60 !important;
    animation: waveDetection 2s ease-in-out;
}

@keyframes waveDetection {
    0%, 100% { background: #27ae60; }
    50% { background: #2ecc71; }
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.app-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon {
    font-size: 1.8rem;
}

.impact-detail {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
    display: none;
}

.impact-detail.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Demo Styles */
.interactive-demo {
    background: #f0f8ff;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.demo-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

.demo-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.demo-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Computing Race Demo */
.computing-race {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.computer-display {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.computer-display.winner {
    border-color: #4caf50;
    background: #f0fff0;
}

.progress-bar {
    background: #e0e0e0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    background: linear-gradient(45deg, #667eea, #764ba2);
    height: 100%;
    width: 0%;
    transition: width 0.1s ease;
}

.quantum-progress-fill {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
}

/* QKD Demo */
.qkd-demo {
    margin-top: 20px;
}

.qkd-participants {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.participant {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
    min-width: 120px;
}

.participant.alice {
    border-color: #4fc3f7;
}

.participant.bob {
    border-color: #81c784;
}

.participant.eve {
    border-color: #e57373;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.participant.eve.active {
    opacity: 1;
}

.quantum-channel {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #4fc3f7, #81c784);
    margin: 0 20px;
    position: relative;
    border-radius: 2px;
}

.quantum-photon {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffeb3b;
    border-radius: 50%;
    top: -8px;
    left: 0;
    animation: photonTravel 2s ease-in-out;
    box-shadow: 0 0 10px #ffeb3b;
}

@keyframes photonTravel {
    from {
        left: 0;
        transform: rotate(0deg);
    }
    to {
        left: calc(100% - 20px);
        transform: rotate(360deg);
    }
}

.key-display {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Medical Demo */
.medical-applications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.medical-app {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.medical-app:hover {
    border-color: #4caf50;
    transform: scale(1.02);
}

.organ-scanner {
    margin-top: 20px;
}

.body-diagram {
    width: 200px;
    height: 300px;
    background: linear-gradient(180deg, #ffeaa7, #fab1a0);
    border-radius: 100px 100px 50px 50px;
    margin: 20px auto;
    position: relative;
    cursor: pointer;
}

.organ {
    position: absolute;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.organ:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.heart {
    width: 30px;
    height: 30px;
    background: #e74c3c;
    top: 80px;
    left: 85px;
}

.brain {
    width: 40px;
    height: 30px;
    background: #f39c12;
    top: 20px;
    left: 80px;
    border-radius: 50% 50% 40% 40%;
}

.lungs {
    width: 25px;
    height: 40px;
    background: #3498db;
    top: 70px;
    left: 60px;
    border-radius: 40% 40% 20% 20%;
}

.liver {
    width: 35px;
    height: 25px;
    background: #8e44ad;
    top: 120px;
    left: 85px;
    border-radius: 60% 40% 60% 40%;
}

.mri-display {
    background: #2c3e50;
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    min-height: 200px;
    display: none;
}

.mri-display.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scan-progress {
    background: #34495e;
    height: 10px;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

.scan-fill {
    background: linear-gradient(45deg, #00ff88, #00aaff);
    height: 100%;
    width: 0%;
    transition: width 0.1s ease;
    animation: scanGlow 1s ease-in-out infinite alternate;
}

@keyframes scanGlow {
    from { box-shadow: 0 0 5px rgba(0, 255, 136, 0.5); }
    to { box-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
}

/* LIGO Demo */
.ligo-detector {
    background: #2c3e50;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.detector-arms {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.detector-arm {
    position: absolute;
    background: #3498db;
    border-radius: 3px;
}

.arm-horizontal {
    width: 180px;
    height: 6px;
    top: 97px;
    left: 10px;
}

.arm-vertical {
    width: 6px;
    height: 180px;
    top: 10px;
    left: 97px;
}

.laser-beam {
    position: absolute;
    background: #e74c3c;
    opacity: 0.8;
    animation: laserPulse 2s ease-in-out infinite;
}

.beam-horizontal {
    width: 0;
    height: 2px;
    top: 99px;
    left: 100px;
}

.beam-vertical {
    width: 2px;
    height: 0;
    top: 100px;
    left: 99px;
}

@keyframes laserPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.gravitational-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, transparent 40%, rgba(255, 255, 0, 0.1) 50%, transparent 60%);
    border-radius: 50%;
    opacity: 0;
    animation: waveExpand 3s ease-out;
}

@keyframes waveExpand {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

.wave-data {
    background: #34495e;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.waveform {
    height: 60px;
    background: #1a252f;
    border-radius: 5px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.wave-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00ff88;
    top: 50%;
    left: 0;
    animation: waveformMove 2s ease-in-out infinite;
}

@keyframes waveformMove {
    0%, 100% { transform: translateY(0) scaleY(1); }
    25% { transform: translateY(-10px) scaleY(2); }
    75% { transform: translateY(10px) scaleY(0.5); }
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: statusBlink 1.5s ease-in-out infinite;
}

.status-indicator.active {
    background: #4caf50;
}

.status-indicator.detecting {
    background: #ff9800;
}

.status-indicator.idle {
    background: #9e9e9e;
    animation: none;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.book-item:last-child,
.lecture-item:last-child,
.paper-item:last-child,
.website-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.book-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 8px;
}

.book-item ul {
    margin-left: 20px;
}

.book-item li {
    margin-bottom: 5px;
    color: #666;
}

.lecture-item a,
.paper-item a,
.website-item a {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.lecture-item a:hover,
.paper-item a:hover,
.website-item a:hover {
    color: #5a6fd8;
}

/* References */
.references {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.references h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1rem;
}

.references ul {
    list-style: none;
}

.references li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.references li::before {
    content: '📚';
    position: absolute;
    left: 0;
}

.references a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.references a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.video-reference {
    margin: 20px 0;
    padding: 15px;
    background: #fff3e0;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

.video-reference h4 {
    color: #ff9800;
    margin-bottom: 10px;
}

.video-reference a {
    color: #ff9800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.video-reference a:hover {
    color: #f57c00;
}

.experiment-explanation {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.experiment-explanation p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Enhanced Educational Styles */
.intro-explanation {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
}

.intro-explanation h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.quantum-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quantum-comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.quantum-comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.quantum-comparison-table tr:hover td {
    background-color: #f8f9ff;
}

.size-scale {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.scale-visualization {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.scale-item:hover {
    transform: translateX(10px);
}

.scale-size {
    font-weight: bold;
    min-width: 60px;
    color: #2c3e50;
}

.scale-bar {
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.scale-bar.human { width: 200px; background: #3498db; }
.scale-bar.insect { width: 150px; background: #2ecc71; }
.scale-bar.cell { width: 100px; background: #f39c12; }
.scale-bar.molecule { width: 60px; background: #e74c3c; }
.scale-bar.atom { width: 30px; background: #9b59b6; animation: quantum-glow 2s infinite; }

.quantum-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    transform: scale(1.05);
}

@keyframes quantum-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(155, 89, 182, 0.6); }
    50% { box-shadow: 0 0 30px rgba(155, 89, 182, 1), 0 0 40px rgba(155, 89, 182, 0.8); }
}

.detailed-explanation {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid #667eea;
}

.analogy-box {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.analogy-box h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.analogy-box ul {
    list-style: none;
    padding: 0;
}

.analogy-box li {
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: rgba(255,255,255,0.7);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.analogy-box li:hover {
    transform: translateX(5px);
}

.everyday-example {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border: 2px dashed #ff9a76;
}

.everyday-example h4 {
    color: #d35400;
    margin-bottom: 1rem;
}

.uncertainty-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.comparison-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.comparison-item:hover {
    transform: translateY(-5px);
}

.visual-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.visual-bar div {
    height: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.position-precise, .momentum-precise {
    width: 150px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.position-fuzzy, .momentum-fuzzy {
    width: 80px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    animation: fuzzy-pulse 1.5s infinite;
}

@keyframes fuzzy-pulse {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

.visual-bar span {
    font-weight: 500;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .uncertainty-comparison {
        grid-template-columns: 1fr;
    }

    .scale-visualization {
        gap: 0.5rem;
    }

    .scale-item {
        flex-wrap: wrap;
    }

    .quantum-comparison-table {
        font-size: 0.9rem;
    }
}

/* Online Courses Section */
.online-courses-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin-top: 80px;
}

.courses-banner {
    text-align: center;
    color: white;
}

.courses-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.courses-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.course-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.course-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.course-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        padding: 1.5rem;
    }

    .courses-banner h3 {
        font-size: 1.6rem;
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes move {
    0%, 100% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .concept-grid {
        grid-template-columns: 1fr;
    }

    .concept-card {
        padding: 30px 20px;
    }

    .nav-menu {
        display: none;
    }

    .atom-animation {
        width: 200px;
        height: 200px;
    }

    .orbit-1 {
        width: 80px;
        height: 80px;
    }

    .orbit-2 {
        width: 120px;
        height: 120px;
    }

    .orbit-3 {
        width: 160px;
        height: 160px;
    }

    .particle-pair {
        flex-direction: column;
        gap: 30px;
    }

    .entanglement-line {
        width: 3px;
        height: 50px;
        transform: rotate(90deg);
    }

    #doubleSlitCanvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }
}

/* ====================================
   MONETIZATION STYLES
   ==================================== */

/* Advertisement Banners */
.header-ad-banner,
.footer-ad-banner {
    background: #f8f9fa;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.header-ad-banner {
    margin-top: 70px; /* Account for fixed navbar */
}

.header-banner-ad,
.footer-banner-ad {
    max-width: 100%;
    height: auto;
}

/* Content with Sidebar Layout */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.main-content {
    min-width: 0; /* Prevent grid overflow */
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

/* Sidebar Sections */
.sidebar-ad,
.affiliate-section,
.support-section,
.newsletter-section {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-ad:last-child,
.affiliate-section:last-child,
.support-section:last-child,
.newsletter-section:last-child {
    border-bottom: none;
}

.sidebar h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar h5 {
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Affiliate Marketing Styles */
.affiliate-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.affiliate-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.affiliate-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.affiliate-item img {
    border-radius: 5px;
    flex-shrink: 0;
}

.affiliate-info {
    flex: 1;
}

.affiliate-info p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.affiliate-link {
    display: inline-block;
    background: #667eea;
    color: white !important;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.affiliate-link:hover {
    background: #5a6fd8;
}

/* Course Items */
.course-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-item {
    padding: 15px;
    background: #f0f2ff;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.course-item h5 {
    color: #667eea;
    margin-bottom: 8px;
}

.course-item p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Support Section Styles */
.support-section p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.support-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.coffee-button {
    background: linear-gradient(45deg, #ff9800, #ff5722);
    color: white;
}

.coffee-button:hover {
    background: linear-gradient(45deg, #f57c00, #e64a19);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.patreon-button {
    background: linear-gradient(45deg, #ff424d, #f96854);
    color: white;
}

.patreon-button:hover {
    background: linear-gradient(45deg, #f50057, #e91e63);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 66, 77, 0.3);
}

.support-button i {
    margin-right: 8px;
}

.korea-support {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e8;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
}

.korea-support h5 {
    color: #4caf50;
    margin-bottom: 10px;
}

.korea-support p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

/* Newsletter Section */
.newsletter-section p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #667eea;
}

.newsletter-form button {
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #5a6fd8;
}

/* Mobile Advertisement Responsive */
@media (max-width: 768px) {
    .header-ad-banner,
    .footer-ad-banner {
        padding: 10px 0;
    }

    .header-banner-ad,
    .footer-banner-ad {
        width: 320px;
        height: 50px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        position: relative;
        top: auto;
        max-height: none;
        order: -1; /* Show sidebar first on mobile */
    }

    .affiliate-item {
        flex-direction: column;
        text-align: center;
    }

    .affiliate-item img {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .header-banner-ad,
    .footer-banner-ad {
        width: 300px;
        height: 50px;
    }

    .sidebar-ad,
    .affiliate-section,
    .support-section,
    .newsletter-section {
        padding: 20px;
    }

    .support-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* AdSense Responsive Adjustments */
.adsbygoogle {
    text-align: center;
}

/* Improve readability with ads */
.main-content .concept-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1200px) {
    .main-content .concept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Premium Content Teaser */
.premium-teaser {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: center;
}

.premium-teaser h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.premium-teaser p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.premium-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.premium-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Affiliate Disclosure */
.affiliate-disclosure {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.affiliate-disclosure p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}