html {
    scroll-behavior: smooth;
}

body {
    background: #fcf7f7;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Nav and header styles */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

/* ...existing code... */

/* ===== MAIN HEADING SECTION - CONVERTED FROM TAILWIND ===== */
.main-heading {
    margin-top: 1.5rem;
    font-size: 40px;
    font-weight: 500;
    color: transparent;
    background: linear-gradient(to right, #9a0001, #9a0001);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    line-height: 1.0;
}

@media (min-width: 640px) {
    .main-heading {
        margin-top: 2.5rem;
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .main-heading {
        font-size: 3.75rem;
    }
}

@media (min-width: 1280px) {
    .main-heading {
        font-size: 5rem;
    }
}

.main-heading .excel-text {
    font-weight: 500;
    color: black;
}

.main-subtitle {
    color: black;
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

/* ===== RESULTS SECTION BADGE - CONVERTED FROM TAILWIND ===== */
.results-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    color: white;
    text-transform: uppercase;
    border-radius: 9999px;
    background-color: #9a0001;
}

/* ===== HEADER LOGO TEXT - CONVERTED FROM TAILWIND ===== */
.logo .logo-file-text {
    font-weight: 600;
    color: black;
}

/* ===== WHY SECTION TEXT - CONVERTED FROM TAILWIND ===== */
.why-section .logo-file-text {
    font-weight: 600;
    color: black;
}

/* ...existing code... */

.logo {
    color: #9a0001;
    font-size: 26px;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    margin-bottom: 10px;
}

.logo-img img {
    height: auto;
    width: 100%;
    max-width: 40px;
    /* Adjust as needed */
    display: block;
    margin-bottom: 10px;
}


nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li a {
    font-size: 22px;
    color: black;
    text-decoration: none;
    transition: all 0.45s;
    line-height: 50px;
    padding: 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}


nav ul li {
    width: auto;
    height: 50px;
    transition: background-position-x 0.9s linear;
    text-align: center;
    margin: 5px 15px;

}

nav ul li:hover {
    background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsYW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjM5MHB4IiBoZWlnaHQ9IjUwcHgiIHZpZXdCb3g9IjAgMCAzOTAgNTAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDM5MCA1MCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZDk0ZjVjIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMCw0Ny41ODVjMCwwLDk3LjUsMCwxMzAsMGMxMy43NSwwLDI4Ljc0LTM4Ljc3OCw0Ni4xNjgtMTkuNDE2QzE5Mi42NjksNDYuNSwyNDMuNjAzLDQ3LjU4NSwyNjAsNDcuNTg1YzMxLjgyMSwwLDEzMCwwLDEzMCwwIi8+PC9zdmc+");
    animation: line 1s;
}

nav ul li:hover a {
    color: #9a0001;
    text-decoration: none;
}

nav ul li:not(:last-child) {
    margin-right: 30px;
}

@keyframes line {
    0% {
        background-position-x: 390px;
    }
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


.get-start {
    background: #9a0001;
    color: white;
    border: none;
    font-weight: bolder;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    white-space: nowrap;
    text-decoration: none;
    margin-right: 30px;
}

.get-start:hover {
    background: linear-gradient(135deg, black, #dd4b39);
}

main {
    margin-top: 80px;
    text-align: center;

}

h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    color: white;
    line-height: 1.1;
}

.converter-container {
    background: #f0ece4;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 32px 24px 24px 24px;
    max-width: 900px;
    margin: 40px auto 0 auto;


}

.converter-actions {
    display: flex;
    justify-content: space-between;
    align-items: normal;
    margin-top: 18px;
    gap: 100px;
    flex-wrap: wrap;
}

/* Add styles for the icon container and footer if needed */
.icon-container {
    margin-bottom: 20px;
}


.file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-bar {
    background: #1e293b;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 15px;
}


.format-options-div {
    max-width: 960px;
    background-color: #f0ece4;
    border-radius: 20px;
    margin: 0px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 60px 30px 80px 30px;
    font-family: 'Montserrat', sans-serif;
}

.format-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.format-col-left {
    padding-right: 20px;
}

.format-col-right {
    padding-left: 20px;
}


/* Pills */
.format-pill {
    display: inline-block;
    background: #9a0001;
    color: #fff;
    font-weight: bold;
    padding: 13px 34px;
    border-radius: 999px;
    margin-bottom: 35px;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* Main text paragraphs */
.format-col p {
    color: #111;
    font-size: 1.09rem;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.7;
    text-align: justify;
}

/* Add spacing between blocks */
.format-col p+p {
    margin-top: 16px;
}

.format-col strong {
    color: #9a0001;
    font-weight: bold;
}

/* Right Side List */
.format-list {
    list-style-type: none;
    padding-left: 0;
    color: #111;
    margin: 0;
}

.format-list>li {
    margin-bottom: 28px;
}

.format-list-title {
    display: block;
    font-weight: bold;
    color: #9a0001;
    font-size: 1.17rem;
    margin-bottom: 5px;
    text-align: left;
}

/* Sublist for "Set Content Per Page" */
.format-sublist {
    list-style-type: none;
    padding-left: 0;
    margin-top: 5px;
    margin-bottom: 0;
}

.format-sublist li {
    font-size: 1rem;
    color: #111;
    margin-bottom: 7px;
    line-height: 1.6;
    text-align: justify;
    padding-top: 5px;
}

.dot-red {
    color: #9a0001;
    font-weight: bold;
    margin-right: 6px;
    display: inline-block;
}

.red-label {
    color: #9a0001;
    font-weight: bold;
}

.note {
    color: #111;
    font-style: italic;
}

.footer {
    padding: 50px 0;
    background: #9a0001;
    text-align: left;
}

.subscribe-input {
    padding: 12px;
    border-radius: 8px;
    border: none;
    width: 100%;
    color: black;
}

.subscribe-button {
    background: #fcf7f7;
    color: black;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.subscribe-button:hover {
    background: #1e293b;
    color: white;
}

#results-section {
    background: white;
    padding: 80px 20px;
    text-align: center;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-title {
    font-size: 1.5rem;
    color: #9a0001;
    margin-bottom: 10px;
}

.results-subtitle {
    font-size: 2.25rem;
    font-weight: 550;
    margin-bottom: 40px;
    color: #9a0001;
}

.results-grid {
    display: flex;
    margin-bottom: 30px;
}

.result-item {
    background: #f0ece4;
    /* Dark background for boxes */
    color: white;
    padding: 30px;
    margin: 20px 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 8px rgb(127, 128, 127);
    transition: transform 0.3s ease-in-out;
    width: 270px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.result-value {
    margin-bottom: 1rem;
}

.result-value .value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #9a0001;
    margin-bottom: 0.5rem;
}

.result-description {
    font-size: 0.95rem;
    color: black;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.results-disclaimer {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* ===== FAQ SECTION - CLEANED UP VERSION ===== */
#faqs {
    padding: 2.5rem 0 4rem 0;
}

@media (min-width: 640px) {
    #faqs {
        padding: 4rem 0 6rem 0;
    }
}

@media (min-width: 1024px) {
    #faqs {
        padding: 6rem 0;
    }
}

.faqs-container {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
}

@media (min-width: 640px) {
    .faqs-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .faqs-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.faqs-header {
    text-align: center;
}

.faqs-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    color: white;
    text-transform: uppercase;
    border-radius: 9999px;
    background-color: #9a0001;
}

.faqs-subtitle {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.625;
    color: black;
}

.faqs-content {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .faqs-content {
        margin-top: 4rem;
    }
}

.faq-item {
    transition: all 0.2s;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.faq-item:hover {
    background-color: #f9fafb;
}

.faq-toggle {
    display: none;
}

.faq-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1rem;
    cursor: pointer;
    margin: 0;
}

@media (min-width: 640px) {
    .faq-label {
        padding: 1.5rem;
    }
}

.faq-question {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: black;
    text-align: left;
    margin-right: 1rem;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #9ca3af;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 1rem 0 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, padding 0.5s ease-in-out;
}

@media (min-width: 640px) {
    .faq-answer {
        padding: 0 1.5rem 0 1.5rem;
    }
}

.faq-answer p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .faq-answer p {
        padding-bottom: 1.5rem;
    }
}

.faq-answer a {
    color: #2563eb;
    transition: all 0.2s;
    text-decoration: none;
}

.faq-answer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Toggle states */
.faq-toggle:checked + .faq-label + .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-toggle:checked + .faq-label .faq-icon {
    transform: rotate(180deg);
}

.faqs-footer-text {
    text-align: center;
    font-size: 1rem;
    margin-top: 2.25rem;
    color: black;
}

.faqs-footer-link {
    font-weight: 500;
    color: #2563eb;
    transition: all 0.2s;
    text-decoration: none;
}

.faqs-footer-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.faqs-footer-link:focus {
    color: #1d4ed8;
}

/* ===== COMMENTED OUT OLD FAQ STYLES ===== */
/*
#faq p {
    font-family: "Montserrat", sans-serif;
    color: #9a0001;
}

#faqs h2 {
    font-family: 'Montserrat', sans-serif;
    color: #9a0001;
    font-weight: 700;
}

.faq-toggle:checked+label+.faq-answer {
    display: block;
}

label {
    display: fex;
    align-items: left;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
}

label span {
    flex: 1;
    text-align: left;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    display: none;
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.faq-toggle:checked+label+.faq-answer {
    max-height: 500px;
    opacity: 1;
}

.faq-toggle:checked+label svg {
    transform: rotate(180deg);
}

.faq-toggle+label svg {
    transition: transform 0.3s ease;
}

label svg {
    transition: transform 0.3s ease;
}
*/

.file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f0ece4;
    border-radius: 5px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.convert-single {
    background: #9a0001;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.convert-single:hover {
    background: #7a0001;
    transform: scale(1.05);
}

.file-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

/* .file-list {
    margin: 20px 0;
    position: relative;
} */

.settings-icon {
    position: relative;
    color: #9a0001;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease;
    padding: 5px;
}

.settings-icon:hover {
    transform: rotate(45deg);
}

.settings-tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    /* Position to the left of the icon */
    transform: translateY(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    font-size: 12px;
    color: #333;
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    margin-right: 10px;
    /* Add space between tooltip and icon */
}

.settings-icon:hover+.settings-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Update the arrow styling */
.settings-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.settings-btn {
    background: transparent;
    border: none;
    color: #9a0001;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 8px;
    display: flex;
    align-items: center;
}


.settings-btn:hover {
    transform: rotate(45deg);
}

.settings-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 400px;
    border: 2px solid #9a0001;
}

.settings-popup h3 {
    color: #9a0001;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.settings-option {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

.settings-option:hover {
    background-color: #f0ece4;
}

.settings-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #9a0001;
}

.settings-option label {
    color: #333;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.apply-btn {
    background: #9a0001;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.settings-apply-btn:hover {
    background: #7a0001;
}

.settings-popup {
    width: 450px;
}

.settings-option {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

.settings-option:hover {
    background-color: #f0ece4;
}

.settings-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #9a0001;
    margin-top: 4px;
}

.settings-option label {
    color: #333;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    flex-grow: 1;
}

/* Target the specific settings-option that contains the nested options */
.settings-option:nth-child(2) {
    /* Corrected to target the second .settings-option */
    display: block;
    margin-bottom: 0;
    /* Change display to block to stack elements vertically */
}

/* Style the label of the radio button in that specific option */
.settings-option:nth-child(2)>label {
    display: block;
    /* Ensure label takes full width */
    margin-bottom: 5px;
    /* Add a little space below the label */
}

/* Style the nested-options container within that specific option */
.settings-option:nth-child(2) .nested-options {
    margin-left: 30px;
    /* Indent the nested options */
    padding-left: 0;
    list-style: none;
    margin-top: 5px;
}

/* Style each nested-option item within that specific option */
.settings-option:nth-child(2) .nested-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding-top: 0;
    /* Remove top padding that was pushing things down */
}

.settings-option:nth-child(2) .nested-option input[type="checkbox"] {
    margin-right: 10px;
}

.settings-option:nth-child(2) .nested-option label {
    flex-grow: 1;
}

/* Style the radio button in that specific option */
.settings-option:has(input#content-limit)>input[type="radio"] {
    margin-right: 12px;
    /* Keep the right margin */
    margin-top: 4px;
    /* Adjust vertical alignment if needed */

}

/* Target the settings-option containing the "content-limit" radio button */
.settings-option:has(input#content-limit) {
    display: flex;
    /* Use flexbox to align radio and label */
    align-items: flex-start;
    /* Align items to the top */
    flex-direction: row;
    /* Ensure radio and label are in a row */
}

/* Style the label of the radio button in that specific option */
.settings-option:has(input#content-limit)>label {
    display: inline-block;
    /* Change to inline-block */
    vertical-align: middle;
    /* Vertically align with the radio button */
    margin-bottom: 0px;
    /* Keep the bottom margin for spacing */
    text-align: left;
    flex-grow: 1;
    margin-left: 0px;
    /* Add some space between the radio and label */
}

/* Style the container of the nested options */
.settings-option:has(input#content-limit) .nested-options {
    margin-left: 32px;
    /* Indent the nested options */
    padding-left: 0;
    list-style: none;
    margin-top: 5px;
}

/* Style each nested-option item */
.settings-option:has(input#content-limit)+.settings-option .nested-options {
    margin-left: 30px;
    /* Indent the nested options */
    padding-left: 0;
    list-style: none;
    margin-top: 5px;
    /* Add some space from the label */
}

/* Style the checkbox input */
.settings-option:has(input#content-limit)+.settings-option .nested-option input[type="checkbox"] {
    margin-right: 10px;
}

/* Style the checkbox label */
.settings-option:has(input#content-limit)+.settings-option .nested-option label {
    flex-grow: 1;
}

.nested {
    padding-right: 0;
    margin-right: 0;
}

.nested-options {
    margin-left: 30px;
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    /* Reduce space at the top */
    padding-top: 5px;
    /* Add minimal padding */
}

.nested-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    margin-right: 0;
    padding-top: 0;
    /* Remove extra padding */
}

.nested-option input[type="checkbox"] {
    margin-right: 10px;
}

.nested-option label {
    flex-grow: 1;
}

.scale-slider {
    margin-top: 10px;
    margin-left: 30px;
}

.scale-slider input[type="range"] {
    width: 200px;
    accent-color: #9a0001;
}

#scale-value {
    margin-left: 10px;
    color: #666;
}

