:root {
    --primary-color: #E53935;
    --secondary-color: #FFC107;
    --text-color: #333333;
    --background-color: #F5F5F5;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--secondary-color);
}

.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.flag, .ribbon {
    position: absolute;
    width: 50px;
    height: 100px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.flag.left, .ribbon.left {
    left: 20px;
    animation: wave 3s infinite alternate;
}

.flag.right, .ribbon.right {
    right: 20px;
    animation: wave 3s infinite alternate-reverse;
}

.flag {
    top: 50px;
}

.ribbon {
    top: 200px;
    transform: skew(-20deg);
}

@keyframes wave {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(20px) rotate(5deg);
    }
}

.instructor-container {
    max-width: 1000px;
    margin: 80px auto 0;
    padding: 2rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.instructor-profile {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.instructor-profile:hover {
    transform: translateY(-5px);
}

.instructor-image {
    flex: 0 0 300px;
    margin-right: 2rem;
}

.instructor-image img {
    padding: 0.5rem;
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.instructor-info {
    flex: 1;
}

.instructor-info h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
}

.instructor-info h3 {
    margin: 0.5rem 0;
    color: #666;
    font-size: 1.2rem;
}

.instructor-bio {
    text-align: justify;
    margin: 1rem 0;
    line-height: 1.6;
}

.instructor-contact {
    margin: 1rem 0;
}

.instructor-contact p {
    margin: 0.5rem 0;
}

.instructor-actions {
    margin-top: 1.5rem;
}

.instructor-actions button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem 0.5rem 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

.instructor-actions button:hover {
    background-color: #C62828;
}

.back-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background-color: #C62828;
}

@media (max-width: 768px) {
    .instructor-container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .instructor-profile {
        flex-direction: column;
        align-items: center;
    }

    .instructor-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .instructor-image img {
        width: 250px;
        height: 250px;
    }

    .instructor-info h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    .instructor-info h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .instructor-actions {
        text-align: center;
    }

    .flag, .ribbon {
        width: 30px;
        height: 60px;
    }
}