html {
    /* 16px * 62.5% = 10px. Now 1rem = 10px. */
    font-size: 62.5%; 
}

body {
    font-family: 'IRANSans', sans-serif;
    background-color: #F8FAFC;
    color: #1f2937;
    margin: 0;
    font-size: 1.6rem; 
}

.card {
    background-color: #ffffff;
    padding: 3.0rem;
    border-radius: 1.6rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1.0rem 1.5rem -0.3rem rgba(0, 0, 0, 0.08);
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 138rem;
    gap: 3.0rem;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.0rem;
    text-align: center; 
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hero-title {
    font-size: 3.0rem;
    font-weight: 700; 
    color: #111827; 
    margin: 0;
}
.hero-subtitle {
    font-size: 1.6rem;
    color: #4b5563;
    margin: 0;
}
.search-form-layout {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}
.serial-input {
    flex-grow: 1;
    width: 100%;
    padding: 1.6rem 2.0rem;
    font-size: 1.8rem;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    color: #111827;
    border-radius: 1.2rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); 
    outline: none;
    transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}
.serial-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0.5rem 0.1rem rgb(59 130 246 / 0.3);
}
.search-button {
    white-space: nowrap;
    background-image: linear-gradient(to bottom right, #2ab4c2, #2563eb);
    color: #ffffff; 
    font-weight: 700;
    font-size: 1.8rem;
    padding: 1.6rem 4.0rem;
    border-radius: 1.2rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    outline: none;
    cursor: pointer;
    transition: filter 150ms ease-in-out, box-shadow 150ms ease-in-out, transform 150ms ease-in-out;
}
.search-button:hover {
    filter: brightness(1.1); 
    box-shadow: 0 0.5rem 1.0rem -0.3rem rgb(0 0 0 / 0.1);
    transform: scale(1.02);
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-in-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(2.0rem); }
    to { opacity: 1; transform: translateY(0); }
}
.results-card table {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 2.0rem;
}
.results-card table p {
    text-align: justify;
}
.results-card table tr {
    border-bottom: 1px solid #f1f5f9;
}
.results-card table td {
    padding: 1.0rem;
}
.results-card table td:nth-child(1) {
    font-weight: 500;
    color: #4b5563;
    width: 35%;
}
.results-card table td:nth-child(2) {
    font-weight: 700;
    font-size: 1.8rem;
    color: #111827; 
}
.results-card table img {
    display: inline-block;
    vertical-align: middle;
    margin-left: 1.0rem;
} 
.results-heading {
    font-size: 2.6rem;
    font-weight: 700; 
    color: #111827; 
    margin: 0;
}
.not-found-message {
    text-align: center;
    display: block; 
    color: #dc2626; 
    font-weight: 700; 
}
.info-content {
    max-width: none; 
    color: #4b5563; 
}
.info-content p {
    font-size: 1.6rem;
    text-align: justify;
    margin: 0;
}
.accordion-separator {
    padding-top: 2.0rem;
    border-color: #e5e7eb;
}
.accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1f2937;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1.2rem;
    padding: 1.6rem 2.4rem; 
    cursor: pointer;
    transition: background-color 0.2s ease, border-radius 0.2s ease;
}
.accordion-button:hover {
    background-color: #f3f4f6;
}
.accordion-button:not(:first-of-type) {
    margin-top: 1.6rem; 
}
.accordion-icon {
    width: 2.0rem;
    height: 2.0rem; 
    color: #6b7280;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}
.accordion-button.is-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.accordion-icon.is-open {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 2.4rem; 
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    border-radius: 0 0 1.2rem 1.2rem; 
    background-color: #ffffff;
    border-top-width: 0;
    max-width: none;
    color: #4b5563;
    text-align: justify;
}
.accordion-content.is-open {
    max-height: 100vh;
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid #e5e7eb
}
.accordion-content ul {
    margin: 0;
    padding-right: 1.5rem;
}

#home-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background-color: #ffffff;
    color: #2563eb;
    border-radius: 1.2rem;
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

#home-button:hover {
    transform: scale(1.1);
    box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.15);
}

#home-button svg {
    width: 60%;
    height: 60%;
}
@media (max-width:1024px) {
    #home-button {
        position: static;
        margin-bottom: 2.0rem;
    }
}