/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color var(--theme-transition-duration, 0.3s) ease,
                color var(--theme-transition-duration, 0.3s) ease,
                border-color var(--theme-transition-duration, 0.3s) ease,
                box-shadow var(--theme-transition-duration, 0.3s) ease;
}

:root {
    /* Light Mode Default Variables */
    --primary-color: #1e3c72;
    --primary-color-rgb: 30, 60, 114;
    --secondary-color: #2a5298;
    --accent-color: #ffc107;
    --accent-color-rgb: 255, 193, 7;

    --text-light: white;
    --text-dark: #333;
    --text-medium: #111;
    --text-muted: #555;

    --page-bg: #f0f2f5;
    --card-bg: #ffffff;
    --section-bg-light: #ffffff;
    --section-bg-medium: #f9f9f9;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    --card-hover-bg: #f8f9fa;

    --border-color-light: #ccc;
    --input-bg: #ffffff;
    --input-border-color: var(--border-color-light);
    --input-focus-border-color: var(--primary-color);
    --input-focus-box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.3);

    --no-results-bg: #fcf8e3;
    --no-results-border: #fbeed5;
    --no-results-text: #d9534f;

    --footer-bg: #0f0f0f;
    --footer-text: #adb5bd;
    --footer-text-light: #ced4da;
    --footer-title: #ffffff;
    --footer-bottom-bg: #000000;
    --footer-social-icon-bg: #343a40;
    --footer-bottom-border: #2c2c2c;

    --header-height: 70px;
    --header-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --header-text-color: var(--text-light);
    --header-icon-color: var(--text-light);
    --header-btn-bg: var(--accent-color);
    --header-btn-text: var(--primary-color);
    --header-btn-hover-bg: #e0a800;
    --header-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    --theme-switch-track-bg-off: #ccc;
    --theme-switch-track-shadow-off: inset 1px 1px 2px rgba(0,0,0,0.1);
    --theme-switch-track-bg-on: var(--accent-color);
    --theme-switch-track-shadow-on: 0 0 5px rgba(var(--accent-color-rgb), 0.7);
    --theme-switch-thumb-bg: white;
    --theme-switch-thumb-shadow: 0px 1px 3px rgba(0,0,0,0.3);
    --theme-switch-icon-color-off: #888;
    --theme-switch-icon-color-on: var(--header-btn-text);
    --theme-transition-duration: 0.3s;
}

body.dark-mode {
    /* Dark Mode Variable Overrides */
    --primary-color: #4f8dff;
    --primary-color-rgb: 79, 141, 255;
    --secondary-color: #6faaff;
    --accent-color: #f5b041;
    --accent-color-rgb: 245, 176, 65;

    --text-light: #1a1a1a;
    --text-dark: #e0e0e0;
    --text-medium: #f0f0f0;
    --text-muted: #a0a0a0;

    --page-bg: #121212;
    --card-bg: #1e1e1e;
    --section-bg-light: #1e1e1e;
    --section-bg-medium: #242424;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.2);
    --card-hover-shadow: 0 8px 25px rgba(0,0,0,0.3);
    --card-hover-bg: #2a2a2a;

    --border-color-light: #444;
    --input-bg: #2c2c2c;
    --input-border-color: var(--border-color-light);
    --input-focus-border-color: var(--accent-color);
    --input-focus-box-shadow: 0 0 0 0.2rem rgba(var(--accent-color-rgb), 0.25);

    --no-results-bg: #3e302c;
    --no-results-border: #5c4b46;
    --no-results-text: #ffc107;

    --footer-bottom-border: #3a3a3a;

    --header-bg: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    --header-text-color: #e0e0e0;
    --header-icon-color: #e0e0e0;
    --header-btn-bg: var(--accent-color);
    --header-btn-text: #121212;
    --header-btn-hover-bg: #d99830;
    --header-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

    --theme-switch-track-bg-off: #444;
    --theme-switch-track-shadow-off: inset 1px 1px 2px rgba(0,0,0,0.3);
    --theme-switch-track-bg-on: var(--accent-color);
    --theme-switch-track-shadow-on: 0 0 8px rgba(var(--accent-color-rgb), 0.5);
    --theme-switch-thumb-bg: #2c2c2c;
    --theme-switch-thumb-shadow: 0px 1px 3px rgba(0,0,0,0.5);
    --theme-switch-icon-color-off: var(--accent-color);
    --theme-switch-icon-color-on: var(--header-btn-text);
}

