/*
Theme Name: Gtech Microfinance Software
Theme URI: https://yoursite.com/microfinancesoftware
Author: Chiranjit Gayen
Author URI: https://yoursite.com
Description: A custom WordPress theme for microfinance software with advanced admin controls
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: microfinancesoftware
Tags: microfinance, business, finance, custom-admin
*/


@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1240px;
    }
}

.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 20px auto; text-align: center; }

/* Container: aligns input and button in a row */
.search-form {
    display: flex;
    max-width: 500px;
    width: 100%;
    margin: 20px auto;
}

/* Ensure the label/wrapper takes up all available space */
.search-form label {
    flex-grow: 1;
    display: block;
}

/* Input field styling */
.search-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-right: none; /* Join with button */
    border-radius: 8px 0 0 8px; /* Rounded left corners only */
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* Prevents padding from breaking width */
}

/* Change border color on focus */
.search-field:focus {
    border-color: #0073aa; /* Standard WordPress blue */
}

/* Submit button styling */
.search-submit {
    padding: 12px 24px;
    background-color: #0073aa;
    color: #ffffff;
    border: 2px solid #0073aa;
    border-radius: 0 8px 8px 0; /* Rounded right corners only */
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

/* Button hover effect */
.search-submit:hover {
    background-color: #005177;
    border-color: #005177;
}

/* Screen reader text (Accessibility) - keeps it hidden but readable by tools */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* *****Error-Search-Form***** */
.error-search-form {
    margin-bottom: 24px;
}
.error-search-form .search-box {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}
.error-search-form .form-control {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e2e5e9;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.error-search-form .form-control:focus {
    border-color: #e74c3c;
}

/* ===== CSS Variables ===== */
/* :root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #3498db;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --text-color: #333;
  --text-light: #777;
  --bg-color: #f5f5f5;
  --white: #ffffff;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
} */

/* ===== Reset & Base Styles ===== */
/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
} */

/* ===== Container ===== */
/* .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
} */

/* ===== Header Styles ===== */
/* .site-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.site-branding {
  flex: 0 0 auto;
}

.site-title {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
}

.site-title a {
  color: var(--white);
}

.site-title a:hover {
  color: var(--accent-color);
}

.site-description {
  font-size: 14px;
  opacity: 0.8;
  margin: 5px 0 0;
}

.custom-logo {
  max-height: 60px;
  width: auto;
} */

/* ===== Navigation ===== */
/* .main-navigation {
  flex: 1;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  color: var(--white);
  padding: 10px 18px;
  display: block;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(255, 255, 255, 0.15);
} */

/* Dropdown Menu */
/* .main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary-color);
  min-width: 220px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  border-radius: 4px;
  margin-top: 5px;
}

.main-navigation li:hover > ul {
  display: flex;
}

.main-navigation ul ul li {
  width: 100%;
}

.main-navigation ul ul a {
  padding: 12px 20px;
  border-radius: 0;
}

.main-navigation ul ul a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 25px;
} */

/* Mobile Menu Toggle */
/* .menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  align-items: center;
  gap: 8px;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-icon {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--white);
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.menu-icon::before {
  top: -6px;
}
.menu-icon::after {
  bottom: -6px;
}

.menu-toggle.active .menu-icon {
  background: transparent;
}

.menu-toggle.active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
} */

/* Header Contact Info */
/* .header-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.header-phone,
.header-email {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-contact-info a {
  color: var(--white);
}

.header-contact-info .icon {
  font-size: 16px;
} */

/* ===== Breadcrumbs ===== */
/* .breadcrumbs {
  background: var(--white);
  padding: 15px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
  color: var(--text-light);
}

.breadcrumbs a:hover {
  color: var(--accent-color);
}

.breadcrumbs .current {
  color: var(--text-color);
  font-weight: 600;
} */

/* ===== Main Content ===== */
/* .site-main {
  flex: 1;
  padding: 40px 0;
}

.content-area {
  flex: 1;
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-area.full-width {
  width: 100%;
}

.container > .content-area {
  display: flex;
  gap: 30px;
} */

/* ===== Posts Listing ===== */
/* .posts-wrapper {
  display: grid;
  gap: 30px;
}

.post-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
}

.post-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-content-wrapper {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.entry-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.entry-title a {
  color: var(--primary-color);
}

.entry-title a:hover {
  color: var(--accent-color);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.entry-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.entry-meta a {
  color: var(--text-light);
}

.entry-meta a:hover {
  color: var(--accent-color);
}

.entry-summary,
.entry-content {
  color: var(--text-color);
  margin-bottom: 20px;
  flex: 1;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.entry-content ul,
.entry-content ol {
  margin: 1em 0 1em 2em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-light);
}

.entry-content img {
  border-radius: 8px;
  margin: 20px 0;
}

.entry-footer {
  margin-top: auto;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid var(--accent-color);
  border-radius: 4px;
  transition: var(--transition);
}

.read-more:hover {
  background: var(--accent-color);
  color: var(--white);
} */

/* ===== Pagination ===== */
/* .pagination,
.navigation {
  margin: 40px 0;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-color);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links .current {
  background: var(--accent-color);
  color: var(--white);
  border-color: var(--accent-color);
} */

/* ===== Sidebar ===== */
/* .widget-area {
  width: 350px;
  flex-shrink: 0;
}

.widget {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul a {
  color: var(--text-color);
  display: block;
  transition: var(--transition);
}

.widget ul a:hover {
  color: var(--accent-color);
  padding-left: 5px;
} */

/* Search Widget */
/* .widget .search-form {
  position: relative;
}

.widget .search-field {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

.widget .search-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
} */

/* ===== Footer ===== */
/* .site-footer {
  background: var(--secondary-color);
  color: var(--white);
  margin-top: auto;
}

.footer-widgets {
  padding: 50px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-widget {
  color: rgba(255, 255, 255, 0.8);
}

.footer-widget h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 10px;
}

.footer-widget a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
  color: var(--white);
}

.footer-info {
  padding: 40px 0;
}

.footer-info-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-contact h3,
.footer-social h3,
.footer-menu h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-contact p {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a,
.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover,
.footer-menu a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-color);
}

.social-link .icon {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-weight: bold;
}

.site-info {
  background: rgba(0, 0, 0, 0.2);
  padding: 25px 0;
  text-align: center;
  font-size: 14px;
}

.copyright-wrapper p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.8);
}

.copyright-wrapper a {
  color: var(--white);
} */

/* ===== Buttons ===== */
/* .btn-primary,
button[type='submit'],
input[type='submit'] {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover,
button[type='submit']:hover,
input[type='submit']:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
} */

/* ===== Forms ===== */
/* input[type='text'],
input[type='email'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='number'],
input[type='tel'],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
} */

/* ===== Comments ===== */
/* .comments-area {
  margin-top: 50px;
  padding-top: 50px;
  border-top: 2px solid var(--border-color);
}

.comments-title {
  margin-bottom: 30px;
}

.comment-list {
  list-style: none;
}

.comment {
  margin-bottom: 30px;
  padding: 25px;
  background: var(--bg-color);
  border-radius: 8px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.comment-author img {
  border-radius: 50%;
}

.comment-metadata {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.comment-content {
  margin-bottom: 15px;
}

.reply {
  font-size: 14px;
}

.reply a {
  color: var(--accent-color);
  font-weight: 600;
}

.children {
  list-style: none;
  margin-left: 40px;
  margin-top: 20px;
}

.comment-form {
  margin-top: 40px;
}

.comment-form-comment textarea {
  min-height: 150px;
} */

/* ===== Back to Top Button ===== */
/* .back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow);
  z-index: 999;
  transition: var(--transition);
}

.back-to-top:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
} */

/* ===== Page Header ===== */
/* .page-header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.page-title {
  color: var(--white);
  margin: 0;
}

.archive-description {
  margin-top: 15px;
  opacity: 0.9;
} */

/* ===== Author Info ===== */
/* .author-info {
  display: flex;
  gap: 25px;
  margin-top: 50px;
  padding: 30px;
  background: var(--bg-color);
  border-radius: 8px;
}

.author-avatar img {
  border-radius: 50%;
}

.author-details {
  flex: 1;
}

.author-name {
  margin-bottom: 10px;
} */

/* ===== 404 Page ===== */
/* .error-404-content {
  text-align: center;
  padding: 60px 20px;
}

.error-404-search {
  max-width: 600px;
  margin: 40px auto;
}

.error-404-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
  text-align: left;
}

.widget-column h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.widget-column ul {
  list-style: none;
}

.widget-column ul li {
  margin-bottom: 10px;
}

.back-to-home {
  margin-top: 40px;
} */

/* ===== Responsive Design ===== */
/* @media (max-width: 1024px) {
  .header-wrapper {
    flex-wrap: wrap;
  }

  .header-contact-info {
    order: -1;
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-color);
    padding: 80px 20px 20px;
    transition: var(--transition);
    z-index: 9999;
    overflow-y: auto;
  }

  .main-navigation.toggled {
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .main-navigation ul {
    flex-direction: column;
  }

  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    margin: 5px 0;
    display: none;
  }

  .main-navigation li:hover > ul {
    display: flex;
  }

  .header-contact-info {
    font-size: 12px;
  }

  .container > .content-area {
    flex-direction: column;
  }

  .widget-area {
    width: 100%;
  }

  .footer-info-wrapper {
    grid-template-columns: 1fr;
  }

  .author-info {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .site-main {
    padding: 20px 0;
  }

  .content-area {
    padding: 20px;
  }

  .post-content-wrapper {
    padding: 20px;
  }

  .entry-meta {
    flex-direction: column;
    gap: 8px;
  }
} */

/* ===== Utility Classes ===== */
/* .text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.alignleft {
  float: left;
  margin-right: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
} */
