
/*
 Theme Name: GeneratePress Child
 Description: Child theme for GeneratePress with custom navbar, colors, and animations
 Author: J98
 Template: generatepress
 Version: 1.2
 Text Domain: generatepress-child
*/

/* ----------------------
   CSS Variables (Professional Palette)
------------------------- */
:root {
  /* Backgrounds */
  --bg-primary: #f8f9fa; /* Main page background */
  --bg-secondary: #ffffff; /* Cards / sections */

  /* Brand Colors */
  --brand-primary: #0c3a57; /* Navy Blue - main brand color */
  --brand-primary-dark: #0a2b45; /* Darker navy for headings/logo */
  --brand-accent: #f5a45d; /* Orange - CTA / highlights */
  --brand-accent-hover: #f7b66d; /* Hover accent */

  /* Text Colors */
  --text-primary: #1f2d3d; /* Dark gray/navy for body text */
  --text-secondary: #566272; /* Medium gray for secondary text */
  --text-light: #ffffff; /* Light text on buttons */

  /* Links */
  --link-default: #0c5c8c; /* Slightly brighter blue than text */
  --link-hover: var(--brand-accent); /* Orange accent on hover */

  /* Borders & Shadows */
  --border-color: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.05);
}

/* ----------------------
   Base Font & Reset
------------------------- */
body {
  font-family: "Shabnam", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Prevent horizontal scrolling */
html,
body {
  overflow-x: clip;
  width: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ----------------------
  Scrollbar
------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) var(--bg-primary);
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-accent);
}


/* ======================================================= */
/* --- COMMENT STATUS ALERTS (Based on Root Colors) --- */
/* ======================================================= */

.kata-alert {
    max-width: 850px;
    margin: 20px auto;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    direction: rtl;
    text-align: right;
    box-shadow: 0 2px 4px var(--shadow-light);
}

.kata-alert p {
    margin: 0;
    padding: 0;
}

/* SUCCESS (Pending Moderation) */
.kata-alert-success {
    background-color: #e6f7e8; /* Light Green */
    border: 1px solid #66bb6a; /* Green Border */
    color: #2e7d32; /* Dark Green Text */
}

/* ERROR (Rate Limit, Invalid Parent, Missing Fields) */
.kata-alert-error {
    background-color: #fff0eb; /* Light Red/Orange */
    border: 1px solid var(--brand-accent); /* Orange/Accent Border */
    color: var(--brand-primary-dark); /* Dark Text */
}

/* Ensure the alert box is wider than the comments section on smaller screens */
@media (max-width: 900px) {
    .kata-alert {
        margin-left: 10px;
        margin-right: 10px;
    }
}
/* --- CUSTOM TOAST NOTIFICATION --- */
.kata-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px); /* Start hidden above screen */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 5px solid #e74c3c; /* Red border for error */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 15px 25px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 99999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy transition */
  min-width: 300px;
}

/* Active State (Slide In) */
.kata-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon svg {
  width: 24px;
  height: 24px;
  fill: #e74c3c;
}

.toast-message {
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
}
/* ----------------------
   Headings
------------------------- */
h1 {
  color: var(--brand-primary-dark);
  font-weight: 700;
}
h2 {
  color: var(--brand-primary);
  font-weight: 600;
}
h3 {
  color: var(--brand-accent);
  font-weight: 600;
}
h4 {
  color: var(--text-secondary);
  font-weight: 500;
}
h5 {
  color: var(--brand-accent);
  font-weight: 500;
}
h6 {
  color: var(--text-secondary);
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ----------------------
   Links & Admin Bar Fixes
------------------------- */
/* Reset Link Styling in Admin Bar */
#wpadminbar a,
#wpadminbar a:hover,
#wpadminbar a:focus {
  color: #fff !important;
  background: none !important;
}
#wpadminbar a::before,
#wpadminbar h1 a::before,
#wpadminbar h2 a::before,
#wpadminbar h3 a::before {
  content: none !important;
  height: 0 !important;
}
#wpadminbar h1,
#wpadminbar h2,
#wpadminbar h3 {
  color: inherit !important;
}

/* Site Links */
a {
  color: var(--link-default);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
}

/* Underline Animation */
a:not(.no-underline):not(.page-numbers)::before {
  content: "";
  position: absolute;
  bottom: -0.1em;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out, background-color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--brand-accent);
}

a:not(.no-underline):not(.page-numbers):hover::before,
a:not(.no-underline):not(.page-numbers):focus::before {
  transform: scaleX(1);
  background-color: var(--brand-accent);
}

/* Links inside headings hover fix */
h1 a:hover,
h2 a:hover,
h3 a:hover {
  color: var(--brand-accent) !important;
}
h1 a:not(.no-underline):not(.page-numbers):hover::before,
h2 a:not(.no-underline):not(.page-numbers):hover::before {
  transform: scaleX(1);
  background-color: var(--brand-accent);
}

/* ----------------------
   Buttons
------------------------- */
.button-primary {
  background-color: var(--brand-primary);
  color: var(--text-light);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.button-primary:hover {
  background-color: var(--brand-accent);
  transform: translateY(-2px);
}

.button-accent {
  background-color: var(--brand-accent);
  color: var(--text-light);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.button-accent:hover {
  background-color: var(--brand-accent-hover);
  transform: translateY(-2px);
}

/* ----------------------
   Cards & Forms
------------------------- */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 5px var(--shadow-light);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px var(--shadow-light);
}

input,
textarea,
select,
button {
  font-family: "Shabnam", sans-serif;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(12, 58, 87, 0.1);
}

/* ----------------------
   Navbar - Core
------------------------- */
/* Hide Default Header */
.site-header,
.main-navigation,
.secondary-navigation {
  display: none !important;
}

/* Outer Container */
.kata-header-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);
  padding: 20px 0;
}

/* Logo */
.kata-header-wrap .header-logo-section {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
}
.kata-header-wrap .kata-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  font-family: "Shabnam", sans-serif;
}

/* Desktop Menu (Pills) */
.kata-header-wrap .kata-main-menu a {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

/* Header Layout (Desktop) */
.kata-header-wrap .header-inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 46px;
  justify-content: space-between;
  align-items: center;
}
.kata-header-wrap .header-nav-section {
  flex-grow: 2;
  text-align: center;
}
.kata-header-wrap .kata-main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: start;
  gap: 32px;
}
.kata-header-wrap .header-tools-section {
  display: flex;
  align-items: center;
  gap: 20px;
}


/*Search Results*/
.asl_r .results .item .asl_image{
    border-radius:12px;
}
/* Search Icon */
.header-search-icon {
  font-size: 1.1rem;
  color: var(--brand-primary);
  cursor: pointer;
  transition: color 0.3s ease;
}
.header-search-icon:hover {
  color: var(--brand-accent-cta);
}

/* Contact Button */
.kata-contact-button {
  background-color: var(--brand-primary);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}
.kata-contact-button:hover {
  background-color: var(--brand-accent-cta);
}

