:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --dark-color: #1b263b;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--light-color);
    transition: var(--transition);
}

.home-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

#langBtn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

#langBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

/* Navigation Styles */
nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

nav > a, nav > div > a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 8px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 14px;
}

nav > a:hover, nav > div > a:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

/* Dropdown Styles */
.dropdown, .info-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content, .info-dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

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

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

.dropdown-content a, .info-dropdown-content a {
    color: var(--dark-color) !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    background: white;
}

.dropdown-content a:last-child, .info-dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover, .info-dropdown-content a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
}

.dropdown-content a:hover i, .info-dropdown-content a:hover i {
    color: white !important;
}

.dropdown-content i, .info-dropdown-content i {
    width: 20px;
    font-size: 16px;
    color: var(--primary-color);
}

/* Homepage Container */
.container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.container h1 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--warning-color));
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.card p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.card-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.card-features span {
    background: var(--light-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Tool Container */
.tool-container {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tool-header h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* Form Styles */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin: 1rem 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* Result Display */
.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--dark-color);
}

.result-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Stopwatch Styles */
.stopwatch-display {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #1b263b 0%, #2a3b4c 100%);
    border-radius: 20px;
    margin-bottom: 2rem;
}

#display {
    font-size: 4rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #4cc9f0;
    text-shadow: 0 0 20px rgba(76, 201, 240, 0.5);
    letter-spacing: 5px;
}

.stopwatch-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.control-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.control-btn.start {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
}

.control-btn.pause {
    background: linear-gradient(135deg, #f72585, #b5179e);
}

.control-btn.reset {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.control-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Zakat Calculator Specific */
.currency-input {
    position: relative;
}

.currency-input input {
    padding-left: 3rem;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-weight: 600;
}

.zakat-result {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    border-radius: 16px;
    color: white;
}

.zakat-amount {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

.zakat-nisab {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav > a, nav > div > a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .dropdown-content, .info-dropdown-content {
        position: fixed;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 280px;
    }
    
    .logo-area {
        width: 100%;
        justify-content: space-between;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    #display {
        font-size: 2.5rem;
    }
    
    .stopwatch-controls {
        grid-template-columns: 1fr;
    }
    
    .stopwatch-controls {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
[dir="rtl"] .dropdown-content a i,
[dir="rtl"] .info-dropdown-content a i {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .home-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .result-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .currency-input input {
    padding-left: 1rem;
    padding-right: 3rem;
}

[dir="rtl"] .currency-symbol {
    left: auto;
    right: 1rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--dark-color);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

/* Footer Styles */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* Legal Pages Styles */
.legal-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legal-container h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.legal-container h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-container h3 {
    color: var(--dark-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.legal-container p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--gray-color);
}

.legal-container ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-container li {
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

.last-updated {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-color);
}

/* About Page Styles */
.about-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.about-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.mission-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.mission-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.mission-section p {
    color: var(--gray-color);
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.value-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

.team-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--box-shadow);
}

.team-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.team-member h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--gray-color);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Page Styles */
.contact-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
    background: #e9ecef;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-text h3 {
    color: var(--dark-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-text p {
    color: var(--gray-color);
    margin: 0;
}

.contact-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.4);
}

.map-section {
    grid-column: span 2;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    border: 2px dashed #ddd;
}

.faq-section {
    grid-column: span 2;
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* Back to Home Button */
.back-to-home {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.back-to-home:hover {
    background: var(--secondary-color);
    transform: translateX(-5px);
}

/* Ad Space Styles */
.ad-space {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: var(--gray-color);
}

.ad-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 0.5rem;
}

/* Blog Styles */
.blog-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-category {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.blog-card-title a {
    color: var(--dark-color);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.blog-card-meta i {
    margin-right: 0.3rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Sidebar */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    color: var(--gray-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: var(--primary-color);
}

.popular-posts {
    list-style: none;
}

.popular-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.popular-posts li:last-child {
    border-bottom: none;
}

.popular-posts a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}

.popular-posts a:hover {
    color: var(--primary-color);
}

.popular-posts small {
    display: block;
    color: var(--gray-color);
    margin-top: 0.3rem;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.blog-post-meta {
    color: var(--gray-color);
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.blog-post-meta i {
    margin-right: 0.3rem;
}

.blog-post-content {
    line-height: 1.8;
    color: var(--dark-color);
}

.blog-post-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.blog-post-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.blog-post-content th {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem;
}

.blog-post-content td {
    padding: 0.8rem;
    border: 1px solid #ddd;
}

.blog-post-content .highlight {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
}

.blog-post-content .calculator-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin: 1rem 0;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }

.related-posts {
    margin: 3rem 0;
}

.related-posts h3 {
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-post {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.related-post a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
}

.related-post a:hover {
    color: var(--primary-color);
}

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.comment-form button {
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Print Styles */
@media print {
    header, footer, .back-to-home, .share-buttons, .comments-section {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .legal-container, .about-container, .contact-container, .blog-post {
        box-shadow: none;
        margin: 0;
        padding: 1rem;
    }
}
