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

        body {
            font-family: 'Open Sans', sans-serif;
            background-color: #f8f9fa;
            min-height: 100vh;
        }

        html {
            scroll-behavior: smooth;
        }

        /* Header Section */
        .page-header {
            /* background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%); */
            background-image:url(../../img/background_home_tsmi.png) ;
            background-size: cover;
            background-repeat: no-repeat;

            padding: 6rem 0 3rem;
            margin-top: 76px;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .page-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.1);
            z-index: 1;
        }

        .page-header .container {
            position: relative;
            z-index: 2;
        }

        .page-header h1 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .page-header p {
            font-size: 1.1rem;
            opacity: 0.95;
        }

        /* Instructions Card */
        .instructions-card {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            margin: -3rem auto 3rem;
            max-width: 900px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 10;
        }

        .instructions-card h5 {
            font-family: 'Montserrat', sans-serif;
            color: #304293;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .instructions-card p {
            color: #666;
            margin-bottom: 1.5rem;
        }

        /* Legend */
        .legend {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
            padding: 1.5rem;
            background: #f0f4ff;
            border-radius: 10px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
        }

        .legend-box {
            width: 25px;
            height: 25px;
            border-radius: 6px;
            border: 2px solid #333;
        }

        .legend-box.normal { 
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border-color: #2e7d32;
        }
        .legend-box.selected { 
            background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
        }
        .legend-box.prerequisite { 
            background: linear-gradient(135deg, #fff9c4 0%, #ffeb3b 100%);
            border-color: #f57f17;
        }
        .legend-box.dependent { 
            background: linear-gradient(135deg, #b3e5fc 0%, #4fc3f7 100%);
            border-color: #0277bd;
        }
        .legend-box.inactive { 
            background: #e0e0e0;
            border-color: #9e9e9e;
            opacity: 0.4;
        }

        /* Organogram Section */
        .organogram-section {
            padding: 3rem 0 5rem;
        }

        .semester {
            margin-bottom: 4rem;
            position: relative;
        }

        .semester-title {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            color: #1b5e20;
            font-size: 1.5rem;
            margin-bottom: 2rem;
            padding: 1rem 1.5rem;
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border-left: 5px solid #2e7d32;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
        }

        .subjects {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.2rem;
        }

        .subject {
            background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
            border: 2px solid #66bb6a;
            border-radius: 12px;
            padding: 1.2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            min-height: 110px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .subject:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(46, 125, 50, 0.2);
            border-color: #2e7d32;
        }

        .subject-name {
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            font-size: 0.95rem;
            color: #1b5e20;
            text-align: center;
            line-height: 1.4;
        }

        /* Subject States */
        .subject.selected {
            background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
            border-color: #1b5e20;
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(27, 94, 32, 0.4);
            z-index: 10;
        }

        .subject.selected .subject-name {
            color: white;
        }

        .subject.prerequisite {
            background: linear-gradient(135deg, #fff9c4 0%, #ffeb3b 100%);
            border-color: #f57f17;
            border-width: 3px;
            animation: pulse 2s ease-in-out infinite;
        }

        .subject.prerequisite .subject-name {
            color: #f57f17;
        }

        .subject.dependent {
            background: linear-gradient(135deg, #b3e5fc 0%, #4fc3f7 100%);
            border-color: #0277bd;
            border-width: 3px;
            animation: pulse 2s ease-in-out infinite;
        }

        .subject.dependent .subject-name {
            color: #0277bd;
        }

        .subject.inactive {
            background: #e0e0e0;
            border-color: #bdbdbd;
            opacity: 0.3;
            /* cursor: not-allowed; */
        }

        .subject.inactive:hover {
            transform: none;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

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

        /* Clear Selection Button */
        .clear-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 1rem 2rem;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(27, 94, 32, 0.4);
            transition: all 0.3s ease;
            z-index: 1000;
            display: none;
        }

        .clear-btn.show {
            display: block;
        }

        .clear-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(27, 94, 32, 0.5);
        }

        /* Complementary Activities */
        .complementary {
            background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
            border: 3px dashed #ef6c00;
            text-align: center;
            padding: 2rem;
            margin-top: 3rem;
            border-radius: 15px;
            font-family: 'Montserrat', sans-serif;
        }

        .complementary strong {
            color: #e65100;
            font-size: 1.2rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .page-header {
                padding: 5rem 0 2rem;
            }

            .page-header h1 {
                font-size: 1.8rem;
            }

            .instructions-card {
                margin: -2rem 1rem 2rem;
                padding: 1.5rem;
            }

            .legend {
                gap: 1rem;
                padding: 1rem;
            }

            .subjects {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 1rem;
            }

            .subject {
                padding: 1rem;
                min-height: 100px;
            }

            .subject-name {
                font-size: 0.85rem;
            }

            .semester-title {
                font-size: 1.2rem;
                padding: 0.8rem 1rem;
            }

            .clear-btn {
                bottom: 20px;
                right: 20px;
                padding: 0.8rem 1.5rem;
                font-size: 0.9rem;
            }
        }