

@font-face {
font-family: iranyekan;
font-style: normal;
font-weight: bold;
src: url('../fonts/eot/IRANYekanWebBold.eot');
src: url('../fonts/eot/IRANYekanWebBold.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
url('../fonts/woff/IRANYekanWebBold.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../fonts/woff2/IRANYekanWebBold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
url('../fonts/ttf/IRANYekanWebBold.ttf') format('truetype');
}






@font-face {
font-family: iranyekan;
font-style: normal;
font-weight: 100;
src: url('../fonts/eot/IRANYekanWebThin.eot');
src: url('../fonts/eot/IRANYekanWebThin.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
url('../fonts/woff/IRANYekanWebThin.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../fonts/woff2/IRANYekanWebThin.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
url('../fonts/ttf/IRANYekanWebThin.ttf') format('truetype');
}

@font-face {
font-family: iranyekan;
font-style: normal;
font-weight: 300;
src: url('../fonts/eot/IRANYekanWebLight.eot');
src: url('../fonts/eot/IRANYekanWebLight.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
url('../fonts/woff/IRANYekanWebLight.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../fonts/woff2/IRANYekanWebLight.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
url('../fonts/ttf/IRANYekanWebLight.ttf') format('truetype');
}

@font-face {
font-family: iranyekan;
font-style: normal;
font-weight: normal;
src: url('../fonts/eot/IRANYekanWebRegular.eot');
src: url('../fonts/eot/IRANYekanWebRegular.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
url('../fonts/woff/IRANYekanWebRegular.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../fonts/woff2/IRANYekanWebRegular.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
url('../fonts/ttf/IRANYekanWebRegular.ttf') format('truetype');
}

@font-face {
font-family: iranyekan;
font-style: normal;
font-weight: 500;
src: url('../fonts/eot/IRANYekanWebMedium.eot');
src: url('../fonts/eot/IRANYekanWebMedium.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
url('../fonts/woff/IRANYekanWebMedium.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../fonts/woff2/IRANYekanWebMedium.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
url('../fonts/ttf/IRANYekanWebMedium.ttf') format('truetype');
}

@font-face {
font-family: iranyekan;
font-style: normal;
font-weight: 800;
src: url('../fonts/eot/IRANYekanWebExtraBold.eot');
src: url('../fonts/eot/IRANYekanWebExtraBold.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
url('../fonts/woff/IRANYekanWebExtraBold.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../fonts/woff2/IRANYekanWebExtraBold.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
url('../fonts/ttf/IRANYekanWebExtraBold.ttf') format('truetype');
}

@font-face {
font-family: iranyekan;
font-style: normal;
font-weight: 850;
src: url('../fonts/eot/IRANYekanWebBlack.eot');
src: url('../fonts/eot/IRANYekanWebBlack.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
url('../fonts/woff/IRANYekanWebBlack.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../fonts/woff2/IRANYekanWebBlack.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
url('../fonts/ttf/IRANYekanWebBlack.ttf') format('truetype');
}

@font-face {
font-family: iranyekan;
font-style: normal;
font-weight: 900;
src: url('../fonts/eot/iranyekanwebextrablack.eot');
src: url('../fonts/eot/iranyekanwebextrablack.eot?#iefix') format('embedded-opentype'),  /* IE6-8 */
url('../fonts/woff/iranyekanwebextrablack.woff') format('woff'),  /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
url('../fonts/woff2/iranyekanwebextrablack.woff2') format('woff2'),  /* FF39+,Chrome36+, Opera24+*/
url('../fonts/ttf/iranyekanwebextrablack.ttf') format('truetype');
}

@font-face {
	font-family: wm_Dabir;
	font-style: normal;
	font-weight: 100;
	src: url('../fonts/eot/wm_Dabir.eot');
	src: url('../fonts/eot/wm_Dabir.eot?#iefix') format('embedded-opentype'),
	     url('../fonts/ttf/wm_Dabir.ttf') format('truetype');
}

@font-face {
	font-family: w_Hanachi;
	font-style: normal;
	font-weight: 100;
	src: url('../fonts/eot/w_Hanachi.eot');
	src: url('../fonts/eot/w_Hanachi.eot?#iefix') format('embedded-opentype'),
	     url('../fonts/ttf/w_Hanachi.ttf') format('truetype');
}


p {
  margin-top: 0.1em ;
  margin-bottom: 0.6em ;
  text-align: justify;
  font-size: 18px;
  direction: rtl;
  margin-left: -1mm;
  margin-right: -1mm;
}

h1 {font-family: 'IRANYekan';text-align:center;color: red;font-size: 48px; direction: rtl; margin-left: -1mm; margin-right: -1mm;}
h2 {font-family: 'IRANYekan';color:black;font-size: 24px; text-align: center; direction: rtl;  margin-bottom: 0.5em; margin-left: -1mm; margin-right: -1mm; /* Reduce from default ~1em */}
h3 {font-family: 'IRANYekan';color:black; text-align: center;font-size: 20px; direction: rtl; margin-left: -1mm; margin-right: -1mm;}		
h4 {font-family: 'IRANYekan'; color: black; text-align:right; font-size: 16px; direction: rtl; margin-left: -1mm; margin-right: -1mm;} 
h5 {font-family: 'IRANYekan'; text-align:right;font-size: 13px; line-height: 1.5; direction: rtl; margin-left: -1mm; margin-right: -1mm;} 
h6 {font-family: 'wm_Shekasteh'; text-align:center; font-size: 11px; direction: rtl; color:black; margin-left: -1mm; margin-right: -1mm;} 
.ltr-text .author { font-style: italic; text-align:center; font-size: .8rem; direction: rtl;   }
.para1 {margin-bottom: 30px; color:red;}

.author { font-style: italic; text-align:center; font-size: .8rem; direction: rtl;   }


body {
    font-family:'IRANYekan';
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FDF5DF;;
}

.yellow-frame {
    background-color: #ffe5b4;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.frame-image-container {
    width: 100%;
    max-width: 800px;
    padding: 0 30px;
    box-sizing: border-box;
}

.frame-image {
    width: 100%;
    height: auto;
    display: block;
}

.content-container {
    width: 100%;
    max-width: 800px;
    padding: 0 30px;
    box-sizing: border-box;
   
}

.rtl-text {
    direction: rtl;
    text-align: justify;
    margin-bottom: 30px;
    font-size: 16px;
    padding-left: 5.67px;
    padding-right: 0;
}

.image-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.image-stack img {
    width: 100%;
    height: auto;
    margin-left: -10px;
    margin-right: -10px;
}

/* General image margin reduction */
img {
    margin-left: -10px;
    margin-right: -10px;
}

/* New responsive classes */
.responsive-image {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

.author-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Image size reduction utility classes */
.img-75 {
    width: 75% !important;
    height: auto;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.img-50 {
    width: 50% !important;
    height: auto;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.img-25 {
    width: 25% !important;
    height: auto;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.img-15 {
    width: 15% !important;
    height: auto;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


.thief-types {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-right: 4px solid #007bff;
}

.thief-types p {
    margin: 8px 0;
    font-weight: bold;
    color: #333;
}

.thief-description {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-right: 4px solid #dc3545;
}

.thief-description h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.navigation-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

.nav-link {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.nav-arrow {
    max-width: 60px;
    width: auto;
    height: auto;
    margin-top: 5px;
}

.ltr-text {
    direction: ltr;
    text-align: left;
    margin-bottom: 30px;
}

.ltr-text p {
    direction: ltr;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.ltr-text h2 {
    direction: ltr;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .rtl-text, .ltr-text {
        font-size: 14px;
    }
    
    h1 {
        font-size: 42px;
        margin-left: -0.5mm;
        margin-right: -0.5mm;
    }
    
    h2 {
        font-size: 20px;
        margin-left: -0.5mm;
        margin-right: -0.5mm;
    }
    
    h3 {
        font-size: 18px;
        margin-left: -0.5mm;
        margin-right: -0.5mm;
    }
    
    .content-container {
        padding: 0 10px;
    }
    
    .frame-image-container {
        padding: 0 10px;
    }
    
    .thief-types p {
        margin-bottom: 8px;
    }
    
    .thief-description {
        margin-bottom: 20px;
    }
    
    .nav-arrow {
        max-width: 40px !important;
    }
    
    /* Medium buttons responsive behavior */
    .mediums {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .medium {
        width: 90%;
        max-width: 280px;
        min-width: unset;
        margin: 0;
        font-size: 18px;
    }
    
    /* Mobile: no margin reduction (giving full default spacing) */
    p {
        margin-left: 0;
        margin-right: 0;
    }
    
    h4, h5, h6 {
        margin-left: 0;
        margin-right: 0;
    }
    
    img {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 38px;
        margin-left: 0;
        margin-right: 0;
    }
    
    h2 {
        font-size: 18px;
        margin-left: 0;
        margin-right: 0;
    }
    
    h3 {
        font-size: 16px;
        margin-left: 0;
        margin-right: 0;
    }
    
    p {
        font-size: 14px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .content-container {
        padding: 0 5px;
    }
    
    .frame-image-container {
        padding: 0 5px;
    }
    
    /* Medium buttons for smaller screens */
    .medium {
        width: 95%;
        max-width: 250px;
        font-size: 16px;
        height: 50px;
    }
    
    /* Ensure all elements have consistent mobile margins */
    h4, h5, h6, img {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 34px;
        margin-left: 0;
        margin-right: 0;
    }
    
    h2 {
        font-size: 16px;
        margin-left: 0;
        margin-right: 0;
    }
    
    h3 {
        font-size: 14px;
        margin-left: 0;
        margin-right: 0;
    }
    
    p {
        font-size: 13px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .nav-arrow {
        max-width: 30px !important;
    }
    
    .thief-description {
        padding: 15px;
    }
    
    .thief-types {
        padding: 10px;
    }
    
    /* Medium buttons for smallest screens */
    .medium {
        width: 98%;
        max-width: 220px;
        font-size: 14px;
        height: 45px;
    }
    
    /* Ensure all elements have consistent mobile margins */
    h4, h5, h6, img {
        margin-left: 0;
        margin-right: 0;
    }
}



span.a {
display: inline-block;
width: 100%;
height: 360px;
padding: 15px;
padding-top: 50px;
padding-bottom: 35px;
border: 1px solid blue;    
border-radius: 25px;
background-color:#ffe5b4;
margin-bottom: 12px;
margin-right: 12px;
font-family: 'IRANYekan';color: rgb(16, 2, 2); text-align:center;font-size: 35px;
}





span.b {
display: inline-block;
width: 250px;
height: 20px;
padding: 15px; 
padding-bottom: 50px;
border: 1px solid blue;    
border-radius: 5px;
background-color: #ffe5b4;
margin-bottom: 12px;
margin-right: 12px;
font-family: 'IRANYekan';color: brown; text-align:center;font-size: 24px; direction: rtl;

}


span.c {
display: inline-block;
width: 300px;
height: 40px;
padding: 15px;
padding-bottom: 35px;
border: 1px solid blue;    
border-radius: 5px;
background-color: #ffe5b4;
margin-bottom: 12px;

font-family: 'IRANYekan';color: brown; text-align:center;font-size: 24px;direction: rtl;
}  


span.d {
display: inline-block;
width: 840px;
height: 20px;
padding: 15px;
padding-bottom: 45px;
border: 1px solid rgb(247, 18, 18);    
border-radius: 5px;
background-color: rgb(214, 204, 137);
margin-top: 36px;
margin-bottom: 36px;
margin-right: 12px;
font-family: 'IRANYekan';color: white; text-align:center;font-size: 35px;
}  
span.e {
display: inline-block;
width: auto;
height: auto;
padding: 15px;
padding-top: 150px;
padding-bottom: 35px;
border: 1px solid #ffccf0;    
border-radius: 5px;
background-color:#ffe5b4;
margin-bottom: 12px;
margin-right: 12px;
font-family: 'IRANYekan';color: brown; text-align:center;font-size: 35px;
}
span.f {
display: inline-block;
width: 150px;
height: 20px;
padding: 15px;
padding-top: 15px;
padding-bottom: 15px;
border: 1px solid #f1340e;    
background-color:white;
margin-bottom: 16px;
margin-right: 12px;
font-family: 'IRANYekan';color: white; text-align:center;font-size: 20px;
}

span.g {
display: inline-block;
width: 500px;
height: 20px;
padding: 15px;
padding-top: 15px;
padding-bottom: 15px;
border: 1px solid #ed440b;    
background-color:white;
margin-bottom: 16px;
margin-right: 12px;
font-family: 'Maneli';color: brown; text-align:center;font-size: 20px;direction: rtl;
}

a {
color: #007BFF; /* Default link color */
text-decoration: none; /* Remove underline */
font-weight: bold; /* Make text bold */
transition: color 0.3s ease; /* Smooth color transition */
}
/* Hover effect */
a:hover {
color: #0056b3; /* Darker blue on hover */
text-decoration: underline; /* Add underline on hover */
}

/* Visited link styling */
a:visited {
color: #6f42c1; /* Purple for visited links */
}

/* Active link styling (when clicked) */
a:active {
color: #d63384; /* Pink for active links */
}
figure {text-align: center;width: 100%;max-width: 800px;;font-size: 16px;}
figcaption {font-family: 'IRANYekan'; width: 90%; max-width: 800px; margin-left: 10px; margin-right: 20px; direction: rtl; font-size: .8rem;line-height:30px; text-align:center;  font-style: italic; font-weight: 700;   } 


/*figcaption {
    width: 100%;
    max-width: 800px;
    margin: 24px auto 0 auto;
    margin-left: 40px; 
    margin-right: 40px; 
    color: #34495e;
    font-size: 1.12rem;
    line-height: 1.65;
    text-align: center;
    
    letter-spacing: 0.01em;
    box-sizing: border-box;
  }*/

  hr {
    margin: 3px 0;
    border: none;
    height: 1px; /* Increased height */
    background-color: black; /* Red color */
    width: 100%; /* Full width */
}
 .video-container {
            max-width: 800px;
            width: 100%;
            margin: 20px 0;
        }
        video {
            width: 100%;
            height: auto;
        }
        .mediums {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px; /* Space between the frame and the windows */
            
            
        }
        .medium {
            flex: 1;
            min-width: 250px;
            max-width: 300px;
            height: 60px; /* Height of each small window */
            background-color: #ffe5b4;
            border: 1px solid #ccc;
            border-radius: 5px;
            display: flex;
            text-align: center;
            margin: 0 5px; /* Reduced margin for better mobile spacing */
            direction: rtl;
            font-size: 20px; color: black;
            justify-content: center;   /* Horizontal centering */
            align-items: center;       /* Vertical centering */
        }
        .medium a {
            text-decoration: none;
            color: black; /* Link color */
            font-size: 20px; 
            text-align: center;

        }

  .container {
    width: 80%;
    max-width: 800px; /* Optional: sets a maximum width for larger screens */
    margin: 20px auto; /* Centers the container horizontally and adds some top/bottom margin */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
        
  .paragraph-container {
    margin-bottom: 10px; /* Space between each paragraph */
  }

  .paragraph-container p {
    font-size: 1em;
    color: #333;
    margin: 5px 0;
    padding-left: 5.67px;
    padding-right: 5.67px;
}

  /* Style for the three-word phrases */
  .paragraph-container span {
    display: block; /* Ensures each phrase is on its own line */
    font-weight: bold; /* Optional: makes the phrases bold */
  }

    
ul {font-family: 'IRANYekan'; font-size: 18px; color:black; text-align:right; line-height: normal; direction: rtl; list-style: none; margin-right: 0; padding-right: 0;} 
ol {font-family: 'IRANYekan'; font-size: 18px; color:black; text-align:right; direction: rtl; list-style-type: persian; padding-right: 0; margin-right: 0; }
li {font-family: 'IRANYekan'; font-size: 18px; color:black; text-align:right; line-height: normal; direction: rtl;  margin-bottom: 20px; position: relative; padding-right: 0; margin-right: 0; list-style-type:disc}


 
 blockquote {font-family: 'IRANYekan';color: black; font-size: 18px;line-height:30px; text-align:justify; margin-top: 0.1em ; margin-bottom: 0.6em ;} 

  /* Style for poetry: less space between two lines, more space after second line and smaller size font */
    .sher1 {line-height:26px;font-size: 18px;text-align:center;}
    .sher2 {margin-bottom: 10px;font-size: 18px;text-align:center;}

    .sher3 {font-family: 'IRANYekan'; font-size: 28px;line-height: 1; padding-right: 30px;text-align:center;}
    .sher4 {font-family: 'IRANYekan'; font-size: 28px;margin-bottom: 15px; padding-right: 30px;text-align:center;}

    .sher5 {font-family: 'w_Hanachi', 'Arial', sans-serif;line-height:26px;font-size: 1.4rem;text-align:center;}
    .sher6 {font-family: 'w_Hanachi', 'Arial', sans-serif;margin-bottom: 10px;font-size: 1.4rem;text-align:center;}

  
        .text-containerHanna {
            width: 8in;
            background-color: white;
            color: black;
            padding: 10px;
            text-align: center;
            border: 1mm solid white;
            line-height: 1.8;
            word-spacing: 0.3em;
            letter-spacing: 0.1em;
            box-sizing: border-box;
            
        }
        
        .text-contentHanna {
            font-size: 16px;
            font-family: 'w_Hanachi', 'Arial', sans-serif;
            margin: 0;
        }

        .textred {
            color: red;}