/* General Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --background-color: #f4f7f9;
    --text-color: #333;
    --light-text-color: #666;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;

}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Header Styles */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 172px;
    margin-right: 0px;
}

.right-section {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    list-style-type: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #1a237e;
}

.language-selector {
    position: relative;
    margin-left: 30px;
}

.language-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid #ddd;
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
    color: #000000;
    border-radius: 20px;
    background-color: #0000001d;
}

.chevron {
    border-style: solid;
    border-width: 2px 2px 0 0;
    content: '';
    display: inline-block;
    height: 6px;
    width: 6px;
    position: relative;
    top: -2px;
    transform: rotate(135deg);
    margin-left: 5px;
    transition: transform 0.3s;
}

.language-toggle.active .chevron {
    transform: rotate(-45deg);
    top: 2px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    list-style-type: none;
    width: 200px;
    z-index: 1000;
    margin-top: 5px;
}

.language-dropdown.active {
    display: block;
}

.language-dropdown li {
    position: relative;
    padding: 0;
}

.language-dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s;
    position: relative;
    z-index: 1;
}

.language-dropdown a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.lang-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #000000, #2196f3);
    z-index: 0;
}

.mobile-controls {
    display: none;
    align-items: center;
}

.mobile-language-selector {
    position: relative;
    margin-right: 12px;
}

.mobile-language-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid #b6b6b6;
    padding: 5px 8px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 12px;
    color: #373737;
}

.mobile-language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    list-style-type: none;
    width: 120px;
    z-index: 1000;
    margin-top: 5px;
}

.mobile-language-dropdown.active {
    display: block;
}

.mobile-language-dropdown li {
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-language-dropdown li a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s;
}

.mobile-language-dropdown li a:hover {
    background-color: #e2e2e2;
}

.mobile-language-dropdown .lang-bar {
    width: 4px;
    height: 16px;
    background: linear-gradient(to bottom, #000000, #2196f3);
    margin-right: 12px;
    border-radius: 2px;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

.mobile-menu-dropdown {
    display: none;
    position: absolute;
    top: 68px;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 180px;
    margin-right: 1rem;
    border-radius: 8px;
}

.mobile-menu-dropdown.active {
    display: block;
}

.mobile-menu-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}



.mobile-menu-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.mobile-menu-dropdown i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.mobile-menu-dropdown .has-submenu {
    position: relative;
}



.mobile-menu-dropdown .has-submenu i.fa-chevron-left {
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}

.mobile-menu-dropdown .has-submenu.active i.fa-chevron-left {
    transform: rotate(-90deg);
}


.mobile-menu-dropdown a {
padding: 12px 18px;
display: flex;
align-items: start;
justify-content: flex-start;
}

.mobile-menu-dropdown .has-submenu > a {
padding-right: 40px;
}

.mobile-menu-dropdown .has-submenu > a .fa-chevron-left {
position: absolute;
right: 0px;
top: 50%;
transform: translateY(-50%);
}


.mobile-menu-dropdown .submenu a,
.mobile-menu-dropdown .submenu-author a {
padding: 10px 18px;
}

.mobile-menu-dropdown .submenu,
.mobile-menu-dropdown .submenu-author {
display: none;
background-color: white;
position: absolute;
right: 90%;
width: 200px;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
border: none;
padding: 8px;
top: 0;
}

.mobile-menu-dropdown .submenu.active,
.mobile-menu-dropdown .submenu-author.active {
display: block;
}

.mobile-menu-dropdown .has-submenu > a {
display: flex;
align-items: center;
}

.mobile-menu-dropdown .has-submenu > a .fa-chevron-left {
transition: transform 0.3s ease;
}

.mobile-menu-dropdown .has-submenu.active > a .fa-chevron-left {
transform: rotate(-90deg);
}


.calc-icon {
width: 24px;
height: 24px;
display: inline-block;
margin-right: 8px;
vertical-align: middle;
}


/* author */

.calc-icon-author {
width: 32px;
height: 32px;
border-radius: 50%; 
overflow: hidden; 
display: inline-block;
margin-right: 14px;
vertical-align: middle;
object-fit: cover; 
}



/* Mega Menu Styles */
.has-mega-menu {
    position: relative;
}

.calculator-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.calculator-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.has-mega-menu:hover .calculator-link i {
    transform: rotate(180deg);
}

.mega-menu {
display: none; /* Hide by default */
position: absolute;
top: 100%; /* Align below the trigger */
left: 50%;
transform: translateX(-50%);
background: white;
border-radius: 12px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
padding: 24px;
z-index: 1000;
}

.has-mega-menu:hover .mega-menu {
display: block; /* Show when parent or child is hovered */
}

.mega-menu.active {
    display: block;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.calculator-column {
    min-width: 220px;
}

.calculator-column h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.calculator-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.calculator-column li {
    margin: 0;
}

.calculator-column a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    color: #333;
    font-weight: normal;
}

.calculator-column a:hover {
    background-color: #f5f5f5;
    color: #1a237e;
}

.calc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 20px;
}

.mega-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}



@media (max-width: 768px) {
    .right-section {
        display: none;
    }

    .mobile-controls {
        display: flex;
    }

    .mega-menu {
        display: none !important;
    }
}



/* Main Content Styles */
.main-content {
    padding: 10px 0;
}

.content-wrapper {
    display: flex;
    gap: 10px;
}


/* Post Content Styles */
.post-content {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--light-text-color);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
}

.post-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.post-body h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.post-body h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 25px 0 10px;
}

.post-body p, .post-body ul {
    margin-bottom: 15px;
}

.post-body ul {
    padding-left: 20px;
}

.calculator-highlight {
    background-color: #f0f8ff;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #34495e;
}

/* Author Section Styles */
.author-section {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 20px;
}

.author-info h3 {
    margin: 0 0 10px;
}

.author-info h4 {
    margin: 0 0 10px;
    color: var(--primary-color);
}

.author-info p {
    margin: 0;
}

/* Share Post Styles */
.share-post {
    margin-top: 30px;
    margin-bottom: 10px;
    margin-left: 20px;
}

.social-share {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-share li {
    margin-right: 10px;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-share a:hover {
    background-color: var(--secondary-color);
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
}

.widget {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.widget h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.widget ul {
    list-style-type: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul li a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--secondary-color);
}


.faq-list details {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .faq-list summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
    }
    
    .faq-list summary::-webkit-details-marker {
    display: none;
    }
    
    .faq-list summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #3498db;
    transition: transform 0.3s ease;
    }
    
    .faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    }
    
    .faq-list p {
    padding: 1rem;
    background: #f8f9fa;
    }



    .more {
        display: flex;
        justify-content: center;
        margin-top: 30px;
    }
    
    .load-more {
        padding: 12px 20px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.3s ease, width 0.3s ease;
        width: 300px; /* Increased width */
        text-align: center; /* Ensure text is centered within the button */
        
    }
    

    
    /* Footer */

:root {
    ---primary-color: #3498db;
    ---secondary-color: #2c3e50;
    ---background-color: #f4f7f9;
    ---text-color: #333;
    ---light-gray: #f8f9fa;
    ---dark-gray: #343a40;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(---text-color);
}

.footer {
    background-color: var(---dark-gray);
    color: #fff;
    padding: 3rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    
}

.footer-section {
    flex: 1;
    margin-bottom: 2rem;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(---primary-color);
}

.footer-section ul {
    list-style-type: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(---primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(---primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
}



/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .right-section {
        display: none;
    }

    .mobile-controls {
        display: flex;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
    }
}

.author-section a {
    display: flex;
    color: rgb(0, 0, 0);
}