/* 
Theme Name: wpCodex
Theme URI: https://www.wpcodex.com/
Author: wpCodex
Description: Simple theme with header, footer, right sidebar, and dropdown menu.
Version: 1.0
*/

/* ===== General Reset ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
  overflow-x: hidden; /* prevent horizontal scroll */
font-size: 15px;	
}
p { font-size: 15px; }
a {
  color: #1e73be;               /* nice blue tone */
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: normal;
	font-size:15px;		
}

a:hover {
  color: #0a2540;               /* darker blue on hover */
  text-decoration: underline;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

h1, h2, h3, h4 {
  color: #0a2540;
}


/* ===== Header ===== */
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: center; /* center logo & toggle horizontally */
  align-items: center;
  position: relative;
  gap: 40px;
}

.site-logo {
  max-width: 200px;
  flex-shrink: 0;
}

.site-logo img, div {
    max-width: 100%;
    height: auto;
    display: block;
}




/* ===== Sidebar Styling ===== */
.site-content {
  display: flex;
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
  padding: 0 20px;
 background-color: #fff; 
}

.content-area {
  flex: 3;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.widget-area {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  min-width: 250px;
}

.widget {
  margin-bottom: 20px;
}

.widget-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
  color: #333;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
}

.widget ul li a:hover {
  color: #0a2540;
  padding-left: 5px;
}

/* ===== Post Listing Styling ===== */
article.post {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 30px;
  padding: 25px 30px;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

article.post:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,.3);
}

.entry-header h2.entry-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.entry-header h2.entry-title a {
  color: #0a2540;
  text-decoration: none;
font-weight:bold;
font-size:18px;	
  transition: color 0.3s ease;
}

.entry-header h2.entry-title a:hover {
  color: #0a2540;
  text-decoration: underline;
}

.entry-summary p {
  line-height: 1.6;
  font-size: 1rem;
  color: #555;
}

.entry-summary p a {
  color: #0a2540;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-summary p a:hover {
  color: #0a2540;
  text-decoration: underline;
}

/* ===== Pagination Styling ===== */
.pagination {
  text-align: center;
  margin: 40px 0;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #0a2540;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.pagination .page-numbers.current {
  background-color: #0a2540;
  color: #fff;
  border-color: #0a2540;
  cursor: default;
}

.pagination .page-numbers:hover:not(.current) {
  background-color: #e6f2ff;
}

/* ===== Responsive Styles ===== */







@media (max-width: 768px) {
 
  /* New responsive layout for content and sidebar */
  .content-area,
  .sidebar-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Stack sidebar below content */
  .content-sidebar-wrapper {
    display: flex;
    flex-direction: column;
  }

  /* Make images responsive */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  
  
  
  .site-content {
    flex-direction: column;
    padding: 0px;
  }
  .content-area,
  .sidebar {
    width: 100% !important;
    margin: 0;
    padding: 10;
  }

  /* Center post thumbnail and make it responsive */
  .post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Adjust entry title padding & alignment for small screens */
  .entry-header .entry-title {
    font-size: 1.8em;
    padding: 0 10px;
  }

  .entry-content {
    padding: 0 10px;
  }

  /* Optional: add some margin below post thumbnail */
  .post-thumbnail {
    margin-bottom: 15px;
  }  
  
 
  
}


.form-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  resize: vertical;
}

.form-submit {
  background-color: #0a2540;
  color: #fff;
  padding: 10px 25px;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: #005177;
}

.recaptcha {
  display: block;
  margin: 10px 0;
}




.site-footer a:hover {
  text-decoration: underline; /* optional: underline on hover */
}




/* Style for inline code */
code {
    background-color: #f5f5f5;  /* Light gray background */
    color: #c7254e;             /* Text color */
    font-family: "Courier New", Courier, monospace; /* Monospace font */
    font-size: 0.95em;          /* Slightly smaller text */
    padding: 2px 4px;           /* Small padding */
    border-radius: 4px;         /* Rounded corners */
}

