.content-section {
    width: 100%;
    max-width: 760px;
    margin: 2rem auto;
    padding: 0;
    font-family: sans-serif;
    color: #333333;
    line-height: 1.6;
}

.content-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333333;
}

.content-subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333333;
}

.content-description {
    text-align: justify;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    line-height: 1.65;
}

.content-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.code-block {
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 0.85rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #333333;
    overflow-x: auto;
    margin-bottom: 1.1rem;
}

.content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-image-no-shadow {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 8px;
}

.content-image-no-shadow-monte-carlo {
    display: block;
    max-width: 70%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 8px;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

footer {
    margin: 0;
    padding: 1rem 0;
    text-align: center;
    position: relative;
    bottom: 0;
    margin-top: auto;
}

footer p {
    font-size: 0.8rem;
    color: #777777;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0;
}

.footer-icons a {
    font-size: initial;
    display: inline-flex;
}

.footer-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-icons a:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.contact-section {
    max-width: 600px;
    margin: 14rem auto;
    text-align: center;
    font-family: sans-serif;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #333333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn-msg-submit {
    background-color: #000000;
    color: #ffffff;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 2rem;
}

.btn-msg-submit:hover {
    background-color: #333333;
    transform: scale(1.02);
}

.contact-description {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
    color: #333333;
    text-align: center;
    width: 100%;
}


.image-group {
  display: flex;       /* Aligns children (images) in a row */
  gap: 10px;           /* Adds space between the images */
  justify-content: center; /* Centers the row of images */
  margin: 0;           /* Removes default figure margins */
}

.image-group img {
  width: 25%;          /* Ensures 4 images fit (100% / 4) */
  height: auto;        /* Maintains aspect ratio */
  object-fit: cover;   /* Prevents stretching if images have different sizes */
}

/* Calculator Container */
.calculator-container {
    background: #ffffff !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea !important;
}

/* Input Grouping */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modern Inputs */
.calculator-container input[type="number"] {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease;
    background: #fafafa;
    outline: none;
}

.calculator-container input[type="number"]:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Buttons */
.calculator-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

#calc_btn, #copy_btn {
    flex: 1;
    padding: 14px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

#calc_btn {
    background: #333;
    color: white;
}

#copy_btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

#copy_btn {
    transition: all 0.3s ease; /* Smoothly morphs colors and text */
}

#copy_btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Remove spin buttons for Chrome, Safari, Edge, Opera */
.calculator-container input::-webkit-outer-spin-button,
.calculator-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spin buttons for Firefox */
.calculator-container input[type=number] {
    -moz-appearance: textfield;
}