*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page-bg);
    color: var(--text-dark);
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
}

body.menu-open {
    overflow-y: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Header */
header {
    background: var(--header-bg);
    color: var(--header-text-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--header-shadow);
    height: var(--header-height);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: inherit;
    color: var(--header-icon-color);
}

.logo-link {
    color: var(--header-text-color);
    text-decoration: none;
    font-weight: bold;
}

.header-right-controls {
    display: none;
    align-items: center;
    gap: 10px;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.desktop-nav a {
    color: var(--header-text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.desktop-nav a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.desktop-nav a.active {
    color: var(--accent-color);
}

.desktop-nav a.btn {
    background-color: var(--header-btn-bg);
    color: var(--header-btn-text) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}
.desktop-nav a.btn:hover {
    background-color: var(--header-btn-hover-bg);
    color: var(--header-btn-text) !important;
    text-decoration: none;
}

/* Theme Switch Styles */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    align-self: center;
}
.desktop-nav-theme-toggle {
    margin-right: 5px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--theme-switch-track-bg-off);
    box-shadow: var(--theme-switch-track-shadow-off);
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--theme-switch-thumb-bg);
    box-shadow: var(--theme-switch-thumb-shadow);
    transition: transform var(--theme-transition-duration), background-color var(--theme-transition-duration), box-shadow var(--theme-transition-duration), color var(--theme-transition-duration);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    content: "\f186";
    color: var(--theme-switch-icon-color-off);
}
input:checked + .slider {
    background-color: var(--theme-switch-track-bg-on);
    box-shadow: var(--theme-switch-track-shadow-on);
}
input:checked + .slider:before {
    transform: translateX(24px);
    content: "\f185";
    color: var(--theme-switch-icon-color-on);
}
.slider.round { border-radius: 26px; }
.slider.round:before { border-radius: 50%; }

/* Menu Icon for Mobile */
.menu-icon {
    font-size: 28px;
    cursor: pointer;
    display: none;
    color: var(--header-icon-color);
    background: transparent;
    border: none;
    padding: 10px;
}
.menu-icon i {
    color: var(--header-icon-color);
    font-size: 24px;
    display: block;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    max-width: 90%;
    height: 100vh;
    background: var(--primary-color);
    transition: right 0.4s ease-in-out, background-color var(--theme-transition-duration) ease;
    padding: 20px;
    z-index: 1001;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}
body.dark-mode .mobile-menu {
    background: #1f2937;
    box-shadow: -4px 0 15px rgba(0,0,0,0.4);
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu .close-btn {
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text-color);
    background: transparent;
    border: none;
    padding: 0;
    display: block;
    text-align: right;
    margin-bottom: 10px;
}

.mobile-menu .menu-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    color: var(--header-text-color);
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent-color);
}

.mobile-menu a.btn {
    background-color: var(--header-btn-bg);
    color: var(--header-btn-text) !important;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    justify-content: center;
}
.mobile-menu a.btn:hover {
    background-color: var(--header-btn-hover-bg);
}

.mobile-menu hr {
    width: 100%;
    border: 0;
    border-top: 0.5px solid rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}
body.dark-mode .mobile-menu hr {
    border-top-color: rgba(229, 231, 235, 0.2);
}


.mobile-menu .social-icons-horizontal {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.mobile-menu .social-icons-horizontal a {
    color: var(--header-text-color);
    font-size: 22px;
    padding: 0;
}

.mobile-menu .social-icons-horizontal a:hover {
    color: var(--accent-color);
}

/* Main Content Wrapper */
.content-wrapper {
    flex-grow: 1;
}

/* Content Area (Welcome, Search) */
.content {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.welcome-text {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Search Box */
#searchBox {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px auto;
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid var(--input-border-color);
    background-color: var(--input-bg);
    color: var(--text-dark);
    border-radius: 50px;
    outline: none;
}

#searchBox:focus {
    border-color: var(--input-focus-border-color);
    box-shadow: var(--input-focus-box-shadow);
}
#searchBox::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}


/* No results message (Global) */
.no-results {
    text-align: center;
    color: var(--no-results-text);
    font-size: 18px;
    padding: 20px;
    background-color: var(--no-results-bg);
    border: 1px solid var(--no-results-border);
    border-radius: 5px;
    margin: 20px auto;
    max-width: 600px;
}

/* Visually Hidden (Utility class) */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* --- CATEGORY AND TOOL GRID STYLES --- */
#all-tools-categorized {
    padding: 0 20px 20px 20px;
}