/* ----------------------
   NAV ICON (Hamburger X)
------------------------- */
#nav-icon1 {
  width: 26px;
  height: 20px;
  margin: 0;
  padding: 0;
  transition: 0.4s ease-in-out;
}
#nav-icon1 span {
  height: 2px;
  width: 100%;
  background: var(--brand-primary);
  border-radius: 0;
  position: absolute;
  left: 0;
  transition: 0.3s ease-in-out;
}
#nav-icon1 span:nth-child(1) {
  top: 0px;
}
#nav-icon1 span:nth-child(2) {
  top: 9px;
}
#nav-icon1 span:nth-child(3) {
  top: 18px;
}

/* OPEN State */
#nav-icon1.open span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}
#nav-icon1.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}
#nav-icon1.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

.menu-toggle-button {
  display: none;
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.menu-toggle-button:hover,
.menu-toggle-button:active {
  background: none !important;
}

/* =========================================
   RESPONSIVE HEADER LAYOUTS
   ========================================= */

/* --- TABLET LAYOUT (769px to 1100px) --- */
/* "Logo and Tools in one row, List items on a separate row below" */
@media (max-width: 1100px) and (min-width: 769px) {
  .kata-header-wrap .header-inner-container {
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 10px;
    padding-top: 0px;
  }
  /* Logo Top Left */
  .kata-header-wrap .header-logo-section {
    order: 1;
    flex: 1;
  }
  /* Tools Top Right */
  .kata-header-wrap .header-tools-section {
    order: 2;
    flex: 1;
    justify-content: flex-end;
  }
  /* Menu Bottom Row */
  .kata-header-wrap .header-nav-section {
    order: 3;
    flex-basis: 100%;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
  }

  .kata-header-wrap .kata-main-menu {
    justify-content: center;
  }
    .kata-header-wrap{
      top:-90px;
  }
}

/* --- CRITICAL: HIDE MOBILE MENU ON DESKTOP --- */
.mobile-nav-offcanvas {
  display: none;
}
/* --- MOBILE LAYOUT (< 768px) --- */
/* "Logo in one line (Top), Search Left & Burger Right (Bottom)" */
/* "Full Screen Overlay Menu that covers Search but NOT Logo/Button" */
@media (max-width: 768px) {
  /* 1. Header Container Stacking */
  .kata-header-wrap .header-inner-container {
    display: flex;
    flex-direction: column;
    padding: 15px;
    padding-top: 0;
    gap: 15px;
    row-gap: 24px;
    position: relative; /* Essential for z-index context */
    
  }
  .kata-header-wrap{
      top:-52px;
  }

  /* 2. Logo (Row 1) - KEEPS ON TOP */
  .kata-header-wrap .header-logo-section {
    width: 100%;
    text-align: center;
    order: 1;
    display: flex;
    justify-content: center;

    /* Z-INDEX MAGIC: Sit above the menu overlay */
    position: relative;
    z-index: 10001;
  }
  .kata-header-wrap .kata-logo-text {
    text-align: center;
    width: 100%;
    display: block;
    font-size: 1.4rem;
  }

  /* 3. Tools Section (Row 2) */
  .kata-header-wrap .header-tools-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    order: 2;
    gap: 15px;
    flex-wrap:wrap;
  }

  /* Search Bar (Left in RTL) - GETS COVERED */
  .kata-ajaxsearch-container {
    order: 2;

    width: auto;
    max-width: none !important;
    display: flex;
    justify-content: space-between;

    /* Low Z-index so it hides behind menu */
    position: relative;
    z-index: 1;
  }

  /* Hamburger Button (Right in RTL) - KEEPS ON TOP */
  .menu-toggle-button {
    order: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;

    /* Z-INDEX MAGIC: Sit above the menu overlay */
    position: relative;
    z-index: 10001;
  }

  /* Hamburger Lines Color Fix (Black) */
  #nav-icon1 {
    width: 30px;
    height: 22px;
    position: relative;
    display: block;
  }
  #nav-icon1 span {
    display: block;
    position: absolute;
    width: 100%;
    height: 4px;
    width: 100%;
    background-color: var(--brand-primary) !important;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  /* 4. Hide Desktop Elements (HEADER BAR ONLY) */
  /* Only hide the contact button that is inside the header row, keep the menu one */
  .header-nav-section,
  .header-tools-section .kata-contact-button {
    display: none !important;
  }

  /* =========================================
       AWWWARDS FULL SCREEN MENU OVERLAY
       ========================================= */
  .mobile-nav-offcanvas {
    display: flex !important;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 130px;
    /* Full Screen Fixed Position */
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh + 130px);
    min-height: 100dvh;
    padding-bottom: 38px;
    border-radius: 21px;
    /* Glass Effect */
    background: #f8fafcf7;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    /* Layering: Above Search(1), Below Logo/Button(10001) */
    z-index: 9999;

    /* Entrance Animation */
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
  }

  /* Active State */
  .mobile-nav-offcanvas.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  /* Links Styling */
  .kata-mobile-menu-list {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: 0;
    list-style: none;
    max-height: 75dvh;
    overflow: auto;
  }
  .kata-mobile-menu-list li {
    padding: 21px 0;
  }
  .kata-mobile-menu-list li a {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-primary);

    text-decoration: none;

    /* Staggered Entrance Setup */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Hover */
  .kata-mobile-menu-list li a:hover {
    color: var(--brand-accent);
    background: transparent;
  }

  /* Staggered Animation Trigger */
  .mobile-nav-offcanvas.active .kata-mobile-menu-list li a {
    opacity: 1;
    transform: translateY(0);
    width: fit-content;
    margin: 0 auto;
  }
  .mobile-nav-offcanvas.active li:nth-child(1) a {
    transition-delay: 0.1s;
  }
  .mobile-nav-offcanvas.active li:nth-child(2) a {
    transition-delay: 0.2s;
  }
  .mobile-nav-offcanvas.active li:nth-child(3) a {
    transition-delay: 0.3s;
  }
  .mobile-nav-offcanvas.active li:nth-child(4) a {
    transition-delay: 0.4s;
  }
  .mobile-nav-offcanvas.active li:nth-child(5) a {
    transition-delay: 0.5s;
  }

  /* --- NEW: Contact Button INSIDE Mobile Menu --- */
  .mobile-menu-cta {
    margin-top: 20px;
    width: 100%;
    text-align: center;
  }

  /* Make the button visible and styled inside the menu */
  /* Force display inline-block to override the global hide rule */
  .mobile-nav-offcanvas .kata-contact-button {
    display: inline-block !important;
    font-size: 1.2rem;
    padding: 12px 35px;
    background-color: var(--brand-primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;

    /* Animation Setup */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
  }

  /* Button Hover */
  .mobile-nav-offcanvas .kata-contact-button:hover {
    background-color: var(--brand-accent);
  }

  /* Animate it in after the links */
  .mobile-nav-offcanvas.active .kata-contact-button {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s; /* Waits for links */
  }
  
}
@media (max-width: 640px) {
  .kata-ajaxsearch-container {
    flex-grow: 1;
  }
}

