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

@font-face {
    font-family: Vazir;
    src: url("fonts/Vazir-Bold.eot");
    src: url("fonts/Vazir-Bold.eot?#iefix") format("embedded-opentype"),
        url("fonts/Vazir-Bold.woff") format("woff"),
        url("fonts/Vazir-Bold.ttf") format("truetype");
    font-weight: bold;
}

@font-face {
    font-family: Vazir;
    src: url("fonts/Vazir-Light.eot");
    src: url("fonts/Vazir-Light.eot?#iefix") format("embedded-opentype"),
        url("fonts/Vazir-Light.woff") format("woff"),
        url("fonts/Vazir-Light.ttf") format("truetype");
    font-weight: normal;
}
body,
button {
    direction: rtl;
    text-align: right;
    font-family: Vazir;
    font-weight: normal;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Vazir;
    font-weight: bold;
}
/* Float adjustments */
.float-left {
    float: right !important;
}

.float-right {
    float: left !important;
}

/* Text alignment */
.text-left {
    text-align: right !important;
}

.text-right {
    text-align: left !important;
}

/* Margin and padding adjustments */
.ml-1,
.ml-2,
.ml-3,
.ml-4,
.ml-5 {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}

.mr-1,
.mr-2,
.mr-3,
.mr-4,
.mr-5 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

/* Border radius adjustments */
.rounded-left {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}

.rounded-right {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0.25rem !important;
    border-bottom-left-radius: 0.25rem !important;
}

/* Navigation adjustments */
.navbar-nav {
    padding-right: 0;
    padding-left: 0;
}

/* Form elements */
.form-group {
    text-align: right;
}

/* Icons and arrows */
.icon-arrow-left:before {
    content: "\f061";
}

.icon-arrow-right:before {
    content: "\f060";
}

/* Dropdown menus */
.dropdown-menu {
    text-align: right;
}

/* Lists */
ul,
ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

/* Tables */
.table th,
.table td {
    text-align: right;
}

/* Grid system */
.row {
    margin-right: -15px;
    margin-left: -15px;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.title-icon {
    font-family: Vazir;
    font-weight: bold;
}
.icon-arrow-right2 {
    transform: scaleX(-1);
}
.icon-Arrow-1 {
    transform: scaleX(-1);
}

.social-links li img {
    width: 20px !important;
    filter: brightness(0) invert(1); /* This turns images white */
}
.widget-title::before {
    right: 0px;
    left: auto;
}
.widget-title {
    padding-right: 10px;
}
.recent-post-list .list-recent .recent-image {
    margin-left: 25.21px;
    margin-right: 0px;
}

.register-btn a{
    font-family: Vazir;
    font-weight: normal;
    display: flex;
    flex-direction: row-reverse;
}

.register-btn a img{
    width: 25px;
    margin-left: 10px;
}
.social-links a{
    font-family: Vazir;
    font-weight: normal;
    color: #fff;
}
@media only screen and (max-width: 1200px) {
    .register-btn,
    .register-btn .flat-bt-top {
        display: block !important;
    }
    .register-btn .sc-btn-top  {
        margin-left: 36px;
    }
    
    .register-btn .register{
        margin-left: 35px !important;
    }
}
@media only screen and (max-width: 550px) {
    .register-btn,
    .register-btn .flat-bt-top {
        display: none !important;
    }
    .mobile-menu .register-btn,
    .mobile-menu .register-btn .flat-bt-top {
        display: block !important;
    }
    .mobile-menu .bottom-canvas{
        height: calc(100% - 68px) !important;
    }
    .mobile-menu .bottom-canvas .menu-outer{
        height: 100% !important;
        display: flex !important;
        flex-direction: column;
        align-items: anchor-center;
        justify-content: space-between;
    }
    .mobile-menu .btn-icon-list{
        align-items: center;
    }
}



#header{
    box-shadow: 2px 5px 7px #dfdfdfa1;
}


.vertical-tab-button {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.vertical-tab-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    padding: 15px 8px;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    min-height: 80px;
    border-left: 3px solid #0056b3;
}