.tool-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    display: block;
    text-align: center;
    border-bottom: none;
    text-decoration: none;
}

.tools-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Tools will be 5 columns on desktop */
    gap: 20px;
}

.tool {
    background: var(--card-bg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
body.dark-mode .tool {
    border-color: var(--border-color-light);
}

.tool:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    background-color: var(--card-hover-bg);
}

.tool-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.tool h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-medium);
    font-weight: 600;
}

.tool:hover h3 {
    color: var(--secondary-color);
}

.tool p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

/* --- General Section Styling (shared by Features & Trusted Converter) --- */
.features-section,
.trusted-converter-section {
    padding: 60px 20px;
    text-align: center;
}

.features-section .container,
.trusted-converter-section .container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.features-section .section-title,
.trusted-converter-section .section-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.features-section .section-title { font-size: 32px; }
.trusted-converter-section .section-title { font-size: 28px; }


.features-section .section-subtitle {
    color: var(--text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 40px;
}

.trusted-converter-section .section-description {
    font-size: 18px;
    margin-bottom: 35px;
    color: var(--text-dark);
    font-style: italic;
    letter-spacing: 0.2px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Features Section Specific Styles (Now styled like Tool Cards) --- */
.features-section {
    background-color: var(--section-bg-light);
}
.features-section .container {
    max-width: 1200px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* MODIFIED: Features are 4 columns on desktop */
    gap: 20px;
}

.feature-card { /* Styled like .tool */
    background: var(--card-bg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
body.dark-mode .feature-card {
    border-color: var(--border-color-light);
}

.feature-card:hover { /* Styled like .tool:hover */
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    background-color: var(--card-hover-bg);
}

.feature-icon { /* Styled like .tool-icon */
    font-size: 40px;
    color: var(--primary-color); /* Or var(--accent-color) if preferred for features */
    margin-bottom: 18px;
}

.feature-title { /* Styled like .tool h3 */
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-medium);
    font-weight: 600;
}

.feature-card:hover .feature-title { /* Styled like .tool:hover h3 */
    color: var(--secondary-color);
}

.feature-description { /* Styled like .tool p */
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

/* --- Trusted PDF Converter Section Specific Styles --- */
.trusted-converter-section {
    background-color: var(--section-bg-medium);
}
.trusted-converter-section .container {
    max-width: 900px;
}

.security-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color-light);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 15px;
    color: var(--text-dark);
}
body.dark-mode .badge {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}


.badge i {
    font-size: 22px;
    color: var(--secondary-color);
    line-height: 1;
}

.badge .badge-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    font-weight: 500;
}

.badge-iso .iso-main-text {
    font-weight: 600;
    font-size: 1em;
    color: var(--text-dark);
}
.badge-iso .iso-sub-text {
    font-size: 0.8em;
    opacity: 0.8;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.badge-secure .secure-main-text {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.badge-secure .secure-sub-text {
    font-size: 0.75em;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}


/* FOOTER STYLES */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 50px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: auto;
}

.site-footer .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-main-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column.about-column {
    flex: 1 1 30%;
    min-width: 250px;
    text-align: left;
}
.footer-column.about-column .footer-site-description {
    margin-bottom: 20px;
    color: var(--footer-text-light);
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.footer-column.about-column .footer-social-icons {
    justify-content: flex-start;
}


.footer-links-group {
    flex: 2 1 65%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-links-group .links-column {
    min-width: 160px;
}

.footer-site-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--footer-title);
    margin-bottom: 15px;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--footer-title);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--footer-title);
    padding-left: 5px;
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.footer-social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--footer-social-icon-bg);
    color: var(--footer-title);
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
body.dark-mode .footer-social-icons a:hover {
    color: var(--header-btn-text);
}


