﻿/*@font-face {
    font-family: source_sanslight;
    src: url("../fonts/SourceSans/SourceSansPro-Light.otf");
}*/


html {
    direction: rtl;
}

body {
    direction: rtl;
}
#BuildingId{
    text-align:left;
}

input[type="email"] {
    direction: rtl;
    text-align: right;
}

input[type="email"]::placeholder {
    direction: rtl;
    text-align: right;
}

input[type="email"]::-moz-placeholder {
    direction: rtl;
    text-align: right;
}

input[type="email"]::-webkit-input-placeholder {
    direction: rtl;
    text-align: right;
}

input[type="email"]:-ms-input-placeholder {
    direction: rtl;
    text-align: right;
}

.about-us-text-img-section .legislation-card > p::before {
    right: 0px;
}
 .btn-access-service::after {
    content: '↖';
}

 .btn-access-service:hover::after {
    transform: translate(-2px, -2px);
}
 .doc-card-title {
    padding: 0 32px 0 0;
}
 .doc-card-arrow {
    border-radius: 18px 0 0 18px;
}
 .document-section .doc-card-arrow {
    border-radius: 18px 0 0 18px;
    
}
.document-section .doc-card-arrow {
    border-radius: 18px 0 0 18px;
}
.about-text-content {
    text-align: right;
}
/* RTL Support for First Section */
.about-text-card {
    right: 130px;
    left: auto;
    text-align: right;
}
/* ===== Sitemap RTL Styles ===== */

/* Container */
.sitemap {
    direction: rtl;
}

/* --- Main items --- */
.sitemap-main-item {
    position: relative;
    font-weight: 600;
    color: #212529;
    padding-right: 1.5rem; /* space for circle icon */
    padding-left: 0;
}

    .sitemap-main-item::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0.4rem;
        width: 0.75rem;
        height: 0.75rem;
        background: url("../media/circle.png") no-repeat center center;
        background-size: contain;
    }

/* --- Sublist --- */
.sitemap-sublist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-right: 1.5rem; /* indent for arrows */
    padding-left: 0;
}

/* --- Sub items (rotated arrow) --- */
.sitemap-sub-item {
    position: relative;
    padding-right: 1.25rem;
    padding-left: 0;
    color: #495057;
    font-weight: 500;
}

    .sitemap-sub-item::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0.45rem;
        width: 0.65rem;
        height: 0.65rem;
        background: url("../media/arrow.png") no-repeat center center;
        background-size: contain;
        transform: rotate(180deg); /* Flip arrow direction */
    }

/* --- Links --- */
.sitemap a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

    .sitemap a:hover {
        color: #0d6efd; /* Bootstrap primary */
        text-decoration: underline;
    }

.custom-accordion .accordion-button::after {
    margin-left: 0;
    margin-right: auto;
}

/* RTL Support for Second Section */
.energy-wrapper {
    justify-content: end;
}

    .energy-wrapper .image-block1 {
        left: 50px;
        right: auto;
    }

    .energy-wrapper .first-block {
        right: 0;
        left: auto;
    }

    .energy-wrapper .card-first {
        right: 485px;
        left: auto;
    }

.card-first p {
    border-right: 2px solid rgba(61, 66, 86, 1);
    border-left: none;
    padding-right: 24px;
    padding-left: 0;
}

/* RTL Support for Third Section */
.energy-wrapper-reversed {
    justify-content: start;
}

    .energy-wrapper-reversed .image-block2 {
        right: 50px;
        left: auto;
    }

    .energy-wrapper-reversed .second-block {
        left: 0;
        right: auto;
    }

    .energy-wrapper-reversed .card-second {
        left: 485px;
        right: auto;
    }

.card-second p {
    border-right: 2px solid rgba(61, 66, 86, 1);
    border-left: none;
    padding-right: 24px;
    padding-left: 0;
}

/* RTL Support for Board Members */
.board-members-wrapper .board-title,
.board-members-wrapper .board-description {
    text-align: center;
}
.document-section .doc-card-arrow img, .document-section .doc-card-arrow svg {
    transform: rotate(180deg)
}

@media only screen and (max-width: 1200px) {
}

/* Tablet Portrait Mode RTL - iPad Air, Surface Pro 7, iPad Pro - Match iPad Mini */
@media (min-width: 769px) and (max-width: 1100px) {
    /* Navigation RTL */
    .site-header {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .navbar-brand {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    
    .dropdown-toggle::after {
        margin-left: 0;
        margin-right: 0.4em;
    }
    
    /* Document Cards RTL - Same as iPad Mini */
    .doc-card-title {
        padding: 0 12px 0 0;
        text-align: right;
    }
    
    .document-section .doc-card-title {
        padding: 0 12px 0 0;
        text-align: right;
        flex: 1 1 auto;
    }
    
    .document-section .doc-card-arrow {
        border-radius: 12px 0 0 12px;
    }
    
    .document-section .doc-card-arrow img, 
    .document-section .doc-card-arrow svg {
        transform: rotate(180deg);
    }
    
    /* About Us RTL - Match iPad Mini positioning */
    .about-text-card {
        right: 130px;
        left: auto;
    }
    
    /* Quick Links Section RTL */
    .quick-links-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Homepage main RTL */
    .homepage-main {
        padding: 0 1rem;
    }
}

@media only screen and (max-width: 992x) {
     .document-section .doc-card-arrow {
        border-radius: 12px 0 0 12px;
    }
     .document-section .doc-card-title {
        padding: 0 16px 0 0;
        text-align: right;
    }

     .document-section .doc-card-arrow {
        border-radius: 12px 0 0 12px;
    }

}

@media only screen and (max-width: 768px) {
     .doc-card-title {
        padding: 0 12px 0 0;
    }
}

@media only screen and (max-width: 576px) {
     .document-section .doc-card-arrow {
        border-radius: 8px 0 0 8px;
    }

     .document-section .doc-card-title {
        padding: 0 8px 0 0;
    }

     .document-section .doc-card-arrow {
        border-radius: 8px 0 0 8px;
    }
}


/*  Dropdown Fix */
.dropdown-menu {
    direction: rtl;
    text-align: right;
    min-width: max-content;
    right: auto;
    left: 0;
}

.dropdown-item {
    direction: rtl;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.4em;
}