/* Global */
* { font-family: 'Cairo', sans-serif; }
body {
    background: #fafbfc;
    color: #1f2937;
    line-height: 1.7;
}

/* Navbar */
.tools-navbar {
    background: linear-gradient(135deg, #003d5c 0%, #005580 100%) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.tools-navbar .navbar-brand { font-size: 1.3rem; font-weight: 800; }
.tools-navbar .nav-link { font-weight: 600; }
.tools-navbar .nav-link:hover { color: #5CB85C !important; }

/* Hero */
.tools-hero {
    background: linear-gradient(135deg, #003d5c 0%, #005580 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.tools-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(92,184,92,0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(92,184,92,0.1) 0%, transparent 50%);
}
.tools-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}
.tools-hero .lead {
    opacity: 0.95;
    font-size: 1.15rem;
    position: relative;
}

/* Tool Cards */
.tool-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #f0f2f5;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,61,92,0.15);
    border-color: #003d5c;
    color: inherit;
}

.tool-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.tool-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #003d5c;
    margin-bottom: 8px;
}
.tool-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}
.tool-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Feature Badges */
.feature-badge {
    padding: 20px 15px;
}
.feature-badge h5 {
    font-weight: 800;
    color: #003d5c;
    margin: 10px 0;
    font-size: 1rem;
}
.feature-badge p { color: #6b7280; margin: 0; }

/* Footer */
.tools-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}
.footer-link {
    color: #003d5c;
    text-decoration: none;
    font-weight: 600;
    margin: 0 5px;
}
.footer-link:hover { color: #5CB85C; }

/* Tool Page - Converter */
.converter-container {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    max-width: 600px;
    margin: 0 auto;
}
.converter-title {
    color: #003d5c;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}
.date-picker-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.date-picker-group input,
.date-picker-group select {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    font-family: inherit;
}
.date-picker-group input:focus,
.date-picker-group select:focus {
    outline: none;
    border-color: #003d5c;
}
.result-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #16a34a;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 20px;
}
.result-box .result-label {
    color: #16a34a;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.result-box .result-value {
    color: #003d5c;
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.3;
}
.btn-convert {
    background: linear-gradient(135deg, #5CB85C, #4cae4c);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    font-size: 1.05rem;
    transition: transform 0.2s;
}
.btn-convert:hover {
    transform: translateY(-2px);
    color: #fff;
}

/* Nav logo */
.nav-logo { border-radius: 8px; background: #fff; padding: 3px; }

/* Info Content sections */
.info-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.info-section h2 {
    color: #003d5c;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-right: 4px solid #5CB85C;
    padding-right: 12px;
}
.info-section h3 {
    color: #003d5c;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 25px 0 12px;
}
.info-section p, .info-section li {
    color: #4b5563;
    line-height: 1.9;
    font-size: 0.95rem;
}
.info-section ul, .info-section ol { padding-right: 20px; }
.info-section li { margin-bottom: 6px; }

/* FAQ */
.faq-item {
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    padding: 16px 20px;
    font-weight: 700;
    color: #003d5c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: #f8fafc;
    width: 100%;
    text-align: right;
    font-size: 0.95rem;
    font-family: inherit;
}
.faq-question:hover { background: #f0f4f8; }
.faq-question .fa-chevron-down { transition: transform 0.3s; }
.faq-item.active .faq-question .fa-chevron-down { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}
.faq-answer p { color: #4b5563; line-height: 1.8; margin: 0; }

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #003d5c 0%, #005580 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}
.cta-box h3 { color: #fff; font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 20px; }
.cta-btn {
    display: inline-block;
    background: #5CB85C;
    color: #fff;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); color: #fff; background: #4cae4c; }

/* Breadcrumb */
.breadcrumb-nav {
    background: #f0f4f8;
    padding: 12px 0;
    font-size: 0.85rem;
}
.breadcrumb-nav a { color: #003d5c; text-decoration: none; font-weight: 600; }
.breadcrumb-nav a:hover { color: #5CB85C; }
.breadcrumb-nav .separator { margin: 0 8px; color: #94a3b8; }

/* Mobile - محسّن */
@media (max-width: 767px) {
    .tools-hero h1 { font-size: 1.5rem; }
    .tools-hero { padding: 40px 0 30px; }
    .tools-hero .lead { font-size: 0.95rem; }
    .tool-card { padding: 22px 18px; }
    .tool-card h3 { font-size: 1rem; }
    .tool-icon { width: 55px; height: 55px; font-size: 24px; margin-bottom: 14px; }
    .converter-container { padding: 20px 16px; margin: 0 -8px; }
    .converter-title { font-size: 1.15rem; }
    .date-picker-group { grid-template-columns: 1fr 1fr; gap: 8px; }
    .date-picker-group select { padding: 10px 8px; font-size: 0.9rem; }
    .result-box { padding: 18px; }
    .result-box .result-value { font-size: 1.35rem; }
    .btn-convert { padding: 12px; font-size: 0.95rem; }
    .nav-pills .nav-link { padding: 10px 8px; font-size: 0.85rem; }
    .info-section { padding: 20px 16px; margin: 25px -8px 0; border-radius: 12px; }
    .info-section h2 { font-size: 1.15rem; }
    .info-section h3 { font-size: 1rem; }
    .info-section p, .info-section li { font-size: 0.9rem; }
    .feature-badge { padding: 12px 8px; }
    .feature-badge h5 { font-size: 0.9rem; }
    .feature-badge p { font-size: 0.75rem; }
    .cta-box { padding: 22px 18px; }
    .cta-box h3 { font-size: 1.15rem; }
    .tools-navbar .navbar-brand { font-size: 1.05rem; }
    .tools-navbar .navbar-brand img { width: 30px; height: 30px; }
    .footer-link { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .date-picker-group { grid-template-columns: 1fr; gap: 6px; }
    .tools-hero h1 { font-size: 1.3rem; }
    .tool-card { padding: 18px 14px; }
    .tool-card h3 { font-size: 0.95rem; }
    .tool-card p { font-size: 0.82rem; }
}
