/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
/* Force the whole site to use Cairo font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

* {
  font-family: "Cairo", sans-serif !important;
}

:root{
    --primary: #014421
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}



/* === Base sidebar styling === */
header.wp-block-template-part {
  position: fixed;
  top: 0;
  left: 0;
  
  color: var(--primary);
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
  padding: 50px 20px ; /* padding inside the sidebar */
  
}
html[lang="ar"] header.wp-block-template-part {
    right: 0
}
header.wp-block-template-part a {
  color: var(--primary);
  text-decoration: none;
}

header.wp-block-template-part a:hover {
  opacity: 0.8;
}

/* === Push content to the right to make room for sidebar === */
body {
  margin-left: 250px;
  transition: margin 0.3s ease;
}
html[lang="ar"] body{
    margin-left: 0;
    margin-right: 250px;
}
/* === Mobile view === */
@media (max-width: 768px) {
  header.wp-block-template-part {
      position: static;
      padding: 50px 0!important
  }
  header .wp-container-core-group-is-layout-6c531013{flex-basis: 0;}
  .ghost-subscribe-wrapper{display: none!important}
  body {
    margin-left: 0;
    margin-right: 0!important;
  }
  header .icons {display: none;}
  .grid{grid-template-columns:1fr!important; gap:10px}
  header .wp-container-core-group-is-layout-6c531013 P {
    display: none;
  }
}

@media (min-width: 769px) {
      header.wp-block-template-part {
        height: 100vh;
        width: 221.6666717529297px;
      }
    header .sidebar{
        display: grid;
        gap:50px;
    }
    header .wp-container-core-group-is-layout-f4c28e8b, header .wp-block-navigation .wp-block-page-list{
        justify-content: center;
        flex-direction: column; /* stack items vertically */
        gap: 20px; /* space between items */
    }
    header .wp-block-site-title{
        text-align: center!important
    }
    header .has-global-padding {
        padding: 0!important
    }
}

/*Language Switcher*/

.lang-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: bold;
  direction: rtl!important
}

.lang-label {
  color: #ccc;
  transition: 0.3s;
}

.lang-label.active {
  color: var(--primary);
}

/* Your exact switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

header .slider.active{
  background-color: var(--primary);
}

header.switch input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

.slider.active:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}


header ul a[aria-current] {
  font-weight: bold;
  border-bottom: 2px solid var(--primary)
}

.ghost-subscribe-wrapper, .wp-block-social-links{
    display: flex;
    justify-content: center;

}