.vertical-tab-button a.register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f70441, #74021b);
    color: white;
    text-decoration: none;
    padding: 15px 8px;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 10px rgba(245, 175, 175, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    min-height: 80px;
    border-left: 3px solid #f50606;
}

.vertical-tab-button a:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateX(5px);
    box-shadow: 5px 0 15px rgba(0, 123, 255, 0.4);
}

.vertical-tab-button a.register:hover {
    background: linear-gradient(135deg, #810423, #74021b);
    transform: translateX(5px);
    box-shadow: 5px 0 15px rgba(236, 148, 152, 0.4);
}

.vertical-tab-button .button-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    margin-bottom: 8px;
}

.vertical-tab-button .icon-external-link {
    transform: rotate(-90deg);
    font-size: 16px;
    margin-top: 5px;
}

/* Animation for entrance */
@keyframes slideInLeft {
    from {
        left: -100px;
        opacity: 0;
    }
    to {
        left: 0;
        opacity: 1;
    }
}

.vertical-tab-button {
    animation: slideInLeft 0.5s ease-out;
}

/* Alternative: Show differently on mobile */
@media (max-width: 768px) {
    .vertical-tab-button {
        bottom: 20px;
        top: auto;
        left: 20px;
        transform: none;
        writing-mode: initial;
        text-orientation: initial;
    }
    
    .vertical-tab-button a {
        writing-mode: initial;
        text-orientation: initial;
        border-radius: 25px;
        padding: 12px 20px;
        min-height: auto;
    }
    
    .vertical-tab-button a.register {
        writing-mode: initial;
        text-orientation: initial;
        border-radius: 25px;
        padding: 12px 20px;
        min-height: auto;
    }
    
    .vertical-tab-button .button-text {
        writing-mode: initial;
        text-orientation: initial;
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    .vertical-tab-button .icon-external-link {
        transform: none;
        margin-top: 0;
    }
}

/* SSO Button Styling */
.btn-icon-list {
    display: flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    font-weight: 500 !important;
}

.btn-icon-list:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

/* SSO Option Styling */
.sso-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 8px;
}

.sso-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.sso-desc {
    color: #666;
    font-size: 11px;
    line-height: 1.2;
}

/* Dropdown Item Styling for SSO */
.dropdown2 ul li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    white-space: nowrap !important;
}

.dropdown2 ul li a i {
    margin-left: 8px !important;
    font-size: 16px !important;
    color: #007bff !important;
    min-width: 20px !important;
}

/* Logout Button Styling */
.dropdown-logout-btn {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    background: none !important;
    border: none !important;
    color: inherit !important;
    text-align: right !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.dropdown-logout-btn:hover {
    background: #f8f9fa !important;
}

.dropdown-logout-btn i {
    margin-left: 8px !important;
    font-size: 16px !important;
    color: #dc3545 !important;
}

/* User Profile Link Styling */
.header-account .navigation li a {
    display: flex !important;
    align-items: center !important;
    background: #f1efef !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
    color: #333 !important;
}

.header-account .navigation li a:hover {
    background: #e9e9e9 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sso-option {
        display: none;
    }
    
    .sso-title {
        font-size: 13px;
    }
    
    .btn-icon-list span {
        font-size: 13px;
    }
    
    .dropdown2 ul {
        min-width: 200px !important;
    }
}

/* RTL Support */
[dir="rtl"] .sso-option {
    align-items: flex-end;
}

