﻿/* =========================================
   WWCPA Site Styles
   ========================================= */

/* Base */
body {
  background-color: #3399ff !important;
  text-align: center;
  margin: 0;
  padding: 0;
}

p {
  font-size: 16px;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
}

#para {
  font-size: 14px;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
}

/* ---- Layout Container ---- */
.center-content {
  display: block;
  background-color: white;
  box-sizing: border-box;
  width: 98vw;
  margin-left: 1vw;
  margin-right: 1vw;
  margin-top: 0.5vw;
  margin-bottom: 1.15vw;
}

.center-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.center-table td {
  padding: 10px;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ---- Logo / Header ---- */
.logo-container {
  display: flex;
  justify-content: center;
  background-color: white;
  margin-top: 0;
}

.logo-container a img {
  border: none;
  max-width: 100%;
  height: auto;
}

/* Top section: logo + nav  provides top, left, right borders only */
.directors-table-style-logo {
  background-color: white;
  border-top: 1px solid black;
  border-left: 1px solid black;
  border-right: 1px solid black;
  margin-top: 0;
}

/* Middle section: content  left and right borders only;
   top comes from logo table above, bottom from footer below */
.directors-table-style {
  background-color: white;
  border-left: 1px solid black;
  border-right: 1px solid black;
  margin-bottom: 0;
}

.directors-table-style td {
  vertical-align: top;
}

/* Remove cellpadding bottom gap on last row before footer */
.directors-table-style tr:last-child td {
  padding-bottom: 0;
}

/* Remove Bootstrap trailing margin on last block element in content cell */
.directors-table-style td > *:last-child {
  margin-bottom: 0;
}

/* ---- Navigation ---- */
/* Override Bootstrap's display:flex on .navbar — our nav is block layout */
.navbar {
  display: block !important;
  width: 100% !important;
  text-align: center;
}

.navbar ul {
  text-align: center;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.navbar li {
  margin: 3px 5px;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  font-size: 15px;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  color: #3399ff;
  font-weight: bold;
}

.navbar a:hover {
  color: white;
  background-color: #3399ff;
  padding: 3px;
  border-radius: 5px;
}

.navcontainer {
  width: 100%;
  max-width: 1100px;
  padding: 6px 14px;
  margin: 0 auto;
  background-color: white;
  box-sizing: border-box;
}

.current-page {
  text-decoration: underline !important;
  background-color: #3399ff;
  color: white !important;
  padding: 3px !important;
  border-radius: 5px;
}

/* ---- Typography ---- */
.custom-font,
.custom-font td {
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  font-size: 16px;
  color: #660000;
}

.custom-font-return {
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  font-size: 14px;
  color: #660000;
}

/* ---- Alignment Utilities ---- */
.center-text  { text-align: center; }
.right-text   { text-align: right; }

.left-align {
  text-align: left;
  display: block;
  margin-left: 0;
  margin-right: auto;
  width: fit-content;
}

.right-align {
  text-align: right;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.center-row {
  text-align: center;
  margin-left: auto;
}

/* Long URLs/emails inside table cells must wrap, not overflow */
.center-table td a {
  overflow-wrap: break-word;
}

/* ---- Directors Table ---- */
tr:nth-child(odd) { background-color: #f2f2f2; }

/* ---- Articles / By-Laws ---- */
.tr-articles-section-style {
  vertical-align: top;
  margin-left: 10px;
}

.td-articles-sectionTitle-style {
  width: 110px;
  background-color: #ccffff !important;
  text-align: left;
  vertical-align: top;
}

.td-articles-subsectionTitle-style {
  width: 110px;
  background-color: #ccffff !important;
  text-align: left;
  vertical-align: top;
}

.font-articles-section-style {
  font-size: 16px;
  color: #660000;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  padding-right: 5px;
}

.font-articles-subsection-style {
  font-size: 16px;
  color: #660000;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  padding-right: 5px;
}

.returnToTop-style {
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  font-size: 14px;
  color: #660000;
  font-weight: bold;
}

/* ---- Application / Tables ---- */
.application-tablestyle {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

.application-tablestyle tr,
.application-tablestyle td {
  border: 1px solid black;
  padding: 6px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.application-tablestyle caption {
  font-size: 12px;
  font-weight: bold;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
}

/* ---- Training School ---- */
.SchoolTbl {
  clear: both;
  width: 60%;
  margin: 0 auto;
}

/* ---- Study Resources ---- */
.study-resources-table {
  width: 98%;
  border: 1px solid black;
  border-collapse: collapse;
}

.study-resources-table td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

/* ---- Schedule / Program ---- */
.program-table {
  width: 95%;
  border-collapse: collapse;
  margin: 0 auto 20px;
}

.program-table th {
  background-color: #ccffff;
  text-align: left;
  padding: 8px;
}

.program-table td {
  padding: 6px 10px;
  border: 1px solid #ccc;
  vertical-align: top;
}

.program-table td:first-child {
  width: 18%;
  white-space: nowrap;
  font-weight: bold;
}

/* ---- Scholarship ---- */
.scholarship-section {
  margin-bottom: 16px;
}

.scholarship-section h3 {
  color: #660000;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

.criteria-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
}

.criteria-table th,
.criteria-table td {
  border: 1px solid #000;
  padding: 6px 8px;
  text-align: center;
}

.criteria-table td:first-child {
  text-align: left;
}

/* ---- Payment / PayPal Forms ---- */
.payment-section {
  margin: 20px auto;
  max-width: 700px;
  text-align: left;
}

.payment-section h2 {
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  color: #660000;
  text-decoration: underline;
  text-align: center;
}

.payment-block {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.payment-block h4 {
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  color: #660000;
  margin-bottom: 10px;
}

.payment-block select,
.payment-block input[type="text"] {
  width: 100%;
  padding: 6px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* ---- Registration Form ---- */
.reg-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  font-size: 15px;
}

.reg-form label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  color: #660000;
}

.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form textarea,
.reg-form select {
  width: 100%;
  padding: 7px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.reg-form textarea { height: 100px; }

.reg-form .submit-row {
  margin-top: 20px;
  text-align: center;
}

.reg-form input[type="submit"],
.reg-form input[type="reset"] {
  padding: 8px 24px;
  font-size: 15px;
  border-radius: 4px;
  border: 1px solid #666;
  cursor: pointer;
  margin: 0 6px;
}

.reg-form input[type="submit"] {
  background-color: #3399ff;
  color: white;
  border-color: #3399ff;
}

/* ---- Footer ---- */
/* Bottom section: closes the rectangle with left, right, bottom and top borders */
footer {
  width: 100%;
  text-align: center;
  background-color: #3399ff;
  margin: 0;
  margin-top: 0 !important;
  border: 1px solid black;  
  padding: 8px 0;
}

.last-row {
  background-color: #ffffff;
}

/* ---- Confirmation Page ---- */
.confirm-box {
  max-width: 560px;
  margin: 30px auto;
  padding: 24px 28px;
  background-color: #f0fff0;
  border: 1px solid #99cc99;
  border-radius: 8px;
  font-family: Arial, Helvetica, Geneva, Swiss, SunSans-Regular;
  text-align: center;
}

.confirm-box h2 {
  color: #336600;
  margin-bottom: 12px;
}

.confirm-box p {
  color: #333;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .SchoolTbl  { width: 100%; margin-left: 0; }
  .center-content { width: 100%; margin-left: 0; margin-right: 0; }
  .navbar ul  { flex-direction: column; align-items: center; }
  .criteria-table { font-size: 12px; }
  .program-table td:first-child { width: auto; white-space: normal; }
}