@media (max-width: 540px) {
  .kata-header-wrap .kata-logo-text {
    font-size: 1.3rem;
  }
}


button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
a.button:focus,
a.wp-block-button__link:not(.has-background):active,
a.wp-block-button__link:not(.has-background):focus,
a.wp-block-button__link:not(.has-background):hover {
  background: transparent !important;
}

.site-content {
  display: flex;
  flex-direction: column !important;
}

/* =========================================
   CONTACT PAGE STYLING
   ========================================= */

.contact-main-wrapper {
  background-color: var(--bg-primary);
  padding: 80px 0;
  min-height: 80vh;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.contact-container iframe {
    height: 300px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    max-height: 300px;
    margin-bottom: 32px;
}
/* Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Info smaller, Form bigger */
  gap: 40px;
  align-items: start;
}

/* --- GLASS PANEL STYLE --- */
.glass-panel {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(12, 58, 87, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* --- LEFT COL: INFO --- */
.contact-title {
  font-size: 2rem;
  color: var(--brand-primary);
  margin-bottom: 15px;
}
.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(12, 58, 87, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-text strong {
  display: block;
  color: var(--brand-primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.info-text p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- RIGHT COL: FORM --- */
.kata-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Two items on one line (Phone/Email) */
.form-group.half {
  width: calc(50% - 10px);
}

label {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  padding: 12px 15px !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;

  transition: all 0.3s ease;
  background: #fdfdfd;
}

input:focus,
textarea:focus {
  border-color: var(--brand-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 164, 93, 0.15);
}

/* Submit Button */
.submit-button {
  background-color: var(--brand-primary);
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Shabnam", sans-serif;
  margin-top: 10px;
  width: 100%;
  transition: 0.3s;
}

.submit-button:hover {
  background-color: var(--brand-accent) !important;
  transform: translateY(-3px) !important ;
  box-shadow: 0 10px 20px rgba(245, 164, 93, 0.3) !important;
}

/* Alerts */
.alert-box {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: bold;
}
.alert-box.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-box.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack vertically */
  }
  .form-group.half {
    width: 100%; /* Full width inputs on mobile */
  }
}

/* =========================================
   CAREERS PAGE STYLING
   ========================================= */

.career-main-wrapper {
  background-color: var(--bg-primary);
  padding: 80px 0;
  min-height: 90vh;
  width: 100%;
}

.career-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.career-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(12, 58, 87, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.career-title {
  text-align: center;
  color: var(--brand-primary);
  margin-bottom: 10px;
  font-size: 2rem;
}
.career-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.career-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Date of Birth Row */
.dob-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dob-row select {
  flex: 1; /* Equal width for Day/Month/Year */
  cursor: pointer;
  background: #fdfdfd;
}

/* File Upload Style */
.file-upload-group {
  background: rgba(12, 58, 87, 0.03);
  padding: 20px;
  border-radius: 10px;
  border: 2px dashed rgba(12, 58, 87, 0.2);
  width: 100%;
  transition: 0.3s;
}
.file-upload-group:hover {
  border-color: var(--brand-accent);
}

.file-input {
  border: none;
  padding: 10px 0;
  background: transparent;
  width: 100%;
}

/* Reusing Form Group Styles */
.form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.half {
  width: calc(50% - 10px);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .dob-row {
    flex-direction: row;
  }
  .form-group.half {
    width: 100%;
  }
}

/* --- RECAPTCHA V2 STYLING --- */

/* 1. The Wrapper */
.g-recaptcha {
  display: flex;
  justify-content: flex-start; /* Align right in RTL context */
  align-items: center;

  /* Optional: Add a glass container around the Google box to blend it in */
  background: rgba(12, 58, 87, 0.03);
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(12, 58, 87, 0.2);
  width: fit-content;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

/* Hover effect on the wrapper */
.g-recaptcha:hover {
  background: rgba(12, 58, 87, 0.05);
  border-color: var(--brand-accent);
}

/* 2. Mobile Responsiveness (CRITICAL) */
/* Google's box is fixed at 304px wide. This breaks on small phones like iPhone SE */
@media (max-width: 440px) {
  .g-recaptcha {
    transform: scale(0.85); /* Shrink it to 85% size */
    transform-origin: right top; /* Keep it anchored to the right (RTL) */
    margin-bottom: -10px; /* Fix gap created by scaling */
  }
}
/* --- FIX RECAPTCHA CUT-OFF ON MOBILE --- */
@media (max-width: 375px) {
  .g-recaptcha {
    display: flex;
    justify-content: flex-start; /* Align right in RTL */

    /* 1. Scale it down to 77% of original size */
    transform: scale(0.62);

    /* 2. Anchor it to the Top Right so it doesn't float away */
    -webkit-transform-origin: right top;
    transform-origin: right top;

    /* 3. Fix the empty space left behind by scaling */
    margin-bottom: -15px;
    margin-left: -20px; /* Pull it slightly if needed */
  }

  /* Ensure the parent container doesn't clip it awkwardly */
  .form-group {
    overflow: visible !important;
  }
}

/* =========================================
   SINGLE BLOG POST STYLING
   ========================================= */
/* --- SINGLE POST FOUC FIX --- */

/* 1. Header Elements */
.post-meta,
.post-title,
.post-hero-image {
    opacity: 0;
    visibility: hidden;
}

/* 2. Main Content */
.post-content-body {
    opacity: 0;
    visibility: hidden;
}

/* 3. Footer Areas */
.related-posts-wrapper,
#comments {
    opacity: 0;
    visibility: hidden;
}

/* Fallback: Show content if JS is disabled */
.no-js .post-meta,
.no-js .post-title,
.no-js .post-hero-image,
.no-js .post-content-body,
.no-js .related-posts-wrapper,
.no-js #comments {
    opacity: 1 !important;
    visibility: visible !important;
}

.is-loading-hidden {
    opacity: 0 !important; /* Use !important if needed to override other CSS */
    visibility: hidden; /* Helps ensure it's not clickable during FOUC */
}
/* --- 1. READING PROGRESS BAR --- */
.reading-progress-container {
  position: fixed;
  top: 0; /* Change to 'top: 80px;' if you have a sticky header */
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
}

.reading-progress-bar {
  height: 100%;
  width: 0%; /* JavaScript updates this width on scroll */
  background: var(--brand-accent);
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(245, 164, 93, 0.5);
}

/* --- 2. MAIN LAYOUT WRAPPER --- */
.single-post-wrapper {
  background-color: #fff; /* Clean white paper look */
  padding-bottom: 0px;
  overflow-x: hidden;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 21px;
  min-height: 100vh;
}

.kata-article {
  max-width: 800px; /* Optimal width for reading long text */
  margin: 0 auto;
  padding: 60px 20px 40px;
  position: relative;
}

/* --- 3. POST HEADER --- */
.post-header {
  text-align: center;
  margin-bottom: 50px;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap:wrap;
  font-weight: 500;
}

.post-cat {
  color: var(--brand-accent);
  font-weight: 700;
  position: relative;
}

.separator {
  opacity: 0.4;
  font-size: 1.2em;
}

.post-title {
  font-size: 2.8rem;
  line-height: 1.3;
  color: var(--brand-primary-dark);
  margin: 0;
  font-weight: 800;
}

/* --- 4. HERO IMAGE (Optimized for 1024x1024) --- */
.post-hero-image {
  width: 600px;
  aspect-ratio: 1/1;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 60px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* Soft, deep shadow */
  transform-origin: center center;
  background-color: var(--bg-primary); /* Placeholder color while loading */
}

.post-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  display: block;
  object-fit: cover;
  /* Since image is 1024px and container is max 800px, 
       it will look extremely sharp and crisp. */
}
/* Specific Override for Product Posts (e.g., Supplements/Bottles) */
.post-hero-image.product-contain-hero img {
  /* CRITICAL: Ensures the whole image (e.g., bottle) is visible */
  object-fit: contain !important;
  padding:18px;
  /* Adds a clean background behind the contained image */
  background-color: #fff;
}
/* --- 5. CONTENT TYPOGRAPHY (Vibrant & Premium) --- */
.post-content-body {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-primary); /* Keep body text dark grey for readability */
}

/* Paragraphs */
.post-content-body p {
  margin-bottom: 30px;
  text-align: justify;
}

/* H2: Major Sections - ORANGE & DECORATED */
.post-content-body h2 {
  font-size: 1.9rem;
  margin-top: 60px;
  margin-bottom: 25px;
  color: var(--brand-accent); /* Bright Orange */
  font-weight: 800;
  letter-spacing: -0.5px;

  /* Decorative Side Line to make it pop */

  line-height: 1.3;
}

/* H3: Sub-sections - NAVY */
.post-content-body h3 {
  font-size: 1.5rem;
  margin-top: 0px;
  margin-bottom: 20px;
  color: var(--brand-primary); /* Deep Navy */
  font-weight: 700;
}

/* H4: Minor Headings - STYLED & UNDERLINED */
.post-content-body h4 {
  font-size: 1.25rem;
  margin-top: 35px;
  margin-bottom: 15px;
  color: var(--brand-primary-dark); /* Darkest Navy */
  font-weight: 600;

  /* Subtle underline effect */
  display: inline-block;
  border-bottom: 2px solid rgba(245, 164, 93, 0.4); /* Faint Orange underline */
  padding-bottom: 5px;
}

/* Bold Text - Make it stand out */
.post-content-body strong,
.post-content-body b {
  color: var(--brand-primary);
  font-weight: 700;
}


/* Lists - Add colored bullets */
.post-content-body ul,
.post-content-body ol {
  margin-bottom: 30px;
    padding-right: 0;
    margin-right: 0;
}
.post-content-body ul li {
  list-style-type: none; /* Remove default dots */
  position: relative;
  padding-right: 20px;
  margin-bottom: 12px;
}
/* Custom Orange Bullet Point */
.post-content-body ul li::before {
  content: "•";
  color: var(--brand-accent);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  right: 0;
  top: -5px;
}

/* Images inside content */
.post-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Premium shadow */
}

