/* ============================================================
   WISDOM OF THE ELEMENTS — style-new.css
   ============================================================ */

/* ===== BASE ===== */
html, body {
  overflow-x: hidden;
}
body {
  direction: rtl;
  background-color: #e9e9e9 !important;
  font-family: Arial, sans-serif;
  padding-top: 55px;
  position: relative;
}
p { color: #787878; line-height: 22px; }
ul { padding: 0; margin: 0; }
img { max-width: 100%; }
iframe { max-width: 100%; }

/* ===== SKIP LINK ===== */
.skip-link { position: absolute; top: -40px; left: 0; background: #000; color: #fff; padding: 8px; z-index: 1000; text-decoration: none; }
.skip-link:focus { top: 0 !important; outline: 2px solid #000; }

/* ===== HEADING PAGES ===== */
#heading-pages {
  border-bottom: none !important;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  margin-top: -55px;
  text-align: center;
}
#heading-pages img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-bottom: 3px solid #e21c23;
  height: auto;
  min-height: 170px;
}
@media (max-width: 768px) { #heading-pages img { height: 220px; } }
@media (max-width: 480px) { #heading-pages img { height: 170px; } }
#heading-pages h2 { margin-top: 60px; font-size: 22px; color: #1e1e1e; font-weight: 700; text-transform: uppercase; border-bottom: 1px solid #e21c23; padding-bottom: 15px; }
#heading-pages p { margin-top: 5px; padding-bottom: 50px; font-size: 16px; }

/* ===== MAIN POST ===== */
.main-post { padding-bottom: 0; }

/* ===== HEADER ===== */
.header { width: 100% !important; background-color: #0b0e14 !important; display: block !important; }
.navbar-nav.navbar-right { float: right !important; }

/* ===== HERO IMAGE ===== */
.about-hero-image {
  width: 100%;
  border-bottom: 1px solid #e21c23;
  margin-bottom: 0;
}
.about-hero-image img {
  width: 100%;
  display: block;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

/* ===== TEXT CONTAINER ===== */
.about-text-section { background: #fff; padding: 30px; text-align: right; }

/* ===== TITLES ===== */
.about-main-h1 { font-size: 24px; letter-spacing: -0.5px; font-weight: bold; margin: 8px 0 10px 0; color: #222; }
.about-inner-text h4 { font-size: 20px; font-weight: bold; color: #333; margin: 10px 0 5px 0; padding: 0; }
.about-inner-text p { font-size: 17px; line-height: 1.6; margin-bottom: 15px; color: #444; }

/* ===== WHITE FRAME CONTAINER ===== */
.content-white-frame {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}
.container-frame {
  background-color: #ffffff;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: visible;
  padding: 0;
}
.main-full { width: 100%; }
.four-elements-section,
.post-description { padding-left: 35px; padding-right: 35px; }

/* ===== 4 ELEMENTS SECTION ===== */
.four-elements-section { margin-top: 0 !important; margin-bottom: -20px !important; padding-top: 20px; padding-bottom: 0; border-top: 1px solid #e0e0e0; border-bottom: none; }
.four-columns { display: flex; flex-wrap: wrap; margin: 0 -12px; margin-top: 15px; margin-bottom: 15px; }
.element-card { flex: 0 0 25%; max-width: 25%; padding: 0 12px; margin-bottom: 25px; }
.element-inner { background-color: #ece9e9; padding: 15px; text-align: center; border-radius: 8px; height: 100%; transition: transform 0.2s, box-shadow 0.2s; }
.element-inner:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,0.1); }
.element-inner h4 { margin: 0 0 10px 0; }
.element-inner h4 a { text-decoration: none; color: inherit; }
.element-inner h4 a:hover { text-decoration: none; color: inherit; }
.element-title-fire  { font-size: 18px; color: #d73840; }
.element-title-earth { font-size: 18px; color: #fb8e27; }
.element-title-water { font-size: 18px; color: #13b723; }
.element-title-air   { font-size: 18px; color: #6cbdf6; }
.element-name { font-size: 20px; font-weight: bold; display: inline-block; margin-top: 5px; }
.element-inner img { max-width: 80px; height: auto; margin: 15px 0; }
.element-subtitle { display: block; font-weight: bold; margin-bottom: 12px; }
.fire-sub  { color: #d73840; }
.earth-sub { color: #fb8e27; }
.water-sub { color: #13b723; }
.air-sub   { color: #6cbdf6; }
.element-desc { text-align: right; font-size: 14px; line-height: 1.5; color: #555; margin-top: 8px; }
.highlight-word { font-weight: 600; font-size: 16px; }

/* ===== POST DESCRIPTION ===== */
.post-description { margin-top: 0 !important; padding-top: 0 !important; padding-bottom: 35px; border-top: 1px solid #e0e0e0; }
.post-narrative { background: #fafafa; padding: 25px; border-radius: 12px; margin-bottom: 25px; overflow: hidden; }
.section-title { font-size: 20px; font-weight: bold; margin-bottom: 20px; text-align: right; color: #333; }
.author-image { float: right; margin-right: 0; margin-left: 25px; margin-bottom: 15px; }
.author-image img { width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.1); object-fit: cover; object-position: center 10%; }
.author-text { text-align: right; line-height: 1.7; font-size: 16px; color: #444; overflow: hidden; }
.author-name { font-weight: bold; font-size: 18px; display: block; margin-bottom: 12px; }
.author-quote { font-weight: bold; display: block; margin-top: 20px; font-style: italic; color: #333; }
.brave-icon, .brave-icon-center { text-align: center; margin: 20px 0; }
.professor-title { font-size: 22px; text-align: center; margin: 30px 0 20px; color: #222; }
.video-container { text-align: center; margin: 20px 0; }
.video-container iframe { max-width: 100%; border-radius: 10px; }
.highlight-intro { font-weight: bold; font-size: 20px; text-align: center; margin: 0 !important; padding: 0 !important; color: #333; line-height: 1.4; }
.about-inner-text { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* ===== CUSTOM NAVBAR ===== */
.site-nav { background-color: #222222; border-top: none; border-bottom: 1px solid rgba(255,255,255,0.5); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; width: 100%; }
.site-nav .nav-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; height: 52px; display: flex; align-items: center; justify-content: space-between; direction: ltr; }
.site-nav .nav-brand { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.site-nav .nav-brand img { height: 34px; }
.site-nav .nav-brand span { color: #ffffff; font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 300; letter-spacing: 0.5px; white-space: nowrap; text-transform: uppercase; }
.site-nav .nav-controls { display: flex; align-items: center; gap: 16px; }
.site-nav .nav-lang { display: flex; align-items: center; text-decoration: none; line-height: 1; opacity: 0.9; transition: opacity 0.2s; }
.site-nav .nav-lang:hover { opacity: 0.6; }
.site-nav .nav-lang svg { width: 20px; height: 20px; fill: none; stroke: #ffffff; stroke-width: 1.5; }
.site-nav .nav-hamburger { background: none; border: none; cursor: pointer; padding: 4px; display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.site-nav .nav-hamburger span { display: block; width: 22px; height: 2px; background: #ffffff; border-radius: 1px; }
.site-nav .nav-menu { display: none; background-color: #222222; border-top: 1px solid rgba(255,255,255,0.15); }
.site-nav .nav-menu.open { display: block; }
.site-nav .nav-menu-inner { max-width: 900px; margin: 0 auto; padding: 6px 20px; direction: rtl; }
.site-nav .nav-menu a { display: block; padding: 11px 0; color: #ffffff !important; text-decoration: none; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.07); direction: rtl; text-align: right; }
.site-nav .nav-menu a:last-child { border-bottom: none; }
.site-nav .nav-menu a:hover { background: rgba(255,255,255,0.06); padding-right: 6px; transition: padding 0.15s; }

/* ===== FOOTER ===== */
footer { background-color: #222222 !important; direction: rtl; width: 100vw; position: relative; right: 50%; left: 50%; margin-right: -50vw; margin-left: -50vw; }
.footer-cta { max-width: 900px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-cta span { color: #ffffff; font-size: 15px; font-weight: bold; }
.footer-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 6px; font-size: 14px; text-decoration: none; transition: opacity 0.2s; }
.footer-btn:hover { opacity: 0.85; }
.footer-btn-email { background: rgba(255,255,255,0.1); color: #ffffff; border: 1px solid rgba(255,255,255,0.25); }
.footer-btn-wa { background: #25d366; color: #ffffff; }
.footer-bar { padding: 12px 20px; }
.footer-bar-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; direction: ltr; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { padding: 8px; color: rgba(255,255,255,0.6); transition: color 0.2s; display: flex; align-items: center; }
.footer-social a:hover { color: #ffffff; }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-up { color: rgba(255,255,255,0.55); text-decoration: none; display: flex; align-items: center; gap: 5px; font-size: 12px; transition: color 0.2s; }
.footer-up:hover { color: #ffffff; }

/* ===== WHATSAPP FAB ===== */
#wa-fab { position: fixed; bottom: 70px; right: 20px; z-index: 9990; background: #25d366; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: opacity 0.3s; }

/* ===== ACCESSIBILITY WIDGET ===== */
#accessibility-btn { position: fixed; bottom: 80px; left: 20px; z-index: 9999; background-color: #0b0e14; color: #ffffff; border: 2px solid #ffffff; border-radius: 50%; width: 40px; height: 40px; font-size: 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
#accessibility-btn:hover, #accessibility-btn:focus { background-color: #e21c23; outline: 3px solid #fff; }
#accessibility-panel { position: fixed; bottom: 132px; left: 20px; z-index: 9998; background: #fff; border: 2px solid #0b0e14; border-radius: 10px; padding: 18px 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); display: none; min-width: 220px; direction: rtl; text-align: right; }
#accessibility-panel.open { display: block; }
#accessibility-panel h3 { margin: 0 0 14px 0; font-size: 16px; color: #0b0e14; border-bottom: 1px solid #e0e0e0; padding-bottom: 8px; }
.acc-btn { display: block; width: 100%; margin-bottom: 8px; padding: 8px 12px; background: #f4f4f4; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; color: #222; cursor: pointer; text-align: right; transition: background 0.15s; }
.acc-btn:hover, .acc-btn:focus { background: #e21c23; color: #fff; border-color: #e21c23; outline: 2px solid #0b0e14; }

/* ===== HIGH CONTRAST MODE ===== */
body.high-contrast, body.high-contrast * { background-color: #000 !important; color: #ffff00 !important; border-color: #ffff00 !important; box-shadow: none !important; text-shadow: none !important; }
body.high-contrast img { filter: grayscale(100%) contrast(120%); }
body.high-contrast a, body.high-contrast a * { color: #ffff00 !important; text-decoration: underline !important; }
body.high-contrast #accessibility-btn { background-color: #000 !important; border-color: #ffff00 !important; color: #ffff00 !important; }
body.high-contrast #accessibility-panel { background-color: #000 !important; border-color: #ffff00 !important; }
body.high-contrast .acc-btn { background-color: #111 !important; color: #ffff00 !important; border-color: #ffff00 !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-white-frame { max-width: 100%; margin: 30px auto; padding: 0; }
  .container-frame { padding: 0; overflow: visible; }
  .four-elements-section, .post-description { padding-left: 25px; padding-right: 25px; }
  .element-card { flex: 0 0 50%; max-width: 50%; }
  .author-image { float: none; text-align: center; margin-left: 0; margin-bottom: 20px; }
  .author-image img { width: 120px; }
}
@media (max-width: 768px) {
  .content-white-frame { margin: 20px auto; padding: 0; }
  .container-frame { padding: 0; overflow: visible; }
  .four-elements-section, .post-description { padding-left: 18px; padding-right: 18px; }
  .about-text-section { padding: 15px; }
  .four-columns { margin: 0 -8px; }
  .element-card { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
  .section-title { font-size: 22px; }
  .professor-title { font-size: 18px; line-height: 1.4; }
  .video-container iframe { width: 100%; height: auto; aspect-ratio: 4/3; }
  .highlight-intro { font-size: 18px; }
  .main-full { padding-left: 0 !important; padding-right: 0 !important; }
  .about-hero-image { margin-left: 0; margin-right: 0; width: 100%; }
  .about-hero-image img { width: 100%; display: block; height: auto; object-fit: fill; min-height: unset; }


  .post-narrative { padding: 18px; border-radius: 0; overflow: visible; }
  .image-post-y iframe { width: 100%; height: 200px; }
  iframe { width: 100%; height: auto; }
}
@media (max-width: 480px) {
  .four-elements-section, .post-description { padding-left: 12px; padding-right: 12px; }
  .element-inner { padding: 12px; }
  .post-narrative { padding: 12px; }
  .highlight-intro { font-size: 16px; }
}
