        * { box-sizing: border-box; }

        body {
            font-family: 'Adobe Arabic', 'Segoe UI', Tahoma, sans-serif;
            direction: rtl;
            text-align: right;
            margin: 0;
            padding: 0;
            background: #f4f6f9;
            color: #222;
            line-height: 1.7;
            overflow-x: hidden;
        }
        [lang="en"],
        [lang="la"] { 
            direction: ltr;
            text-align: left;
        }
        [lang="ar"],
        [lang="bal"] {
            direction: rtl;
            text-align: right;
        }


        .header {
            background: #3498db;
            color: white;
            padding: 25px 10px;
            text-align: center; /* Centered */
            font-size: 28px;
            font-weight: bold;
            letter-spacing: 1px;
            border-bottom: 4px solid #2980b9;
        }

        .container {
            width: 95%;
            max-width: 1200px;
            margin: 40px auto;
            padding: 30px;
            background: #fff;
            border-radius: 15px;
            border-top: 6px solid #3498db;
            box-shadow: 0 6px 25px rgba(0,0,0,0.08);
        }

        h1 {
            font-size: 28px;
            text-align: center; 
            margin-bottom: 50px;
            color: #1a5276;
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .tool-card {
            background: #fbfcfd;
            border: 1px solid #d6eaf8;
            padding: 25px 20px;
            border-radius: 12px;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 200px;
        }

        .tool-card:hover {
            box-shadow: 0 6px 18px rgba(0,0,0,0.15);
            transform: translateY(-3px);
        }

        .tool-title {
            font-size: 22px;
            color: #1a5276;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .tool-desc {
            font-size: 18px;
            color: #333;
            margin-bottom: 25px;
            flex-grow: 1;
        }

        .button {
            display: inline-block;
            background: #3498db;
            color: white;
            padding: 12px 25px;
            text-decoration: none;
            border-radius: 8px;
            font-weight: bold;
            font-size: 18px;
            text-align: center; 
            transition: all 0.3s ease;
        }

        .button:hover {
            background: #2471a3;
            transform: translateY(-2px);
        }

        .footer {
            text-align: center; 
            padding: 25px 10px;
            font-size: 14px;
            color: #555;
            margin-top: 50px;
            border-top: 1px solid #ddd;
        }

        @media (max-width: 768px) {
            .container { margin: 20px auto; padding: 20px; }
            h1 { font-size: 24px; margin-bottom: 35px; }
            .tool-title { font-size: 20px; }
            .tool-desc { font-size: 17px; margin-bottom: 20px; }
            .button { font-size: 17px; padding: 10px 20px; }
        }

        @media (max-width: 480px) {
            .tools-grid { gap: 18px; }
            h1 { font-size: 22px; }
        }
