﻿/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}


/* Navbar */
/* الشريط العلوي */
.navbar {
    background-color: #1e40af;
    color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* جعل المحتوى عمودي */
.nav-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* الشعار */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

/* صف الأزرار */
.nav-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* مجموعة زر الهامبرغر */
.hamburger-group {
    position: relative;
}

/* زر الهامبرغر */
.hamburger {
    font-size: 1rem;
    padding: 8px 12px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* القائمة المنسدلة */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1e40af;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    /* عناصر القائمة */
    .dropdown-menu li {
        padding: 8px 20px;
    }

        .dropdown-menu li a {
            color: white;
            text-decoration: none;
        }

            .dropdown-menu li a:hover {
                color: #93c5fd;
            }

    /* عرض القائمة عند التفعيل مع حركة */
    .dropdown-menu.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

/* روابط Home, About, Privacy */
.nav-links-row a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    font-weight: 500;
    transition: color 0.3s;
}

    .nav-links-row a:hover {
        color: #93c5fd;
    }
/* Footer */
.footer {
    background-color: #1e3a8a;
    color: #cbd5e1;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}
/* index css*/
.hero {
    background: linear-gradient(to right, #1e3a8a, #2563eb);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .hero p.lead {
        font-size: 1.25rem;
        margin-bottom: 30px;
    }
 /* تصميم القسم */
    .why-smarttools-section {
      padding: 60px 20px;
      background: linear-gradient(135deg, #e0ecff, #f9fbff);
      border-top: 1px solid #d1d9e6;
      border-bottom: 1px solid #d1d9e6;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    /* حاوية المحتوى */
    .why-smarttools-section .container {
      max-width: 800px;
      margin: 0 auto;
      background-color: #ffffff;
      padding: 40px 35px;
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(30, 58, 138, 0.1);
      transition: box-shadow 0.3s ease;
    }

    /* تأثير ظل عند المرور على الحاوية */
    .why-smarttools-section .container:hover {
      box-shadow: 0 12px 36px rgba(30, 58, 138, 0.15);
    }

    /* عنوان القسم */
    .why-title {
      font-size: 2.4rem;
      text-align: center;
      color: #1e40af;
      margin-bottom: 40px;
      font-weight: 800;
      letter-spacing: 1px;
      text-shadow: 0 1px 3px rgba(30, 64, 175, 0.3);
    }

    /* نص المقال */
    .why-article {
      font-size: 1.15rem;
      color: #4b5563;
      line-height: 1.9;
      letter-spacing: 0.02em;
    }

    /* كل فقرة */
    .why-article p {
      margin-bottom: 1.8em;
      text-align: justify;
      text-indent: 1.2em;
      transition: color 0.3s ease;
    }

    /* تأثير عند مرور الماوس على الفقرة */
    .why-article p:hover {
      color: #1e40af;
      cursor: default;
    }

    /* تصميم متجاوب للشاشات الصغيرة */
    @media (max-width: 600px) {
      .why-smarttools-section .container {
        padding: 30px 20px;
      }
      .why-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
      }
      .why-article {
        font-size: 1rem;
        line-height: 1.7;
      }
    }
/* ستايل زر btn-primary */
.btn-primary {
    background-color: #3b82f6; /* أزرق فاتح */
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: inline-block;
}

    .btn-primary:hover {
        background-color: #2563eb; /* أزرق أغمق عند المرور */
    }

.tools-section {
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1f2937;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.tool-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .tool-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

.tool-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 15px;
}

.tool-link {
    display: inline-block;
    margin-top: 15px;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

    .tool-link:hover {
        text-decoration: underline;
    }
    /* age css*/
.calculator-container {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
    background-color: #f9fafb;
}

.calculator-box {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

    .calculator-box h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
        color: #1e3a8a;
    }

    .calculator-box p {
        color: #6b7280;
        margin-bottom: 30px;
    }

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="date"] {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

    button:hover {
        background-color: #1e40af;
    }

.result-section {
    margin-top: 30px;
    text-align: left;
    background-color: #f1f5f9;
    padding: 20px;
    border-radius: 8px;
}

    .result-section h2 {
        margin-bottom: 15px;
        color: #111827;
    }

    .result-section ul {
        list-style: none;
        padding-left: 0;
    }

    .result-section li {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    /* bmi css*/
form div {
    margin-bottom: 15px;
    text-align: left;
}

input[type="number"],
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
}
/*bmi موشر*/
.bmi-scale-wrapper {
    margin-top: 30px;
}

.bmi-scale {
    position: relative;
    height: 14px;
    border-radius: 10px;
    background: linear-gradient(to right, #60a5fa 0%, #4ade80 25%, #facc15 50%, #f87171 75%, #ef4444 100%);
    margin: 12px 0;
}

.bmi-marker {
    position: absolute;
    top: -8px;
    width: 20px;
    height: 20px;
    background-color: #1e40af;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    transform: translateX(-50%);
}

.bmi-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
}
/* gpa css*/
.course-input {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

    .course-input select,
    .course-input input {
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }
    /* mortage css*/
.calculator-container {
    max-width: 500px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.calculator-box h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #f9c400;
}

.calculator-box p {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

form.mortgage-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 600;
    color: #333;
}

input[type=number] {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

    input[type=number]:focus {
        outline: none;
        border-color: #f9c400;
        box-shadow: 0 0 5px #f9c400;
    }

button {
    background-color: #f9c400;
    border: none;
    padding: 0.75rem;
    color: white;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    button:hover {
        background-color: #c7a700;
    }

.result-section {
    margin-top: 2rem;
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

    .result-section ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
        color: #222;
        font-weight: 600;
    }

    .result-section li {
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }
    /* retirment*/
.calculator-container {
    max-width: 520px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.calculator-box h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #f9c400;
}

.calculator-box p {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

form.retirement-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 600;
    color: #333;
}

input[type=number], select {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

    input[type=number]:focus, select:focus {
        outline: none;
        border-color: #f9c400;
        box-shadow: 0 0 5px #f9c400;
    }

button {
    background-color: #f9c400;
    border: none;
    padding: 0.75rem;
    color: white;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    button:hover {
        background-color: #c7a700;
    }

.result-section {
    margin-top: 2rem;
    background: #f9f9f9;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 600;
    color: #222;
    font-size: 1.1rem;
    text-align: center;
}
/*calorie css*/
.bar
{
    width: 100%;
    height: 20px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.fill
{
    height: 100%;
    background-color: #4ade80;
    transition: width 0.4s ease;
}
/* about css*/
.about-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: #1f2937;
}

.about-box h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #111827;
}

.about-box h2 {
    font-size: 1.5rem;
    margin-top: 25px;
    color: #2563eb;
}

.about-box p, .about-box li {
    font-size: 1rem;
    line-height: 1.6;
}

.about-box ul {
    padding-left: 20px;
}
/*privacy*/
/* Styles for Privacy Policy page */
.privacy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    line-height: 1.7;
}

    .privacy-container h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
        text-align: center;
        color: #1e40af;
    }

    .privacy-container h2 {
        font-size: 1.6rem;
        margin-top: 30px;
        margin-bottom: 15px;
        color: #2563eb;
        border-left: 4px solid #1e40af;
        padding-left: 12px;
    }

    .privacy-container p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

@media (max-width: 600px) {
    .privacy-container {
        margin: 20px auto;
        padding: 0 15px;
    }

        .privacy-container h1 {
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .privacy-container h2 {
            font-size: 1.3rem;
            margin-top: 20px;
            margin-bottom: 12px;
        }

        .privacy-container p {
            font-size: 1rem;
            margin-bottom: 15px;
        }
        
}

/* product promo box - smaller & cleaner */
.promo-box {
    background: #f9fbff;
    border-left: 5px solid #3b82f6;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem auto;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12);
    text-align: center;
    max-width: 420px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    transition: box-shadow 0.3s ease;
}

    .promo-box:hover {
        box-shadow: 0 10px 28px rgba(59, 130, 246, 0.25);
    }

    .promo-box h2 {
        color: #2563eb;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
        letter-spacing: 0.03em;
    }

    .promo-box img {
        max-width: 100%;
        border-radius: 10px;
        margin: 0.8rem 0;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

        .promo-box img:hover {
            transform: scale(1.04);
            box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
        }

    .promo-box p {
        font-size: 0.9rem;
        line-height: 1.4;
        color: #334155;
        margin-bottom: 1.2rem;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .promo-box .btn-highlight {
        background-color: #3b82f6;
        color: white;
        padding: 0.55rem 1.4rem;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
        display: inline-block;
        box-shadow: 0 5px 10px rgba(59, 130, 246, 0.35);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

        .promo-box .btn-highlight:hover {
            background-color: #1e40af;
            box-shadow: 0 7px 16px rgba(30, 64, 175, 0.6);
        }
    /*ads*/
.ad-container {
    max-width: 728px;
    margin: auto;
    min-height: 100px;
}
/*artical*/
/* مقالات الشرح العامة */
.tool-article {
    max-width: 800px;
    margin: 3rem auto 4rem;
    padding: 30px 25px;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #475569;
    line-height: 1.7;
    border: 1px solid #e2e8f0;
}

    /* عناوين رئيسية */
    .tool-article h2 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
        color: #1e40af;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-shadow: 0 1px 2px rgba(30, 58, 138, 0.25);
    }

    /* عناوين فرعية */
    .tool-article h3 {
        font-size: 1.4rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: #2563eb;
        font-weight: 600;
    }

    /* الفقرات */
    .tool-article p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* القوائم النقطية */
    .tool-article ul {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
    }

        .tool-article ul li {
            margin-bottom: 0.6rem;
        }

    /* روابط داخل المقال */
    .tool-article a {
        color: #2563eb;
        text-decoration: underline;
        transition: color 0.3s ease;
    }

        .tool-article a:hover {
            color: #1e40af;
        }