/* Footer Bottom Section */
.footer-bottom {
    background-color: var(--footer-bottom-bg);
    padding: 20px 0;
    border-top: 1px solid var(--footer-bottom-border);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-buy-code-btn {
    background-color: var(--accent-color);
    color: var(--header-btn-text) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-buy-code-btn:hover {
    background-color: var(--header-btn-hover-bg);
    color: var(--header-btn-text) !important;
    text-decoration: none;
}

.footer-buy-code-btn i {
    margin-right: 0;
}

.copyright-text {
    font-size: 15px;
    color: var(--footer-text);
    margin: 0;
    text-align: right;
}

.copyright-text a, .copyright-text strong {
    color: var(--accent-color);
    text-decoration: none;
}
.copyright-text a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    /* Tools grid becomes 4 columns */
    .tools-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
    /* Features grid is already 4 columns by default, so this rule for it is redundant here but kept for consistency if tools and features were to match */
    .features-grid {
        /* grid-template-columns: repeat(4, 1fr); */ /* Already 4 by default */
    }
}

@media (max-width: 1024px) {
    .tools-grid-container,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .tool, .feature-card { padding: 25px; }
    .tool-icon, .feature-icon { font-size: 36px; }
    .tool h3, .feature-title { font-size: 18px; }
    .tool p, .feature-description {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .desktop-nav .desktop-nav-theme-toggle { margin-right: 10px; }
    .features-section .section-title { font-size: 28px; }
    .features-section .section-subtitle { font-size: 17px; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; --header-height: 60px; }
    header { height: var(--header-height); padding: 10px 15px; }
    .logo {
        font-size: 26px;
    }
    .logo i { margin-right: 8px; }

    .menu-icon { display: flex; align-items: center; }
    .desktop-nav { display: none; }
    .header-right-controls { display: flex; }
    .mobile-header-theme-toggle { display: inline-block; }

    .welcome-text { font-size: 31px; }
    .description { font-size: 18px; }
    #searchBox { max-width: 90%; padding: 10px 15px; font-size: 16px; }

    .features-section, .trusted-converter-section { padding: 40px 15px; }
    .trusted-converter-section .section-title { font-size: 24px; }
    .trusted-converter-section .section-description { font-size: 16px; }

    .security-badges { gap: 20px; }
    .badge { font-size: 14px; padding: 8px 12px;}
    .badge i { font-size: 20px; }

    .footer-main-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-column.about-column {
        flex-basis: 100%;
        text-align: left;
    }
    .footer-column.about-column .footer-site-description {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        font-size: 16px;
    }
    .footer-column.about-column .footer-social-icons {
        justify-content: flex-start;
    }
    .footer-links-group {
        flex-basis: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
    }
    .footer-links-group .footer-column.links-column {
        flex-basis: calc(50% - 10px);
        min-width: 150px;
        text-align: left;
    }
     .footer-column ul {
        text-align: left;
    }
    .footer-column ul li a { font-size: 16px; }

    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-buy-code-btn { margin-bottom: 10px; font-size: 16px; }
    .copyright-text { text-align: center; font-size: 15px; }

    .category-title {
        font-size: 27px;
        margin-bottom: 20px;
    }
    #all-tools-categorized {
        padding: 0 15px 15px 15px;
    }
    .tools-grid-container,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center; /* Center items in their cells */
    }
    .tool, .feature-card { padding: 20px; }
    .tool-icon, .feature-icon { font-size: 33px; }
    .tool h3, .feature-title { font-size: 19px; }
    .tool p, .feature-description {
        font-size: 16px;
    }

    .features-section .section-title { font-size: 27px; }
    .features-section .section-subtitle { font-size: 18px; }
}

@media (max-width: 576px) {
    .logo {
        font-size: 24px;
    }
    .features-section .section-title { font-size: 27px; }
    .features-section .section-subtitle { font-size: 17px; margin-bottom: 30px;}
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }
    .logo i { margin-right: 6px; }

    .welcome-text { font-size: 27px; }
    .description { font-size: 16px; }
    #searchBox { font-size: 15px; }

    .security-badges {
        gap: 15px;
    }
    .badge {
        width: fit-content;
        font-size: 14px;
    }

    .site-footer { font-size: 15px; padding-top: 30px; }
    .footer-site-name { font-size: 25px; }
    .footer-column-title { font-size: 18px; }
    .footer-column.about-column .footer-site-description { font-size: 15px; }
    .footer-column ul li a { font-size: 15px; }

    .footer-links-group {
        gap: 10px;
    }
    .footer-links-group .footer-column.links-column {
        flex-basis: calc(50% - 5px);
        min-width: auto;
        text-align: left;
    }

    .footer-buy-code-btn { font-size: 15px; padding: 6px 12px; }
    .copyright-text { font-size: 14px; }

    .category-title {
        font-size: 23px;
    }
    .tools-grid-container,
    .features-grid {
        /* As per your original CSS, these stayed 2-column. If 1-column is desired: */
        /* grid-template-columns: repeat(1, 1fr); */
        gap: 10px;
        justify-items: center; /* Ensure centering persists */
    }
    .tool, .feature-card { padding: 15px; }
    .tool-icon, .feature-icon { font-size: 29px; }
    .tool h3, .feature-title { font-size: 18px; }
    .tool p, .feature-description {
        font-size: 15px;
    }

    .features-section .section-title { font-size: 25px; }
    .features-section .section-subtitle { font-size: 16px; }

    .trusted-converter-section .section-title { font-size: 22px; }
    .trusted-converter-section .section-description { font-size: 15px; }
}