/* Add disabled styles */
input[type="radio"]:disabled+label,
input[type="checkbox"]:disabled+label {
    color: #666;
    cursor: not-allowed;
}

.row-limit-counter {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.row-limit-counter input[type="number"] {
    width: 60px;
    height: 28px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 5px;
    font-size: 14px;
    color: #333;
}

.counter-controls {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.counter-btn {
    background: #9a0001;
    color: white;
    border: none;
    width: 20px;
    height: 14px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.counter-btn:first-child {
    margin-bottom: 2px;
}

.counter-btn:hover {
    background: #7a0001;
}

/* Hide spinner buttons from number input */
.row-limit-counter input[type="number"]::-webkit-inner-spin-button,
.row-limit-counter input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.row-limit-counter input[type="number"] {
    appearance: textfield;
}

.option-text-input {
    margin-left: 10px;
}

.option-text-input input[type="text"] {
    width: 60px;
    height: 28px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 5px;
    font-size: 14px;
    color: #333;
    border-color: #9a0001;
}

.settings-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Add these styles to your existing CSS */
.individual-settings {
    z-index: 1001;
    /* Ensure it's above the global settings popup */
}

.settings-icon {
    cursor: pointer;
    transition: color 0.3s;
}

.settings-icon:hover {
    color: #9a0001;
}

.individual-settings-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 450px;
    max-width: 90%;
    border: 1px solid #9a0001;
}

.individual-settings-popup h3 {
    color: #9a0001;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.individual-apply-btn {
    background: #9a0001;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.individual-apply-btn:hover {
    background: #7a0001;
}

.settings-icon {
    cursor: pointer;
    margin-right: 10px;
    color: #9a0001;
    transition: color 0.3s ease;
}

.settings-icon:hover {
    color: #7a0001;
}

/* Add these styles to your existing CSS */
.individual-settings-popup {
    /* .global-settings-popup { */
    font-family: "Montserrat", sans-serif;
}

.popup-content h3 {
    color: #9a0001;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.settings-group {
    margin-bottom: 15px;
    text-align: left;
}

.settings-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.settings-group input[type="range"],
.settings-group input[type="number"],
.settings-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    position: relative;
}

.popup-content input[type="checkbox"],
.settings-group input[type="checkbox"] {
    accent-color: #9a0001;
}

.settings-group input[type="checkbox"]:checked {
    background-color: red;
    border: 1px solid red;
}


.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.individual-apply-btn,
.global-apply-btn,
.individual-close-btn,
.global-close-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.individual-apply-btn,
.global-apply-btn {
    background-color: #9a0001;
    color: white;
}

.individual-close-btn,
.global-close-btn {
    background-color: #f0f0f0;
    color: #333;
}

.individual-apply-btn:hover,
.global-apply-btn:hover {
    background-color: #7a0001;
}

.individual-close-btn:hover,
.global-close-btn:hover {
    background-color: #e0e0e0;
}

/* Add these styles to your existing CSS file */

.conversion-progress {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.progress-bar-container {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #9a0001;
    width: 0%;
    transition: width 0.2s ease;
}

.progress-text {
    font-size: 14px;
    color: #333;
}

.conversion-results {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.conversion-results h3 {
    color: #9a0001;
    margin-bottom: 10px;
    font-size: 18px;
}

.download-links {
    margin-top: 15px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.download-link {
    color: #9a0001;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.download-all-container {
    margin: 15px 0;
}

.download-all-btn {
    background-color: #9a0001;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.download-all-btn:hover {
    background-color: #7a0001;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.info {
    background-color: #17a2b8;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.warning {
    background-color: #ffc107;
    color: #212529;
}

.main-settings {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.sub-settings {
    margin-left: 20px;
    margin-top: 10px;
    padding: 10px;
    border-left: 2px solid #eee;
    display: none;
}

.settings-group input[type="checkbox"] {
    margin-right: 8px;
}



.file-upload-area {
    border: 2px dashed #9a0001;
    border-radius: 10px;
    padding: 36px 16px 16px 16px;
    background: #f0ece4;
    text-align: center;
    position: relative;
    margin-bottom: 18px;
    min-height: 120px;
    transition: border-color 0.2s;
}

.file-upload-area.dragover {
    border-color: #ffeb3b;
    background: #fff8e1;
}

.upload-instructions {
    color: #9a0001;
    font-size: 1.2em;
    cursor: pointer;
    margin-bottom: 10px;
}

.upload-icon {
    font-size: 2.5em;
    margin-bottom: 8px;
    color: #9a0001;
    display: block;
}

.upload-link {
    color: black;
    text-decoration: underline;
    cursor: pointer;
}

.upload-subtext {
    display: block;
    color: #888;
    font-size: 0.95em;
    margin-top: 4px;
}

.file-list {
    margin-top: 18px;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.file-row-n {
    display: block; /* Ensure it's block level to stack content */
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.file-row-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

/* File name and size */
.file-row-header .file-name {
    flex: 1;
    font-weight: 500;
    font-size: 1.1rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.file-row-header .file-size {
    color: #888;
    font-size: 1rem;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

/* Settings and Remove buttons */
.file-row-header .settings-btn,
.file-row-header .remove-btn {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-size: 1.1rem;
    color: #b91c1c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    outline: none;
    flex-shrink: 0;
}

/* File icon */
.file-row-header .file-icon {
    font-size: 2rem;
    color: #b91c1c;
    margin-right: 8px;
    flex-shrink: 0;
}

.file-row-header .remove-btn {
    border: 2px solid #b91c1c;
    color: #b91c1c;
    background: #fff;
}

.file-row-header .remove-btn:hover {
    background: #b91c1c;
    color: #fff;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.10);
}

/* Convert, Preview, Download buttons */
.file-row-header .convert-single,
.file-row-header .preview-btn,
.file-row-header .download-btn {
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

.file-row-header .convert-single:hover,
.file-row-header .preview-btn:hover,
.file-row-header .download-btn:hover {
    background: #a51b1b;
}

.file-row-header .preview-btn {
    background: #28a745;
}

.file-row-header .preview-btn:hover {
    background: #218838;
}

/* Status badge and download button */
.file-row-header .status-badge {
    font-size: 0.95em;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    background: #e0f7e9;
    color: #388e3c;
    display: none;
}

.file-row.finished .status-badge {
    display: inline-block;
}

.file-row-header .download-btn {
    background: #388e3c;
}

.file-row-header .download-btn:hover {
    background: #2e7d32;
}

.file-row.finished .download-btn {
    display: inline-block;
}

/* PDF Tools Section */
.pdf-tools-section {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.pdf-tools-toggle-container {
    margin-bottom: 12px;
}

.pdf-tools-toggle-btn {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.pdf-tools-toggle-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pdf-tools-toggle-btn .toggle-arrow {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.pdf-tools-content {
    padding: 16px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.pdf-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.pdf-tool-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-tool-card:hover {
    background: #f9fafb;
    border-color: #9a0001;
    color: #9a0001;
    text-decoration: none;
}

.pdf-tool-card .tool-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
}

.pdf-tool-card:hover .tool-icon {
    background: #fee2e2;
    color: #9a0001;
}

.pdf-tool-card .tool-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.pdf-tool-card .tool-content p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* File icon */
.file-row .file-icon {
    font-size: 2rem;
    color: #b91c1c;
    margin-right: 12px;
}

/* File name and size */
.file-row .file-name {
    flex: 1 1 0;
    font-weight: 500;
    font-size: 1.1rem;
    color: #222;
    margin-right: 10px;
    white-space: nowrap;
    /* Prevent vertical stacking */
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.file-row .file-size {
    color: #888;
    font-size: 1rem;
    margin-right: 18px;
    min-width: 80px;
    text-align: right;
}

/* Settings and Remove buttons */
.file-row .settings-btn,
.file-row .remove-btn {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-size: 1.1rem;
    color: #b91c1c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    outline: none;
}

.file-row .remove-btn {
    border: 2px solid #b91c1c;
    color: #b91c1c;
    background: #fff;
}

.file-row .remove-btn:hover {
    background: #b91c1c;
    color: #fff;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.10);
}

/* Convert button */
.file-row .convert-single {
    background: #b91c1c;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 1rem;
    margin-left: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.file-row .convert-single:hover {
    background: #a51b1b;
}

.file-row .file-size {
    color: #888;
    font-size: 0.95em;
    margin-left: 12px;
    margin-right: 12px;
}

.file-row .format-select {
    margin-right: 12px;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 1em;
}

.file-row .settings-btn {
    background: none;
    border: none;
    color: #9a0001;
    font-size: 1.2em;
    margin-right: 8px;
    cursor: pointer;
}

.file-row .remove-btn {
    background: none;
    border: none;
    color: #d32f2f;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 8px;
}

.file-row .status-badge {
    margin-left: 12px;
    font-size: 0.95em;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    background: #e0f7e9;
    color: #388e3c;
    display: none;
}

.file-row.finished .status-badge {
    display: inline-block;
}

.file-row .download-btn {
    background: #388e3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 14px;
    margin-left: 10px;
    font-size: 0.98em;
    cursor: pointer;
    display: none;
}

.file-row.finished .download-btn {
    display: inline-block;
}

.left-actions,
.middle-actions,
.right-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.middle-actions {
    flex: 1;
    display: flex;
    justify-content: center;
}

.converter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Ensure buttons are properly aligned */
.global-settings-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.file-dropdown {
    position: relative;
    display: inline-block;
}

.file-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    top: 100%;
}

/* Position "All Files" dropdown to the right */
.file-dropdown-content.right-align {
    right: 0;
    left: auto;
}

/* Position "Add Files" dropdown to the left */
.file-dropdown-content.left-align {
    left: 0;
    right: auto;
}

/* Links inside file dropdown */
.file-dropdown-content a {
    color: #374151;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
}

.file-dropdown-content a:hover {
    background-color: #f3f4f6;
    color: #9a0001;
}

.file-dropdown-content a i {
    width: 16px;
    text-align: center;
}

/* Show file dropdown when active */
.file-dropdown-content.show {
    display: block;
}

/* Add this to your CSS file (excel-to.css) */
.tooltip-icon {
  display: inline-block;
  margin-left: 8px;
  cursor: help;
  color: #6c757d;
  font-size: 14px;
  vertical-align: middle;
}

.tooltip-icon:hover {
  color: #495057;
}

.add-files-btn,
.all-files-btn,
.convert-btn {
    background: #232323;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 22px;
    font-size: 1.08em;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: 0.2s;
}

.add-files-btn:hover,
.all-files-btn:hover,
.convert-btn:hover {
    background: #9a0001;
}

.convert-btn {
    background: #b71c1c;
    margin-right: 0;
}

.convert-btn:disabled {
    background: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
}



.global-settings-btn {
    background: #fff;
    color: #9a0001;
    border: 2px solid #9a0001;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 8px;
    cursor: pointer;
    transition: 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-settings-btn:hover {
    background: #9a0001;
    color: #fff;
}



#why {
    padding: 80px 20px;
}

#why h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: #9a0001;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    position: relative;
}

.why-beyond-excel {
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.why-card {
    background: #f0ece4;
    padding: 30px;
    /* Adjust padding for better spacing */
    border-radius: 10px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    /* Enable flexbox for the card */
    align-items: stretch;
    /* Make cards the same height */
}

.why-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg,
            transparent,
            transparent 30%,
            rgba(255, 200, 189, 0.795));
    transform: rotate(-45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.why-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(250, 138, 82, 0.5);
}

.why-card:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}

.why-card h2 {
    font-size: 22px;
    margin-bottom: 0px;
    width: 100%;
    /* Adjust margin to align with text */
    display: flex;
    align-items: center;
    /* margin-right: 15px; */
    /* Add some spacing between number and text */

}

.why-number {
    font-size: 100px;
    font-weight: bold;
    color: #9a0001;
    margin-right: 8px;
}

.why-card p {
    margin: auto;
    font-size: 16px;
    line-height: 1.4;
    color: black;

    /* Light Gray Text */
}

.why-card .why-card-header {
    font-size: 20px;
    color: #9a0001;
}

.why-card .marginf {
    margin-top: 25px;
}


.circle-effect {
    position: relative;
    z-index: 1;
}

.circle-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border: 3px solid #1e293b;
    border-radius: 50%;
    z-index: -1;

}



/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: #9a0001;
    color: white;
    border: none;
    font-size: 24px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}


#myBtn {
    /* Modified to use the arrow class */
    width: 2vmin;
    height: 2vmin;
    box-sizing: border-box;
    position: fixed;
    /* Keep fixed */
    bottom: 20px;
    right: 30px;
    transform: rotate(-45deg);
    z-index: 99;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: none;

}


#myBtn::before {
    content: '';
    width: 100%;
    height: 100%;
    border-width: .8vmin .8vmin 0 0;
    border-style: solid;
    border-color: #9a0001;
    transition: .2s ease;
    display: block;
    transform-origin: 100% 0;
}

#myBtn::after {
    content: '';
    float: left;
    position: relative;
    top: -100%;
    width: 100%;
    height: 100%;
    border-width: 0 .8vmin 0 0;
    border-style: solid;
    border-color: #9a0001;
    transform-origin: 100% 0;
    transition: .2s ease;
}

.footer {
    padding: 50px 0;
    margin-top: 5rem;
    background-color: #9a0001;
    color: #fff;
    font-family: "Montserrat", sans-serif;
}

/* ===== Container & grid ===== */
.footer_container {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer_grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 4rem;
    column-gap: 3rem;
    align-items: start;
}


/* ===== Branding ===== */

.footer_brand {
    grid-column: span 2;
}

.footer_brand_name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer_brand_text {
    color: #000;
}

.footer_description {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}

/* ===== Newsletter form ===== */

.footer_newsletter {
    grid-column: span 2;
    padding-left: 2rem;
}

.footer_form {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
}

.footer_input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    height: 3rem;
}

.footer_button {
    width: 50%;
    height: 3rem;
    margin-top: 1rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.footer_button:hover {
    color: #fff;
    background: #1e293b;
}

/* ===== Section titles ===== */
.footer_section_title {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}


/* ===== Link lists ===== */
.footer_list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.footer_list li {
    margin-bottom: 1rem;

}

.footer_link {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer_link:hover {
    color: #000;
}



/* ===== Divider & copyright ===== */
.footer_hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 2.5rem 0;
}

.footer_copy {
    margin: 0;
    font-size: 0.875rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

@media(max-width: 1165px) {
    .logo {
        margin: 0 0 15px 0;
    }

    nav ul {
        margin-bottom: 15px;
    }

    nav ul li {
        width: auto;
        text-align: center;

    }

    .get-start {
        margin: 10px 0 0 0;
    }

    #why h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }


    .circle-effect::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-55%, -48%);
        /* Center the circle */
        width: 120%;
        /* Adjust size as needed */
        height: 120%;
        /* Adjust size as needed */
        border: 3px solid rgb(111, 64, 26);
        /* Adjust color and thickness */
        border-radius: 50%;
        z-index: -1;
        /* Place the circle behind the text */
    }

}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    .logo {
        margin: 0 0 15px 0;
    }

    nav ul {
        margin-bottom: 15px;
    }

    nav ul li {
        width: auto;
        text-align: center;

    }

    .get-start {
        margin: 10px 0 0 0;
    }

    .converter-container {
        margin-left: 20px;
        margin-right: 20px;
    }

    .format-options-div {
        margin-left: 20px;
        margin-right: 20px;
    }

    .format-pill {
        margin-bottom: 27px;
        font-size: 0.7rem;
    }

    #why h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }


    .circle-effect::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-55%, -48%);
        /* Center the circle */
        width: 120%;
        /* Adjust size as needed */
        height: 120%;
        /* Adjust size as needed */
        border: 3px solid rgb(111, 64, 26);
        /* Adjust color and thickness */
        border-radius: 50%;
        z-index: -1;
        /* Place the circle behind the text */
    }


}

@media (max-width: 792px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    .logo {
        margin: 0 0 15px 0;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.mobile-nav-open {
        display: block;
    }

    nav ul {
        margin-bottom: 15px;
        justify-content: center;
    }

    nav ul li {
        width: auto;
        text-align: center;

    }

    .get-start {
        margin: 10px 0 0 0;
    }

    .converter-box {
        width: 90%;
    }



    .converter-container {
        padding: 16px 4px;
    }

    .file-row {
        flex-wrap: wrap;
    }

    .file-row .file-name {
        min-width: 120px;
    }

    .converter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .left-actions,
    .right-actions {
        margin-bottom: 10px;
    }

    main {
        margin-top: 45px;
    }

    .converter-container {
        margin-left: 20px;
        margin-right: 20px;
    }

    .file-upload-area {
        margin-left: 10px;
        margin-right: 10px;
    }

    .converter-actions {
        flex-direction: column;
        margin-top: 25px;
        gap: 20px;
        flex-wrap: wrap;
    }

    .format-options-div {
        margin: 0px 12px;
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 40px 15px 40px 15px;
    }

    .format-pill {
        margin-bottom: 27px;
        font-size: 0.8rem;
    }

    .format-col-left {
        padding-right: 0px;
    }

    .format-col-right {
        padding-left: 0px;
    }


    .why-container {
        grid-template-columns: 1fr;
    }

    #why h2 {
        font-size: 2.0rem;

    }

    .why-card {
        margin-top: 15px;
    }

    .footer_container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer_newsletter {
        padding-left: 0px;
    }

}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        padding: 30px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-img img {
        height: auto;
        width: 100%;
        max-width: 30px;
        display: block;
        margin-bottom: 10px;
    }

    nav {
        width: 100%;
        display: none;
    }

    nav.mobile-nav-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding-right: 0px;
    }

    nav ul li {
        width: 100%;
        margin: 5px 0;

    }

    nav ul li:not(:last-child) {
        margin-right: 0;
    }

    nav ul li:hover {
        background: none;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        display: block;
        text-align: center;
    }

    main {
        margin-top: 45px;
    }


    .converter-container {
        margin-left: 10px;
        margin-right: 10px;
    }

    .converter-actions {
        flex-direction: column;
        margin-top: 25px;
        gap: 20px;
        flex-wrap: wrap;
    }

    .format-options-div {
        margin: 0px 10px;
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 40px 12px 40px 12px;
    }

    .format-pill {
        margin-bottom: 27px;
        font-size: 0.7rem;
    }

    .format-col-left {
        padding-right: 0px;
    }

    .format-col-right {
        padding-left: 0px;
    }

    .why-container {
        grid-template-columns: 1fr;
    }

    #why h2 {
        font-size: 1.8rem;
        margin-bottom: 0px;
    }

    .circle-effect::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-48%, -48%);
        /* Center the circle */
        width: 120%;
        /* Adjust size as needed */
        height: 120%;
        /* Adjust size as needed */
        border: 3px solid rgb(111, 64, 26);
        /* Adjust color and thickness */
        border-radius: 50%;
        z-index: -1;
        /* Place the circle behind the text */
    }

    .footer {
        margin-top: 1rem;
    }

    .footer_container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer_newsletter {
        padding-left: 0px;
    }

}

