/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Arial', sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #F3F4F6;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Header Styles */
header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #1E3A8A;
    border-bottom: 3px solid #FBBF24;
    position: relative;
    z-index: 1001;
}

header .site-title {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    text-decoration: none;
    font-weight: bold;
}

header p {
    font-size: 1.2rem;
    color: #E5E7EB;
}



.main-navigation a:hover {
    background: #1E3A8A;
    color: white;
    transform: none;
}

/* New Navigation Styles */
.main-navigation {
    margin-top: 1rem;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0.3rem 0.5rem;
    position: relative;
}

.nav-link {
    color: #1E3A8A;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: #E5E7EB;
    border: 1px solid #D1D5DB;
    font-weight: 600;
    display: block;
}

.nav-link:hover,
.nav-item.is-open > .nav-link {
    background: #1E3A8A;
    color: white;
}

.has-dropdown > .nav-link {
    cursor: pointer;
}

.has-dropdown > .nav-link::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-item.is-open > .nav-link::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
    padding: 0.5rem 0;
    border: 1px solid #D1D5DB;
    list-style: none;
    min-width: 200px;
}

.nav-item.is-open > .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: #374151;
    padding: 0.7rem 1rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu li a:hover {
    background: #1E3A8A;
    color: white;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: absolute;
    top: 2rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-nav-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s;
}

.mobile-nav-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-nav-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1E3A8A;
        padding: 1rem;
    }

    .main-navigation[data-visible="true"] {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        width: 100%;
        margin: 0.2rem 0;
    }

    .nav-link {
        padding: 0.8rem 1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: #1c357a;
        padding-left: 1rem;
    }

    .dropdown-menu li a {
        color: white;
    }
}





/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%; /* Ensure container takes full width but respects max-width */
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Content Grid for Individual Pages */
.content-grid {
    display: grid;
    gap: 2rem;
}

.content-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.content-card h1 {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-size: 2.5rem;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.content-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0;
    color: #374151;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #1E3A8A;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.category-card:hover h3 {
    color: #1E3A8A;
}

.category-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1E3A8A;
    background: #EFF6FF;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-card:hover .card-icon {
    transform: scale(1.1);
    background: #DBEAFE;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1F2937;
    font-weight: 600;
}

.category-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6B7280;
    margin-bottom: 0;
}

/* Color variations for category cards */
.category-grid > :nth-child(6n+1) .card-icon {
    color: #1E3A8A;
    background-color: #EFF6FF;
}

.category-grid > :nth-child(6n+1):hover .card-icon {
    color: #1E3A8A;
    background-color: #DBEAFE;
}

.category-grid > :nth-child(6n+1)::before {
    background: #1E3A8A;
}

.category-grid > :nth-child(6n+2) .card-icon {
    color: #1E3A8A;
    background-color: #EFF6FF;
}

.category-grid > :nth-child(6n+2):hover .card-icon {
    color: #1E3A8A;
    background-color: #DBEAFE;
}

.category-grid > :nth-child(6n+2)::before {
    background: #1E3A8A;
}

.category-grid > :nth-child(6n+3) .card-icon {
    color: #1E3A8A;
    background-color: #EFF6FF;
}

.category-grid > :nth-child(6n+3):hover .card-icon {
    color: #1E3A8A;
    background-color: #DBEAFE;
}

.category-grid > :nth-child(6n+3)::before {
    background: #1E3A8A;
}

.category-grid > :nth-child(6n+4) .card-icon {
    color: #1E3A8A;
    background-color: #EFF6FF;
}

.category-grid > :nth-child(6n+4):hover .card-icon {
    color: #1E3A8A;
    background-color: #DBEAFE;
}

.category-grid > :nth-child(6n+4)::before {
    background: #1E3A8A;
}

.category-grid > :nth-child(6n+5) .card-icon {
    color: #1E3A8A;
    background-color: #EFF6FF;
}

.category-grid > :nth-child(6n+5):hover .card-icon {
    color: #1E3A8A;
    background-color: #DBEAFE;
}

.category-grid > :nth-child(6n+5)::before {
    background: #1E3A8A;
}

.category-grid > :nth-child(6n+6) .card-icon {
    color: #1E3A8A;
    background-color: #EFF6FF;
}

.category-grid > :nth-child(6n+6):hover .card-icon {
    color: #1E3A8A;
    background-color: #DBEAFE;
}

.category-grid > :nth-child(6n+6)::before {
    background: #1E3A8A;
}

/* Section Blocks - Enhanced Tool-like Styling */
section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #1E3A8A;
}

section h2 {
    font-size: 1.8rem;
    color: #1E3A8A;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

section h2 i {
    font-size: 1.5rem;
}

section h3 {
    font-size: 1.3rem;
    color: #1F2937;
    margin: 1rem 0 0.5rem 0;
}

section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6B7280;
    margin-bottom: 1rem;
}