@media (min-width: 769px) and (max-width: 992px) {
    .footer-main-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-column.about-column {
        flex-basis: 100%;
        text-align:center;
    }
     .footer-column.about-column .footer-social-icons {
        justify-content: center;
    }
    .footer-links-group {
        width: 100%;
        justify-content: space-around;
    }
    .footer-links-group .footer-column.links-column {
        flex-basis: calc(45% - 15px);
        min-width: 160px;
        text-align: left;
    }
    .footer-column ul {
        text-align: left;
    }
}



/* ========================== */
/* Testimonials Section Styles */
/* ========================== */
.testimonials-section {
    
    padding-top: 40px;
    padding-right: 20px;
    padding-bottom: 60px;
    padding-left: 20px;
    
    /* background-color: var(--section-bg-medium); DELETED - will inherit from body or use new gradient */
    background-image: linear-gradient(to bottom, var(--section-bg-light) 0%, var(--section-bg-medium) 100%); /* Subtle gradient background */
    text-align: center;
    overflow: hidden; /* To contain the scrollers properly */
}
body.dark-mode .testimonials-section {
    background-image: linear-gradient(to bottom, var(--page-bg) 0%, var(--card-bg) 100%);
}


.testimonials-section .section-title {
    margin-bottom: 15px;
    /* text-shadow: 1px 1px 2px rgba(var(--primary-color-rgb), 0.1); */ /* Optional subtle shadow */
}

.testimonials-section .section-subtitle {
    margin-bottom: 50px; /* Increased space */
    font-size: 1.1em; /* Slightly larger */
}

.testimonial-scrollers-container {
    max-width: 100%;
}

.testimonial-scroller {
    width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent); /* Adjusted mask for better fade */
    mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
    margin-bottom: 25px; /* Increased space between scrollers */
}

.testimonial-scroller:last-child {
    margin-bottom: 0;
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    list-style: none;
    padding: 10px 0; /* Add some vertical padding for breathing room */
    margin: 0;
    will-change: transform;
}

/* Animation for Left to Right */
.scroller-ltr .scroller-inner {
    /* Animation speed will be controlled by data-speed attribute, default to 60s for normal */
    animation: scroll-ltr 60s linear infinite;
}
/* Animation for Right to Left */
.scroller-rtl .scroller-inner {
    animation: scroll-rtl 60s linear infinite;
}

.testimonial-scroller[data-speed="fast"] .scroller-inner {
    animation-duration: 40s; /* Adjusted for more items */
}
.testimonial-scroller[data-speed="normal"] .scroller-inner {
    animation-duration: 70s; /* Default for 10 items */
}
.testimonial-scroller[data-speed="slow"] .scroller-inner {
    animation-duration: 100s; /* Adjusted for more items */
}


.testimonial-scroller:hover .scroller-inner {
    animation-play-state: paused;
}

@keyframes scroll-ltr {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-rtl {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.testimonial-card {
    background: var(--card-bg);
    padding: 20px 25px; /* MODIFIED: Padding kam kiya */
    border-radius: 10px; /* MODIFIED: Thoda kam rounded */
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color-light);
    margin: 0 10px; /* MODIFIED: Margin thoda kam */
    width: 280px;   /* MODIFIED: Width kam ki */
    min-height: 210px; /* MODIFIED: Min-height kam ki */
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .testimonial-card {
    /* border-color is already set by var(--border-color-light) */
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02); /* More pronounced hover effect */
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-color); /* Highlight border on hover */
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 12px; /* Increased margin */
    font-size: 17px; /* Slightly larger stars */
}
.testimonial-stars i {
    margin-right: 2px; /* Small space between stars */
}
.testimonial-stars .fa-regular.fa-star {
    color: #ccc;
}