.security-disclaimer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fde5c8 0%, #f8ffd3 100%);
    border: 2px solid #9a0001;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    animation: subtleGlow 3s ease-in-out infinite;
    overflow: hidden;
}

.disclaimer-text {
    color: #9a0001;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ===== PDF TOOLS SECTION - KEEP BUTTON SMALL, FIX CONTENT WIDTH ===== */
.pdf-tools-section {
    margin-top: 24px; /* Good spacing from file row */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    width: fit-content; /* Auto width based on content */
    margin-left: auto;
    margin-right: auto; /* Center the section */
    max-width: calc(100% - 40px); /* Ensure it doesn't exceed container with some margin */
}

.pdf-tools-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.pdf-tools-toggle-container {
    padding: 0;
}

.pdf-tools-toggle-btn {
    width: auto; /* Keep auto width - SMALL BUTTON */
    padding: 8px 16px; /* Keep small padding */
    background: linear-gradient(135deg, #9a0001 0%, #b91c1c 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Small gap */
    font-size: 0.9rem; /* Keep small font size */
    font-weight: 500; /* Normal font weight */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    min-width: 220px; /* Fixed minimum width for consistency */
    white-space: nowrap; /* Prevent text wrapping */
}

.pdf-tools-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.pdf-tools-toggle-btn:hover::before {
    left: 100%;
}

.pdf-tools-toggle-btn:hover {
    background: linear-gradient(135deg, #7a0001 0%, #9a0001 100%);
    transform: translateY(-1px);
}

.pdf-tools-toggle-btn:active {
    transform: translateY(0);
}

.toggle-arrow {
    margin-left: 4px; /* Small margin */
    transition: transform 0.3s ease;
    font-size: 0.8rem; /* Small arrow */
}

.pdf-tools-content {
    padding: 16px;
    background: white;
    box-sizing: border-box;
    width: 220px; /* MATCH THE BUTTON WIDTH */
    min-width: 220px; /* MATCH THE BUTTON WIDTH */
    margin-left: auto;
    margin-right: auto;
}

.pdf-tools-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column to fit in fixed width */
    gap: 12px; /* Moderate gap */
    margin-top: 12px; /* Small margin */
    width: 100%;
    box-sizing: border-box;
}

.pdf-tool-card {
    display: flex;
    align-items: center;
    gap: 10px; /* Small gap */
    padding: 12px; /* Small padding */
    background: #f8f9fa;
    border-radius: 6px; /* Small border radius */
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent; /* Thin border */
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); /* Light shadow */
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.pdf-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(154, 0, 1, 0.08), transparent);
    transition: left 0.5s ease;
}

