/* style.css */
body {
    font-family: 'Cairo', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: #0066cc;
    color: white;
    text-align: center;
}

.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    margin-bottom: 0.5rem;
}

.logo img {
    height: 80px;
    width: auto;
}

h1 {
    font-size: 2rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
    width: 100%;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li.separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    color: #ffff00;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.7);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

footer {
    background-color: #0066cc;
    color: white;
    text-align: center;
    padding: 1rem;
}

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

h2 {
    color: #0066cc;
    text-align: center;
    margin-bottom: 1.5rem;
}

.template-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.template-btn {
    display: inline-block;
    padding: 15px 25px;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.template-btn:hover {
    background-color: #004499;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.template-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 7px rgba(0, 0, 0, 0.1);
}

form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 5px;
    color: #0066cc;
    font-weight: bold;
}

input, textarea {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button[type="submit"] {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #004499;
}

.messages .message {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

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

.template-btn:hover {
    animation: pulse 0.5s infinite;
}

/* New styles for the buttons */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 250px;
    text-align: center;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-student {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover, .btn-student:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #004499;
}

.btn-student:hover {
    background-color: #45a049;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    body {
        padding-top: 150px;
    }
    .buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 0.5rem 0.5rem 0;
        background-color: #0066cc;
    }

    .logo img {
        height: 60px;
    }

    h1 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    nav {
        margin-top: 0;
    }

    .nav-menu {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background-color: #0066cc;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        margin: 0;
        padding: 0.5rem 0;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-menu li a {
        display: block;
        padding: 0.8rem 1rem;
        text-align: center;
    }

    main {
        padding-top: 20px;
    }

    .header-top {
        margin-bottom: 0.5rem;
    }
}

/* Responsive styles for header */
@media screen and (max-width: 768px) {

}

/* Default styles for larger screens */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
}

.nav-menu {
    display: flex;
}

<script>
document.addEventListener('DOMContentLoaded', function() {
    const menuToggle = document.querySelector('.menu-toggle');
    const navMenu = document.querySelector('.nav-menu');

    menuToggle.addEventListener('click', function() {
        navMenu.classList.toggle('active');
    });
});
</script>
/* الأنماط الموجودة تبقى كما هي */

/* أنماط جديدة لصفحة الشروحات */
.tutorials-container {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.tutorials-title {
    color: #0066cc;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.tutorial-section {
    margin-bottom: 3rem;
}

.tutorial-subtitle {
    color: #0000FF;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* نسبة 16:9 */
    overflow: hidden;
}

.tutorial-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* الأنماط المستجيبة */
@media (max-width: 768px) {
    .tutorials-container {
        padding: 15px;
    }

    .tutorials-title {
        font-size: 1.75rem;
    }

    .tutorial-subtitle {
        font-size: 1.25rem;
    }

    .video-container {
        padding-top: 75%; /* نسبة 4:3 للأجهزة المحمولة */
    }
}

@media (max-width: 480px) {
    .tutorials-container {
        padding: 10px;
    }

    .tutorials-title {
        font-size: 1.5rem;
    }

    .tutorial-subtitle {
        font-size: 1.1rem;
    }
}


