:root {
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --primary-color: #5e72e4;
    --primary-hover: #435fe0;
    --secondary-color: #f4f5f7;
    --text-color: #32325d;
    --text-light: #8898aa;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.main-header { text-align: center; padding: 40px 20px; }
.main-header h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 10px; }
.main-header h1 a { text-decoration: none; color: inherit; }
.main-header h1 span { background: linear-gradient(to right, var(--primary-color), #8965e0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.main-header p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; }
.search-wrapper { max-width: 600px; margin: 0 auto; }
#search-bar { width: 100%; padding: 15px 20px; border: 1px solid var(--border-color); border-radius: 50px; font-size: 1rem; box-shadow: var(--shadow); transition: all 0.2s; }
#search-bar:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.25); }
.category-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.category-tab { padding: 10px 20px; border: 1px solid var(--border-color); border-radius: 50px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.category-tab.active, .category-tab:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }
.tool-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--card-bg); border-radius: 12px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; }
.tool-card:hover { transform: translateY(-5px); box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08); }
.tool-card-content { padding: 25px; flex-grow: 1; }
.tool-card .icon { font-size: 2.5rem; margin-bottom: 15px; display: block; text-align: center; }
.tool-card h3 { font-size: 1.2rem; margin-bottom: 8px; text-align: center; }
.tool-card p { font-size: 0.9rem; color: var(--text-light); text-align: center; }
.tool-card-footer { background-color: var(--secondary-color); padding: 10px 25px; text-align: center; font-weight: 600; color: var(--primary-color); }
.tool-page-container { display: grid; grid-template-columns: 1fr; gap: 40px; }
.tool-box { background: var(--card-bg); padding: 30px; border-radius: 12px; box-shadow: var(--shadow); }
.tool-box h2 { margin-bottom: 20px; font-size: 1.8rem; }
.tool-box .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.tool-box .input-group { margin-bottom: 15px; }
.tool-box .input-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.tool-box textarea, .tool-box input, .tool-box select { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; }
.tool-box button { padding: 12px 24px; background-color: var(--primary-color); color: #fff; border: none; border-radius: 6px; cursor: pointer; transition: background-color 0.2s; font-size: 1rem; margin-top: 10px; font-weight: 600; }
.tool-box button:hover { background-color: var(--primary-hover); }
.tool-box .result-display { margin-top: 20px; padding: 15px; background: var(--secondary-color); border-radius: 6px; font-family: 'Courier New', Courier, monospace; word-wrap: break-word; }
.tool-box .button-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.seo-content { background: var(--card-bg); padding: 30px; border-radius: 12px; box-shadow: var(--shadow); line-height: 1.8; margin-top: 40px; }
.seo-content h2 { font-size: 1.8rem; margin-bottom: 15px; }
.seo-content h3 { font-size: 1.4rem; margin-top: 25px; margin-bottom: 10px; }
.seo-content p { margin-bottom: 15px; }
.seo-content ul, .seo-content ol { margin-left: 20px; margin-bottom: 15px; }
.main-footer { text-align: center; padding: 30px 0; margin-top: 40px; border-top: 1px solid var(--border-color); }
.main-footer p { color: var(--text-light); margin-bottom: 10px; }
.footer-nav a { color: var(--text-light); text-decoration: none; margin: 0 10px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--primary-color); }
.content-page { background: var(--card-bg); padding: 40px; border-radius: 12px; box-shadow: var(--shadow); text-align: left; }
.content-page h2 { font-size: 2rem; margin-bottom: 20px; }
.content-page p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
@media (max-width: 768px) {
    .main-header h1 { font-size: 2.2rem; }
    .tool-page-container { grid-template-columns: 1fr; }
    .tool-box .form-grid { grid-template-columns: 1fr; }
}
/* Blog Page Styles */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}
.article-content {
    padding: 25px;
}
.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}
.article-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.read-more {
    font-weight: 600;
    color: var(--primary-color);
}
/* ======================================== */
/* == Homepage Blog Section Styling == */
/* ======================================== */

/* Yeh poore section ko behtar spacing deta hai */
.latest-articles-section {
    margin-top: 60px; /* Uper wale content se faasla */
    padding: 40px 20px; /* Section ke andar spacing */
    border-top: 1px solid var(--border-color); /* Uper halki si line */
}

/* Yeh "Learn with Our Blog & Guides" ki heading ko style karta hai */
.section-title {
    text-align: center; /* Heading ko center mein laata hai */
    font-size: 2rem; /* Thora bara font size */
    margin-bottom: 40px; /* Neeche wale articles se faasla */
    color: var(--text-color);
}