/* Blockquote */
.post-content-body blockquote {
  border-right: 5px solid var(--brand-accent);
  margin: 50px 0;
  padding: 30px 40px 30px 0;
  background: linear-gradient(
    to left,
    rgba(245, 164, 93, 0.08),
    transparent
  ); /* Fade effect */
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brand-primary);
  border-radius: 8px;
  line-height: 1.8;
}

/* Links in text */
.post-content-body a {
  color: var(--brand-accent);
  border-bottom: 1px solid rgba(245, 164, 93, 0.3);
  transition: all 0.2s;
  text-decoration: none;
  font-weight: 600;
}
.post-content-body a:hover {
  border-bottom-color: var(--brand-accent);
  background-color: rgba(245, 164, 93, 0.15); /* Highlight effect */
}

/* Lists */
.post-content-body ul,
.post-content-body ol {
  margin-bottom: 30px;
  padding-right: 25px; /* Indent for RTL */
}

.post-content-body li {
  margin-bottom: 12px;
  position: relative;
}

/* Images inside content */
.post-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Blockquote Style */
.post-content-body blockquote {
  border-right: 5px solid var(--brand-accent);
  margin: 50px 0;
  padding: 30px 40px 30px 0;
  background: #f8f9fa; /* Very subtle gray */
  font-style: italic;
  font-size: 1.3rem;
  color: var(--brand-primary);
  border-radius: 12px;
  line-height: 1.8;
}

/* Links in text */
.post-content-body a {
  color: var(--brand-primary);
  border-bottom: 1px solid var(--brand-accent);
  transition: all 0.2s;
}
.post-content-body a:hover {
  color: var(--brand-accent);
  border-bottom-width: 2px;
}

/* --- 6. FOOTER (Tags) --- */
.post-footer {
  margin-top: 40px;
  border-top: none;
  padding-top: 40px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.post-tags a {
  background: var(--bg-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.post-tags a:hover {
  background: #fff;
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 164, 93, 0.2);
}

/* --- 7. NAVIGATION (Next/Prev) --- */
.post-navigation-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 100px;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.nav-previous,
.nav-next {
  width: 48%;
}

.nav-previous a,
.nav-next a {
  display: block;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.nav-previous a:hover,
.nav-next a:hover {
  border-color: var(--brand-accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.meta-nav {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.nav-links h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

  .post-title {
    font-size: 2rem;
  }
  .kata-article {
    padding: 40px 32px;
  }
  .nav-links {
    flex-direction: column;
  }
  .nav-previous,
  .nav-next {
    width: 100%;
  }
  .post-hero-image {
    margin-bottom: 40px;
  }
}

/* =========================================
   9. BLOG ARCHIVE (Sidebar + Grid)
   ========================================= */
.blog-main-wrapper {
  background-color: var(--bg-primary);
  padding: 60px 0;
  min-height: 100vh;
  width: 100%;
}
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-header {
  text-align: center;
  margin-bottom: 60px;
}
.blog-title {
  font-size: 2.8rem;
  color: var(--brand-primary-dark);
  margin-bottom: 10px;
  font-weight: 800;
}
.blog-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  text-align: start;
  max-width: 80%;
  margin: 0 auto;
  margin-top: 21px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.blog-sidebar {
  /* Stick to top */
  position: -webkit-sticky; /* Safari support */
  position: sticky;
  top: 100px; /* Distance from top of screen */

  /* Appearance */
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);

  /* CRITICAL FOR STICKY: */
  align-self: start; /* Don't stretch to match grid height */

  /* SCROLL LOGIC: If sidebar is taller than screen, scroll internally */
  max-height: calc(200vh - 140px);
  overflow-y: auto;

  /* Custom Scrollbar for Sidebar */
  scrollbar-width: thin;
  scrollbar-color: #f1f5f9 transparent;
}

/* Custom Scrollbar Webkit */
.blog-sidebar::-webkit-scrollbar {
  width: 2px;
}
.blog-sidebar::-webkit-scrollbar-thumb {
  background-color: #f1f5f9;
  border-radius: 4px;
}
.blog-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.blog-sidebar h3 {
  font-size: 1.3rem;
  color: var(--brand-primary);
  border-bottom: 3px solid var(--brand-accent);
  padding-bottom: 10px;
  padding-top: 0px;
  margin-bottom: 20px;
  display: inline-block;

  background: #fff;
  z-index: 10;
  width: 100%;
}

.cat-filter-list,
.sub-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Sidebar Items & Accordion */
.cat-item {
  margin-bottom: 8px;
}
.cat-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  flex-grow: 1;
  margin-bottom: 0;
}
.cat-link .count {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
}
.cat-link:hover,
.cat-link.active {
  background-color: rgba(245, 164, 93, 0.1);
  color: var(--brand-accent);
}
.cat-link:hover span,
.cat-link.active span {
  color: #f97316;
  background: transparent;
}
.cat-link.active {
  font-weight: 700;
}

.cat-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  margin-right: 5px;
}
.cat-toggle:hover {
  color: var(--brand-accent);
}
.cat-item.open > .cat-item-inner .cat-toggle {
  transform: rotate(-90deg);
  color: var(--brand-primary);
}

.sub-cat-list {
  padding-right: 20px;
  margin-top: 5px;
  border-right: 2px solid rgba(0, 0, 0, 0.05);
}
.sub-cat-list .cat-link {
  font-size: 0.95rem;
  padding: 8px 12px;
}

.kata-blog-card {
  padding: 8px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 1;
}
.kata-blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(12, 58, 87, 0.1);
}

.card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 18px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 18px;
}

