/*
Theme Name: Arka Institute Blog Theme
Theme URI: https://arka-institute.edu
Description: قالب وردپرس اختصاصی، مدرن و فوق‌العاده شیک وبلاگ آکادمی آرکا. کاملاً راست‌چین (RTL) و بهینه‌سازی شده با فریم‌ورک قدرتمند Tailwind CSS و فونت زیبای وزیرمتن.
Author: Arka Institute
Author URI: https://arka-institute.edu
Version: 1.0.0
License: GNU GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arka-theme
Domain Path: /languages
Tags: blog, custom-colors, custom-menu, featured-images, rtl-language-support, threaded-comments, translation-ready

This theme is built specifically for Arka Institute Knowledge Hub.
*/

/* ========================================
   Core WordPress CSS classes
   ======================================== */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}
.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 100%;
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 5px;
    color: #666;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ========================================
   Brand Color Tokens
   ======================================== */
:root {
  --arka-ocean: #004d7a;
  --arka-teal: #00796b;
  --arka-cyan: #e0f7fa;
  --arka-turquoise: #00bcd4;
  --arka-gold: #ffca28;
  --arka-slate-text: #475569;
  --arka-emerald-light: #e0f2f1;
  --arka-ice: #f0f9ff;
}

/* ========================================
   Font Helper Classes (see header.php for @font-face + .font-shekari)
   ======================================== */
.text-brand-ocean { color: #004d7a; }
.text-brand-teal { color: #00796b; }
.text-brand-turquoise { color: #00bcd4; }
.text-brand-gold { color: #ffca28; }

/* ========================================
   Desktop Dropdown Menu
   ======================================== */
#masthead nav li,
#masthead nav ul li,
header nav li,
header nav ul li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#masthead nav ul,
header nav ul {
  margin: 0 !important;
  padding: 0 !important;
}
.arka-desktop-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
  color: #475569;
  white-space: nowrap;
}
.arka-desktop-menu > li > a:hover,
.arka-desktop-menu > li.current-menu-item > a,
.arka-desktop-menu > li.current-menu-parent > a {
  background: #e0f7fa;
  color: #00796b;
}
.arka-sub-menu li a {
  display: block;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  color: #475569;
  transition: all 0.15s;
  white-space: nowrap;
}
.arka-sub-menu li a:hover {
  background: #f1f5f9;
  color: #00796b;
}

/* ========================================
   WooCommerce Styles
   ======================================== */

/* Account Navigation */
.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-MyAccount-navigation ul li {
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  transition: all 0.15s;
  text-decoration: none;
}
.woocommerce-MyAccount-navigation ul li a:hover {
  background: #f1f5f9;
  color: #00796b;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: #e0f7fa;
  color: #00796b;
  font-weight: 700;
}

/* Account Content */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}
.woocommerce-MyAccount-content p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}
.woocommerce-MyAccount-content .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #00796b;
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.woocommerce-MyAccount-content .button:hover {
  background: #00695c;
}

/* Checkout */
.woocommerce-checkout .form-row {
  margin-bottom: 12px;
}
.woocommerce-checkout .form-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
  color: #1e293b;
  transition: all 0.2s;
  direction: rtl;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus {
  outline: none;
  border-color: #00796b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}
.woocommerce-checkout .form-row .woocommerce-input-wrapper {
  display: block;
}

/* Checkout review order */
.woocommerce-checkout-review-order table.shop_table {
  width: 100%;
  font-size: 12px;
}
.woocommerce-checkout-review-order table.shop_table th {
  font-weight: 700;
  color: #475569;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.woocommerce-checkout-review-order table.shop_table td {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.woocommerce-checkout-review-order table.shop_table tfoot th,
.woocommerce-checkout-review-order table.shop_table tfoot td {
  border-bottom: none;
  padding-top: 8px;
}
.woocommerce-checkout-review-order table.shop_table .order-total th,
.woocommerce-checkout-review-order table.shop_table .order-total td {
  font-weight: 800;
  font-size: 14px;
  color: #004d7a;
}
.woocommerce-checkout .place-order button {
  width: 100%;
  padding: 14px 24px;
  background: #00796b;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.woocommerce-checkout .place-order button:hover {
  background: #00695c;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: 11px;
  color: #94a3b8;
}

/* Cart */
.woocommerce-cart-form .quantity input {
  width: 40px;
  text-align: center;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.woocommerce-cart-form .remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

/* Order received / Thank you */
.woocommerce-order-received .woocommerce-order-details h2 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 24px 0 12px;
}
.woocommerce-order-received .woocommerce-table--order-details {
  width: 100%;
  font-size: 12px;
}
.woocommerce-order-received .woocommerce-table--order-details th {
  font-weight: 700;
  color: #475569;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.woocommerce-order-received .woocommerce-table--order-details td {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.woocommerce-order-received .woocommerce-customer-details h2 {
  font-size: 15px;
  font-weight: 800;
  margin: 24px 0 12px;
}
.woocommerce-order-received address {
  font-style: normal;
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}

/* Downloads table */
.woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  font-size: 12px;
}
.woocommerce-MyAccount-content table.shop_table th {
  font-weight: 700;
  color: #475569;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.woocommerce-MyAccount-content table.shop_table td {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.woocommerce-MyAccount-content table.shop_table .download-file a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #00796b;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.woocommerce-MyAccount-content table.shop_table .download-file a:hover {
  background: #00695c;
}

/* Login / Register form */
.woocommerce-form-login,
.woocommerce-form-register {
  max-width: 420px;
  margin: 0 auto;
}
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
  margin-bottom: 12px;
}
.woocommerce-form-login .form-row label,
.woocommerce-form-register .form-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}
.woocommerce-form-login .form-row input,
.woocommerce-form-register .form-row input {
  width: 100%;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
}
.woocommerce-form-login button,
.woocommerce-form-register button {
  width: 100%;
  padding: 12px 24px;
  background: #00796b;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.woocommerce-form-login button:hover,
.woocommerce-form-register button:hover {
  background: #00695c;
}

/* Notices */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
  background: #e0f7fa;
  border: 1px solid #b2ebf2;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 12px;
  color: #00796b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.woocommerce-notices-wrapper .woocommerce-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 12px;
  color: #dc2626;
  margin-bottom: 16px;
}
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-info .button {
  margin-right: auto;
  padding: 6px 14px;
  background: #00796b;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Product page sidebar features checkmark list */
.woocommerce-product-details__short-description {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}

/* ========================================
   Sticky Sidebar
   ======================================== */
@media (min-width: 1024px) {
  aside.lg\:sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 7rem !important;
    align-self: start;
  }
}

/* ========================================
   Mobile Menu
   ======================================== */
.arka-mobile-menu,
.arka-mobile-menu ul,
.arka-mobile-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.arka-mobile-menu > li > a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s;
}
.arka-mobile-menu > li > a:hover {
  background: #f1f5f9;
}
.arka-mobile-menu .sub-menu li a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  border-radius: 8px;
}
.arka-mobile-menu .sub-menu li a:hover {
  color: #00796b;
}
