    /* Paste the EXACT same <style> block from the previous version of headandnick.php here */
    /* Includes .dashboard-layout, .sidebar, accordion, .dashboard-content, .exercise-grid, .exercise-card, .modal-overlay etc. */
    .dashboard-layout { display: flex; max-width: 1200px; margin: 30px auto; gap: 30px; min-height: 70vh; }
    .sidebar { width: 250px; flex-shrink: 0; background-color: #f8f9fa; padding: 10px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); height: fit-content; }
    .sidebar h3 { font-size: 1.2em; color: #343a40; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid #dee2e6; text-align: center; }
    .sidebar-nav, .sub-menu { list-style: none; padding: 0; margin: 0; }
    .sidebar-nav > li > a.menu-toggle { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; text-decoration: none; color: #495057; border-radius: 5px; font-weight: bold; transition: background-color 0.3s; cursor: pointer; }
    .sidebar-nav > li > a.menu-toggle:hover { background-color: #e9ecef; }
    .toggle-icon { transition: transform 0.3s ease; font-size: 0.8em; }
    a.menu-toggle.active .toggle-icon { transform: rotate(180deg); }
    .sub-menu { display: none; padding-inline-start: 15px; margin-top: 5px; overflow: hidden; max-height: 0; transition: max-height 0.4s ease-out; }
    .sub-menu.show { display: block; max-height: 500px; transition: max-height 0.4s ease-in; }
    .sub-menu li a { display: block; padding: 4px; text-decoration: none; color: #495057; border-radius: 5px; font-weight: 500; transition: background-color 0.3s, color 0.3s; font-size: 0.95em; }
    .sub-menu li a:hover { background-color: #e9ecef; color: #000; }
    .sub-menu li a.active { background-color: var(--golden-orange); color: #ffffff; }
    .dashboard-content { flex-grow: 1; background-color: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
    .content-header h1 { font-size: 2em; margin-top: 0; color: #2c3e50; }
    .content-header p { font-size: 1.1em; line-height: 1.7; color: #555; margin-top: 10px; }
    h1, h2 {color: var(--golden-orange) !important; }
    @media (max-width: 768px) { .dashboard-layout { flex-direction: column; } .sidebar { width: 100%; margin-bottom: 20px;} }
    .exercise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
    .exercise-card { background-color: #fdfdfd; border: 1px solid #eee; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
    .exercise-card:hover { transform: translateY(-5px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .exercise-card .card-img { width: 100%; height: 180px; object-fit: cover; display: block; background-color: #f0f0f0; }
    .exercise-card .card-title { font-size: 1.2em; color: #333; margin: 0; padding: 15px; text-align: center; background-color: #fff; }
    .modal-overlay { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); padding-top: 50px; }
    .modal-content { background-color: #fefefe; margin: 5% auto; padding: 30px; border: 1px solid #888; width: 90%; max-width: 700px; border-radius: 8px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3); animation: fadeIn 0.3s; }
    .modal-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; position: absolute; top: 10px; right: 20px; }
    html[dir="rtl"] .modal-close { float: left; left: 20px; right: auto; } /* Adjust close button for RTL */
    .modal-close:hover, .modal-close:focus { color: black; text-decoration: none; cursor: pointer; }
    .modal-content img { width: 100%; max-height: 400px; object-fit: contain; /* Use contain for GIF/Image */ display: block; border-radius: 5px; margin-bottom: 15px; background-color: #f0f0f0; display: none; /* Hide img by default */ }
    .modal-video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-bottom: 15px; border-radius: 5px; display: none; /* Hide video by default */ background-color: #000; /* Black background for video container */ }
    .modal-video-container iframe, .modal-video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } /* Video/iframe fill container */
    .modal-content h2 { margin-top: 0; margin-bottom: 10px; font-size: 1.6em;} /* Adjust title margin */
    /* Remove default h3 style from original if it conflicts */
    /* .modal-content h3 { color: #333; border-bottom: 1px solid #eee; padding-bottom: 5px; margin-top: 20px; } */
    .modal-content p { font-size: 1em; line-height: 1.6; color: #555; white-space: pre-wrap; /* Preserve line breaks from textarea */ }
    @keyframes fadeIn { from {opacity: 0; transform: scale(0.95);} to {opacity: 1; transform: scale(1);} }

    /* --- Styles for Accordion in Modal --- */
    .modal-accordion { margin-top: 20px; border-top: 1px solid #eee;}
    .accordion-item { border-bottom: 1px solid #eee; }
    .accordion-header {
        background-color: #f8f9fa; padding: 12px 15px; /* Slightly more padding */ cursor: pointer;
        display: flex; justify-content: space-between; align-items: center;
        font-weight: bold; font-size: 1.1em; /* Make header slightly larger */ color: var(--dark-blue); transition: background-color 0.3s;
    }
    .accordion-header:hover { background-color: #e9ecef; }
    .accordion-header .toggle-icon { font-size: 0.9em; transition: transform 0.3s; }
    .accordion-header i.fas { width: 1.2em; text-align: center; margin-inline-end: 8px;} /* Align icons in accordion */
    .accordion-header.active { background-color: #e9ecef; } /* Indicate active header */
    .accordion-header.active .toggle-icon { transform: rotate(180deg); }
    .accordion-content {
        padding: 15px; display: none; background-color: #fff; line-height: 1.7;
        font-size: 1em; white-space: pre-wrap; text-align: start;
        border-top: 1px solid #eee; /* Add separator */
    }
    html[dir="rtl"] .accordion-content { text-align: right; }
    .accordion-content.show { display: block; }
    /* Adjustments */
    .modal-content { padding: 20px; }
    #modalVideoContainer, #modalImg { margin-bottom: 20px; }