/* Style for code blocks */
pre code {
    display: block;
    background-color: #2d2d2d;  /* Dark background for blocks */
    color: #f8f8f2;             /* Light text color */
    padding: 15px;
    overflow-x: auto;           /* Horizontal scroll if code is long */
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.5em;
}

/* Optional: Add a border for inline code */
code.inline-code {
    border: 1px solid #ddd;
}



/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 20px 0;
  background-color: #0a2540;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #fff !important;
  text-decoration: none; /* optional: remove underline from links */
}



/*new look */
/* ---------------------------
   Shared / Base Styles
   ---------------------------*/

/* Reset list styles */
.pms-form ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Form wrapper (card style) */
.pms-form,
#pms_login.pms-form {
  max-width: 900px;
  margin: 40px auto;
  padding: 25px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}

/* Narrower login & reset forms */
#pms_login.pms-form {
  max-width: 420px;
}
.reset-password-form.pms-form {
  max-width: 420px;
}

/* Section wrapper */
.pms-account-section-wrapper {
  margin-bottom: 20px;
}

/* Field wrappers */
.pms-form li {
  margin-bottom: 16px;
  padding-right: 20px;
  max-width: 420px;
  box-sizing: border-box;
}

/* Labels */
.pms-form label,
#pms_login label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* Inputs */
.pms-form input[type="text"],
.pms-form input[type="email"],
.pms-form input[type="password"],
#pms_login input[type="text"],
#pms_login input[type="password"],
.reset-password-form input[type="text"],
.reset-password-form input[type="password"],
.reset-password-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.22s ease;
  background: #fafafa;
  box-sizing: border-box;
}

.pms-form input:focus,
#pms_login input:focus,
.reset-password-form input:focus {
  outline: none;
  border-color: #0a2540;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(12, 144, 229, 0.15);
}

/* ---------------------------
   Buttons (Register, Login, Reset Password)
   ---------------------------*/
input[type="submit"][name="wp-submit"],
input[type="submit"][name="pms_register"],
.pms-form-submit,input[type="submit"][name="pms_edit_profile"],input[type="submit"][name="pms_new_subscription"],input[type="submit"][name="pms_change_subscription"],input[type="submit"][name="pms_redirect_back"],input[type="submit"][name="pms_confirm_abandon_subscription"],input[type="submit"][name="pms_confirm_retry_payment_subscription"], 
#pms_login .login-submit input[type="submit"] {
  width: 100%;
  max-width: 420px;
  background: #0a2540;
  color: #fff;
  border: none;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.24s ease, transform 0.12s ease;
  display: inline-block;
  box-sizing: border-box;
	margin-top:20px;
}

input[type="submit"][name="wp-submit"]:hover,
input[type="submit"][name="pms_register"]:hover,
.pms-form-submit:hover,
#pms_login .login-submit input[type="submit"]:hover {
  background: #3a7bc4;
  transform: translateY(-1px);
}

input[type="submit"][name="wp-submit"]:active,
input[type="submit"][name="pms_register"]:active,
.pms-form-submit:active,
#pms_login .login-submit input[type="submit"]:active {
  transform: translateY(1px);
}

/* ---------------------------
   Login Specific
   ---------------------------*/

/* Remember me */
#pms_login .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}
#pms_login .login-remember input[type="checkbox"] {
  accent-color: #0a2540;
  transform: scale(1.06);
  margin: 0;
  width: 18px;
  height: 18px;
}

/* Extra links */
#pms_login .login-extra {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: #666;
}
#pms_login .login-extra a {
  color: #0a2540;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.16s ease;
}
#pms_login .login-extra a:hover {
  color: #2e5d99;
}
#pms_login .login-extra .separator {
  margin: 0 8px;
  color: #999;
}

/* ---------------------------
   Subscription Plan Box
   ---------------------------*/
.pms-subscription-plan {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #f9fafc;
  font-size: 14px;
  color: #444;
  max-width: 420px;
  box-sizing: border-box;
}
.pms-subscription-plan-name {
  font-weight: 700;
  color: #222;
}
.pms-subscription-plan-price {
  font-weight: 600;
  color: #0a2540;
}

