body {
  font: 400 15px Lato, sans-serif;
  line-height: 1.5;
  color: #818181;
}

h2 {
  font-size: 20px;
  color: #303030;
  font-weight: 600;
  margin-bottom: 30px;
}

h3 {
  font-size: 18px;
  color: #303030;
  font-weight: 500;
  margin-bottom: 30px;
}

h4 {
  font-size: 16px;
  line-height: 1.375em;
  color: #303030;
  font-weight: 400;
  margin-bottom: 30px;
}

.jumbotron {
  background: #1b7c62 !important;
  color: #fff;
  padding: 40px 20px;
  font-family: Montserrat, sans-serif;
  border-bottom: 4px solid #1b7c62;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.jumbotron h1 {
  font-size: 32px !important;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  text-align: center !important;
}

.jumbotron p {
  padding: 0;
  line-height: 1.6;
  margin-bottom: 0;
  font-size: 16px;
  opacity: 0.95;
  font-weight: 300;
  text-align: center !important;
  display: block;
}

.tool-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1140px;
  padding: 0 20px;
}

.col-lg-1,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-md-1,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-sm-1,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-xs-1,
.col-xs-10,
.col-xs-11,
.col-xs-12,
.col-xs-2,
.col-xs-3,
.col-xs-4,
.col-xs-5,
.col-xs-6,
.col-xs-7,
.col-xs-8,
.col-xs-9 {
  position: relative;
  min-height: 1px;
  padding-right: 5px;
  padding-left: 5px;
}

.content-box {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  margin: 20px 0;
  padding: 30px;
  background: #fff;
  text-align: right;
  border: 1px solid #f0f0f0;
  color: #000;
  overflow: hidden;
  transition: all 0.3s ease;
}

.content-box:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.content-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
  text-align: justify;
  margin-bottom: 24px;
}

.content-box p:last-child {
  margin-bottom: 0;
}

.content-box h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid #1b7c62;
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box ul {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  font-weight: 400;
  text-align: right;
  margin-top: 16px;
  margin-bottom: 24px;
  padding-right: 28px;
}

.content-box ul li {
  margin-bottom: 12px;
  list-style-type: disc;
}

.content-box ul li::marker {
  color: #1b7c62;
  font-weight: bold;
}

.navbar {
  margin-bottom: 0;
  min-height: 100px !important;
  z-index: 9999;
  border: 0;
  font-size: 12px !important;
  line-height: 1.42857143 !important;
  letter-spacing: 4px;
}

/* Unified Design System - Synced from style.css */
button,
input[type="button"],
input[type="submit"] {
  background: #1b7c62;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(27, 124, 98, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Button anchor tags */
a.btn {
  display: inline-block;
  background: #1b7c62;
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(27, 124, 98, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

a.btn-primary {
  background: #1b7c62;
  color: #fff !important;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 124, 98, 0.35);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
a.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(27, 124, 98, 0.2);
}

button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
a.btn:focus {
  outline: 2px solid #1b7c62;
  outline-offset: 2px;
}

/* Secondary Button Variant */
button.secondary {
  background: transparent;
  color: #1b7c62;
  border: 2px solid #1b7c62;
  box-shadow: none;
}

button.secondary:hover {
  background: rgba(27, 124, 98, 0.08);
  box-shadow: 0 4px 12px rgba(27, 124, 98, 0.15);
}

/* Large Button */
button.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* Small Button */
button.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Link Styles - Brand Color */
a {
  color: #1b7c62;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0f4a2e;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #1b7c62;
  outline-offset: 2px;
}

/* Input Focus States */
input:focus,
select:focus {
  border-color: #1b7c62 !important;
  box-shadow: 0 0 0 3px rgba(27, 124, 98, 0.1) !important;
}

/* Selection Color */
::selection {
  background: #1b7c62;
  color: #fff;
}

/* Select Dropdown Styling */
select {
  background: #fff;
  color: #333;
}

select option {
  background: #fff;
  color: #333;
  padding: 8px 12px;
}

.footer {
  background: #1b7c62;
  text-align: center;
  padding: 40px 20px;
  overflow: hidden;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-menu {
  list-style-type: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 12px;
}

.footer-menu li {
  margin: 0;
  display: inline-block;
}

.footer-menu li:not(:last-child)::after {
  content: '•';
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-menu li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  margin-top: 4px;
}

.footer p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  margin: 0;
}


.language-selector {
  float: right;
  margin: 10px;
  max-height: 200px;
  overflow-y: auto;
}


#char-counter {
  margin-top: 8px;
  font-size: 13px;
  color: #1b7c62;
  text-align: right;
  font-weight: 600;
  letter-spacing: 0.3px;
}






/* Counter */
.counter-container {
  text-align: center;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  margin: 20px auto;
  border: 1px solid black;
}

.wait-message {
  background-color: #000;
  color: #fff;
  padding: 10px;
  font-size: 1.2em;
  margin-bottom: 20px;
  border-radius: 10px;
}

.timer {
  font-size: 2em;
  margin-bottom: 20px;
}

.code {
  font-size: 2em;
  margin: 20px 0;
  color: #333;
}

.next-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.next-btn:hover {
  background-color: #45a049;
}

/* Responsive Layout */
@media (max-width: 1024px) {
  .tool-container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .tool-container {
    padding: 0 12px;
  }

  .jumbotron {
    padding: 20px 5px;
  }

  .jumbotron h1 {
    font-size: 24px !important;
  }

  .jumbotron p {
    font-size: 14px;
  }

  .content-box {
    padding: 20px;
    margin: 16px 0;
  }

  .content-box p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .content-box h2 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .content-box ul {
    font-size: 15px;
    padding-right: 24px;
  }
}

@media (max-width: 480px) {
  .tool-container {
    padding: 0 6px;
  }

  .jumbotron h1 {
    font-size: 20px !important;
  }

  .content-box {
    padding: 12px;
  }
}

/* Best Tools Section Styling */
.best-tools-section {
  padding: 40px 20px;
  background-color: #ffffff;
  margin: 40px 0;
}

.best-tools-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px;
}

.best-tools-container h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #1b7c62;
  font-weight: 700;
}

.best-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.best-tool-card {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.tool-icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none !important;
}

.best-tool-card h3 {
  margin: 16px 0 12px 0;
  font-size: 20px;
  color: #1b7c62;
  font-weight: 600;
  text-decoration: none !important;
  text-align: center;
}

.best-tool-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 16px 0;
  text-align: center;
  text-decoration: none !important;
}

.tool-card {
  text-decoration: none !important;
  display: block;
  cursor: pointer;
  color: inherit !important;
}

.tool-card:hover {
  text-decoration: none !important;
}

.tool-card:hover .best-tool-card {
  border-color: #1b7c62;
  box-shadow: 0 8px 24px rgba(27, 124, 98, 0.15);
  transform: translateY(-4px);
  background: linear-gradient(135deg, #f8fffe 0%, #f0fdfb 100%);
}

.tool-card:hover .best-tool-card h3 {
  color: #0f4a2e;
  text-decoration: none !important;
}

.tool-card:hover .best-tool-card p {
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .best-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .best-tool-card {
    padding: 20px 16px;
    min-height: 240px;
  }

  .best-tools-container h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .best-tools-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .best-tool-card {
    padding: 16px 12px;
    min-height: 200px;
  }

  .best-tools-container h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .best-tool-card h3 {
    font-size: 18px;
  }

  .best-tool-card p {
    font-size: 13px;
  }
}

/* Tool Output RTL Overrides moved to cool-text-maker.rtl.css */