[dir="rtl"] .dropdown2 ul li a i {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

[dir="rtl"] .dropdown-logout-btn i {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

.main-header .main-menu .navigation > li:last-child ul {
    left: 0px;
    right: auto;
}


/* Mobile Menu Container */

/* Mobile Navigation Styles */
.mobile-navigation  {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.mobile-navigation > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-navigation > li > a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.mobile-navigation li.current > a {
    color: #007bff;
    background-color: #f0f8ff;
}

/* Mobile Dropdown Specific Styles */
.mobile-dropdown {
    position: relative;
}

/* Add visual indicator for dropdown items */
.mobile-dropdown::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ccc;
    transition: all 0.3s ease;
    z-index: 1;
}

.mobile-dropdown.active::before {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: #007bff;
}

/* Adjust padding for dropdown items to make room for the indicator */
.mobile-dropdown > a {
    padding-left: 25px !important;
}

.mobile-dropdown-toggle {
    cursor: pointer !important;
    user-select: none;
}

/* Dropdown Arrow Icon in anchor */
.mobile-dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 10px;
    color: #666;
}

.mobile-dropdown.active .mobile-dropdown-icon {
    transform: rotate(180deg);
    color: #007bff;
}

/* Alternative: Hide the icon in anchor if you prefer only the LI indicator */
/* .mobile-dropdown .mobile-dropdown-icon {
    display: none;
} */

/* Mobile Submenu Styles */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    background-color: #f8f9fa;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e9ecef;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 300px;
    opacity: 1;
}

.mobile-submenu li {
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

/* Submenu items styling */
.mobile-submenu li a {
    display: block;
    padding: 12px 30px 12px 45px; /* Extra left padding for indentation */
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-submenu li a:before {
    content: "→";
    position: absolute;
    left: 25px;
    color: #999;
    font-size: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-submenu li a:hover {
    color: #007bff;
    background-color: #ffffff;
    padding-right: 35px;
}

.mobile-submenu li a:hover:before {
    color: #007bff;
}

.mobile-submenu li.current a {
    color: #007bff;
    background-color: #ffffff;
    font-weight: 500;
}

.mobile-submenu li.current a:before {
    color: #007bff;
}

/* Nested dropdowns (if you have sub-sub menus) */
.mobile-submenu .mobile-dropdown::before {
    left: 15px;
    border-top: 6px solid #999;
}

.mobile-submenu .mobile-dropdown.active::before {
    border-top-color: #007bff;
}

.mobile-submenu .mobile-dropdown > a {
    padding-left: 35px !important;
}

/* Animation for dropdown opening */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 300px;
        opacity: 1;
    }
}

.mobile-dropdown.active .mobile-submenu {
    animation: slideDown 0.4s ease forwards;
}

/* Enhanced hover effects */
.mobile-dropdown:hover::before {
    border-top-color: #666;
}

.mobile-dropdown.active:hover::before {
    border-top-color: #0056b3;
}

/* Alternative style: Use FontAwesome icons instead of CSS triangles */
.mobile-dropdown.use-fontawesome::before {
    content: "\f078"; /* FontAwesome chevron-down */
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    border: none;
    font-size: 12px;
    color: #ccc;
    width: auto;
    height: auto;
}

.mobile-dropdown.use-fontawesome.active::before {
    transform: translateY(-50%) rotate(180deg);
    color: #007bff;
}

/* Responsive adjustments */
@media (max-width: 576px) {
   
    .mobile-navigation > li > a {
        padding: 12px 15px 12px 25px;
        font-size: 15px;
    }
    
    .mobile-dropdown > a {
        padding-left: 30px !important;
    }
    
    .mobile-submenu li a {
        padding: 10px 25px 10px 40px;
        font-size: 13px;
    }
    
    .mobile-dropdown::before {
        left: 8px;
    }
    
    .mobile-submenu .mobile-dropdown::before {
        left: 18px;
    }
}

/* Optional: Different arrow styles */
.mobile-dropdown.arrow-style-2::before {
    content: "▼";
    font-size: 10px;
    color: #ccc;
    border: none;
    width: auto;
    height: auto;
    line-height: 1;
}

.mobile-dropdown.arrow-style-2.active::before {
    content: "▲";
    color: #007bff;
    transform: translateY(-50%);
}

.mobile-dropdown.arrow-style-3::before {
    content: "⯆";
    font-size: 14px;
    color: #ccc;
    border: none;
    width: auto;
    height: auto;
    line-height: 1;
}

.mobile-dropdown.arrow-style-3.active::before {
    content: "⯅";
    color: #007bff;
    transform: translateY(-50%);
}

.mobile-user-toggle{
    text-align: right !important;
    flex-direction: row !important;
    padding: 10px 0 !important;
}