/* almustqbal tools - Core Stylesheet */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 20px auto;
    box-sizing: border-box;
    flex-grow: 1;
    border: 1px solid #e9ecef;
}
.container.contact-page {
     max-width: 800px;
}
.container.privacy-page {
    text-align: left;
}
h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em;
}
p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}
.privacy-page h1 { text-align: center; }
.privacy-page h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8em;
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-align: center;
}
.privacy-page p { font-size: 1.05em; line-height: 1.8; margin-bottom: 15px; }
.privacy-page ul { list-style-type: disc; margin-left: 25px; margin-bottom: 15px; color: #555; }
.privacy-page ul li { margin-bottom: 8px; line-height: 1.6; }

/* Header & Footer */
header {
    background-color: #1d3557;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.logo-container { flex-grow: 1; display: flex; align-items: center; justify-content: flex-start; }
.logo img { height: 40px; width: 150px; }
nav { display: flex; flex-grow: 1; justify-content: flex-end; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
nav ul li a { color: white; text-decoration: none; font-size: 1.1em; transition: color 0.3s ease; white-space: nowrap; }
nav ul li a:hover { color: #a8dadc; }
footer {
    background-color: #1d3557;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
    font-size: 0.9em;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}
footer a { color: #a8dadc; text-decoration: none; margin-left: 10px; transition: color 0.3s ease; font-size: 0.95em; }
footer a:hover { color: white; }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; z-index: 1001; }
.hamburger div { width: 100%; height: 3px; background-color: white; border-radius: 2px; transition: all 0.3s linear; }

/* General Sections & Components */
.hidden { display: none !important; }
.section-title {
    color: #1d3557;
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}
.features-section-container { margin-top: 40px; margin-bottom: 20px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-item {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid #e0e0e0;
}
.feature-item:hover { transform: translateY(-5px); box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.feature-item .icon-wrapper { font-size: 2.5em; color: #eca51e; margin-bottom: 10px; }
.feature-item h3 { color: #2c3e50; font-size: 1.1em; margin-bottom: 8px; }
.feature-item p { color: #555; font-size: 0.9em; line-height: 1.5; }
.tool-details-box { text-align: left; }
.tool-details-box h3 { font-size: 1.1875em; color: #2c3e50; margin-top: 25px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e0e0e0; }
.tool-details-box h3:first-child { margin-top: 0; }
.tool-details-box p, .tool-details-box ul li { font-size: 0.95em; color: #555; line-height: 1.5; }
.tool-details-box ul { list-style-type: none; padding-left: 0; margin-bottom: 15px; }
.tool-details-box ul li { padding-left: 1.6em; position: relative; margin-bottom: 8px; }
.tool-details-box ul li::before { content: '✔'; color: #28a745; position: absolute; left: 0; top: 2px; }

/* Suggestion Banner */
.suggestion-banner-container {
    background-color: #1d3557;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    margin-top: -10px;
    flex-wrap: wrap;
    gap: 20px;
}
.suggestion-banner-content {
    text-align: left;
    flex-grow: 1;
}
.suggestion-banner-content h2 {
    color: #eca51e;
    font-size: 1.5em;
    margin: 0 0 5px 0;
}
.suggestion-banner-content p {
    color: #ffffff;
    font-size: 1em;
    margin: 0;
}
.suggestion-banner-action {
    flex-shrink: 0;
}

/* Suggestion Button "Improve" Style */
.improve-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.improve-btn i {
    font-size: 1em;
}
.improve-btn:hover {
    background-color: #e9ecef;
    border-color: #b1b9c1;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    position: relative;
    text-align: left;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    border: none;
    background: none;
}
.modal-close:hover {
    color: #333;
}
#suggestion-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5em;
}
#suggestion-text {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 15px;
}
#suggestion-submit-btn {
    background-color: #1d3557;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}
#suggestion-submit-btn:hover {
    background-color: #0c1a2e;
}
#suggestion-response {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

/* Home Page Specific */
.home-page-content .hero-section { background-color: #1d3557; color: #f1faee; padding: 60px 20px; text-align: center; }
.home-page-content .hero-section h1 { color: #ffffff; font-size: 2.55em; margin-bottom: 20px; font-weight: 700; }
.home-page-content .hero-section p { color: #ffffff; }
.home-page-content .hero-section p.intro-paragraph { font-size: 1.2em; margin-bottom: 25px; max-width: 700px; margin-left: auto; margin-right: auto; }
.home-page-content .hero-section .sub-description { font-size: 1.1em; font-weight: bold; margin-bottom: 30px; }
.home-page-content .hero-section .cta-button {
    background-color: #f7a90c; color: white; border: none; padding: 15px 35px; border-radius: 8px;
    font-size: 1.2em; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none; font-weight: bold;
}
.home-page-content .hero-section .cta-button:hover { background-color: #e0980b; transform: translateY(-2px); }


/* --- START: Final Filter Button Styles --- */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px; 
}
.filter-btn {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 5px 12px;
    /* --- Font properties as requested --- */
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 15px;
    /* ------------------------------------ */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.filter-btn:hover {
    background-color: #e9ecef;
    border-color: #b1b9c1;
}
.filter-btn.active {
    background-color: #1d3557;
    color: white;
    border-color: #1d3557;
}
/* --- END: Final Filter Button Styles --- */


/* Tool Grids Styles */
.tools-grid-redesigned {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.tool-item-new {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
}
.tool-item-new:hover {
    border-color: #c0c0c0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.tool-item-icon-new {
    font-size: 1.8em;
    color: #eca51e;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}
.tool-item-text-content-new {
    flex-grow: 1;
}
.tool-item-title-new {
    font-size: 0.925em;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}
.tool-item-description-new {
    font-size: 0.85em;
    color: #555;
    margin: 0;
    line-height: 1.4;
}
.tool-item-arrow-new {
    margin-left: 15px;
    font-size: 1.4em;
    color: #aaaaaa;
    transition: color 0.2s ease;
}
.tool-item-new:hover .tool-item-arrow-new span {
    color: #f7a90c;
}

/* Load More Functionality Styles */
.tool-item-hidden {
    display: none;
}
.load-more-btn {
    background-color: #1d3557;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: block;
    width: fit-content;
    margin: 30px auto 0;
}
.load-more-btn:hover {
    background-color: #0c1a2e;
    transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials-section { text-align: center; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; text-align: left; }
.testimonial-item { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 25px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: box-shadow 0.3s ease; }
.testimonial-item:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.testimonial-avatar-icon { font-size: 3em; color: #1d3557; margin-bottom: 15px; width: 70px; height: 70px; background-color: #f4f7f6; border-radius: 50%; border: 2px solid #1d3557; display: flex; align-items: center; justify-content: center; }
.testimonial-avatar-icon svg { width: 60%; height: 60%; fill: currentColor; }
.testimonial-text { font-size: 0.9em; color: #555; line-height: 1.5; margin-bottom: 15px; font-style: italic; flex-grow: 1; }
.testimonial-author { font-size: 0.85em; color: #1d3557; font-weight: bold; margin-top: auto; }

/* Contact Page */
.contact-info { margin-top: 30px; }
.contact-info a { color: #457b9d; text-decoration: none; font-weight: bold; font-size: 1.2em; transition: color 0.3s ease; }
.contact-info a:hover { color: #1d3557; }

/* FAQ Section */
.faq-section { padding: 60px 20px; text-align: center; margin-top: 40px; }
.faq-list { max-width: 1000px; margin: 0 auto; text-align: left; }
.faq-item { background-color: #fff; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03); overflow: hidden; }
.faq-question { padding: 20px 25px; background-color: #f7f7f7; border-bottom: 1px solid #eee; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: bold; color: #2c3e50; font-size: 1.1em; transition: background-color 0.2s ease; }
.faq-question:hover { background-color: #eef; }
.faq-question .arrow { font-size: 1.2em; transition: transform 0.3s ease; }
.faq-question.active .arrow { transform: rotate(180deg); }
.faq-answer { padding: 0 25px; max-height: 0; opacity: 0; overflow: hidden; color: #555; line-height: 1.6; background-color: #fff; transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease-out; }
.faq-answer.active { padding: 20px 25px; max-height: 500px; opacity: 1; }
.faq-answer p { margin: 0; }

/* Responsive Media Queries */
@media (min-width: 992px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .tools-grid-redesigned { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 30px 20px; margin: 20px auto; }
    h1 { font-size: 1.8em; }
    header { justify-content: space-between; }
    .logo-container { flex-grow: 0; }
    nav { position: fixed; top: 0; right: -300px; width: 250px; height: 100%; background-color: #1d3557; padding-top: 80px; transition: right 0.3s ease-in-out; z-index: 1000; display: block; box-shadow: -2px 0 5px rgba(0,0,0,0.1); }
    nav.active { right: 0; }
    nav ul { flex-direction: column; align-items: flex-start; padding: 20px; gap: 20px; }
    .hamburger { display: flex; }
    .section-title, .faq-section h2 { font-size: 2em; }
    .features-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .suggestion-banner-container {
        flex-direction: column;
        text-align: center;
    }
    .suggestion-banner-content {
        text-align: center;
    }
}
@media (max-width: 480px) {
    .container { padding: 20px 15px; }
    h1 { font-size: 1.5em; }
    .logo img { height: 35px; }

    /* --- Mobile Styles for Filter Buttons --- */
    .filter-btn {
        font-size: 14px;
        padding: 5px 9px;
    }
}