/* FAQ Styles */
.faqs {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faqs:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0.1);
}

.faqs:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #1E3A8A;
}

.faqs h2 {
    font-size: 1.8rem;
    color: #1E3A8A;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.faq-item {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #F3F4F6;
}

.faq-item h3 {
    color: #1E3A8A;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.unit-card {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.unit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #F3F4F6;
}

.unit-card h3 {
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.unit-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Unit Card Link */
.unit-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.unit-card-link:hover {
    text-decoration: none;
}

/* Units List */
.units-list {
    margin: 1rem 0;
}

.units-list ul {
    columns: 2;
    column-gap: 2rem;
    list-style-type: none;
}

.units-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #E5E7EB;
    break-inside: avoid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.units-list li:before {
    content: "•";
    color: #1E3A8A;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Converter Styles */
.converter-container {
    background: #F9FAFB;
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem 0;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.converter-input, .converter-output {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.converter-arrow {
    text-align: center;
    margin: 1rem 0;
    color: #1E3A8A;
    font-size: 1.5rem;
}

input[type="number"], select {
    padding: 0.8rem;
    border: 1px solid #D1D5DB;
    border-radius: 5px;
    font-size: 1rem;
    width: 150px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

input[type="number"] {
    width: 200px;
    max-width: 100%;
    box-sizing: border-box;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 2px rgba(30, 58, 138, 0.2);
}

.convert-button {
    background: #1E3A8A;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.convert-button:hover {
    background: #1E40AF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.decimal-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 5px;
    border: 1px solid #E5E7EB;
}

.decimal-controls label {
    font-weight: bold;
    color: #1E3A8A;
}

.decimal-controls button {
    background: #1E3A8A;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.decimal-controls button:hover {
    background: #1E40AF;
    transform: translateY(-2px);
}

.decimal-controls #decimalPrecision {
    min-width: 3rem;
    text-align: center;
    font-weight: bold;
    color: #1F2937;
}

/* Enhanced converter styles */
.converter-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.swap-button {
    background: #1E3A8A;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.swap-button:hover {
    background: #1E40AF;
    transform: rotate(90deg);
}

.swap-button.swapped {
    background: #1E3A8A;
}

.swap-button.swapped:hover {
    background: #1E40AF;
}

.large-input {
    font-size: 1.5rem !important;
    padding: 1rem !important;
    text-align: center;
    font-weight: bold;
}

.result-input {
    background: #EFF6FF !important;
}

.quick-conversions {
    margin: 1.5rem 0;
    text-align: center;
}

.quick-conversions h3 {
    margin-bottom: 1rem;
    color: #1E3A8A;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.quick-convert {
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-convert:hover {
    background: #1E3A8A;
    color: white;
    transform: translateY(-2px);
}

/* New converter layout styles */
.converter-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.converter-input-group, .converter-output-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.converter-label {
    font-weight: bold;
    color: #1E3A8A;
    font-size: 1.1rem;
}

.converter-input-group select, .converter-output-group select {
    width: 100%;
}

.result-display {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 0;
    color: #1E3A8A;
    min-height: 56px; /* Same height as input fields */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Remove background */
    border: none; /* Remove border */
}

/* Desktop layout for converter */
@media (min-width: 769px) {
    .converter-layout {
        flex-direction: row;
    }
    
    .converter-input-group, .converter-output-group {
        flex-direction: column;
    }
    
    .converter-input-group select, .converter-output-group select {
        width: 100%;
    }
}

/* Conversions Grid */
.conversions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.conversion-card {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.conversion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #F3F4F6;
}

.conversion-card h3 {
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.conversion-card p {
    font-size: 1rem;
    font-weight: bold;
    color: #1F2937;
    margin-bottom: 0;
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.use-case-card {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #F3F4F6;
}

.use-case-card h3 {
    color: #1E3A8A;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.use-case-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #E5E7EB;
    margin-top: 2rem;
    background-color: #1E3A8A;
}

footer p {
    font-size: 0.9rem;
}

/* Footer Links */
.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #E5E7EB;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 1rem;
    padding: 15px 0;
}

.breadcrumb a {
    text-decoration: none;
    color: #1E3A8A;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: none;
}

.breadcrumb a:hover {
    background-color: transparent;
    text-decoration: none;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .site-title {
        font-size: 2.2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .card-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-card h1 {
        font-size: 2rem;
    }
    
    .faqs {
        padding: 1.5rem;
    }
    
    .faqs h2 {
        font-size: 1.5rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
    }
    
    .units-list ul {
        columns: 1;
    }
    
    .converter-input, .converter-output {
        flex-direction: column;
        align-items: flex-start;
    }
    
    input[type="number"], select {
        width: 100%;
    }
    
    .conversions-grid, .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    
}

@media (max-width: 768px) {
    header .site-title {
        font-size: 2.2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .card-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .content-card h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .units-grid {
        grid-template-columns: 1fr;
    }
    
    .units-list ul {
        columns: 1;
    }
    
    .converter-input, .converter-output {
        flex-direction: column;
        align-items: flex-start;
    }
    
    input[type="number"], select {
        width: 100%;
    }
    
    .conversions-grid, .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .converter-container {
        padding: 1.5rem !important;
    }
    
    .converter-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .converter-input, .converter-output {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .converter-controls {
        margin: 1rem 0;
    }
    
    .swap-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .large-input {
        font-size: 1.2rem !important;
        padding: 0.8rem !important;
    }
    
    .quick-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-convert {
        width: 80%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 1rem;
    }
    
    header .site-title {
        font-size: 1.8rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .content-card h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 1rem;
    }
    
    section h2 {
        font-size: 1.3rem;
    }
    
    .faqs {
        padding: 1rem;
    }
    
    .faqs h2 {
        font-size: 1.3rem;
    }
    
    .faq-item {
        padding: 0.8rem;
    }
    
    .faq-item h3 {
        font-size: 1rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
}

/* Animation for smoother transitions */
/* Animation for cards */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }
.category-card:nth-child(9) { animation-delay: 0.9s; }
.category-card:nth-child(10) { animation-delay: 1.0s; }
.category-card:nth-child(11) { animation-delay: 1.1s; }
.category-card:nth-child(12) { animation-delay: 1.2s; }
.category-card:nth-child(13) { animation-delay: 1.3s; }
.category-card:nth-child(14) { animation-delay: 1.4s; }
.category-card:nth-child(15) { animation-delay: 1.5s; }
.category-card:nth-child(16) { animation-delay: 1.6s; }
.category-card:nth-child(17) { animation-delay: 1.7s; }
.category-card:nth-child(18) { animation-delay: 1.8s; }
.category-card:nth-child(19) { animation-delay: 1.9s; }
.category-card:nth-child(20) { animation-delay: 2.0s; }
.category-card:nth-child(21) { animation-delay: 2.1s; }
.category-card:nth-child(22) { animation-delay: 2.2s; }
.category-card:nth-child(23) { animation-delay: 2.3s; }
.category-card:nth-child(24) { animation-delay: 2.4s; }
.category-card:nth-child(25) { animation-delay: 2.5s; }
.category-card:nth-child(26) { animation-delay: 2.6s; }
.category-card:nth-child(27) { animation-delay: 2.7s; }
.category-card:nth-child(28) { animation-delay: 2.8s; }
.category-card:nth-child(29) { animation-delay: 2.9s; }
.category-card:nth-child(30) { animation-delay: 3.0s; }
.category-card:nth-child(31) { animation-delay: 3.1s; }
.category-card:nth-child(32) { animation-delay: 3.2s; }
.category-card:nth-child(33) { animation-delay: 3.3s; }

/* Animation for smoother transitions */
@media (prefers-reduced-motion: no-preference) {
    .category-card,
    .faq-item,
    footer a {
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
}

/* Conversion Table Styles */
.conversion-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1rem;
    font-family: 'Open Sans', 'Arial', sans-serif;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.conversion-table thead tr {
    background: #1E3A8A;
    color: #ffffff;
    text-align: left;
}

.conversion-table th,
.conversion-table td {
    padding: 15px 20px;
    text-align: left;
}

.conversion-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversion-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.conversion-table tbody tr:nth-of-type(even) {
    background-color: #ffffff;
}

.conversion-table tbody tr:hover {
    background-color: #EFF6FF;
    transform: scale(1.01);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.conversion-table tbody tr:last-of-type {
    border-bottom: 2px solid #1E3A8A;
}

.conversion-table a {
    color: #1E3A8A;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.conversion-table a:hover {
    color: #1E40AF;
    text-decoration: underline;
}

/* Generic styles for 4-column table layouts */
.conversion-table .col-pair-1 {
    /* Style for columns 1 and 3 */
    font-weight: normal;
    color: inherit;
}

.conversion-table .col-pair-2 {
    /* Style for columns 2 and 4 */
    font-weight: normal;
    color: inherit;
}

/* Responsive table */
@media (max-width: 768px) {
    .conversion-table {
        font-size: 0.9rem;
    }
    
    .conversion-table th,
    .conversion-table td {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .conversion-table {
        font-size: 0.8rem;
    }
    
    .conversion-table th,
    .conversion-table td {
        padding: 10px 12px;
    }
    
    .conversion-table th,
    .conversion-table td {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .conversion-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .conversion-table thead {
        display: none;
    }}