.pdf-tool-card:hover::before {
    left: 100%;
}

.pdf-tool-card:hover {
    transform: translateY(-2px); /* Small transform */
    border-color: #9a0001;
    box-shadow: 0 4px 12px rgba(154, 0, 1, 0.12); /* Moderate shadow */
    text-decoration: none;
    color: inherit;
    background: white;
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Small icon */
    height: 36px; /* Small icon */
    background: linear-gradient(135deg, #9a0001, #c41e3a);
    border-radius: 50%;
    color: white;
    font-size: 1rem; /* Small font */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.pdf-tool-card:hover .tool-icon {
    transform: scale(1.05) rotate(3deg); /* Small scale and rotation */
    background: linear-gradient(135deg, #7a0001, #9a0001);
}

.tool-content {
    flex: 1;
    min-width: 0;
}

.tool-content h4 {
    margin: 0 0 2px 0; /* Small margin */
    font-size: 0.9rem; /* Small font */
    font-weight: 600;
    color: #1f2937;
    transition: color 0.3s ease;
}

.pdf-tool-card:hover .tool-content h4 {
    color: #9a0001;
}

.tool-content p {
    margin: 0;
    font-size: 0.75rem; /* Small font */
    color: #6b7280;
    line-height: 1.3; /* Tight line height */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pdf-tools-section {
        margin-top: 20px;
        width: calc(100% - 40px); /* Take more width on mobile */
        margin-left: 20px;
        margin-right: 20px;
        max-width: none;
    }
    
    .pdf-tools-toggle-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 200px;
    }
    
    .pdf-tools-content {
        padding: 12px;
        width: calc(100% - 24px); /* Responsive width */
        min-width: 200px;
    }
    
    .pdf-tools-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }
    
    .pdf-tool-card {
        padding: 10px;
    }
    
    .tool-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .tool-content h4 {
        font-size: 0.85rem;
    }
    
    .tool-content p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .pdf-tools-section {
        margin-top: 16px;
        width: calc(100% - 20px);
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .pdf-tools-toggle-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 180px;
        gap: 6px;
    }
    
    .pdf-tools-content {
        padding: 10px;
        width: calc(100% - 20px);
        min-width: 180px;
    }
    
    .pdf-tools-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 8px;
    }
    
    .pdf-tool-card {
        padding: 8px;
        flex-direction: row; /* Keep horizontal on mobile */
        text-align: left;
    }
    
    .tool-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-bottom: 0;
    }
    
    .toggle-arrow {
        margin-left: 2px;
    }
}