/* Yeh "View All Articles" ke button ko style karta hai */
.view-all-link {
    text-align: center; /* Button ko center mein laata hai */
    margin-top: 40px; /* Article cards se faasla */
}

.view-all-link a {
    display: inline-block; /* Button ki tarah behave karne ke liye */
    background: var(--primary-color); /* Aapki theme ka blue color */
    color: #ffffff; /* Text ka color safaid */
    padding: 14px 30px; /* Button ke andar spacing (height aur width) */
    text-decoration: none; /* Neeche wali line khatam */
    font-weight: 600; /* Text ko thora mota karta hai */
    border-radius: 50px; /* Gol corners (pill shape) */
    box-shadow: 0 4px 10px rgba(94, 114, 228, 0.3); /* Halka sa shadow */
    transition: all 0.2s ease-in-out; /* Hover effect ko smooth banata hai */
}

.view-all-link a:hover {
    transform: translateY(-2px); /* Hover per halka sa uper uthega */
    box-shadow: 0 7px 14px rgba(94, 114, 228, 0.4); /* Hover per shadow gehra ho jayega */
    background: var(--primary-hover); /* Hover per thora gehra blue color */
}
/* === NAYA CODE: LINKS KO BUTTON BANANE KE LIYE === */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff !important; /* !important to override other styles */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}
.button:hover {
    background-color: var(--primary-hover);
    color: #fff !important;
}
/* Styling for the new header title */
.header-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.header-title a {
    text-decoration: none;
    color: inherit;
}
.header-title a span {
    background: linear-gradient(to right, var(--primary-color), #8965e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* === Related Posts Section Styling === */

.related-posts-container {
    width: 100%;
    max-width: 900px; /* Adjust max-width as per your site's layout */
    margin: 60px auto 40px auto; /* Adds space above and below */
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.related-posts-container h3 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between cards */
}

.related-card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #007bff; /* Link color */
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    color: #0056b3;
}
/* === START: Related Content Section Styles === */

.related-content-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 0 15px;
    border-top: 1px solid #e0e0e0;
}

.featured-related-box {
    padding: 40px 20px;
    background-color: #f8f8f9; /* Halkay rang ka background */
    border-radius: 12px;
    margin-top: 40px;
}

.featured-related-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.featured-related-box p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

.featured-cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #5856d6; /* Purple button */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
}

.featured-cta-button:hover {
    background-color: #4a48b9;
    transform: translateY(-2px);
}

.more-related-section {
    margin-top: 50px;
}

.more-related-section h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #333;
}

.related-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Links ke darmiyan space */
}

.related-link-item {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffffff;
    color: #007bff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.related-link-item:hover {
    border-color: #007bff;
    background-color: #f7faff;
    color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* === END: Related Content Section Styles === */
/* === START: All Tools & All Articles Page Styles === */

/* General container for the pages */
.page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-container h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.page-container .page-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 50px;
}

/* Search Bar Styles */
.search-bar-container {
    margin-bottom: 40px;
    text-align: center;
}

#search-input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#search-input:focus {
    outline: none;
    border-color: #5856d6;
    box-shadow: 0 0 10px rgba(88, 86, 214, 0.2);
}

/* Grid for Tools & Articles */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Card Styles */
.item-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.item-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #5856d6;
    /* You can add icons later */
}

.item-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* JavaScript 'hide' class */
.hide {
    display: none;
}
/* === END: Page Styles === */
/* === START: Homepage Primary Navigation Buttons Style === */
.primary-nav-buttons {
    text-align: center;
    margin-top: 25px; /* Search bar se neeche ka faasla */
    margin-bottom: 40px; /* Category tabs se ooper ka faasla */
}

.nav-button {
    display: inline-block;
    padding: 12px 28px;
    margin: 5px 8px; /* Buttons ke darmiyan space */
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    background-color: #f0f0f5; /* Thora sa off-white/grey background */
    text-decoration: none;
    border-radius: 50px; /* Gol corners (pill shape) */
    border: 1px solid transparent; /* Shuru mein border nahi hoga */
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #e5e5f0;
    color: #5856d6; /* Aapka main purple color */
    transform: translateY(-2px); /* Halkay se ooper uthega */
}

/* Active button ka style (jis page par user hai) */
.nav-button.active {
    background-color: #5856d6; /* Main purple color */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(88, 86, 214, 0.3);
}
/* === END: CSS Style === */