/* ---------------------------
   Responsive
   ---------------------------*/
@media (max-width: 480px) {
  .pms-form,
  #pms_login.pms-form,
  .reset-password-form.pms-form {
    padding: 18px;
    margin: 20px;
    border-radius: 12px;
    max-width: 100%;
  }
  .pms-form li {
    padding-right: 0;
    max-width: 100%;
  }
  .pms-form-submit,
  #pms_login .login-submit input[type="submit"],
  input[type="submit"][name="wp-submit"] {
    max-width: 100%;
  }
  .pms-subscription-plan {
    max-width: 100%;
    padding: 12px;
  }
}

/* ---------------------------
   Accessibility
   ---------------------------*/
:focus-visible {
  outline: 3px solid rgba(12,144,229,0.18);
  outline-offset: 2px;
}

/* ---------------------------
   Account Navigation
   ---------------------------*/
.pms-account-navigation {
  max-width: 900px;
  margin: 30px auto 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: auto;
}

.pms-account-navigation ul {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pms-account-navigation li {
  flex: 1;
  text-align: center;
  border-right: 1px solid #f0f0f0;
background-color: lightgray;	
}

.pms-account-navigation li:last-child {
  border-right: none;
}

.pms-account-navigation a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 12px 12px 0 0;
}

.pms-account-navigation a:hover {
  background: #f5faff;
  color: #0a2540;
}

/* Active tab */
.pms-account-navigation a.pms-account-navigation-link--active,
.pms-account-navigation a[aria-current="page"] {
  background: #0a2540;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 600px) {
  .pms-account-navigation ul {
    flex-direction: column;
  }
  .pms-account-navigation li {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }
  .pms-account-navigation li:last-child {
    border-bottom: none;
  }
  .pms-account-navigation a {
    border-radius: 0;
    text-align: left;
    padding: 12px 16px;
  }
}
.site-main { width:100%;}

/* Form Wrapper */
.row {
  margin: 0 auto;
  max-width: 800px;
  padding: 20px;
}

/* Form Group Spacing */
.form-group {
  margin-bottom: 20px;
}

/* Input Fields */
.form-control,
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  background-color: #fff;
  box-sizing: border-box;
}

.form-control:focus,
textarea:focus,
select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
  outline: none;
}

/* Textarea */
textarea {
  resize: vertical;
}


/* Dropdown */
select {
  cursor: pointer;
  background-color: #fff;
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #0066cc;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background-color: #004d99;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}




/* Responsive */
@media (max-width: 768px) {
  .row {
    padding: 15px;
  }

  .btn {
    width: 100%;
  }
}

.single-entry-content {
    font-size: 15px !important;
    line-height: 23px !important;
    color: #555;
    text-align: justify;
    margin-bottom: 60px;
}


.woocommerce #reviews #comments ol.commentlist li .comment-text {
    width: 90%;
}

.woocommerce #payment #place_order, .woocommerce-page #payment #place_order, #add_payment_method .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button,
.woocommerce div.product form.cart .button {
    background: #0a2540;
}

/* Hover Color */
.woocommerce #payment #place_order:hover, .woocommerce-page #payment #place_order:hover, #add_payment_method .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce div.product form.cart .button:hover {
    background: #d4af37; 
}


/* Inputs / selects / textareas */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: 0.2s;
    font-size: 15px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* Vertical menu spacing */
.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 10px;
}

/* Links style */
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 15px;
    background: #f8f9fb;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    color: #0a2540;
    font-weight: 600;
    transition: 0.25s ease;
}

/* Hover effect */
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #0a2540;
    color: #fff;
    border-color: #0a2540;
}

/* Active tab highlight */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #0a2540;
    color: #fff !important;
    border-color: #0a2540;
}

/* Add subtle shadow */
.woocommerce-MyAccount-navigation ul li a {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border: 1px solid #333;
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #333;
    padding: 8px 10px;
    text-align: left;
}




