/* DEFAULT Rule (Assumed to be: object-fit: cover) */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 18px;
}
/* 2. The Conditional Override Rule (Forces object-fit: contain for products) */
/* This targets the <img> tag inside the conditionally added class */
.product-contain-wrapper img {
  object-fit: contain !important;
padding:12px;
  /* Important for product images, as it provides a clean white background */
  background-color: #fff;
}
/* --- OVERRIDE Rule for Specific Category (محصولات-وبر-نچرالز) --- */
/* Target the image when the main wrapper has the specific class */
.is-product-archive .card-image img {
  /* CRITICAL: Changes the scaling method */
  object-fit: contain;
 padding:12px;
  /* Ensure the white background is visible behind the contained image */
  background-color: #fff;
}
.kata-blog-card:hover .card-image img {
  transform: scale(1.1);
}

.card-date {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 6px 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 60px;
}
.card-date .day {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-accent);
  line-height: 1;
}
.card-date .month {
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.card-content {
  padding: 12px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  color: var(--brand-accent);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
  margin-top: 0;
}
.card-title a {
  color: var(--brand-primary-dark);
  transition: color 0.2s;
  text-decoration: none;
}
.card-title a:hover {
  color: var(--brand-accent);
}
.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.read-more-link {
  color: var(--brand-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  margin-top: auto;
  font-size: 0.9rem;
  text-decoration: none;
  background: rgba(12, 58, 87, 0.05);
  padding: 8px 16px;
  border-radius: 50px;
  width: fit-content;
}
.read-more-link i {
  font-size: 1rem;
  transition: transform 0.3s;
}
.read-more-link:hover {
  background: var(--brand-accent);
  color: #fff;
  gap: 10px;
}
.read-more-link:hover i {
  transform: translateX(-3px);
}

/* Pagination */
.blog-pagination {
  margin-top: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap:wrap;
}
.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 164, 93, 0.4);
}

/* Loader */
.blog-loader {
  text-align: center;
  padding: 40px;
  width: 100%;
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid rgba(12, 58, 87, 0.1);
  border-left-color: var(--brand-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* 100% Grid on very small screens */

/* Responsive */
@media (max-width: 780px) {
  .blog-layout {
    grid-template-columns: minmx(100px, fr);
  }
  .blog-sidebar {
    padding: 20px !important;
    padding-top: 2px;

    max-height: 100vh !important;
    margin: 0 !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
    height: calc(100dvh - 150px) !important;
    top: auto !important;
    border-radius: 21px 21px 0 0 !important;
  }
  .blog-sidebar:not(.active) {
    display: none;
  }
  .sidebar-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    padding-top: 14px !important;
  }
  .cat-filter-list,
  .sub-cat-list {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  .cat-link {
    background: #fff;
    border: 1px solid #eee;
    white-space: nowrap;
    margin-bottom: 0;
  }
}

/* =========================================
   MOBILE SIDEBAR DRAWER (Filter Button & Off-canvas)
   ========================================= */

/* Default: Hide Mobile Elements on Desktop */
.mobile-filter-bar,
.sidebar-mobile-header,
.sidebar-overlay {
  display: none;
}

@media (max-width: 780px) {
  /* 1. Show Filter Button */
  .mobile-filter-bar {
    display: block;
    margin-bottom: 30px;
  }

  .filter-toggle-btn {
    background: #fff;
    color: var(--brand-primary);
    border: 1px solid #e0e0e057;
    width: fit-content;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  }
  .filter-toggle-btn i {
    font-size: 1.3rem;
  }
  .filter-toggle-btn:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
  }

  /* 2. Transform Sidebar into Drawer */
  .blog-sidebar {
    position: fixed;
    top: 0;
    right: -320px; /* Hide off-screen right */
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 0;
    margin: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 100vh !important;
  }

  /* Active State (Open) */
  .blog-sidebar.active {
    right: 0;
  }

  /* 3. Drawer Header (Close Button) */
  .sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 16px;
  }
  .sidebar-mobile-header span {
    font-weight: 800;
    color: var(--brand-primary);
    font-size: 1.1rem;
  }
  .filter-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
  }

  /* Adjust Inner Content */
  .sidebar-inner {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
  }

  /* Hide the "Categories" title inside since we have the mobile header */
  .blog-sidebar h3 {
    display: none;
  }

  /* 4. Overlay (Backdrop) */
  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(4px);
  }
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* =========================================
   9. BLOG ARCHIVE (Sidebar + Grid + Cards)
   ========================================= */

.blog-main-wrapper {
  background-color: var(--bg-primary);
  padding: 60px 0;
  width: 100%;
  min-height: 100vh;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.blog-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-title {
  font-size: 2.8rem;
  color: var(--brand-primary-dark);
  margin-bottom: 10px;
  font-weight: 800;
}
.blog-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 80%;
  margin: 0 auto;
  margin-top: 21px;
}

/* Layout Grid */
.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr; /* Sidebar + Content */
  gap: 40px;
  align-items: start;
}

