/* General Body & Reset Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

a {
    color: #0000ee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Wrapper for centered content */
.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: #def3f7;
    padding: 8px 0;
    border-bottom: 1px solid #e7e7e7;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #555;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav a {
    color: #333;
    font-size: 14px;
}

.header-nav a:hover {
    color: #0000ee;
}

/* Breadcrumb Navigation (For inner pages) */
.breadcrumb {
    padding: 12px 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #e7e7e7;
}

/* Main Content Layout */
.page-container {
    padding-top: 25px;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 2;
    min-width: 0; /* Prevents flex items from overflowing */
}

.sidebar {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Main Content Typography & Elements */
.main-content h1 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: normal;
}

.intro-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.section-title {
    font-size: 22px;
    font-weight: normal;
    margin: 40px 0 20px 0;
    border-bottom: 1px solid #e7e7e7;
    padding-bottom: 8px;
}

/* === Homepage Specific Styles === */
.tool-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.tool-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    padding: 25px 15px;
    text-align: center;
    font-size: 16px;
    color: #333;
    border-radius: 4px;
    transition: box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.tool-card:hover {
    border-color: #c0c0c0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-decoration: none;
}

.featured-articles ul {
    list-style-type: '› ';
    padding-left: 20px;
    margin: 0;
}

.featured-articles li {
    padding: 5px 0;
    font-size: 15px;
}

/* Sidebar (Right Column) */


.sidebar-section {
    margin-bottom: 25px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-section h3 {
    background-color: #f5f5f5;
    font-size: 14px;
    padding: 10px 15px;
    margin: 0;
    font-weight: 600;
    color: #333;
}

.sidebar-section ul {
    list-style-type: none;
    padding: 8px 0;
    margin: 0;
    font-size: 14px;
}

.sidebar-section li a {
    display: block;
    padding: 8px 15px;
    color: #333;
    transition: all 0.2s ease;
}

.sidebar-section li a:hover {
    background-color: #def3f7;
    color: #000;
    text-decoration: none;
    padding-left: 20px;
}

/* Redesigned Footer Styles */
.site-footer {
    background-color: #f0f0f0;
    border-top: 1px solid #dcdcdc;
    padding: 30px 15px;
    font-size: 14px;
    color: #444;
    text-align: center;
    margin-top: 60px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-nav {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-nav a,
.footer-bottom a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-bottom a:hover {
    color: #0d47a1;
}

.footer-bottom {
    font-size: 13px;
    color: #000000;
    margin-top: 10px;
    
}

/* GDPR Banner Styles */
.gdpr-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 960px;
    margin: auto;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    z-index: 9999;
    display: none;
    font-family: Arial, sans-serif;
}

.gdpr-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.gdpr-box p {
    flex: 1 1 55%; /* Allow more space for text before wrapping */
    margin: 0;
    font-size: 15px;
    color: #333333;
    line-height: 1.5;
}

.gdpr-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gdpr-buttons button {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.gdpr-buttons button:first-of-type { background-color: #007bff; color: white; }
.gdpr-buttons button:first-of-type:hover { background-color: #0069d9; }
.gdpr-buttons button:nth-of-type(2) { background-color: #e0e0e0; color: #333; }
.gdpr-buttons button:nth-of-type(2):hover { background-color: #d5d5d5; }

.gdpr-buttons a {
    align-self: center;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}
.gdpr-buttons a:hover { text-decoration: underline; }


/* === Responsive Design === */

/* Tablet & Large Phones */
@media (max-width: 768px) {
    .header-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .main-content h1 {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 20px;
    }

    .ads {
        height: 250px;
        min-height: auto;
        font-size: 48px;
    }
    
    .gdpr-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .gdpr-buttons {
        justify-content: center;
        width: 100%;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-content h1 {
        font-size: 24px;
    }

    .tool-category-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        line-height: 1.8;
    }

    .footer-nav a,
    .footer-bottom a {
        margin: 0 3px;
    }
}







 .featured-image {
            width: 100%;
            height: auto;
            border-radius: 8px;
            margin: 2rem 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }