/* =================================================
   Global Theme Color Variables
=================================================== */
:root {
	/* Base font size — adjust this to scale all headings */
  --font-base: 1.09rem;
  --h1-scale: 2.5;  /* 2.5 × base = 40px */
  --h2-scale: 2;    /* 2 × base = 32px */
  --h3-scale: 1.5;  /* 1.5 × base = 24px */
  --h4-scale: 1.25; /* 1.25 × base = 20px */
  --h5-scale: 1.125;/* 1.125 × base = 18px */
  --h6-scale: 1;    /* 1 × base = 16px */
	
  /* Bootstrap colors customization */
  --bs-primary: #293d5d;
  --bs-secondary: #293d5d;
  --bs-light: #000;
  --bs-dark: #000;
  --bs-body-bg: #ffffff;
  --bs-body-color: #666;
  --bs-primary-bg: #293d5d;
  --bs-link-color: #666;
  --bs-link-hover-color: #61b725;
  /* Custom branding colors */
  --ka-branding: #61b725;
  --ka-logo-color: #61b725;
  --ka-primary-bg: #ffffff;
  --ka-secondary-bg: #293d5d;
  --ka-text-color:#333333;	
  --ka-icon-color:#61b725;	
  --ka-border-color:#f1f1f1;
  --ka-light:#000000;
  --ka-main-nav-color:#666666;
	
  --ka-color-blue:#209cee;
  --ka-color-red:#e23a3a;
  --ka-color-green:#21ba45;
  --ka-color-orange:#ff9900;
  --ka-color-purple:#8854d0;
  --ka-color-test:#448c74;	
}

/* Dark Mode Theme Customization */
[data-bs-theme="dark"] {
  /* Bootstrap colors for dark theme */
  --bs-primary: #293d5d;
  --bs-secondary: #000;
  --bs-light: #000;
  --bs-dark: #343a40;
  --bs-body-bg: #121519;
  --bs-body-color: #999;
  --bs-link-hover-color: #61b725;
  /* Custom branding colors for dark mode */
  --ka-branding: #61b725;
  --ka-logo-color: #61b725;
  --ka-primary-bg: #000000;
  --ka-secondary-bg: #293d5d;
  --ka-text-color:#eaeaea;	
  --ka-icon-color:#61b725;
  --ka-border-color:#333333;
  --ka-light:#ffffff;

  --ka-main-nav-color:#666666;
	
  --ka-color-blue:#209cee;
  --ka-color-red:#e23a3a;
  --ka-color-green:#21ba45;
  --ka-color-orange:#ff9900;
  --ka-color-purple:#8854d0;
}

.ka-color-blue { background: var(--ka-color-blue); }
.ka-color-red { background: var(--ka-color-red); }
.ka-color-green { background: var(--ka-color-green); }
.ka-color-orange { background: var(--ka-color-orange); }
.ka-color-purple { background: var(--ka-color-purple); }
.ka-color-test { background: var(--ka-color-test); }

/* Some light color - #FFFFF0', '#FCFCF7', '#F2F8FC', '#FAF9F6', '#F4F1F8', '#F0F8FF', '#FBF5DF', '#F8F7F4', '#FDFDFD'*/

/* =================================================
   Global Styles
=================================================== */
/* html, body { overflow-x: hidden !important;} Layer parallax not work */ 


body { font-size:var(--font-base); font-family: 'Poppins', sans-serif;}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #222;
  margin: 0 0 0.6em;
}

h1 { font-size: calc(var(--font-base) * var(--h1-scale)); }
h2 { font-size: calc(var(--font-base) * var(--h2-scale)); }
h3 { font-size: calc(var(--font-base) * var(--h3-scale)); }
h4 { font-size: calc(var(--font-base) * var(--h4-scale)); }
h5 { font-size: calc(var(--font-base) * var(--h5-scale)); }
h6 { font-size: calc(var(--font-base) * var(--h6-scale)); }



a { color: var(--bs-link-color); text-decoration: none;}
a:hover { color: var(--bs-link-hover-color); text-decoration: none;}

hr { margin: 1rem 0; border: 0; border-top: solid 1px var(--ka-border-color)!important; color: none; opacity: 1;  height: 1px;}


section { padding: 80px 0;}
.ka-no-padding {padding: 0 !important;}


ul, ol { list-style: none; margin: 0;  padding: 0; margin-bottom: 15px;}
ul li {  position: relative;  padding-left: 1em;  /* adjust as needed */}
ul li::before { content: "•"; position: absolute; left: 0;  color:inherit;  font-size:1.4em;     /* bullet size */}

ol li {  position: relative; padding-left: 1.7em; /* Increase a bit for double digits */  counter-increment: custom-counter;}
ol li::before {  content: counter(custom-counter) ". ";  position: absolute;  left: 0;   color: inherit;  text-align: right;}
ol{counter-reset: custom-counter;}

/* =================================================
   Header and Logo Styling
=================================================== */
.header { line-height: 60px; background-color: var(--ka-primary-bg); border-bottom: solid 1px var(--ka-border-color)}

.logo svg { width: 180px; fill: var(--ka-logo-color);  cursor: pointer;}

/* =================================================
   Navigation Menu (Multi-level Menu)
=================================================== */

/* Top-level nav links styling * Default Toggler Icon */

.navbar-toggler {  border: none;line-height: 60px;}

/* Light Theme: black icon */
[data-bs-theme="light"] .navbar-toggler-icon {  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");}

/* Dark Theme: white icon */
[data-bs-theme="dark"] .navbar-toggler-icon {  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");}

.ka-nav .nav-link, .ka-nav { line-height: 60px;  font-weight: 500; color: var(--ka-main-nav-color)}

/* Nav link hover styling */
.ka-nav ul,
.ka-nav ol,
.ka-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ka-nav li::before { content: "";}

.ka-nav .nav-link:hover,.ka-nav .dropdown-item:hover {  color: var(--bs-link-hover-color) !important;}

/* Dropdown menu base styling */
.ka-nav .dropdown-menu {
  padding: 0px;
  margin-top: 0 !important;
  border: solid 1px var(--ka-border-color);
  border-top: none;
  border-radius:0px;
}

/* Dropdown items styling */
.ka-nav .dropdown-menu .dropdown-item {
  padding: 10px 16px;
  font-weight: 500;	
  line-height: 30px;
  color:var(--ka-main-nav-color);
  background-color: var(--ka-primary-bg);
  border-bottom: solid 1px var(--ka-border-color);
}

/* Add space between dropdown items */
.ka-nav .dropdown-menu .dropdown-item + .dropdown-item {
  margin-top: 0px;
}

/* Dropdown visibility behavior */
.ka-nav .dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Show dropdown on hover with animation */
.ka-nav .dropdown:hover > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Transition for links and items */
.ka-nav .nav-link,
.ka-nav .dropdown-item {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Current active menu item */
.ka-nav .current_page_item > a {
  color: var(--bs-link-hover-color);
}

/* =================================================
   Hero Section
=================================================== */
/* ─── Hero Section ─── */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 87vh; /* ✅ Important: set a proper minimum height */
  background: linear-gradient(135deg, #ffe4e1, #e0f7fa);
  overflow: hidden;
}

/* Background Image */
.hero-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain; /* ✅ Fit inside without cropping */
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Text Content */
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 2rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
}

/* Hero Text Styling */
.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: #f8f9fa;
  margin: 0;
}

/* Hide text on Mobile */
@media (max-width: 767.98px) {
  .hero-content {
    display: none !important;
  }

  .hero-section {
    min-height: 300px; /* smaller height on mobile */
  }
	.hero-bg {
    background-position: center bottom;
  }
}



/* =================================================
   Page Header Section
=================================================== */
.page-header {
  padding: 2.5rem 0;
  text-align: center;
  border-bottom: solid 1px var(--ka-border-color);
}

.page-header h1 {
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
  font-weight: 900;
  line-height: 1.08;
  word-break: break-word;
}

.page-header p {
  color: #555555;
  font-size: 1.1rem;
  margin: 0;
}

/* --- Responsive Styles --- */

@media (max-width: 600px) {

  .page-header h1 {
    font-size: 3rem;
  }
}

/* =================================================
   Page Content
=================================================== */
.page-content{}
.layer-content{
		position: sticky;
		top: 100px; /* stops 100px from the top (below header) */
		width: 100%;
		z-index: 1;
		border-radius: 40px;
		min-height: 300px;
		background-size: cover; 
		background-position: center center;
    }
.layer-overlay { position: sticky;
		top: 90px; /* stops 100px from the top (below header) */
		width: 100%;
		z-index: 1;
		min-height: 300px;
		background-size: cover; 
		background-position: center center;
		background: var(--bs-body-bg);

}
/* =================================================
   Single Post Content
=================================================== */
.single-post-content{}

/* =================================================
   Single Post Navigation
=================================================== */
/*Tmeme Pagination */
.container .navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Left alignment */
.pagination-left .navigation.pagination .nav-links {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Right alignment */
.pagination-right .navigation.pagination .nav-links {
  justify-content: flex-end !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Center alignment (redundant, but keeps things explicit) */
.pagination-center .navigation.pagination .nav-links {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.navigation.pagination {
  margin: 2.5rem 0 2rem 0;
  text-align: center!important;
  width: 100%;
}

/* Pagination Links Wrapper */
.navigation .nav-links {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Individual Page Numbers */
.page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ka-light);
  font-weight: 500;
  text-decoration: none;
  font-size: 1.05rem;
  border: 1.5px solid var(--ka-icon-color);
  transition: 
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.25s;
  box-shadow: 0 1px 6px 0 #0001;
  position: relative;
}

/* Current Page */
.page-numbers.current {
  background: var(--ka-icon-color);
  color: var(--ka-light);
  box-shadow: 0 2px 8px 0 #38b6ff33;
  cursor: default;
  z-index: 1;
}

/* Hover Effect */
.page-numbers:not(.current):hover,
.page-numbers:not(.current):focus {
  background: var(--ka-icon-color);
  color: var(--ka-light);
  box-shadow: 0 2px 8px 0 #38b6ff22;
  text-decoration: none;
}

/* Prev/Next Arrows */
.page-numbers.prev,
.page-numbers.next {
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ka-light);
  min-width: 60px;
  border-radius: 20px;
}

/* Optional: Responsive adjustment for mobile */
@media (max-width: 500px) {
  .navigation.pagination {
    text-align: center !important;
  }
  .navigation .nav-links {
    display: flex !important;           /* Not inline-flex! */
    justify-content: center !important; /* Center always */
    align-items: center;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0.15rem;
  }
  .page-numbers {
    min-width: 32px;
    padding: 7px 7px;
    font-size: 0.95rem;
  }
}


.post-navigation{ border: solid 1px var(--bs-border-color); border-left: none; border-right: none; padding: 10px 0 }

.post-navigation-modern { border: 1px solid var(--bs-border-color); overflow: hidden;  border-radius: 3px;}
.post-navigation-modern { gap: 20px;}
.arrow-box { overflow: hidden;  position: relative;  background:var(--ka-border-color);;  color: #fff;  width: 70px;  height: 100%;  text-decoration: none;}
.arrow-box .arrow { font-size: 2rem;  display: inline-block;  transition: none;}
.arrow-box:hover .arrow {  animation: contentMoveRotate 0.7s ease forwards;}
.next.arrow-box:hover .arrow {  animation: contentMoveRotateReverse 0.7s ease forwards;}

/* Keyframes for Previous (←) */
@keyframes contentMoveRotate {
  0% { transform: translateX(0); opacity: 1; }
  40% { transform: translateX(-150%); opacity: 0; }
  41% { transform: translateX(150%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Keyframes for Next (→) */
@keyframes contentMoveRotateReverse {
  0% { transform: translateX(0); opacity: 1; }
  40% { transform: translateX(150%); opacity: 0; }
  41% { transform: translateX(-150%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.post-navigation-modern {
  border: 1px solid var(--bs-border-color);
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  margin-top: 2rem; /* adjust as needed */
}

/* Each nav item flexes to 50% */
.post-navigation-modern .post-nav-item {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  min-height: 100px;
}

/* Vertical divider on desktop */
@media (min-width: 768px) {
  .post-navigation-modern .prev {
    border-right: 1px solid var(--bs-border-color);
  }
}
/* Horizontal divider on mobile */
@media (max-width: 767.98px) {
  .post-navigation-modern {
    flex-direction: column;
  }
  .post-navigation-modern .post-nav-item + .post-nav-item {
    border-top: 1px solid var(--bs-border-color);
  }
}

/* Arrow-box styling */
.post-navigation-modern .arrow-box {
  background: var(--ka-border-color);
  color: #fff;
  width: 70px;       /* fixed width */
  height: 100%;      /* full height of parent */
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

/* Arrow icon */
.post-navigation-modern .arrow-box .arrow {
  font-size: 2rem;
  display: inline-block;
  transition: none;
}

/* Hover animation for Prev */
.post-navigation-modern .arrow-box:hover .arrow {
  animation: contentMoveRotate 0.7s ease forwards;
}
/* Hover animation for Next */
.post-navigation-modern .post-nav-item.next .arrow-box:hover .arrow {
  animation: contentMoveRotateReverse 0.7s ease forwards;
}

/* Keyframes for Previous (←) */
@keyframes contentMoveRotate {
  0%   { transform: translateX(0);    opacity: 1; }
  40%  { transform: translateX(-150%); opacity: 0; }
  41%  { transform: translateX(150%);  opacity: 0; }
  100% { transform: translateX(0);     opacity: 1; }
}
/* Keyframes for Next (→) */
@keyframes contentMoveRotateReverse {
  0%   { transform: translateX(0);     opacity: 1; }
  40%  { transform: translateX(150%);  opacity: 0; }
  41%  { transform: translateX(-150%); opacity: 0; }
  100% { transform: translateX(0);     opacity: 1; }
}

/* Info section padding */
.post-navigation-modern .info {
  padding: 1rem;
}
.post-navigation-modern .info h5 {
  margin: 0;
}
.post-navigation-modern .info small {
  display: block;
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}
.post-navigation-modern .info a {
  font-weight: bold;
  color: inherit;
  text-decoration: none;
}
.post-navigation-modern .info a:hover {
  text-decoration: underline;
}

/* =================================================
   Blog Section
=================================================== */
.blog-card { background: var(--ka-primary-bg); }
/* No background or extra padding on the outer wrapper */
.feature-image-box {
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.feature-content-box {
  background: var(--ka-primary-bg);
  border-radius: 24px;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.12);
  padding:32px;
}

.feature-content-center {
  width: 100%;
}

.feature-content-box {
  position: relative;
  transition: box-shadow 0.2s;
  z-index: 1;
}

/* The animated sparkle border */
.feature-content-box {
  position: relative;
  overflow: visible;
  /* Optional: Make sure z-index is above the background */
  z-index: 1;
}

/* Create the border with ::before */
.feature-content-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 2px solid #38b6ff;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  /* Start with the border not visible */
  transition: opacity 0.15s;
}

/* The animated line is drawn with ::after */



/* =================================================
   Footer Section
=================================================== */
footer {
  background-color: var(--ka-primary-bg);
  border-top: solid 1px var(--ka-border-color);
  text-align: center;
  padding: 1.5rem 0;
  color: #777777;
}

/* =================================================
   Row Wrapper Helper Class
=================================================== */
.row-wrapper {
  overflow-x: hidden;
  position: relative; /* Important for sticky elements or safe layout */
}

/* ==============================
Breadcrumb Styling
============================== */
.ka-breadcrumb-wrapper {text-align: center; margin: 0px 0;}

.ka-breadcrumb { display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 8px;  flex-wrap: wrap;}

.ka-breadcrumb li {font-size: 16px; color: var(--bs-body-color);}

.ka-breadcrumb li::after { content: "›";  margin: 0 6px; color: #aaa;}

.ka-breadcrumb li:last-child::after {content: ""; }

.ka-breadcrumb a { color: var(--bs-link-color); text-decoration: none;  transition: color 0.3s ease;}

.ka-breadcrumb a:hover { color: var(--bs-link-hover-color);  text-decoration:none;}

/* ==============================
Post Navigation Styling
============================== */
.post-nav-box {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border: 1px solid #dadada;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: all 0.3s ease;
  max-width: 45%;
  min-width: 220px;
}

.post-nav-box:hover {
  background: var(--bs-primary);
  color: #ffffff;
  border-color: var(--bs-primary);
}

.post-nav-box small {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.post-nav-box span {
  display: block;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Optional: for better spacing on mobile */
@media (max-width: 768px) {
  .post-nav-box {
    max-width: 100%;
    width: 100%;
  }
}


/* ==============================
Patterns 
============================== */
.profile-card {
  padding: 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
}
.profile-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}
/* ==============================
FAQ SECTION
============================== */
  .faq-item { padding-right: 0.5rem; /* adjust as needed (0.5rem = 8px) */ }

  .faq-box {
    width: 80px;
    height: 80px;
    font-size: 1.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
	  
  }

  /* Style for the (+)/(–) inside the square */
.toggle-btn {
  position: relative;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.toggle-btn::after {
  content: '+';
  font-size: 2rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.toggle-btn:not(.collapsed)::after {
  transform: rotate(45deg); /* visually turns + into – */
}


  /* Smooth collapse/expand animation */
  .collapse:not(.show) {
    display: block;
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
  }
  .collapse.show {
    height: auto;
    transition: height 0.4s ease;
  }
.faq-q { background: #2A2A2A; color: #fff; }
.faq-a { background: var(--ka-icon-color); color: #fff; }

/* ==============================
Post Shortcode 
============================== */

.ka-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 36px; margin: 30px 0; }
.ka-post-card { background: var(--ka-primary-bg); border-radius: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 24px 18px; text-align: center; transition: box-shadow .2s; }
.ka-post-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.11); }
.ka-post-icon { font-size: 34px; margin-bottom: 16px; color: var(--ka-icon-color);}
.ka-post-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.ka-post-link { display: inline-block; padding: 6px 20px; background:var(--ka-icon-color); color: #fff; border-radius: 20px; font-size: 0.98rem; text-decoration: none; transition: background .2s;}
.ka-post-link:hover { color: var(--ka-bg-light); }
