body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

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

.header {
    position: relative;
    background-color: #16a085;
    padding: 20px 20px 5px 20px;
    color: white;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 36px;
}

.nav {
    margin-top: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav a:hover {
    background-color: #f0f0f0;
    color: #333;
}


/* Ensure other links do not move */
.nav a {
    padding: 10px;
    margin: 0 10px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.hero h2 {
    font-size: 28px;
}

.hero p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

.section {
    margin: 40px 0;
}

.section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    text-decoration: none;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px #666;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

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

.card h4 {
    font-size: 20px;
    color: #16a085;
}

.card p {
    font-size: 14px;
    color: #666;
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #16a085;
    color: white;
    margin-top: 40px;
}

.footer a {
    text-decoration: none;
    color: white;
}

/* Dropdown styles */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 1;
    max-width: 250px; /* Set a max-width to avoid expanding */
    overflow-wrap: break-word; /* Ensure text breaks */
    word-wrap: break-word; /* For older browsers */
}

.nav .tutorials-link:hover + .dropdown, 
.dropdown:hover {
    display: block;
    left: 0px;
}

.dropdown a {
    text-align: left;
    display: block;
    padding: 5px 0;
    color: #333;
    text-decoration: none;
}

/* Optional: Ensure the dropdown wraps in case it exceeds screen width */
@media screen and (max-width: 600px) {
    .dropdown {
        
        left: auto;
        right: 0;
        width: 100%; /* Make the dropdown full width on smaller screens */
    }
}