/* --- SIDEBAR (Smart Sticky & Accordion) --- */
.blog-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 100px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);

  /* Smart Sticky Config */
  align-self: start;
  max-height: calc(200vh - 140px);
  overflow-y: auto;

  /* Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #f1f5f9 transparent;
}
.blog-sidebar::-webkit-scrollbar {
  width: 4px;
}
.blog-sidebar::-webkit-scrollbar-thumb {
  background-color: #f1f5f9;
  border-radius: 4px;
}
.blog-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.blog-sidebar h3 {
  font-size: 1.3rem;
  color: var(--brand-primary);

  padding-bottom: 10px;
  margin-bottom: 20px;
  margin-top: 0px;
  display: inline-block;

  /* Keep title pinned if internal scrolling occurs */
  background: #fff;
  z-index: 10;
  width: 100%;
}

.cat-filter-list,
.sub-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Item & Link Styling */
.cat-item {
  margin-bottom: 8px;
}
.cat-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-bottom: 0;
  border: 1px solid transparent;
  text-decoration: none;
  flex-grow: 1;
}

.cat-link .count {
  color: #64748b;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* Active / Hover State */
.cat-link:hover,
.cat-link.active {
  background-color: rgba(245, 164, 93, 0.1);
  color: var(--brand-accent);
}

.cat-link.active {
  font-weight: 700;
}

/* Toggle Arrow */
.cat-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  margin-right: 5px;
}
.cat-toggle:hover {
  color: var(--brand-accent);
}

/* Rotate arrow when open (-90deg for RTL) */
.cat-item.open > .cat-item-inner .cat-toggle {
  transform: rotate(-90deg);
  color: var(--brand-primary);
}

/* Sub Menu */
.sub-cat-list {
  padding-right: 20px;
  margin-top: 5px;
  border-right: 2px solid rgba(0, 0, 0, 0.05);
}
.sub-cat-list .cat-link {
  font-size: 0.95rem;
  padding: 8px 12px;
}

/* --- BLOG GRID --- */
.blog-content-area {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.blog-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(100px, 1fr); /* default for < 360px */
}
.related-posts-grid{
    grid-template-columns: minmax(100px, 1fr);
    display: grid;
    gap:16px;
}
/* At 420px and above → 300px column */
@media (min-width: 420px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  .kata-blog-grid{
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    display: grid !important;
    gap:30px !important;
   }
   .related-posts-grid{
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    display: grid;
    gap:16px;
}
}
/*Related Blogs row*/
.related-posts-wrapper{
    padding:21px;
    background:none;
    margin-bottom:24px;
}
.related-posts-wrapper h3{
    padding:12px;
}

/* Search Results */

/*Header*/
.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header{
    background: none !important;
    margin: 0 !important;
    padding: 12px 20px 32px 20px !important;
}
/*Grid*/
.kata-blog-grid{
    grid-template-columns:minmax(100px,1fr);
    display: grid !important;
    gap:30px !important;
    padding: 0 16px;
}

/* --- CARDS (Vibrant Style) --- */
.kata-blog-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;

  /* Ensure visible by default */
  opacity: 1;
}

.kata-blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(12, 58, 87, 0.1);
}

/* Card Image */
.card-image {
  position: relative;
  height: 250px; /* Reduced height */
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.kata-blog-card:hover .card-image img {
  transform: scale(1.1);
}

/* Date Badge */
.card-date {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 6px 14px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 60px;
}
.card-date .day {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-accent);
  line-height: 1;
}
.card-date .month {
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 600;
}

/* Card Content */
.card-content {
  padding: 12px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  color: var(--brand-accent);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
  margin-top: 0;
}
.card-title a {
  color: var(--brand-primary-dark);
  transition: color 0.2s;
  text-decoration: none;
}
.card-title a:hover {
  color: var(--brand-accent);
}

.card-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Read More Link */
.read-more-link {
  color: var(--brand-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
  margin-top: auto;
  font-size: 0.9rem;
  text-decoration: none;
  background: rgba(12, 58, 87, 0.05);
  padding: 8px 16px;
  border-radius: 50px;
  width: fit-content;
}
.read-more-link i {
  font-size: 1rem;
  transition: transform 0.3s;
}
.read-more-link:hover {
  background: var(--brand-accent);
  color: #fff;
  gap: 10px;
}
.read-more-link:hover i {
  transform: translateX(-3px);
}

/* Pagination */
.blog-pagination {
  margin-top: 60px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap:wrap;
}

.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 164, 93, 0.4);
}
/* Custom Pagination Styles applied to the standard GP/WordPress pagination structure */

/* 1. Target the Wrapper (Used by default WordPress/GP navigation) */
#nav-below.paging-navigation,
.paging-navigation.navigation { /* Use a generic selector for safety */
  margin-top: 60px;
  text-align: center;
  display: flex;
  /* The default pagination from GP might already be centered, 
     but we force it to be like your custom one: */
  justify-content: center;
  gap: 10px; /* Space between numbers */
}

/* 2. Target the Individual Page Links and Spans */
.paging-navigation .nav-links .page-numbers,
.paging-navigation .nav-links .prev.page-numbers, /* To target Previous link */
.paging-navigation .nav-links .next.page-numbers { /* To target Next link */
  /* This block ensures every page number link/span looks like your circle */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #fff;
  border-radius: 50%;
  color: var(--text-secondary);
  font-weight: 700;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);

  /* Ensure only the number is visible, hide screen reader text */
  position: relative;
  overflow: hidden;
  line-height: 1; /* Helps center the number */
}

/* 3. Handle Active/Hover State */
.paging-navigation .page-numbers.current,
.paging-navigation .page-numbers:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 164, 93, 0.4);
}

