:root{--primary-color:#1e5631;--primary-dark:#164a28;--primary-light:#2d7a48;--accent-gold:#d4af37;--accent-gold-dark:#c19a2e;--white:#fff;--text-dark:#333;--light-gray:#f8fafc;--border-gray:#e2e8f0}.subjects-page{padding:50px 20px;text-align:center;background:var(--light-gray);min-height:100vh;display:flex;flex-direction:column;align-items:center}.page-title{font-size:2.5rem;color:var(--primary-color);margin-bottom:40px;font-weight:700;letter-spacing:1px}.subjects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:25px;max-width:1100px;width:100%}.subject-card{background:var(--white);border:1px solid var(--border-gray);padding:25px 20px;border-radius:14px;cursor:pointer;font-weight:600;color:var(--primary-color);font-size:1rem;transition:all .3s ease;box-shadow:0 6px 18px rgba(0,0,0,.08)}.subject-card:hover{background:var(--primary-color);color:var(--white);transform:translateY(-6px) scale(1.02);box-shadow:0 12px 28px rgba(30,86,49,.25);border-color:var(--primary-color)}.subject-card:nth-child(3n):hover{background:linear-gradient(135deg,var(--primary-color),var(--primary-light))}.subject-card:nth-child(3n+1):hover{background:linear-gradient(135deg,var(--accent-gold),var(--accent-gold-dark))}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;z-index:50;animation:fadeIn .3s ease}.modal-content{background:var(--white);padding:35px;border-radius:14px;max-width:550px;width:90%;text-align:left;color:var(--text-dark);box-shadow:0 12px 28px rgba(0,0,0,.25);animation:slideUp .35s ease;border-top:4px solid var(--primary-color)}.modal-content h2{color:var(--primary-color);margin-bottom:15px;font-size:1.6rem;background:linear-gradient(135deg,var(--primary-color),var(--primary-light));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.modal-content p{margin-bottom:25px;line-height:1.6;font-size:1rem}.close-btn{padding:10px 18px;background:linear-gradient(135deg,var(--primary-color),var(--primary-light));color:var(--white);border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .3s ease}.close-btn:hover{background:linear-gradient(135deg,var(--primary-dark),var(--primary-color));transform:scale(1.05);box-shadow:0 4px 12px rgba(30,86,49,.3)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.subjects-header{width:100%;background:linear-gradient(135deg,var(--primary-dark),var(--primary-color));color:var(--white);padding:60px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin-bottom:50px;border-radius:0 0 18px 18px;box-shadow:0 6px 20px rgba(30,86,49,.2);position:relative;overflow:hidden}.subjects-header:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;opacity:.1}.subjects-header h1{font-size:2.8rem;font-weight:700;margin-bottom:15px;letter-spacing:1px;position:relative;z-index:1}.subjects-header p{font-size:1.1rem;max-width:700px;line-height:1.6;opacity:.95;position:relative;z-index:1}.subjects-header:after{content:"";position:absolute;bottom:-2px;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--accent-gold) 0,var(--accent-gold-dark) 50%,var(--accent-gold) 100%);opacity:.6}@media (max-width:768px){.subjects-header h1{font-size:2.2rem}.subjects-header p{font-size:1rem}.subjects-header{padding:40px 20px}.page-title{font-size:2rem}.subjects-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:20px}.subject-card{padding:20px 15px;font-size:.95rem}}@media (max-width:480px){.subjects-header h1{font-size:1.8rem}.subjects-grid{grid-template-columns:1fr}.modal-content{padding:25px}.modal-content h2{font-size:1.4rem}}.close-btn:focus,.subject-card:focus{outline:2px solid var(--accent-gold);outline-offset:2px}@keyframes cardFadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.subject-card{animation:cardFadeIn .5s ease-out;animation-fill-mode:backwards}.subject-card:first-child{animation-delay:.05s}.subject-card:nth-child(2){animation-delay:.1s}.subject-card:nth-child(3){animation-delay:.15s}.subject-card:nth-child(4){animation-delay:.2s}.subject-card:nth-child(5){animation-delay:.25s}.subject-card:nth-child(6){animation-delay:.3s}.subject-card:nth-child(7){animation-delay:.35s}.subject-card:nth-child(8){animation-delay:.4s}.subject-card:nth-child(9){animation-delay:.45s}.subject-card:nth-child(10){animation-delay:.5s}