.testimonial-quote {
    font-size: 1rem; /* Use rem for better accessibility */
    color: var(--text-dark);
    line-height: 1.65; /* Improved line height */
    margin-bottom: 20px; /* Increased margin */
    font-style: normal; /* Removing italic for a cleaner look, optional */
    flex-grow: 1;
    position: relative; /* For quotes positioning */
    padding-left: 25px; /* Space for the quote mark */
}

.testimonial-quote::before {
    content: "“";
    font-family: 'Georgia', serif; /* A more classic quote font */
    font-size: 48px; /* Larger quote mark */
    color: var(--accent-color); /* Accent color for quote mark */
    font-weight: bold;
    position: absolute;
    left: -5px;
    top: -10px;
    opacity: 0.6;
    line-height: 1;
}
/* Remove the after quote for a cleaner look, or style it similarly */
.testimonial-quote::after {
    content: ""; /* Disabled for now */
}


.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 15px; /* Space above author section */
    border-top: 1px solid var(--border-color-light); /* Separator line */
    transition: border-color var(--theme-transition-duration);
}
body.dark-mode .testimonial-author {
    border-top-color: rgba(255,255,255,0.1);
}


.author-avatar {
    width: 55px; /* Slightly larger avatar */
    height: 55px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 3px solid var(--card-bg); /* Border matching card background */
    box-shadow: 0 0 0 2px var(--accent-color); /* Outer ring in accent color */
}

.author-name {
    font-size: 1.05rem; /* Use rem */
    font-weight: 600;
    color: var(--text-medium);
    margin: 0 0 3px 0; /* Adjusted margin */
}

.author-title {
    font-size: 0.9rem; /* Use rem */
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        width: 260px; /* MODIFIED: Width kam ki */
        min-height: 200px; /* MODIFIED: Min-height kam ki */
        margin: 0 8px; /* MODIFIED: Margin thoda kam */
    }
    .testimonials-section .section-title {
        font-size: 28px;
    }
    .testimonials-section .section-subtitle {
        font-size: 1em; /* Adjusted */
    }
    /* Adjust animation speed on mobile if it feels too fast/slow */
    .scroller-ltr .scroller-inner,
    .scroller-rtl .scroller-inner {
        animation-duration: 80s; /* Slower for more items on mobile */
    }
    .testimonial-scroller[data-speed="fast"] .scroller-inner {
        animation-duration: 50s;
    }
    .testimonial-scroller[data-speed="slow"] .scroller-inner {
        animation-duration: 110s;
    }
    .testimonial-quote {
        font-size: 0.95rem;
        padding-left: 20px;
    }
    .testimonial-quote::before {
        font-size: 40px;
        left: -3px;
        top: -8px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        width: calc(100vw - 30px); /* MODIFIED: Thoda zyada space lega on small screens */
        max-width: 270px; /* MODIFIED: Max width kam ki */
        margin: 0 6px; /* MODIFIED: Margin thoda kam */
        padding: 15px 20px; /* MODIFIED: Padding aur kam ki */
        min-height: 190px; /* MODIFIED: Min-height yahan bhi set kar sakte hain */
    }
    .testimonials-section {
        /* padding: 40px 10px;  <- यह लाइन अब ऊपर वाली padding लाइन से नियंत्रित होगी */
        /* अगर आप इसे खास तौर पर 480px के लिए बदलना चाहते हैं तो इसे यहां अपडेट करें, जैसे: */
        padding-top: 20px; /* 480px पर ऊपर का पैडिंग */
        padding-bottom: 40px; /* 480px पर नीचे का पैडिंग */
        padding-left: 10px;
        padding-right: 10px;
    }
     .testimonial-scroller {
        -webkit-mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent); /* Tighter mask for smaller screens */
        mask: linear-gradient(90deg, transparent, white 5%, white 95%, transparent);
    }
    .testimonial-quote {
        font-size: 0.9rem;
    }
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    .author-name { font-size: 1rem; }
    .author-title { font-size: 0.85rem; }
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroller-inner {
    animation: none !important;
  }
}