.how-to-guides {
    padding: 80px 20px;
    background: #fcf7f7;
}

.how-to-container {
    max-width: 1200px;
    margin: 0 auto;
}

.how-to-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-to-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.how-to-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

.guide-card {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-left: 20px;
    padding-right: 20px;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.guide-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.guide-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 45px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.guide-steps {
    margin-bottom: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.step-number {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.step p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.guide-link {
    color: #9a0001;
    text-decoration: none;
    font-weight: 600;
}

.guide-link:hover {
    text-decoration: underline;
}

.guide-footer {
    margin-top: 20px;
}

.guide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #9a0001;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.guide-cta:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.guide-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

/* Color schemes for different guides */
.guide-green {
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
}

.green-decoration {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    right: -50px;
    top: -50px;
}

.guide-red {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.red-decoration {
    background: linear-gradient(135deg, #f87171, #9a0001);
    left: -50px;
    bottom: -50px;
}

.guide-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.blue-decoration {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    right: -50px;
    bottom: -50px;
}

.guide-orange {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.orange-decoration {
    background: linear-gradient(135deg, #fb923c, #f97316);
    left: -50px;
    top: -50px;
}

.guide-purple {
    background: linear-gradient(135deg, #f3e8ff, #ede9fe);
}

.purple-decoration {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    right: -50px;
    top: -50px;
}

.guide-yellow {
    background: linear-gradient(135deg, #fefce8, #fef3c7);
}

.yellow-decoration {
    background: linear-gradient(135deg, #facc15, #eab308);
    left: -50px;
    bottom: -50px;
}

/* Color schemes for result items */
.result-green {
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
}

.result-orange {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.result-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.result-red {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.result-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

.result-green .green-decoration {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    right: -20px;
    top: -20px;
}

.result-orange .orange-decoration {
    background: linear-gradient(135deg, #fb923c, #f97316);
    left: -20px;
    top: -20px;
}

.result-blue .blue-decoration {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    right: -20px;
    bottom: -20px;
}

.result-red .red-decoration {
    background: linear-gradient(135deg, #f87171, #9a0001);
    left: -20px;
    bottom: -20px;
}