/* 4. Tidy up the hidden screen-reader text inside the link/span */
.paging-navigation .page-numbers .screen-reader-text {
  /* Make sure the screen-reader text is hidden for a clean circle look */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 5. Handle the Previous/Next buttons' text/icons */
/* The HTML you provided for Prev/Next is different from simple page-numbers. We need to target the new wrappers. */

/* Target the wrapper divs for previous/next */
.paging-navigation .nav-previous,
.paging-navigation .nav-next {
    /* Hide the default wrapper */
    display: none;
}

/* The actual prev/next links will be handled by the .page-numbers selectors above, 
   but we need to make sure the text/icon within them is displayed correctly 
   if they are generated as simple links (which they are in your HTML, but outside .nav-links) */

/* If you want the prev/next links inside .nav-links to show ONLY the arrow/text: */
.paging-navigation .nav-links .prev.page-numbers,
.paging-navigation .nav-links .next.page-numbers {
    width: auto; /* Allow the button to size based on content */
    border-radius: 25px; /* Change to a pill shape for text links */
    padding: 0 15px; /* Add internal padding */
    font-size: 14px; /* Adjust text size */
}

.paging-navigation .page-numbers.current, .paging-navigation .page-numbers:hover{
    padding:0;
}
/* Cleanup for the extra "Next" text/arrow in your provided HTML */
.paging-navigation .nav-links .next.page-numbers span[aria-hidden="true"] {
    margin-right: 7px;
    transform: rotate(180deg);
}

/* Cleanup for the extra "Next" text/arrow in your provided HTML */
.paging-navigation .nav-links .prev.page-numbers span[aria-hidden="true"] {
    margin-left: 7px;
    transform: rotate(180deg);
}

.paging-navigation .nav-links{
    flex-direction:row !important;
    gap:14px !important;
}
/* Loader */
.blog-loader {
  text-align: center;
  padding: 40px;
  width: 100%;
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid rgba(12, 58, 87, 0.1);
  border-left-color: var(--brand-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .card-title {
    font-size: 1rem;
  }
  .card-excerpt {
    font-size: 0.8rem;
  }
  .blog-title {
    font-size: 2.3rem;
  }
  .post-content-body h2{
      font-size: 1.67rem;
  }
}
/* --- RESPONSIVE --- */
@media (max-width: 780px) {
  .blog-subtitle {
    max-width: 100%;
    text-align:justify;
  }
  .blog-layout {
    grid-template-columns: minmax(100px, 1fr);
  }

  .blog-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 40px;
    padding: 20px;
    max-height: none; /* Disable sticky max-height on mobile */
    overflow-y: visible;
  }

  /* Horizontal Scroll for categories (if filtering visible) or Reset if Drawer used */
  .sidebar-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .cat-filter-list {
    display: flex;
    gap: 10px;
    flex-direction: column;
    width: 100%;
  }

  .cat-link {
    background: #fff;
    border: 1px solid #eee;
    white-space: nowrap;
    margin-bottom: 0;
  }

  /* If using the Mobile Drawer, these overrides apply inside the drawer context */
  /* The drawer styles earlier will override these if specificity is higher or structure changes */
  /* Just ensuring basic fallback layout is clean */
}

/* =========================================
   RIPPLE BUTTON (KATA THEME - SOLID FIX)
   ========================================= */

.ripple-btn {
  /* Define Colors Locally to ensure they exist */
  --btn-solid-color: #0c3a57; /* Navy (Initial) */
  --btn-ripple-color: #f5a45d; /* Orange (Hover) */
  --btn-text-color: #ffffff;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;

  /* Shape & Size */
  border-radius: 50px;
  padding: 12px 35px;
  font-weight: 700;
  font-family: "Shabnam", sans-serif;

  /* CRITICAL FIX: Force Background Color */
  background-color: var(--brand-primary, var(--btn-solid-color)) !important;
  color: var(--text-light, var(--btn-text-color)) !important;

  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Ensure button sits above other elements */
  z-index: 1;
  box-shadow: 0 4px 15px rgba(12, 58, 87, 0.2); /* Optional shadow for depth */
}

/* Text Animation Wrapper */
.ripple-btn .btn-text {
  position: relative;
  z-index: 5; /* Must be higher than ripple */
  top: 0;
  color: var(--btn-text-color);
  transition: top 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Hover: Move original text up */
.ripple-btn:hover .btn-text {
  top: -50px;
}

/* The Hidden Ripple Container */
.ripple-wrapper {
  position: absolute;
  top: 110%; /* Start hidden below */
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  overflow: hidden;
  transition: top 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
  z-index: 2; /* Sits on top of the Navy background */
}

/* Hover: Move ripple container into view */
.ripple-btn:hover .ripple-wrapper {
  top: 0;
}

/* The Text inside the Ripple (Starts hidden below) */
.ripple-wrapper .ripple-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  margin: 0;
  white-space: nowrap;
  z-index: 6; /* Highest Layer */

  /* Text Color Inside Orange Bubble */
  color: #fff;
}

/* The Background Bubble (Orange) */
.ripple-wrapper .ripple-bg {
  width: 120%;
  height: 150%;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-radius: 50%;

  /* ORANGE RIPPLE COLOR */
  background-color: var(--brand-accent, var(--btn-ripple-color)) !important;

  transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.ripple-btn:hover .ripple-bg {
  top: -25%;
  border-radius: 0;
}

/* --- ACCENT VARIANT (Orange -> Navy) --- */
.ripple-accent {
  background-color: var(--brand-accent, #f5a45d) !important;
}
.ripple-accent .ripple-wrapper .ripple-bg {
  background-color: var(--brand-primary, #0c3a57) !important;
}
/* ======================================================= */
/* --- COMMENT SECTION (RTL & Brand-Aligned) STYLING --- */
/* ======================================================= */

/* --- 1. Main Container & Title --- */
#comments {
    max-width: 850px;
    margin: 60px auto 80px;
    padding: 0 32px;
    direction: rtl; /* Ensure RTL flow */
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    color: var(--brand-primary-dark);
}

/* --- 2. Comment List Reset & Base Comment Card --- */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    /* Base card style */
    margin-bottom: 25px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

/* --- 3. Hierarchical / Reply Styles --- */
/* Style for threaded replies */
.comment-list .children {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0; 
    /* Push replies slightly inward (to the left in RTL) */
    margin-right: 30px; 
}

/* Card style for reply comments (Subtler background and border) */
.comment-list .children .comment {
    background: var(--bg-primary); /* Lighter background for replies */
    border-right: 3px solid var(--brand-accent); /* Accent bar for visual hierarchy */
    border-left: none;
    padding: 15px 20px 15px 15px;
    margin-bottom: 15px;
    box-shadow: none; /* Remove shadows on nested replies */
}

/* --- 4. Comment Meta (Author/Date/Avatar) --- */
.comment-meta {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 15px;
}
.comment-form-cookies-consent input{
    margin-right: .5em;
    margin-bottom: 0;
    width: fit-content;
    margin-left: 19px;
}

.avatar {
    border-radius: 50%;
    border: 2px solid var(--border-color); /* Navy brand ring around avatar */
    flex-shrink: 0;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 0 !important;
    padding-right: 0px !important;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-primary-dark);
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.comment-metadata a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-metadata a:hover {
    color: var(--brand-accent); /* Orange hover */
}

/* --- 5. Comment Content & Reply Link --- */
.comment-content {
        padding: 42px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .05);
    padding-top: 10px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Reply link button styling */
.reply a {
    display: inline-block;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
    float: left; /* Aligned left for RTL */
}

.reply a:hover {
    background-color: var(--border-color);
}


/* ======================================================= */
/* --- COMMENT FORM STYLING --- */
/* ======================================================= */

#reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--brand-primary-dark);
}

/* Inputs and Textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    transition: border-color 0.3s;
    direction: rtl; 
    text-align: right;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--brand-accent); /* Orange accent on focus */
    box-shadow: 0 0 0 1px var(--brand-accent);
    outline: none;
}

/* Submit Button */
.comment-form input[type="submit"] {
    background-color: var(--brand-primary); /* Navy Primary button */
    color: var(--text-light);
    font-weight: 600;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    float: right; 
}

.comment-form input[type="submit"]:hover {
    background-color: var(--brand-primary-dark) !important;
}

/* Logged-in message cleanup */
.logged-in-as {
    float: right;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-primary);
}


