/* Main Styles for Pilates Mat Instructor Training Manual */

/* Font Import */
/* @font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
} */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* body {
    font-family: 'Vazir', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    direction: rtl;
    padding: 0;
    margin: 0;
} */

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a6e81 0%, #0d4e5c 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    padding: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Navigation */
nav {
    background-color: #0d4e5c;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

nav li {
    margin: 0.5rem 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Section Styles */
.section {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h2 {
    color: #1a6e81;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4caf50;
}

h3 {
    color: #0d4e5c;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

h4 {
    color: #2e7d32;
    font-size: 1.2rem;
    margin: 1.2rem 0 0.8rem;
}

h5 {
    color: #1a6e81;
    font-size: 1.1rem;
    margin: 1rem 0 0.6rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Special Sections */
.intro {
    background-color: #e8f5e9;
    border-right: 4px solid #4caf50;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.note {
    background-color: #e3f2fd;
    border-right: 4px solid #2196f3;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.warning {
    background-color: #fff8e1;
    border-right: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.highlight {
    background-color: #e8f5e9;
    border-right: 4px solid #4caf50;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* Images */
.image-container {
    margin: 1.5rem 0;
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Table of Contents */
.toc {
    background-color: #f5f5f5;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toc h2 {
    margin-bottom: 1rem;
    border-bottom: none;
}

.toc ul {
    list-style-type: none;
    margin-right: 0;
}

.toc li {
    margin-bottom: 0.8rem;
}

.toc a {
    color: #1a6e81;
    text-decoration: none;
    transition: color 0.3s;
}

.toc a:hover {
    color: #4caf50;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #0d4e5c;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.3rem 0;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    
    .section {
        box-shadow: none;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    nav, footer {
        display: none;
    }
    
    h2, h3, h4 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

/* Additional Components */
.exercise-box {
    background-color: #f1f8e9;
    border: 1px solid #c5e1a5;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.exercise-box h4 {
    color: #33691e;
    margin-top: 0;
}

.quote {
    font-style: italic;
    color: #555;
    padding: 1rem 2rem;
    position: relative;
    margin: 1.5rem 0;
}

.quote:before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    right: 0.5rem;
    top: -0.5rem;
    color: #ddd;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: #1a6e81;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 1rem 0;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0d4e5c;
}

.btn-secondary {
    background-color: #4caf50;
}

.btn-secondary:hover {
    background-color: #2e7d32;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: #1a6e81;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #0d4e5c;
}