.grecaptcha-badge{

    bottom: 5px !important;
    box-shadow: #0c3a5738 0px 0px 5px !important;
    border-radius: 12px !important;

}


/* =========================================
   MODERN MINIMAL FOOTER (GLITCH FREE)
   ========================================= */
.kata-footer-wrap {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 70px 0 20px; /* More space top/bottom */
    margin-top: auto;
    position: relative;
    z-index: 10;
    overflow: hidden;
    border-radius:34px 34px 0 0;
}

.footer-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    /* This separates content to left and right */
    grid-template-columns: 1fr auto; 
    gap: 50px; /* Prevent clumping */
    align-items: start;
}

/* --- 1. CONTACT GROUP (Left Side) --- */
.footer-contact-group {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between rows */
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary, #666);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    /* GLITCH FIX: Do NOT use 'all' or 'transform' here */
    transition: color 0.3s ease; 
}

.contact-row i {
    color: var(--brand-primary, #0c3a57);
    font-size: 18px;
    background: #f4f7f9; /* Subtle pill background */
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* GLITCH FIX: Specific transition only */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover States */
.contact-row:hover {
    color: var(--brand-primary, #0c3a57);
}
.contact-row:hover i {
    background-color: var(--brand-primary, #0c3a57);
    color: #fff;
}

/* --- 2. SOCIAL ICONS (Right Side) --- */
.footer-socials {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 20px;
    /* GLITCH FIX: We removed 'transform' from transition so it doesn't fight GSAP on load */
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-btn:hover {
    border-color: var(--brand-primary, #0c3a57);
    background: var(--brand-primary, #0c3a57);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(12, 58, 87, 0.15);
}

/* --- 3. COPYRIGHT (Bottom) --- */
.footer-bottom {
    margin-top: 60px; /* Push away from content */
    padding-top: 25px;
    border-top: 1px solid #f5f5f5;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* --- CRITICAL: ANIMATION HIDDEN STATE --- */
/* We hide opacity but we DO NOT use transform here to avoid conflicts. 
   We will let GSAP handle the movement entirely. */
.footer-reveal {
    opacity: 0;
    visibility: hidden;
}

/* Safety Net */
.no-js .footer-reveal {
    opacity: 1 !important;
    visibility: visible !important;
}
.footer-bottom  p{
    margin-bottom:0 !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .footer-inner-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer-contact-group {
        align-items: center;
    }
    .footer-socials {
        justify-content: center;
    }
}


/* =========================================
   404 PAGE STYLES
   ========================================= */

/* Main Wrapper: Centers everything vertically and horizontally */
.kata-404-wrapper {
    min-height: 70vh; /* Takes up most of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    text-align: center;
    padding: 40px 20px;
}

.kata-404-container {
    max-width: 600px;
    width: 100%;
}

/* 1. The Big Number */
.error-code {
    font-size: 120px;
    line-height: 1;
    font-weight: 900;
    color: var(--brand-primary, #0c3a57); /* Brand Navy */
    opacity: 0.1; /* Subtle faded look */
    margin-bottom: -20px; /* Overlap slightly with title */
    user-select: none;
}

/* 2. The Title & Text */
.error-title {
    font-size: 32px;
    color: var(--brand-primary-dark, #0a2b45);
    margin-bottom: 15px;
    position: relative;
}

.error-desc {
    color: var(--text-secondary, #666);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* 3. Minimal Search Bar */
.error-search-box {
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.kata-minimal-search {
    position: relative;
    display: flex;
    align-items: center;
}

.kata-minimal-search .search-field {
    width: 100%;
    padding: 15px 20px;
    padding-left: 50px; /* Space for icon */
    border-radius: 50px; /* Pill shape */
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    font-size: 14px;
    transition: all 0.3s ease;
}

.kata-minimal-search .search-field:focus {
    background: #fff;
    border-color: var(--brand-primary, #0c3a57);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    outline: none;
}

.kata-minimal-search .search-submit {
    position: absolute;
    left: 10px; /* RTL: Icon on left */
    background: transparent;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.kata-minimal-search .search-submit:hover {
    color: var(--brand-primary, #0c3a57);
}

/* 4. Primary Button */
.btn-primary-404 {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--brand-primary, #0c3a57);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(12, 58, 87, 0.2);
}

.btn-primary-404:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(12, 58, 87, 0.3);
    color: #fff;
    background-color: var(--brand-primary-dark, #0a2b45);
}

/* --- ANIMATION PRE-STATE (Avoid Glitch) --- */
.kata-reveal {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
}

/* Fallback for no-js */
.no-js .kata-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}



/* --- PRODUCT TABS WRAPPER --- */
.kata-product-tabs-wrapper {
    margin: 50px 0;
    background: #fff;
    border-radius: 21px;
    border: 1px solid #eaeaea; /* Clean subtle border */
    overflow: hidden; /* Keeps rounded corners clean */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.tabs-main-title {
    background: #f8f9fa;
    padding: 20px;
    margin: 0;
    font-size: 20px;
    color: var(--brand-primary, #0c3a57);
    border-bottom: 1px solid #eaeaea;
}

/* --- ACCORDION BUTTON --- */
.kata-accordion-item {
    border-bottom: 1px solid #eee;
}
.kata-accordion-item:last-child {
    border-bottom: none;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    text-align: right; /* RTL Support */
    transition: background 0.3s ease;
    outline: none;
}

.accordion-trigger:hover {
    background-color: #fcfcfc;
}

.acc-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #333);
}

.acc-title i {
    color: var(--brand-accent, #f5a45d); /* Orange Icon */
    font-size: 20px;
}

/* Icon Rotation */
.acc-icon {
    color: #ccc;
    transition: transform 0.3s ease;
}
.accordion-trigger[aria-expanded="true"] .acc-icon {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

/* --- ACCORDION CONTENT --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth easing */
    background-color: #fff;
}

.accordion-inner-text {
    padding: 25px 30px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary, #555);
}

/* --- TABLE CLEANUP (For Ingredients) --- */
/* Removes the ugly default borders and spacing */
.accordion-inner-text table {
    width: 100%;
    border-collapse: collapse;
    border: none !important; 
    margin: 0;
}

.accordion-inner-text td, 
.accordion-inner-text th {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0 !important; /* Clean single line */
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.accordion-inner-text tr:last-child td {
    border-bottom: none !important;
}

.accordion-inner-text strong {
    color: var(--brand-primary, #0c3a57);
}

/* ... Existing CSS ... */

/* Update the title container to handle SVGs */
.accordion-trigger .acc-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #333);
}

/* Style the container for the SVG */
.acc-custom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Style the SVG itself */
.acc-custom-icon svg {
    width: 22px;
    height: 22px;
    stroke: #94a3b8;
    transition: stroke 0.3s ease;
}

/* Change color on hover */
.accordion-trigger:hover .acc-custom-icon svg {
    stroke: var(--brand-primary, #0c3a57); /* Navy Blue on hover */
}